Skip to content

Commit e8a6da9

Browse files
authored
Merge pull request #1152 from Bluebear233/nuvoton
[BSP]NUC472 增加网络驱动
2 parents 28e925c + bf6726a commit e8a6da9

File tree

8 files changed

+1056
-24
lines changed

8 files changed

+1056
-24
lines changed

bsp/nuvoton_nuc472/applications/application.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,14 @@
1515

1616
int main(void)
1717
{
18-
while(1){
18+
#ifdef RT_USING_LWIP
19+
/* initialize eth interface */
20+
extern void rt_hw_nuc472_emac_init(void);
21+
rt_hw_nuc472_emac_init();
22+
#endif /* RT_USING_LWIP */
23+
24+
while(1)
25+
{
1926
rt_thread_delay(RT_TICK_PER_SECOND);
2027
}
2128
}

0 commit comments

Comments
 (0)