direct the UART input stream to the default Contiki serial process
This commit is contained in:
parent
c4ba4b7008
commit
a50d5b701e
|
@ -45,6 +45,7 @@
|
|||
|
||||
#include "contiki.h"
|
||||
#include "contiki-msb430.h"
|
||||
#include "dev/serial.h"
|
||||
|
||||
extern volatile bool uart_edge;
|
||||
|
||||
|
@ -88,7 +89,9 @@ main(void)
|
|||
process_init();
|
||||
|
||||
// serial interface
|
||||
rs232_set_input(serial_input_byte);
|
||||
rs232_init();
|
||||
serial_init();
|
||||
|
||||
uart_lock(UART_MODE_RS232);
|
||||
uart_unlock(UART_MODE_RS232);
|
||||
|
|
Loading…
Reference in a new issue