Home
last modified time | relevance | path

Searched refs:uart_context (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-latest/components/driver/uart/
Duart.c160 static uart_context_t uart_context[UART_NUM_MAX] = { variable
172 UART_ENTER_CRITICAL(&(uart_context[uart_num].spinlock)); in uart_module_enable()
173 if (uart_context[uart_num].hw_enabled != true) { in uart_module_enable()
179 uart_hal_set_reset_core(&(uart_context[uart_num].hal), true); in uart_module_enable()
181 uart_hal_set_reset_core(&(uart_context[uart_num].hal), false); in uart_module_enable()
186 uart_context[uart_num].hw_enabled = true; in uart_module_enable()
188 UART_EXIT_CRITICAL(&(uart_context[uart_num].spinlock)); in uart_module_enable()
193 UART_ENTER_CRITICAL(&(uart_context[uart_num].spinlock)); in uart_module_disable()
194 if (uart_context[uart_num].hw_enabled != false) { in uart_module_disable()
198 uart_context[uart_num].hw_enabled = false; in uart_module_disable()
[all …]