
Rev.1.00 May 22 2012
REJ09B0566
4
4.2.6 37BDMA Controller R_DMAC_Destroy
2) R_DMAC_Destroy
Synopsis
Shutdown the DMA controller.
Prototype bool R_DMAC_Destroy(
uint8_t data1
// channel to be disabled
);
Description
Shutdown the DMAC module.
[data1]
The channel number n (where n = 0 to 15).
Return value
True if the shutdown succeeded; otherwise false.
Category
DMA controller
Reference
R_DMAC_Create, R_DMAC_Control
Remarks • If all channels have been suspended, the DMAC module will be disabled.
• If another peripheral is being used to trigger a DMA transfer, stop the triggers from that peripheral (using
Control or Destroy for that peripheral) before calling this function.
Program example
/* PDL definitions */
#include “r_pdl_dmac.h”
/* PDL device-specific definitions */
#include “r_pdl_definitions.h”
void func(void)
{
/* Shutdown the DMA controller for channel 0 */
R_DMAC_Destroy(
0
);
}
Commenti su questo manuale