diff options
Diffstat (limited to 'demos/nil')
-rw-r--r-- | demos/nil/NIL-STM32F051-DISCOVERY/nilconf.h | 6 | ||||
-rw-r--r-- | demos/nil/NIL-STM32F373-STM32373C_EVAL/nilconf.h | 6 | ||||
-rw-r--r-- | demos/nil/NIL-STM32L152-DISCOVERY/nilconf.h | 8 |
3 files changed, 19 insertions, 1 deletions
diff --git a/demos/nil/NIL-STM32F051-DISCOVERY/nilconf.h b/demos/nil/NIL-STM32F051-DISCOVERY/nilconf.h index 220ce8b37..54fb32ca4 100644 --- a/demos/nil/NIL-STM32F051-DISCOVERY/nilconf.h +++ b/demos/nil/NIL-STM32F051-DISCOVERY/nilconf.h @@ -52,6 +52,12 @@ /*===========================================================================*/
/**
+ * @brief System time counter resolution.
+ * @note Allowed values are 16 or 32 bits.
+ */
+#define NIL_CFG_ST_RESOLUTION 32
+
+/**
* @brief System tick frequency.
*/
#define NIL_CFG_ST_FREQUENCY 50000
diff --git a/demos/nil/NIL-STM32F373-STM32373C_EVAL/nilconf.h b/demos/nil/NIL-STM32F373-STM32373C_EVAL/nilconf.h index 220ce8b37..54fb32ca4 100644 --- a/demos/nil/NIL-STM32F373-STM32373C_EVAL/nilconf.h +++ b/demos/nil/NIL-STM32F373-STM32373C_EVAL/nilconf.h @@ -52,6 +52,12 @@ /*===========================================================================*/
/**
+ * @brief System time counter resolution.
+ * @note Allowed values are 16 or 32 bits.
+ */
+#define NIL_CFG_ST_RESOLUTION 32
+
+/**
* @brief System tick frequency.
*/
#define NIL_CFG_ST_FREQUENCY 50000
diff --git a/demos/nil/NIL-STM32L152-DISCOVERY/nilconf.h b/demos/nil/NIL-STM32L152-DISCOVERY/nilconf.h index c43879adb..eeec0899f 100644 --- a/demos/nil/NIL-STM32L152-DISCOVERY/nilconf.h +++ b/demos/nil/NIL-STM32L152-DISCOVERY/nilconf.h @@ -52,6 +52,12 @@ /*===========================================================================*/
/**
+ * @brief System time counter resolution.
+ * @note Allowed values are 16 or 32 bits.
+ */
+#define NIL_CFG_ST_RESOLUTION 16
+
+/**
* @brief System tick frequency.
*/
#define NIL_CFG_ST_FREQUENCY 1000
@@ -64,7 +70,7 @@ * The value one is not valid, timeouts are rounded up to
* this value.
*/
-#define NIL_CFG_ST_TIMEDELTA 0
+#define NIL_CFG_ST_TIMEDELTA 2
/** @} */
|