* rm uip_log.
* more forced inclusions.
This commit is contained in:
parent
48c5cae451
commit
9205ceda12
1 changed files with 9 additions and 6 deletions
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)$Id: gateway.c,v 1.6 2007/02/02 13:26:49 bg- Exp $
|
* @(#)$Id: gateway.c,v 1.7 2007/04/04 11:41:38 bg- Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -70,6 +70,7 @@
|
||||||
#include "dev/leds.h"
|
#include "dev/leds.h"
|
||||||
#include "dev/light.h"
|
#include "dev/light.h"
|
||||||
#include "dev/xmem.h"
|
#include "dev/xmem.h"
|
||||||
|
#include "lib/rand.h"
|
||||||
|
|
||||||
#include "dev/button.h"
|
#include "dev/button.h"
|
||||||
|
|
||||||
|
@ -82,8 +83,12 @@
|
||||||
* device driver.
|
* device driver.
|
||||||
*/
|
*/
|
||||||
#include "net/psock.h"
|
#include "net/psock.h"
|
||||||
void *force_psock_inclusion = &psock_init;
|
void *force_inclusion[] = {
|
||||||
void *force_button_inclusion = &button_init;
|
&psock_init,
|
||||||
|
&button_init,
|
||||||
|
&uip_udp_packet_send,
|
||||||
|
&rand,
|
||||||
|
};
|
||||||
#if 0
|
#if 0
|
||||||
int
|
int
|
||||||
force_float_inclusion()
|
force_float_inclusion()
|
||||||
|
@ -97,8 +102,6 @@ force_float_inclusion()
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void uip_log(char *msg) { puts(msg); }
|
|
||||||
|
|
||||||
/* We have two IP interfaces. */
|
/* We have two IP interfaces. */
|
||||||
struct uip_fw_netif cc2420if =
|
struct uip_fw_netif cc2420if =
|
||||||
{UIP_FW_NETIF(172,16,0,1, 255,255,0,0, cc2420_send_uaodv)};
|
{UIP_FW_NETIF(172,16,0,1, 255,255,0,0, cc2420_send_uaodv)};
|
||||||
|
@ -125,7 +128,7 @@ main(int argc, char **argv)
|
||||||
leds_toggle(LEDS_ALL);
|
leds_toggle(LEDS_ALL);
|
||||||
slip_arch_init(BAUD2UBR(115200)); /* Must come before first printf */
|
slip_arch_init(BAUD2UBR(115200)); /* Must come before first printf */
|
||||||
printf("Starting %s "
|
printf("Starting %s "
|
||||||
"($Id: gateway.c,v 1.6 2007/02/02 13:26:49 bg- Exp $)\n", __FILE__);
|
"($Id: gateway.c,v 1.7 2007/04/04 11:41:38 bg- Exp $)\n", __FILE__);
|
||||||
ds2411_init();
|
ds2411_init();
|
||||||
sensors_light_init();
|
sensors_light_init();
|
||||||
cc2420_init();
|
cc2420_init();
|
||||||
|
|
Loading…
Reference in a new issue