136 if( SCUCG->PPCLKEN2_b.DMACLKE == 0 )
139 SCUCG->PPCLKEN2_b.DMACLKE = 1;
142 SCUCG->PPRST2_b.DMARST = 1;
143 SCUCG->PPRST2_b.DMARST = 0;
150 DMACx->CR_b.PERSEL = PERSEL;
153 DMACx->CR_b.DIR = DIR;
156 DMACx->CR_b.SIZE = SIZE;
159 DMACx->CR_b.ERFGSTP = ERFGSTP;
211 DMACx->CR_b.TRANSCNT = TRANSCNT;
214 DMACx->CR_b.CHnEN = 1;
HAL_Status_Type HAL_DMAC_DeInit(DMACn_Type *DMACx)
DeInitialize DMAC peripheral.
Contains all macro definitions and function prototypes support for dmacn firmware library on A31L12x.
HAL_Status_Type HAL_DMAC_Init(DMACn_Type *DMACx, uint8_t PERSEL, uint8_t DIR, uint8_t SIZE, uint8_t ERFGSTP)
Init the DMAC configuration with the specified values.
HAL_Status_Type HAL_DMAC_Setup(DMACn_Type *DMACx, uint32_t MAR, uint16_t TRANSCNT)
Enable the transfer.
uint16_t PeripheralAddress[]