Fixing input serial line initialization pointed by Peter Sjödin/KTH
For avr-rss2 platform
This commit is contained in:
parent
fa6c52633f
commit
29914b5a1f
|
@ -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:
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue