mirror of
https://github.com/STMicroelectronics/STM32CubeF1.git
synced 2025-04-26 13:49:04 +08:00
Declare DMA handler State as volátile
Not doing so causes issues when optimizations are enabled, the flag can change at any time by the DMA interrupt, but the compiler is unaware.
This commit is contained in:
parent
c750eab699
commit
72ceafac25
@ -116,7 +116,7 @@ typedef struct __DMA_HandleTypeDef
|
||||
|
||||
HAL_LockTypeDef Lock; /*!< DMA locking object */
|
||||
|
||||
HAL_DMA_StateTypeDef State; /*!< DMA transfer state */
|
||||
__IO HAL_DMA_StateTypeDef State; /*!< DMA transfer state */
|
||||
|
||||
void *Parent; /*!< Parent object state */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user