diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-11-24 07:59:12 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-11-24 07:59:12 +0000 |
commit | d447fd6ceeda74abded59704247d259e0f710fff (patch) | |
tree | f79ba4c58ef8675980151b15698a7ee937dac612 /testhal/STM32/STM32L1xx | |
parent | 972c282b7fc8b1458326616180d414c708ae3691 (diff) | |
download | ChibiOS-d447fd6ceeda74abded59704247d259e0f710fff.tar.gz ChibiOS-d447fd6ceeda74abded59704247d259e0f710fff.tar.bz2 ChibiOS-d447fd6ceeda74abded59704247d259e0f710fff.zip |
New hooks added to RT, stronger checks on RT chconf.h files.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11071 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32L1xx')
-rw-r--r-- | testhal/STM32/STM32L1xx/ADC/chconf.h | 16 | ||||
-rw-r--r-- | testhal/STM32/STM32L1xx/DAC/chconf.h | 16 | ||||
-rw-r--r-- | testhal/STM32/STM32L1xx/IRQ_STORM/chconf.h | 16 | ||||
-rw-r--r-- | testhal/STM32/STM32L1xx/PWM-ICU/chconf.h | 16 | ||||
-rw-r--r-- | testhal/STM32/STM32L1xx/SPI/chconf.h | 16 | ||||
-rw-r--r-- | testhal/STM32/STM32L1xx/UART/chconf.h | 16 |
6 files changed, 96 insertions, 0 deletions
diff --git a/testhal/STM32/STM32L1xx/ADC/chconf.h b/testhal/STM32/STM32L1xx/ADC/chconf.h index 65b956e24..d8ec9b113 100644 --- a/testhal/STM32/STM32L1xx/ADC/chconf.h +++ b/testhal/STM32/STM32L1xx/ADC/chconf.h @@ -479,6 +479,22 @@ /*===========================================================================*/
/**
+ * @brief System structure extension.
+ * @details User fields added to the end of the @p ch_system_t structure.
+ */
+#define CH_CFG_SYSTEM_EXTRA_FIELDS \
+ /* Add threads custom fields here.*/
+
+/**
+ * @brief System initialization hook.
+ * @details User initialization code added to the @p chSysInit() function
+ * just before interrupts are enabled globally.
+ */
+#define CH_CFG_SYSTEM_INIT_HOOK(tp) { \
+ /* Add threads initialization code here.*/ \
+}
+
+/**
* @brief Threads descriptor structure extension.
* @details User fields added to the end of the @p thread_t structure.
*/
diff --git a/testhal/STM32/STM32L1xx/DAC/chconf.h b/testhal/STM32/STM32L1xx/DAC/chconf.h index 65b956e24..d8ec9b113 100644 --- a/testhal/STM32/STM32L1xx/DAC/chconf.h +++ b/testhal/STM32/STM32L1xx/DAC/chconf.h @@ -479,6 +479,22 @@ /*===========================================================================*/
/**
+ * @brief System structure extension.
+ * @details User fields added to the end of the @p ch_system_t structure.
+ */
+#define CH_CFG_SYSTEM_EXTRA_FIELDS \
+ /* Add threads custom fields here.*/
+
+/**
+ * @brief System initialization hook.
+ * @details User initialization code added to the @p chSysInit() function
+ * just before interrupts are enabled globally.
+ */
+#define CH_CFG_SYSTEM_INIT_HOOK(tp) { \
+ /* Add threads initialization code here.*/ \
+}
+
+/**
* @brief Threads descriptor structure extension.
* @details User fields added to the end of the @p thread_t structure.
*/
diff --git a/testhal/STM32/STM32L1xx/IRQ_STORM/chconf.h b/testhal/STM32/STM32L1xx/IRQ_STORM/chconf.h index 65b956e24..d8ec9b113 100644 --- a/testhal/STM32/STM32L1xx/IRQ_STORM/chconf.h +++ b/testhal/STM32/STM32L1xx/IRQ_STORM/chconf.h @@ -479,6 +479,22 @@ /*===========================================================================*/
/**
+ * @brief System structure extension.
+ * @details User fields added to the end of the @p ch_system_t structure.
+ */
+#define CH_CFG_SYSTEM_EXTRA_FIELDS \
+ /* Add threads custom fields here.*/
+
+/**
+ * @brief System initialization hook.
+ * @details User initialization code added to the @p chSysInit() function
+ * just before interrupts are enabled globally.
+ */
+#define CH_CFG_SYSTEM_INIT_HOOK(tp) { \
+ /* Add threads initialization code here.*/ \
+}
+
+/**
* @brief Threads descriptor structure extension.
* @details User fields added to the end of the @p thread_t structure.
*/
diff --git a/testhal/STM32/STM32L1xx/PWM-ICU/chconf.h b/testhal/STM32/STM32L1xx/PWM-ICU/chconf.h index 65b956e24..d8ec9b113 100644 --- a/testhal/STM32/STM32L1xx/PWM-ICU/chconf.h +++ b/testhal/STM32/STM32L1xx/PWM-ICU/chconf.h @@ -479,6 +479,22 @@ /*===========================================================================*/
/**
+ * @brief System structure extension.
+ * @details User fields added to the end of the @p ch_system_t structure.
+ */
+#define CH_CFG_SYSTEM_EXTRA_FIELDS \
+ /* Add threads custom fields here.*/
+
+/**
+ * @brief System initialization hook.
+ * @details User initialization code added to the @p chSysInit() function
+ * just before interrupts are enabled globally.
+ */
+#define CH_CFG_SYSTEM_INIT_HOOK(tp) { \
+ /* Add threads initialization code here.*/ \
+}
+
+/**
* @brief Threads descriptor structure extension.
* @details User fields added to the end of the @p thread_t structure.
*/
diff --git a/testhal/STM32/STM32L1xx/SPI/chconf.h b/testhal/STM32/STM32L1xx/SPI/chconf.h index 65b956e24..d8ec9b113 100644 --- a/testhal/STM32/STM32L1xx/SPI/chconf.h +++ b/testhal/STM32/STM32L1xx/SPI/chconf.h @@ -479,6 +479,22 @@ /*===========================================================================*/
/**
+ * @brief System structure extension.
+ * @details User fields added to the end of the @p ch_system_t structure.
+ */
+#define CH_CFG_SYSTEM_EXTRA_FIELDS \
+ /* Add threads custom fields here.*/
+
+/**
+ * @brief System initialization hook.
+ * @details User initialization code added to the @p chSysInit() function
+ * just before interrupts are enabled globally.
+ */
+#define CH_CFG_SYSTEM_INIT_HOOK(tp) { \
+ /* Add threads initialization code here.*/ \
+}
+
+/**
* @brief Threads descriptor structure extension.
* @details User fields added to the end of the @p thread_t structure.
*/
diff --git a/testhal/STM32/STM32L1xx/UART/chconf.h b/testhal/STM32/STM32L1xx/UART/chconf.h index 65b956e24..d8ec9b113 100644 --- a/testhal/STM32/STM32L1xx/UART/chconf.h +++ b/testhal/STM32/STM32L1xx/UART/chconf.h @@ -479,6 +479,22 @@ /*===========================================================================*/
/**
+ * @brief System structure extension.
+ * @details User fields added to the end of the @p ch_system_t structure.
+ */
+#define CH_CFG_SYSTEM_EXTRA_FIELDS \
+ /* Add threads custom fields here.*/
+
+/**
+ * @brief System initialization hook.
+ * @details User initialization code added to the @p chSysInit() function
+ * just before interrupts are enabled globally.
+ */
+#define CH_CFG_SYSTEM_INIT_HOOK(tp) { \
+ /* Add threads initialization code here.*/ \
+}
+
+/**
* @brief Threads descriptor structure extension.
* @details User fields added to the end of the @p thread_t structure.
*/
|