Fixing input serial line initialization pointed by Peter Sjödin/KTH

For avr-rss2 platform
This commit is contained in:
Robert Olsson 2017-01-23 22:18:54 +01:00
parent fa6c52633f
commit 29914b5a1f
2 changed files with 5 additions and 8 deletions

View file

@ -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:

View file

@ -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();