
Rev.1.00 May 22 2012
REJ09B0566
4
4.2.6 37BDMA Controller R_DMAC_Control
Program example
/* PDL definitions */
#include “r_pdl_dmac.h”
/* PDL device-specific definitions */
#include “r_pdl_definitions.h”
void func(void)
{
/* Enable transfers on channel 2 */
R_DMAC_Control(
PDL_DMAC_2,
PDL_DMAC_ENABLE
);
/* Suspend transfers on all enabled channels */
R_DMAC_Control(
PDL_DMAC_ALL,
PDL_DMAC_SUSPEND
);
/* Allow all suspended channels to resume */
R_DMAC_Control(
PDL_DMAC_ALL,
PDL_DMAC_ENABLE
);
}
Commentaires sur ces manuels