mbed library sources
Fork of mbed-src by
Revision 184:8b5ae2e87659, committed 2014-05-08
- Comitter:
- mbed_official
- Date:
- Thu May 08 09:00:07 2014 +0100
- Parent:
- 183:46ae3190e86c
- Child:
- 185:e752b4ee7de1
- Commit message:
- Synchronized with git revision f62e0e4d9f2f9570b94de981dfed959245f93612
Full URL: https://github.com/mbedmicro/mbed/commit/f62e0e4d9f2f9570b94de981dfed959245f93612/
LPC11UXX and LPCU13XX - Fix reset glitch in pwmout_write()
Changed in this revision
--- a/targets/hal/TARGET_NXP/TARGET_LPC11UXX/pwmout_api.c Wed May 07 17:45:07 2014 +0100 +++ b/targets/hal/TARGET_NXP/TARGET_LPC11UXX/pwmout_api.c Thu May 08 09:00:07 2014 +0100 @@ -113,9 +113,7 @@ LPC_CTxxBx_Type *timer = Timers[tid.timer]; uint32_t t_off = timer->MR3 - (uint32_t)((float)(timer->MR3) * value); - timer->TCR = TCR_RESET; timer->MR[tid.mr] = t_off; - timer->TCR = TCR_CNT_EN; } float pwmout_read(pwmout_t* obj) {
--- a/targets/hal/TARGET_NXP/TARGET_LPC13XX/pwmout_api.c Wed May 07 17:45:07 2014 +0100 +++ b/targets/hal/TARGET_NXP/TARGET_LPC13XX/pwmout_api.c Thu May 08 09:00:07 2014 +0100 @@ -119,9 +119,7 @@ LPC_CTxxBx_Type *timer = Timers[tid.timer]; uint32_t t_off = timer->MR3 - (uint32_t)((float)(timer->MR3) * value); - timer->TCR = TCR_RESET; timer->MR[tid.mr] = t_off; - timer->TCR = TCR_CNT_EN; } float pwmout_read(pwmout_t* obj) {