aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/ATSAMA5D2
diff options
context:
space:
mode:
authoredolomb <none@example.com>2018-03-19 12:23:55 +0000
committeredolomb <none@example.com>2018-03-19 12:23:55 +0000
commit1c764b208a856d81eb10aaa9edf2ae04d2245ea9 (patch)
tree30bf9f8535ab0d3d84a2d41bbf804430f012ea7c /testhal/ATSAMA5D2
parent554ee20b919abb955fa452b72c6da1ddc532d1b4 (diff)
downloadChibiOS-1c764b208a856d81eb10aaa9edf2ae04d2245ea9.tar.gz
ChibiOS-1c764b208a856d81eb10aaa9edf2ae04d2245ea9.tar.bz2
ChibiOS-1c764b208a856d81eb10aaa9edf2ae04d2245ea9.zip
Supported tick-less mode
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11822 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'testhal/ATSAMA5D2')
-rw-r--r--testhal/ATSAMA5D2/UART/chconf.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/testhal/ATSAMA5D2/UART/chconf.h b/testhal/ATSAMA5D2/UART/chconf.h
index 392caac58..660fbb0ca 100644
--- a/testhal/ATSAMA5D2/UART/chconf.h
+++ b/testhal/ATSAMA5D2/UART/chconf.h
@@ -49,7 +49,8 @@
* @details Frequency of the system timer that drives the system ticks. This
* setting also defines the system tick time unit.
*/
-#define CH_CFG_ST_FREQUENCY 10000
+//#define CH_CFG_ST_FREQUENCY 1000 /* periodic tick.*/
+#define CH_CFG_ST_FREQUENCY (84000000 / 32) /* tick-less.*/
/**
* @brief Time intervals data size.
@@ -71,7 +72,7 @@
* The value one is not valid, timeouts are rounded up to
* this value.
*/
-#define CH_CFG_ST_TIMEDELTA 0
+#define CH_CFG_ST_TIMEDELTA 2
/** @} */