summaryrefslogtreecommitdiff
path: root/bsp/nuvoton_nuc472/applications/application.c
blob: 5ab3c31df491f5e48a664f0b628d131ee3bfcab5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * File      : main.c
 * This file is part of RT-Thread RTOS
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.rt-thread.org/license/LICENSE
 *
 * Change Logs:
 * Date           Author       Notes
 * 2017-12-12     Bluebear233  first implementation
 */
#include <rtconfig.h>
#include <rtthread.h>

int main(void)
{
#ifdef RT_USING_LWIP
    /* initialize eth interface */
    extern void rt_hw_nuc472_emac_init(void);
    rt_hw_nuc472_emac_init();
#endif /* RT_USING_LWIP */
  
    while(1)
    {
        rt_thread_delay(RT_TICK_PER_SECOND);
    }
}