mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-10-12 08:23:42 +00:00
minor cleanup,use rign ifdef
This commit is contained in:
parent
b4f277007f
commit
9156646ce4
@ -56,7 +56,7 @@
|
|||||||
#include <cyg/hal/hal_if.h>
|
#include <cyg/hal/hal_if.h>
|
||||||
#include <cyg/infra/diag.h>
|
#include <cyg/infra/diag.h>
|
||||||
|
|
||||||
#ifdef CYGPKG_IO_ETH_DRIVERS
|
#ifdef CYGPKG_LWIP_ETH
|
||||||
#include "netif/etharp.h"
|
#include "netif/etharp.h"
|
||||||
|
|
||||||
#include <cyg/io/eth/eth_drv.h>
|
#include <cyg/io/eth/eth_drv.h>
|
||||||
@ -182,7 +182,7 @@ lwip_set_addr(struct netif *netif)
|
|||||||
//netif->input = ip_input;
|
//netif->input = ip_input;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CYGPKG_IO_ETH_DRIVERS
|
#ifdef CYGPKG_LWIP_ETH
|
||||||
//io eth stuff
|
//io eth stuff
|
||||||
|
|
||||||
cyg_sem_t delivery;
|
cyg_sem_t delivery;
|
||||||
@ -255,4 +255,4 @@ ecosglue_init(void)
|
|||||||
sys_timeout(ARP_TMR_INTERVAL, (sys_timeout_handler) arp_timer, NULL);
|
sys_timeout(ARP_TMR_INTERVAL, (sys_timeout_handler) arp_timer, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif //CYGPKG_IO_ETH_DRIVERS
|
#endif //CYGPKG_LWIP_ETH
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
//####ECOSGPLCOPYRIGHTEND####
|
//####ECOSGPLCOPYRIGHTEND####
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
// Author: Jani Monoses
|
// Author: Jani Monoses
|
||||||
// Contributors: Claudio Leonel
|
// Contributors: Claudio Leonel Salvadori
|
||||||
//
|
//
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -85,8 +85,6 @@ void sys_init(void)
|
|||||||
to.next = NULL;
|
to.next = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*------------------------------------ Message boxes ----------------------------------------*/
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create a new mbox.If no memory is available return NULL
|
* 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);
|
return tick_to_msec(end_time - start_time);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*----------------------------------------- Semaphores ------------------------------------ */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create a new semaphore and initialize it.
|
* Create a new semaphore and initialize it.
|
||||||
* If no memory is available return NULL
|
* If no memory is available return NULL
|
||||||
|
Loading…
Reference in New Issue
Block a user