2022-10-19 22:44:15 +08:00

21 lines
752 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __SWM320_DMA_H__
#define __SWM320_DMA_H__
#define DMA_CH0 0
#define DMA_CH1 1
#define DMA_CH2 2
void DMA_CHM_Config(uint32_t chn, uint32_t src_addr, uint32_t src_addr_incr, uint32_t dst_addr, uint32_t dst_addr_incr, uint32_t num_word, uint32_t int_en); //DMAͨ<41><CDA8><EFBFBD><EFBFBD><EFBFBD>ã<EFBFBD><C3A3><EFBFBD><EFBFBD>ڴ洢<DAB4><E6B4A2><EFBFBD><EFBFBD><E4A3A8>Flash<73><68>RAM<41><EFBFBD><E4A3A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void DMA_CH_Open(uint32_t chn); //DMAͨ<41><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void DMA_CH_Close(uint32_t chn); //DMAͨ<41><CDA8><EFBFBD>ر<EFBFBD>
void DMA_CH_INTEn(uint32_t chn); //DMA<4D>ж<EFBFBD>ʹ<EFBFBD>ܣ<EFBFBD><DCA3><EFBFBD><EFBFBD>ݰ<EFBFBD><DDB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɺ󴥷<C9BA><F3B4A5B7>ж<EFBFBD>
void DMA_CH_INTDis(uint32_t chn); //DMA<4D>жϽ<D0B6>ֹ<EFBFBD><D6B9><EFBFBD><EFBFBD><EFBFBD>ݰ<EFBFBD><DDB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɺ󲻴<C9BA><F3B2BBB4><EFBFBD><EFBFBD>ж<EFBFBD>
void DMA_CH_INTClr(uint32_t chn); //DMA<4D>жϱ<D0B6>־<EFBFBD><D6BE><EFBFBD><EFBFBD>
uint32_t DMA_CH_INTStat(uint32_t chn); //DMA<4D>ж<EFBFBD>״̬<D7B4><CCAC>ѯ<EFBFBD><D1AF>1 <20><><EFBFBD>ݰ<EFBFBD><DDB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 0 <20><><EFBFBD>ݰ<EFBFBD><DDB0><EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD>
#endif //__SWM320_DMA_H__