diff --git a/arch/arm/src/gd32f4/gd32f4xx_serial.c b/arch/arm/src/gd32f4/gd32f4xx_serial.c index bdd5a822f66..b653b5ad29d 100644 --- a/arch/arm/src/gd32f4/gd32f4xx_serial.c +++ b/arch/arm/src/gd32f4/gd32f4xx_serial.c @@ -158,6 +158,7 @@ struct up_dev_s const uint8_t stop_2bits; /* True: Configure with 2 stop bits instead of 1 */ const uint32_t tx_gpio; /* USART TX GPIO pin configuration */ const uint32_t rx_gpio; /* USART RX GPIO pin configuration */ + spinlock_t lock; /* Spinlock */ # ifdef CONFIG_SERIAL_IFLOWCONTROL const uint32_t rts_gpio; /* UART RTS GPIO pin configuration */ diff --git a/arch/arm/src/imxrt/imxrt_edma.c b/arch/arm/src/imxrt/imxrt_edma.c index b1413dece13..5ebbc24ed4b 100644 --- a/arch/arm/src/imxrt/imxrt_edma.c +++ b/arch/arm/src/imxrt/imxrt_edma.c @@ -145,6 +145,7 @@ struct imxrt_edma_s /* This array describes each DMA channel */ struct imxrt_dmach_s dmach[IMXRT_EDMA_NCHANNELS]; + spinlock_t lock; /* Spinlock */ }; /**************************************************************************** diff --git a/arch/arm/src/stm32u5/stm32_serial.c b/arch/arm/src/stm32u5/stm32_serial.c index 810e4d1844c..8740919d961 100644 --- a/arch/arm/src/stm32u5/stm32_serial.c +++ b/arch/arm/src/stm32u5/stm32_serial.c @@ -501,7 +501,7 @@ static struct stm32_serial_s g_lpuart1priv = .rs485_dir_polarity = true, # endif # endif - .lock = = SP_UNLOCKED, + .lock = SP_UNLOCKED, }; #endif @@ -623,7 +623,7 @@ static struct stm32_serial_s g_usart2priv = .rs485_dir_polarity = true, # endif # endif - .lock = = SP_UNLOCKED, + .lock = SP_UNLOCKED, }; #endif @@ -685,7 +685,7 @@ static struct stm32_serial_s g_usart3priv = .rs485_dir_polarity = true, # endif # endif - .lock = = SP_UNLOCKED, + .lock = SP_UNLOCKED, }; #endif @@ -747,7 +747,7 @@ static struct stm32_serial_s g_uart4priv = .rs485_dir_polarity = true, # endif # endif - .lock = = SP_UNLOCKED, + .lock = SP_UNLOCKED, }; #endif @@ -809,7 +809,7 @@ static struct stm32_serial_s g_uart5priv = .rs485_dir_polarity = true, # endif # endif - .lock = = SP_UNLOCKED, + .lock = SP_UNLOCKED, }; #endif