diff options
author | Keith Packard <keithp@keithp.com> | 2013-04-18 16:15:52 -0500 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-05-17 03:50:07 -0700 |
commit | f9d0eb3f3154f98abb0c8952d7171f3e7d3de9b2 (patch) | |
tree | b75b55aca8bf566f17afee9f332dd5859787c983 /src/lpc/ao_timer_lpc.c | |
parent | 04b243e6ef212f54ed284cfbde6d5abb637bf60e (diff) |
altos/lpc: Get 100Hz timer running
Use systick, which is built into the ARM core
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lpc/ao_timer_lpc.c')
-rw-r--r-- | src/lpc/ao_timer_lpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpc/ao_timer_lpc.c b/src/lpc/ao_timer_lpc.c index aa796acf..51e82525 100644 --- a/src/lpc/ao_timer_lpc.c +++ b/src/lpc/ao_timer_lpc.c @@ -61,7 +61,7 @@ ao_timer_set_adc_interval(uint8_t interval) } #endif -#define SYSTICK_RELOAD ((AO_LPC_CLKOUT / 2) / 100 - 1) +#define SYSTICK_RELOAD ((AO_LPC_SYSCLK / 2) / 100 - 1) /* Initialize our 100Hz clock */ void |