Pulse Width Modulator (PWM)
15.2.1.6 ROM_PWMGenDisable
Disables the timer/counter for a PWM generator block.
Prototype:
void
ROM_PWMGenDisable(uint32_t ui32Base,
uint32_t ui32Gen)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_PWMTABLE is an array of pointers located at ROM_APITABLE[8].
ROM_PWMGenDisable is a function pointer located at ROM_PWMTABLE[5].
Parameters:
ui32Base is the base address of the PWM module.
ui32Gen is the PWM generator to be disabled. Must be one of PWM_GEN_0, PWM_GEN_1,
PWM_GEN_2, or PWM_GEN_3.
Description:
This function blocks the PWM clock from driving the timer/counter for the specified generator
block.
Returns:
None.
15.2.1.7 ROM_PWMGenEnable
Enables the timer/counter for a PWM generator block.
Prototype:
void
ROM_PWMGenEnable(uint32_t ui32Base,
uint32_t ui32Gen)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_PWMTABLE is an array of pointers located at ROM_APITABLE[8].
ROM_PWMGenEnable is a function pointer located at ROM_PWMTABLE[4].
Parameters:
ui32Base is the base address of the PWM module.
ui32Gen is the PWM generator to be enabled. Must be one of PWM_GEN_0, PWM_GEN_1,
PWM_GEN_2, or PWM_GEN_3.
Description:
This function allows the PWM clock to drive the timer/counter for the specified generator block.
Returns:
None.
April 8, 2013 159