From fd72afbfcbddbaa51d2db800cf5b32697ea333b9 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Fri, 16 Feb 2018 15:16:14 +0000 Subject: [PATCH] Allow Shell operaction for CC13xx/CC26xx Fixes #187 --- arch/platform/srf06-cc26xx/platform.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/platform/srf06-cc26xx/platform.c b/arch/platform/srf06-cc26xx/platform.c index 7b8a8c477..c9ef7b928 100644 --- a/arch/platform/srf06-cc26xx/platform.c +++ b/arch/platform/srf06-cc26xx/platform.c @@ -55,6 +55,7 @@ #include "vims.h" #include "dev/cc26xx-uart.h" #include "dev/soc-rtc.h" +#include "dev/serial-line.h" #include "rf-core/rf-core.h" #include "sys_ctrl.h" #include "uart.h" @@ -168,6 +169,10 @@ platform_init_stage_two() serial_line_init(); +#if BUILD_WITH_SHELL + cc26xx_uart_set_input(serial_line_input_byte); +#endif + /* Populate linkaddr_node_addr */ ieee_addr_cpy_to(linkaddr_node_addr.u8, LINKADDR_SIZE);