avr-ravenusb/cdc_task: Fix compile issues.

A lot more changes are in the pipeline, but compiling is a good start.
This commit is contained in:
Robert Quattlebaum 2013-03-11 09:59:20 -07:00
parent 5df586e09d
commit 3e0666265d
4 changed files with 15 additions and 18 deletions

View File

@ -6,4 +6,4 @@ all:
clean:
${MAKE} -f Makefile.ravenusbstick clean
rm -rf obj_avr-ravenusb
rm symbols.c symbols.h ravenusbstick.elf ravenusbstick.hex
rm -rf symbols.c symbols.h ravenusbstick.elf ravenusbstick.hex

View File

@ -6,6 +6,8 @@ all: ravenusbstick
CONTIKI_NO_NET=1
#UIP_CONF_IPV6=1
CFLAGS=-DUIP_CONF_IPV6=0 -DUIP_CONF_IPV6_RPL=0
CONTIKI = ../..
include $(CONTIKI)/Makefile.include

View File

@ -601,19 +601,18 @@ extern uip_ds6_netif_t uip_ds6_if;
}
if (j) PRINTF_P(PSTR(" <none>"));
PRINTF_P(PSTR("\n\rRoutes [%u max]\n\r"),UIP_DS6_ROUTE_NB);
for(i = 0,j=1; i < UIP_DS6_ROUTE_NB; i++) {
if(uip_ds6_routing_table[i].isused) {
ipaddr_add(&uip_ds6_routing_table[i].ipaddr);
PRINTF_P(PSTR("/%u (via "), uip_ds6_routing_table[i].length);
ipaddr_add(&uip_ds6_routing_table[i].nexthop);
if(uip_ds6_routing_table[i].state.lifetime < 600) {
PRINTF_P(PSTR(") %lus\n\r"), uip_ds6_routing_table[i].state.lifetime);
uip_ds6_route_t *route;
for(route = uip_ds6_route_list_head(),j=1; route != NULL; route = list_item_next(route)) {
ipaddr_add(&route->ipaddr);
PRINTF_P(PSTR("/%u (via "), route->length);
ipaddr_add(&route->nexthop);
if(route->state.lifetime < 600) {
PRINTF_P(PSTR(") %lus\n\r"), route->state.lifetime);
} else {
PRINTF_P(PSTR(")\n\r"));
}
j=0;
}
}
if (j) PRINTF_P(PSTR(" <none>"));
PRINTF_P(PSTR("\n\r---------\n\r"));
break;
@ -629,13 +628,8 @@ extern uip_ds6_netif_t uip_ds6_if;
break;
case 'Z': //zap the routing table
{ uint8_t i;
for (i = 0; i < UIP_DS6_ROUTE_NB; i++) {
uip_ds6_routing_table[i].isused=0;
}
PRINTF_P(PSTR("Routing table cleared!\n\r"));
PRINTF_P(PSTR("Not implemented.\n\r"));
break;
}
#endif
case 'm':

View File

@ -25,6 +25,7 @@ netperf/sky \
powertrace/sky \
rime/sky \
rime/z1 \
ravenusbstick/avr-ravenusb \
rest-example/sky \
servreg-hack/sky \
sky/sky \