| 82 | } |
| 83 | |
| 84 | void at_cli_deinit(void) |
| 85 | { |
| 86 | rt_base_t level; |
| 87 | rt_device_t console; |
| 88 | |
| 89 | level = rt_hw_interrupt_disable(); |
| 90 | console = rt_console_get_device(); |
| 91 | if (console && odev_rx_ind) |
| 92 | { |
| 93 | /* restore RX indicate */ |
| 94 | rt_device_set_rx_indicate(console, odev_rx_ind); |
| 95 | } |
| 96 | rt_hw_interrupt_enable(level); |
| 97 | |
| 98 | rt_sem_detach(&console_rx_notice); |
| 99 | rt_ringbuffer_destroy(console_rx_fifo); |
| 100 | } |
| 101 | |
| 102 | #ifdef AT_USING_SERVER |
| 103 | static rt_err_t at_server_console_getchar(struct at_server *server, char *ch, rt_int32_t timeout) |
no test coverage detected