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:
parent
2ed29b5545
commit
f78067e1f9
3 changed files with 45 additions and 49 deletions
|
@ -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) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue