Skip to content

Commit 1c2e2ce

Browse files
committed
[LPC1549] Fixed us_ticker problem
1 parent 07706f0 commit 1c2e2ce

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/system_LPC15xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
// <2=> P = 4
157157
// <3=> P = 8
158158
// </h>
159-
#define SCTPLLCTRL_Val 0x00000023 // Reset value: 0x000
159+
#define SCTPLLCTRL_Val 0x00000005 // Reset value: 0x000
160160
//
161161
// <o.0..1> SCT PLL Clock Source Select (SCTPLLCLKSEL.SEL)
162162
// <0=> IRC Oscillator

libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC15XX/us_ticker.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ void us_ticker_init(void) {
3030

3131
// Clear peripheral reset the SCT0:
3232
LPC_SYSCON->PRESETCTRL1 |= (1 << 2);
33+
LPC_SYSCON->PRESETCTRL1 &= ~(1 << 2);
3334

3435
// Unified counter (32 bits)
3536
LPC_SCT0->CONFIG |= 1;

0 commit comments

Comments
 (0)