shell: Refactor RTT backend

Improved reception in the backend and replaced thread
with periodic timer as thread was used only to
periodically poll RTT data availability and using timer
is more RAM-wise efficient.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2018-11-28 14:06:40 +01:00 committed by Anas Nashif
commit f78067e1f9
3 changed files with 45 additions and 49 deletions

View file

@ -19,8 +19,6 @@ struct shell_rtt {
shell_transport_handler_t handler;
struct k_timer timer;
void *context;
u8_t rx[5];
size_t rx_cnt;
};
#define SHELL_RTT_DEFINE(_name) \