Update platform build for hello-world, includes patch from Tobias Schfer

This commit is contained in:
dak664 2010-12-05 20:21:19 +00:00
parent 8e38f5ee34
commit e06dada659
4 changed files with 41 additions and 11 deletions

View file

@ -35,12 +35,18 @@
#include "contiki-stk501.h"
#if UIP_CONF_IPV6
#warning ********Explcit IPV4 code bypassed***********
#else
static struct uip_fw_netif slipif =
{UIP_FW_NETIF(10,100,0,0, 255,255,0,0, slip_send)};
#endif
void
init_net(void)
{
#if !UIP_CONF_IPV6
uip_ipaddr_t hostaddr;
rs232_set_input (SLIP_PORT, slip_input_byte);
@ -51,4 +57,5 @@ init_net(void)
uip_fw_register(&slipif);
// uip_fw_default(&slipif);
#endif /* UIP_CONF_IPV6 */
}