File tree 2 files changed +2
-2
lines changed
bsp/hc32/libraries/hc32_drivers
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 35
35
* Local pre-processor symbols/macros ('#define')
36
36
******************************************************************************/
37
37
#define DMA_CH_REG (reg_base , ch ) \
38
- (*(uint32_t *)((uint32_t)(&(reg_base)) + ((ch) * 0x40UL)))
38
+ (*(volatile uint32_t *)((uint32_t)(&(reg_base)) + ((ch) * 0x40UL)))
39
39
40
40
#define DMA_TRANS_SET_CNT (unit , ch ) \
41
41
(READ_REG32(DMA_CH_REG((unit)->DTCTL0,(ch))) >> DMA_DTCTL_CNT_POS)
Original file line number Diff line number Diff line change 35
35
* Local pre-processor symbols/macros ('#define')
36
36
******************************************************************************/
37
37
#define DMA_CH_REG (reg_base , ch ) \
38
- (*(uint32_t *)((uint32_t)(&(reg_base)) + ((ch) * 0x40UL)))
38
+ (*(volatile uint32_t *)((uint32_t)(&(reg_base)) + ((ch) * 0x40UL)))
39
39
40
40
#define DMA_TRANS_SET_CNT (unit , ch ) \
41
41
(READ_REG32(DMA_CH_REG((unit)->DTCTL0,(ch))) >> DMA_DTCTL_CNT_POS)
You can’t perform that action at this time.
0 commit comments