aboutsummaryrefslogblamecommitdiff
path: root/main.c
blob: feec34410925b3ef6e78f4a462dc6bca4662c4a1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
  }
}