File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
bsp/hc32/libraries/hc32_drivers Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 3535 * Local pre-processor symbols/macros ('#define')
3636 ******************************************************************************/
3737#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)))
3939
4040#define DMA_TRANS_SET_CNT (unit , ch ) \
4141 (READ_REG32(DMA_CH_REG((unit)->DTCTL0,(ch))) >> DMA_DTCTL_CNT_POS)
Original file line number Diff line number Diff line change 3535 * Local pre-processor symbols/macros ('#define')
3636 ******************************************************************************/
3737#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)))
3939
4040#define DMA_TRANS_SET_CNT (unit , ch ) \
4141 (READ_REG32(DMA_CH_REG((unit)->DTCTL0,(ch))) >> DMA_DTCTL_CNT_POS)
You can’t perform that action at this time.
0 commit comments