mirror of
https://github.com/apache/nuttx.git
synced 2026-08-03 13:19:01 +00:00
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 <abdelatif.guettouche@espressif.com>
This commit is contained in:
parent
d4ff6f6a88
commit
5a41572fd0
1 changed files with 1 additions and 0 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue