Skip to content

Commit

Permalink
Fixing input serial line initialization pointed by Peter Sjödin/KTH
Browse files Browse the repository at this point in the history
For avr-rss2 platform
  • Loading branch information
herjulf committed Mar 24, 2017
1 parent fa6c526 commit 29914b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 0 additions & 8 deletions platform/avr-rss2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions platform/avr-rss2/contiki-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
#include "contiki-lib.h"

#include "dev/rs232.h"
#include "dev/serial-line.h"
#include "dev/slip.h"

#if AVR_WEBSERVER
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 29914b5

Please sign in to comment.