diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-07 13:42:47 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-07 13:42:47 -0600 |
commit | c1603e96719150625a8f53748703dd83e9681ede (patch) | |
tree | da40cc56c6fb975108cf3c607f183aaa129cb6f9 /nuttx/include/time.h | |
parent | 391b1d290aaedcb048c1c97d905f9ae9e9af0795 (diff) | |
download | px4-nuttx-c1603e96719150625a8f53748703dd83e9681ede.tar.gz px4-nuttx-c1603e96719150625a8f53748703dd83e9681ede.tar.bz2 px4-nuttx-c1603e96719150625a8f53748703dd83e9681ede.zip |
Change CONFIG_MSEC_PER_TICK to CONFIG_USEC_PER_TICK. This gives more options for system timers in general, but more importantly, let's us realize higher resolution for the case of CONFIG_SCHED_TICKLESS=y -- of course, at the risk of some new interger overvflow problems
Diffstat (limited to 'nuttx/include/time.h')
-rw-r--r-- | nuttx/include/time.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/include/time.h b/nuttx/include/time.h index 414e19995..b0e6a0c25 100644 --- a/nuttx/include/time.h +++ b/nuttx/include/time.h @@ -55,13 +55,13 @@ * replaced with CLOCKS_PER_SEC. Both are defined here. * * The default value is 100Hz, but this default setting can be overridden by - * defining the clock interval in milliseconds as CONFIG_MSEC_PER_TICK in the + * defining the clock interval in microseconds as CONFIG_USEC_PER_TICK in the * board configuration file. */ -#ifdef CONFIG_MSEC_PER_TICK -# define CLK_TCK (1000/CONFIG_MSEC_PER_TICK) -# define CLOCKS_PER_SEC (1000/CONFIG_MSEC_PER_TICK) +#ifdef CONFIG_USEC_PER_TICK +# define CLK_TCK (1000000/CONFIG_USEC_PER_TICK) +# define CLOCKS_PER_SEC (1000000/CONFIG_USEC_PER_TICK) #else # define CLK_TCK (100) # define CLOCKS_PER_SEC (100) |