aboutsummaryrefslogtreecommitdiff
path: root/main.c
blob: 2572927d750097ef383620ade2b871f45a93cf99 (plain) (blame)
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-fmc.h"
#include "stm-uart.h"

extern void __main(void);

void main(void)
{
    stm_init();
    fmc_init();
    __main();
    uart_send_string("Done.\r\n\r\n");
}