diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-08-27 12:01:51 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-08-27 12:01:51 +0000 |
commit | 40af275be262e19419af9d32bc68f811c8388e2b (patch) | |
tree | af814bb367cf302051e1b4e867d18cabcf0d81bd /demos | |
parent | e4df1ff09dbf2f53accb9f93eacc4c9db15a4c6f (diff) | |
download | ChibiOS-40af275be262e19419af9d32bc68f811c8388e2b.tar.gz ChibiOS-40af275be262e19419af9d32bc68f811c8388e2b.tar.bz2 ChibiOS-40af275be262e19419af9d32bc68f811c8388e2b.zip |
Fixed bug #636.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8248 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-rw-r--r-- | demos/STM32/RT-STM32L152RE-NUCLEO/chconf.h | 4 | ||||
-rw-r--r-- | demos/STM32/RT-STM32L152RE-NUCLEO/mcuconf.h | 14 |
2 files changed, 15 insertions, 3 deletions
diff --git a/demos/STM32/RT-STM32L152RE-NUCLEO/chconf.h b/demos/STM32/RT-STM32L152RE-NUCLEO/chconf.h index 8c745aabf..7d9906294 100644 --- a/demos/STM32/RT-STM32L152RE-NUCLEO/chconf.h +++ b/demos/STM32/RT-STM32L152RE-NUCLEO/chconf.h @@ -39,14 +39,14 @@ * @brief System time counter resolution.
* @note Allowed values are 16 or 32 bits.
*/
-#define CH_CFG_ST_RESOLUTION 16
+#define CH_CFG_ST_RESOLUTION 32
/**
* @brief System tick frequency.
* @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 1000
+#define CH_CFG_ST_FREQUENCY 10000
/**
* @brief Time delta constant for the tick-less mode.
diff --git a/demos/STM32/RT-STM32L152RE-NUCLEO/mcuconf.h b/demos/STM32/RT-STM32L152RE-NUCLEO/mcuconf.h index 66daf7d12..f3f8fbff8 100644 --- a/demos/STM32/RT-STM32L152RE-NUCLEO/mcuconf.h +++ b/demos/STM32/RT-STM32L152RE-NUCLEO/mcuconf.h @@ -90,9 +90,21 @@ #define STM32_GPT_USE_TIM2 FALSE
#define STM32_GPT_USE_TIM3 FALSE
#define STM32_GPT_USE_TIM4 FALSE
+#define STM32_GPT_USE_TIM5 FALSE
+#define STM32_GPT_USE_TIM6 FALSE
+#define STM32_GPT_USE_TIM7 FALSE
+#define STM32_GPT_USE_TIM9 FALSE
+#define STM32_GPT_USE_TIM10 FALSE
+#define STM32_GPT_USE_TIM11 FALSE
#define STM32_GPT_TIM2_IRQ_PRIORITY 7
#define STM32_GPT_TIM3_IRQ_PRIORITY 7
#define STM32_GPT_TIM4_IRQ_PRIORITY 7
+#define STM32_GPT_TIM5_IRQ_PRIORITY 7
+#define STM32_GPT_TIM6_IRQ_PRIORITY 7
+#define STM32_GPT_TIM7_IRQ_PRIORITY 7
+#define STM32_GPT_TIM9_IRQ_PRIORITY 7
+#define STM32_GPT_TIM10_IRQ_PRIORITY 7
+#define STM32_GPT_TIM11_IRQ_PRIORITY 7
/*
* I2C driver system settings.
@@ -155,7 +167,7 @@ * ST driver system settings.
*/
#define STM32_ST_IRQ_PRIORITY 8
-#define STM32_ST_USE_TIMER 2
+#define STM32_ST_USE_TIMER 5
/*
* UART driver system settings.
|