diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-16 17:46:25 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-16 17:46:25 +0000 |
commit | 4077a70fc256a7dd65febe986f176b8ac62091fc (patch) | |
tree | 6f0e34d559c8fa2f07c686043df3494cd7fdcff2 /nuttx/arch | |
parent | 42027d080b72b8198072e7dc3933d8b70b6b40a5 (diff) | |
download | px4-nuttx-4077a70fc256a7dd65febe986f176b8ac62091fc.tar.gz px4-nuttx-4077a70fc256a7dd65febe986f176b8ac62091fc.tar.bz2 px4-nuttx-4077a70fc256a7dd65febe986f176b8ac62091fc.zip |
Add basic structure to support netdevice ioctls
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@344 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch')
-rw-r--r-- | nuttx/arch/sim/src/up_uipdriver.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nuttx/arch/sim/src/up_uipdriver.c b/nuttx/arch/sim/src/up_uipdriver.c index c98be0591..9684ca06e 100644 --- a/nuttx/arch/sim/src/up_uipdriver.c +++ b/nuttx/arch/sim/src/up_uipdriver.c @@ -190,10 +190,14 @@ void uipdriver_loop(void) int uipdriver_init(void) { + /* Internal initalization */ + timer_set(&g_periodic_timer, 500); timer_set(&g_arp_timer, 10000 ); - tapdev_init(); - uip_init(); + + /* Register the device with the OS so that socket IOCTLs can be performed */ + + (void)netdev_register(&g_sim_dev); return OK; } |