This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 5a41572 esp32c3/esp32c3_usbserial.c: Initialize cpuint to ENOMEM,
otherwise the first attempt to attaching an interrupt will trigger an assertion.
5a41572 is described below
commit 5a41572fd01e2cc4cfd78d0fe96800cab78bb0cc
Author: Abdelatif Guettouche <[email protected]>
AuthorDate: Mon Nov 15 17:48:56 2021 +0100
esp32c3/esp32c3_usbserial.c: Initialize cpuint to ENOMEM, otherwise the
first attempt to attaching an interrupt will trigger an assertion.
Signed-off-by: Abdelatif Guettouche <[email protected]>
---
arch/risc-v/src/esp32c3/esp32c3_usbserial.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/risc-v/src/esp32c3/esp32c3_usbserial.c
b/arch/risc-v/src/esp32c3/esp32c3_usbserial.c
index d612e38..776c98a 100644
--- a/arch/risc-v/src/esp32c3/esp32c3_usbserial.c
+++ b/arch/risc-v/src/esp32c3/esp32c3_usbserial.c
@@ -99,6 +99,7 @@ static struct esp32c3_priv_s g_usbserial_priv =
{
.periph = ESP32C3_PERIPH_USB,
.irq = ESP32C3_IRQ_USB,
+ .cpuint = -ENOMEM,
};
static struct uart_ops_s g_uart_ops =