Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of FastPWM by
Diff: Device/FastPWM_KLXX.cpp
- Revision:
- 6:0f57969697b6
- Parent:
- 5:2812f0a115f7
- Child:
- 8:a7745c791b0c
--- a/Device/FastPWM_KLXX.cpp Fri Feb 28 18:18:52 2014 +0000
+++ b/Device/FastPWM_KLXX.cpp Mon Mar 17 22:12:58 2014 +0000
@@ -13,12 +13,10 @@
void FastPWM::pulsewidth_ticks( uint32_t ticks ) {
*(_pwm.CnV) = ticks;
- *_pwm.CNT = 0; //Not yet sure why this is needed!
}
void FastPWM::period_ticks( uint32_t ticks ) {
*(_pwm.MOD) = ticks;
- *_pwm.CNT = 0;
}
uint32_t FastPWM::getPeriod( void ) {
