Could you explain what this is in a little more detail for me? If it's not too much trouble?
PWM->PWM_TPR = (uint32_t)data; // Set the address of the transmit data pointer
PWM->PWM_TCR = 15; // Set the length of the transmit data
PWM->PWM_TNPR = (uint32_t)data; // Set the next transmit data pointer
PWM->PWM_TNCR = 15; // Set the next transmit counter
PWM->PWM_PTCR |= PWM_PTCR_TXTEN; // Enable the Peripheral DMA Controller
PWM->PWM_ENA = PWM_ENA_CHID0; // Enable all synchronous PWM channels
}
void loop() {}
void PWM_Handler()
{
PWM->PWM_TNPR = (uint32_t)data; // Set the next transmit data pointer
PWM->PWM_TNCR = 15; // Set the next transmit counter
PWM->PWM_ISR2; // Clear the interrupt status register 2
}