minor cleanup,use rign ifdef

This commit is contained in:
jani 2004-01-09 15:36:06 +00:00
parent b4f277007f
commit 9156646ce4
2 changed files with 4 additions and 8 deletions

View File

@ -56,7 +56,7 @@
#include <cyg/hal/hal_if.h>
#include <cyg/infra/diag.h>
#ifdef CYGPKG_IO_ETH_DRIVERS
#ifdef CYGPKG_LWIP_ETH
#include "netif/etharp.h"
#include <cyg/io/eth/eth_drv.h>
@ -182,7 +182,7 @@ lwip_set_addr(struct netif *netif)
//netif->input = ip_input;
}
#ifdef CYGPKG_IO_ETH_DRIVERS
#ifdef CYGPKG_LWIP_ETH
//io eth stuff
cyg_sem_t delivery;
@ -255,4 +255,4 @@ ecosglue_init(void)
sys_timeout(ARP_TMR_INTERVAL, (sys_timeout_handler) arp_timer, NULL);
}
#endif //CYGPKG_IO_ETH_DRIVERS
#endif //CYGPKG_LWIP_ETH

View File

@ -30,7 +30,7 @@
//####ECOSGPLCOPYRIGHTEND####
//==========================================================================
// Author: Jani Monoses
// Contributors: Claudio Leonel
// Contributors: Claudio Leonel Salvadori
//
/*
@ -85,8 +85,6 @@ void sys_init(void)
to.next = NULL;
}
/*------------------------------------ Message boxes ----------------------------------------*/
/*
* Create a new mbox.If no memory is available return NULL
*/
@ -172,8 +170,6 @@ u32_t sys_arch_mbox_fetch(sys_mbox_t mbox, void **data, u32_t timeout)
return tick_to_msec(end_time - start_time);
}
/*----------------------------------------- Semaphores ------------------------------------ */
/*
* Create a new semaphore and initialize it.
* If no memory is available return NULL