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"
|
2021-09-10 01:56:21 +00:00
|
|
|
#include "../../bsp/include/pinmux.h"
|
2021-05-14 06:37:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
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-09-29 01:24:04 +00:00
|
|
|
uart_init(UART0, uart0_putc);
|
2021-09-10 01:56:21 +00:00
|
|
|
pinmux_set_io0_func(IO0_UART0_TX);
|
|
|
|
pinmux_set_io3_func(IO3_UART0_RX);
|
2021-05-17 08:40:25 +00:00
|
|
|
#endif
|
2021-05-14 06:37:47 +00:00
|
|
|
|
|
|
|
xprintf("hello world\n");
|
|
|
|
|
|
|
|
while (1);
|
|
|
|
}
|