mbed library sources
Dependents: Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more
Superseded
This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.
Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.
If you are looking for a stable and tested release, please import one of the official mbed library releases:
Import librarymbed
The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Diff: targets/hal/TARGET_NXP/TARGET_LPC11UXX/pwmout_api.c
- Revision:
- 175:906e2386ace8
- Parent:
- 63:a46ad637dc84
- Child:
- 184:8b5ae2e87659
--- a/targets/hal/TARGET_NXP/TARGET_LPC11UXX/pwmout_api.c Tue Apr 29 11:15:07 2014 +0100 +++ b/targets/hal/TARGET_NXP/TARGET_LPC11UXX/pwmout_api.c Tue Apr 29 17:00:07 2014 +0100 @@ -144,8 +144,8 @@ uint32_t old_period_ticks = timer->MR3; // for 16bit timer, set prescaler to avoid overflow - uint16_t high_period_ticks = period_ticks >> 16; - if ((high_period_ticks) && (timer == LPC_CT16B0 || timer == LPC_CT16B1)) { + if (timer == LPC_CT16B0 || timer == LPC_CT16B1) { + uint16_t high_period_ticks = period_ticks >> 16; timer->PR = high_period_ticks; period_ticks /= (high_period_ticks + 1); }