diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-07 18:00:38 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-07 18:00:38 -0600 |
commit | f4f8030be0af79250de05d323106dd34a5e7dc85 (patch) | |
tree | ac6ac62508e391422efee525bc3c438206e31259 /nuttx/arch/arm/src/c5471 | |
parent | f39ae5a8b656f320d99f391972e8b81a8c2d52fd (diff) | |
download | nuttx-f4f8030be0af79250de05d323106dd34a5e7dc85.tar.gz nuttx-f4f8030be0af79250de05d323106dd34a5e7dc85.tar.bz2 nuttx-f4f8030be0af79250de05d323106dd34a5e7dc85.zip |
Change all time conversions. Yech. New timer units in microseconds breaks all existing logic that used milliseconds in the conversions. Something likely got broken doing this, probably because I confused a MSEC2TICK conversion with a TICK2MSEC conversion. Also, the tickless OS no appears fully functional and passes the OS test on the simulator with no errors
Diffstat (limited to 'nuttx/arch/arm/src/c5471')
-rw-r--r-- | nuttx/arch/arm/src/c5471/c5471_timerisr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/c5471/c5471_timerisr.c b/nuttx/arch/arm/src/c5471/c5471_timerisr.c index 1021fb84a..fc1143162 100644 --- a/nuttx/arch/arm/src/c5471/c5471_timerisr.c +++ b/nuttx/arch/arm/src/c5471/c5471_timerisr.c @@ -53,7 +53,7 @@ ************************************************************/ /* We want the general purpose timer running at the rate - * MSEC_PER_TICK. The C5471 clock is 47.5MHz and we're using + * USEC_PER_TICK. The C5471 clock is 47.5MHz and we're using * a timer PTV value of 3 (3 == divide incoming frequency by * 16) which then yields a 16 bitCLKS_PER_INT value * of 29687. @@ -114,7 +114,7 @@ void up_timer_initialize(void) up_disable_irq(C5471_IRQ_SYSTIMER); /* Start the general purpose timer running in auto-reload mode - * so that an interrupt is generated at the rate MSEC_PER_TICK. + * so that an interrupt is generated at the rate USEC_PER_TICK. */ val = ((CLKS_PER_INT-1) << CLKS_PER_INT_SHIFT) | AR | ST | PTV; |