Tool/software: TI-RTOS
I am using a TM4C1294NCPDT with CCS 6.1.2 and TIRTOS 2.16.0.08.
On the TM4C1294NCPDT, I want to use PWM1 on PIN PF1, PWM2 on pin PF2 and PWM3 on pin PF3. I found an example app called pwmled.c and used that on an eval board and everything worked well but I have some questions about using the API used in the example in my project.
The example app pwmled.c used PWM0 and API calls:
PWM_Params_init() PWM_open() PWM_setDuty()
My questions
1) where do I find the detailed documentation of the API calls PWM_Params_init() PWM_open() PWM_setDuty()?
2) In the sample application pwmled.c, the init is called with the following params PWM_open(Board_PWM0, ¶ms);
In board.h, I see #define Board_PWM0 EK_TM4C1294XL_PWM0
And in EK_TM4C1294XL.h I see:
typedef enum EK_TM4C1294XL_PWMName {
EK_TM4C1294XL_PWM0 = 0,
EK_TM4C1294XL_PWMCOUNT
} EK_TM4C1294XL_PWMName;
As you can see above, the PWM channels 1-3 are not defined in EK_TM4C1294XL.h where PWM ch 0 is.
What is the recommended way to add the other PWM1, PWM2 and PWM3 to the project or should I use the TIVA API using described in the peripheral drive library instead?
The the TIVA API would use functions PWMGenConfigure(), PWMPeriodSet(), PWNPulseWidthSet() etc...
Thanks,
Doug