void main(void) { /* Init UART */ fnet_cpu_serial_init(FNET_CFG_CPU_SERIAL_PORT_DEFAULT, 115200); /* Enable interrupts */ fnet_cpu_irq_enable(0); /* Run application */ fapp_main(); }
fnet_int32_t main (void) { /* Init UART. */ fnet_cpu_serial_init(FNET_CFG_CPU_SERIAL_PORT_DEFAULT, 115200u); /* Enable Interrupts.*/ fnet_cpu_irq_enable(0u); /* Run application. */ fapp_main(); return(0); }
static void FnetTask() { // Delay the start of FNET OSA_TimeDelay(5000); /* Init UART. */ fnet_cpu_serial_init(FNET_CFG_CPU_SERIAL_PORT_DEFAULT, 115200); /* Enable Interrupts.*/ fnet_cpu_irq_enable(0); /* Run FNET application. - Function does not return */ fapp_main(); while(1){OSA_TimeDelay(1000);} }