drivers: dma: stm32: Use volatile for flag used in ISR
Use volatile for flag shared between normal code and ISR to prevent the compiler from possibly optimizing it away. Signed-off-by: Erwin Rol <erwin@erwinrol.com>
This commit is contained in:
parent
3004975765
commit
1c6a405ccb
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ struct dma_stm32_stream {
|
||||||
int mux_channel; /* stores the dmamux channel */
|
int mux_channel; /* stores the dmamux channel */
|
||||||
#endif /* CONFIG_DMAMUX_STM32 */
|
#endif /* CONFIG_DMAMUX_STM32 */
|
||||||
bool source_periph;
|
bool source_periph;
|
||||||
bool busy;
|
volatile bool busy;
|
||||||
uint32_t src_size;
|
uint32_t src_size;
|
||||||
uint32_t dst_size;
|
uint32_t dst_size;
|
||||||
void *user_data; /* holds the client data */
|
void *user_data; /* holds the client data */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue