Skip to content

K20xx Calculate PWM clock relative to bus clock #3233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 15, 2016

Conversation

brimston3
Copy link
Contributor

Description

Fix K20xx's PwmOut to calculate pwm clock from the bus clock instead of SystemCoreClock.

Status

READY

Migrations

NO

Steps to test or reproduce

Build subtarget TARGET_TEENSY3_1 with CLOCK_SETUP defined as 0 and build again as 1. Create a user program setting PwmOut with a 1ms period, 50% duty cycle. Verify clock period with oscilloscope. Without this PR, the CLOCK_SETUP 1 config will produce a 2ms period.

@brimston3 brimston3 changed the title Calculate PWM clock relative to bus clock K20xx Calculate PWM clock relative to bus clock Nov 9, 2016
@0xc0170
Copy link
Contributor

0xc0170 commented Nov 9, 2016

Can you please sign https://developer.mbed.org/contributor_agreement/ ?

@brimston3
Copy link
Contributor Author

You accepted the Contributor Agreement on Wed 09 Nov 2016.

I've updated my mbed profile to use my real name. It is linked to this github account.

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 11, 2016

@mbed-bot: TEST

HOST_OSES=ALL
BUILD_TOOLCHAINS=ALL
TARGETS=ALL

@mbed-bot
Copy link

[Build 1108]
SUCCESS: Building succeeded and tests were run! Be sure to check the test results

@sg- sg- merged commit 31c8113 into ARMmbed:master Nov 15, 2016
aisair pushed a commit to aisair/mbed that referenced this pull request Apr 30, 2024
Ports for Upcoming Targets


Fixes and Changes

3127: Fixed the issue about push/pop of VFP register. ARMmbed/mbed-os#3127
3176: Modifying micro:bit pin names to mirror micro:bit edge connector ARMmbed/mbed-os#3176
3160: Fix wrong index at LPC43xx tx end ring assignment ARMmbed/mbed-os#3160
3217: Add I2C_ASYNCH capability for DISCO_F469NI ARMmbed/mbed-os#3217
3211: [NUC472/M453] Support single UART shared by multiple serial objects and other updates ARMmbed/mbed-os#3211
3198: NUCLEO_F410RB: Add I2C_ASYNCH capability ARMmbed/mbed-os#3198
3194: Update K64 sdk drivers ARMmbed/mbed-os#3194
3159: User trim values for NCS36510 ARMmbed/mbed-os#3159
3243: Fix make exporters compilation ARMmbed/mbed-os#3243
3231: STM32F3: DISCO_F303VC - Add missing UART and ADC pin muxing options ARMmbed/mbed-os#3231
3233: K20xx Calculate PWM clock relative to bus clock ARMmbed/mbed-os#3233
3237: Added back USART 6 pins ARMmbed/mbed-os#3237
3253: Fix default polarity on LPC43XX PWM driver ARMmbed/mbed-os#3253
3238: Dev i2c stm32f4hal ARMmbed/mbed-os#3238
3251: Dev stm32l0 cube v1.7.0 ARMmbed/mbed-os#3251
3252: [NORDIC - NRF51 - MBED 2] Fix non handled RTC IRQ ARMmbed/mbed-os#3252
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants