MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / at_cli_deinit

Function at_cli_deinit

components/net/at/src/at_cli.c:84–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void 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
103static rt_err_t at_server_console_getchar(struct at_server *server, char *ch, rt_int32_t timeout)

Callers 1

atFunction · 0.85

Calls 6

rt_console_get_deviceFunction · 0.85
rt_sem_detachFunction · 0.85
rt_ringbuffer_destroyFunction · 0.85
rt_hw_interrupt_disableFunction · 0.50
rt_hw_interrupt_enableFunction · 0.50

Tested by

no test coverage detected