mirror of https://github.com/ARMmbed/mbed-os.git
[LPC1549] Fixed us_ticker problem
parent
07706f0821
commit
1c2e2ce572
|
@ -156,7 +156,7 @@
|
|||
// <2=> P = 4
|
||||
// <3=> P = 8
|
||||
// </h>
|
||||
#define SCTPLLCTRL_Val 0x00000023 // Reset value: 0x000
|
||||
#define SCTPLLCTRL_Val 0x00000005 // Reset value: 0x000
|
||||
//
|
||||
// <o.0..1> SCT PLL Clock Source Select (SCTPLLCLKSEL.SEL)
|
||||
// <0=> IRC Oscillator
|
||||
|
|
|
@ -30,6 +30,7 @@ void us_ticker_init(void) {
|
|||
|
||||
// Clear peripheral reset the SCT0:
|
||||
LPC_SYSCON->PRESETCTRL1 |= (1 << 2);
|
||||
LPC_SYSCON->PRESETCTRL1 &= ~(1 << 2);
|
||||
|
||||
// Unified counter (32 bits)
|
||||
LPC_SCT0->CONFIG |= 1;
|
||||
|
|
Loading…
Reference in New Issue