This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Bug in InstaSpin code for DK-LM4F-DRV8312



In the pwm.h include, the code for C_PWM_SET() is:

    ROM_PWMPulseWidthSet((uint32_t)((PWM_OBJ *)pwmHandle), PHASEC_OUT, dutyCycle);
    ROM_PWMOutputState((uint32_t)((PWM_OBJ *)pwmHandle), PHASEB_BIT, true);
    ROM_PWMGenEnable((uint32_t)((PWM_OBJ *)pwmHandle), PHASEC_GEN);

I believe the second line should use PHASEC_BIT, rather than PHASEB_BIT.