From 64408f185255d54b3433544cc897d2a1375773b6 Mon Sep 17 00:00:00 2001 From: Rahul Tank Date: Fri, 14 Oct 2022 13:48:54 +0530 Subject: [PATCH] Fixed esprv_intc_int_set_type() usage . --- porting/nimble/src/hal_uart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/porting/nimble/src/hal_uart.c b/porting/nimble/src/hal_uart.c index 94a4e1ed4..531a7add7 100644 --- a/porting/nimble/src/hal_uart.c +++ b/porting/nimble/src/hal_uart.c @@ -295,7 +295,7 @@ void uart0_init(uint32_t baud) intr_handler_set(ISR_ID, (intr_handler_t)&uart0_tout_isr, NULL); intr_matrix_route(ETS_UART0_INTR_SOURCE, ISR_ID); esprv_intc_int_enable(BIT(ISR_ID)); - esprv_intc_int_set_type(BIT(ISR_ID), INTR_TYPE_LEVEL); + esprv_intc_int_set_type(ISR_ID, INTR_TYPE_LEVEL); esprv_intc_int_set_priority(ISR_ID, 1); esp_intr_reserve(ISR_ID, xPortGetCoreID()); @@ -367,7 +367,7 @@ void uart_init(uint32_t baud) intr_handler_set(ISR_ID, (intr_handler_t)&uart_tout_isr, NULL); intr_matrix_route(ETS_UART1_INTR_SOURCE, ISR_ID); esprv_intc_int_enable(BIT(ISR_ID)); - esprv_intc_int_set_type(BIT(ISR_ID), INTR_TYPE_LEVEL); + esprv_intc_int_set_type(ISR_ID, INTR_TYPE_LEVEL); esprv_intc_int_set_priority(ISR_ID, 1); // TODO ESP32-C3 IDF-2126, maybe can use interrupt allocation API for all of the above? unsure... esp_intr_reserve(ISR_ID, xPortGetCoreID());