[LPC1549] Fixed us_ticker problem

pull/182/head
Toyomasa Watarai 2014-02-13 17:00:25 +09:00
parent 07706f0821
commit 1c2e2ce572
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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;