System Control
Parameters:
ui32Type is the type of calibration to perform.
Description:
This function performs a calibration of the PIOSC. There are three types of calibration available;
the desired calibration type as specified in ui32Type is one of:
SYSCTL_PIOSC_CAL_AUTO to perform automatic calibration using the 32 kHz clock
from the hibernate module as a reference. This is only possible on parts that have a
hibernate module and then only if it is enabled and the hibernate module’s RTC is also
enabled.
SYSCTL_PIOSC_CAL_FACT to reset the PIOSC calibration to the factory provided cali-
bration.
SYSCTL_PIOSC_CAL_USER to set the PIOSC calibration to a user-supplied value. The
value to be used is ORed into the lower 7-bits of this value, with 0x40 being the “nominal”
value (in other words, if everything were perfect, this would provide exactly 16 MHz). Val-
ues larger than 0x40 will slow down PIOSC, and values smaller than 0x40 will speed up
PIOSC.
Returns:
None.
18.2.1.27 ROM_SysCtlPWMClockGet
Gets the current PWM clock configuration.
Prototype:
uint32_t
ROM_SysCtlPWMClockGet(void)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_SYSCTLTABLE is an array of pointers located at ROM_APITABLE[13].
ROM_SysCtlPWMClockGet is a function pointer located at ROM_SYSCTLTABLE[26].
Description:
This function returns the current PWM clock configuration.
Returns:
Returns the current PWM clock configuration; is one of SYSCTL_PWMDIV_1,
SYSCTL_PWMDIV_2, SYSCTL_PWMDIV_4, SYSCTL_PWMDIV_8, SYSCTL_PWMDIV_16,
SYSCTL_PWMDIV_32, or SYSCTL_PWMDIV_64.
18.2.1.28 ROM_SysCtlPWMClockSet
Sets the PWM clock configuration.
Prototype:
void
ROM_SysCtlPWMClockSet(uint32_t ui32Config)
April 8, 2013 217