We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fb2d0a7 + 0fb2f01 commit 0c61cf4Copy full SHA for 0c61cf4
targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL82Z/pwmout_api.c
@@ -36,9 +36,9 @@ void pwmout_init(pwmout_t* obj, PinName pin)
36
37
uint32_t pwm_base_clock;
38
39
- /* Set the TPM clock source to be IRC 48M */
+ /* Set the TPM clock source to be MCG FLL clock */
40
CLOCK_SetTpmClock(1U);
41
- pwm_base_clock = CLOCK_GetFreq(kCLOCK_McgIrc48MClk);
+ pwm_base_clock = CLOCK_GetFreq(kCLOCK_PllFllSelClk);
42
float clkval = (float)pwm_base_clock / 1000000.0f;
43
uint32_t clkdiv = 0;
44
while (clkval > 1) {
0 commit comments