diff --git a/drivers/dma/dma_stm32.h b/drivers/dma/dma_stm32.h index 363677509ef..d649679e536 100644 --- a/drivers/dma/dma_stm32.h +++ b/drivers/dma/dma_stm32.h @@ -16,7 +16,7 @@ struct dma_stm32_stream { int mux_channel; /* stores the dmamux channel */ #endif /* CONFIG_DMAMUX_STM32 */ bool source_periph; - bool busy; + volatile bool busy; uint32_t src_size; uint32_t dst_size; void *user_data; /* holds the client data */