mbed library sources for airmote
Fork of mbed-src by
Revision 622:c3f37705f4fa, committed 2015-09-10
- Comitter:
- zskdan
- Date:
- Thu Sep 10 21:51:18 2015 +0000
- Parent:
- 621:5d04b41f3685
- Child:
- 623:810c7848b2db
- Commit message:
- stop pwm timer on free
Changed in this revision
targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/pwmout_api.c | Show annotated file Show diff for this revision Revisions of this file |
--- a/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/pwmout_api.c Thu Sep 10 21:48:58 2015 +0000 +++ b/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/pwmout_api.c Thu Sep 10 21:51:18 2015 +0000 @@ -244,6 +244,8 @@ MBED_ASSERT(obj->pwm != (PWMName)NC); PWM_taken[obj->pwm] = 0; pwmout_write(obj, 0); + NRF_TIMER2->EVENTS_COMPARE[3] = 0; + NRF_TIMER2->TASKS_STOP = 1; } void pwmout_write(pwmout_t *obj, float value)