update DM9000 ethernet driver for auto initial.

This commit is contained in:
aozima 2013-07-12 22:54:53 +08:00
parent 020d05ca92
commit 8890e83aa9
2 changed files with 4 additions and 3 deletions

View File

@ -731,7 +731,7 @@ static void FSMC_Configuration()
FSMC_NORSRAMCmd(FSMC_Bank1_NORSRAM4, ENABLE); FSMC_NORSRAMCmd(FSMC_Bank1_NORSRAM4, ENABLE);
} }
void rt_hw_dm9000_init() int rt_hw_dm9000_init(void)
{ {
RCC_Configuration(); RCC_Configuration();
NVIC_Configuration(); NVIC_Configuration();
@ -771,7 +771,10 @@ void rt_hw_dm9000_init()
dm9000_device.parent.eth_tx = rt_dm9000_tx; dm9000_device.parent.eth_tx = rt_dm9000_tx;
eth_device_init(&(dm9000_device.parent), "e0"); eth_device_init(&(dm9000_device.parent), "e0");
return 0;
} }
INIT_DEVICE_EXPORT(rt_hw_dm9000_init);
void dm9000(void) void dm9000(void)
{ {

View File

@ -160,6 +160,4 @@
#define GPCR_GEP_CNTL (1<<0) #define GPCR_GEP_CNTL (1<<0)
void rt_hw_dm9000_init(void);
#endif #endif