Skip to content
Permalink
Browse files

soc/arm: Increase nRF timer default to the cycle rate.

The nRF timer runs at only 32 kHz, so there's little reason to try to
divide it to get a synthesized tick rate.  Just use the raw clock as
the tick rate, which provides maximal precision and very
singnificantly simplifies the generated code for the ISR.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
  • Loading branch information...
andyross authored and nashif committed Jun 11, 2019
1 parent b142033 commit 7c0f44816ef65707c3859329ee8367d3524e613c
Showing with 1 addition and 1 deletion.
  1. +1 −1 soc/arm/nordic_nrf/Kconfig.defconfig
@@ -24,7 +24,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC

config SYS_CLOCK_TICKS_PER_SEC
int
default 128
default 32768

config ARCH_HAS_CUSTOM_BUSY_WAIT
default y

0 comments on commit 7c0f448

Please sign in to comment.
You can’t perform that action at this time.