diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +/* A wrapper for test programs that contain main() (currently libhal/tests). + * We compile them with -Dmain=__main, so we can do stm setup first. + */ + +#include "stm-init.h" +#include "stm-uart.h" + +void main(void) +{ + stm_init(); + fmc_init(); + while(1) { + __main(); + uart_send_string("\r\n"); + HAL_Delay(2000); + } +} |