diff --git a/Readme.md b/Readme.md index d1ea482..f6d230c 100644 --- a/Readme.md +++ b/Readme.md @@ -319,9 +319,27 @@ void main(void) EPwm2Regs. AQCTLA.bit.CAU = 1; EPwm2Regs. AQCTLB.bit.CAU = 2; // 7. Configure event triggers and trip zones. + // GPIO Muxed Pins table + // Configure GPIO0 to GPIO3 as ePWM functionality + EALLOW; + GpioCtr1Regs.GPAGMUX1.bit.GPI00 = 0; + GpioCtr1Regs.GPAGMUX1.bit.GPI01 = 0; + GpioCtr1Regs.GPAGMUX1.bit.GPI02 = 0; + GpioCtr1Regs.GPAGMUX1.bit.GPI03 = 0; + GpioCtrIRegs.GPAMUX1.bit.GPI00 = 1; + GpioCtr1Regs.GPAMUX1.bit.GPI01 = 1; + GpioCtr1Regs.GPAMUX1.bit.GPI02 = 1; + GpioCtriRegs. GPAMUX1.bit.GPI03 = 1; + EDIS; + // 8. Register and enable interrupts. // 9. Configure PWM GPIOs, diagnostic pins, and X-BAR. // 10. Confirm fault conditions and synchronize startup. + // Start the timer counters for ePWM 1 and 2 + EALLOW; + EDIS; + CpuSysRegs.PCLKCRO.bit. + for (;;) {} }