diff --git a/platform/avr-rss2/README.md b/platform/avr-rss2/README.md index 05d448fc6..2f92a64c4 100644 --- a/platform/avr-rss2/README.md +++ b/platform/avr-rss2/README.md @@ -110,14 +110,6 @@ Tested applications and examples * `examples/powertrace` * `example-shell` -Note that the shell example needs file `symbols.c` to be added to project also seems like -in `core/dev/serial-line.c` the function `process_poll` must be replaced with `process_post`: - - /* Wake up consumer process */ - - process_poll(&serial_line_process); - + process_post(&serial_line_process, 0, 0); - - Platform tutorial applications ----------------------------- Example to read out various sensors, leds, serial numbers, and so on: diff --git a/platform/avr-rss2/contiki-main.c b/platform/avr-rss2/contiki-main.c index 907576d43..ad7af6d11 100644 --- a/platform/avr-rss2/contiki-main.c +++ b/platform/avr-rss2/contiki-main.c @@ -71,6 +71,7 @@ #include "contiki-lib.h" #include "dev/rs232.h" +#include "dev/serial-line.h" #include "dev/slip.h" #if AVR_WEBSERVER @@ -267,6 +268,10 @@ initialize(void) process_start(&etimer_process, NULL); ctimer_init(); + /* After process start */ + serial_line_init(); + rs232_set_input(RS232_PORT_0, serial_line_input_byte); + /* Start radio and radio receive process */ NETSTACK_RADIO.init();