2021-05-14 06:37:47 +00:00
|
|
|
#include <stdint.h>
|
2021-05-17 08:40:25 +00:00
|
|
|
|
2021-05-14 06:37:47 +00:00
|
|
|
#include "../../bsp/include/sim_ctrl.h"
|
2021-05-17 08:40:25 +00:00
|
|
|
#include "../../bsp/include/uart.h"
|
2021-05-14 06:37:47 +00:00
|
|
|
#include "../../bsp/include/xprintf.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2021-05-17 08:40:25 +00:00
|
|
|
#ifdef SIMULATION
|
2021-05-14 06:37:47 +00:00
|
|
|
sim_ctrl_init();
|
2021-05-17 08:40:25 +00:00
|
|
|
#else
|
2021-08-10 03:09:53 +00:00
|
|
|
uart0_init(uart0_putc);
|
2021-05-17 08:40:25 +00:00
|
|
|
#endif
|
2021-05-14 06:37:47 +00:00
|
|
|
|
|
|
|
xprintf("hello world\n");
|
|
|
|
|
|
|
|
while (1);
|
|
|
|
}
|