diff options
Diffstat (limited to 'testhal/STM32')
-rw-r--r-- | testhal/STM32/STM32L0xx/ADC/mcuconf.h | 24 | ||||
-rw-r--r-- | testhal/STM32/STM32L0xx/SPI/mcuconf.h | 24 | ||||
-rw-r--r-- | testhal/STM32/STM32L0xx/USB_CDC/mcuconf.h | 37 | ||||
-rw-r--r-- | testhal/STM32/multi/PAL/cfg-stm32l053_discovery/mcuconf.h | 20 |
4 files changed, 46 insertions, 59 deletions
diff --git a/testhal/STM32/STM32L0xx/ADC/mcuconf.h b/testhal/STM32/STM32L0xx/ADC/mcuconf.h index d051c130a..a047027f3 100644 --- a/testhal/STM32/STM32L0xx/ADC/mcuconf.h +++ b/testhal/STM32/STM32L0xx/ADC/mcuconf.h @@ -18,14 +18,14 @@ #define MCUCONF_H
/*
- * STM32L1xx drivers configuration.
+ * STM32L0xx drivers configuration.
* The following settings override the default settings present in
* the various device driver implementation headers.
* Note that the settings for each driver only have effect if the whole
* driver is enabled in halconf.h.
*
* IRQ priorities:
- * 15...0 Lowest...Highest.
+ * 3...0 Lowest...Highest.
*
* DMA priorities:
* 0...3 Lowest...Highest.
@@ -67,6 +67,16 @@ #define STM32_HSI48SEL STM32_HSI48SEL_HSI48
/*
+ * IRQ system settings.
+ */
+#define STM32_IRQ_EXTI0_1_PRIORITY 3
+#define STM32_IRQ_EXTI2_3_PRIORITY 3
+#define STM32_IRQ_EXTI4_15_PRIORITY 3
+#define STM32_IRQ_EXTI16_PRIORITY 3
+#define STM32_IRQ_EXTI17_20_PRIORITY 3
+#define STM32_IRQ_EXTI21_22_PRIORITY 3
+
+/*
* ADC driver system settings.
* Note, IRQ is shared with EXT channels 21 and 22.
*/
@@ -78,16 +88,6 @@ #define STM32_ADC_PRESCALER_VALUE 1
/*
- * EXT driver system settings.
- */
-#define STM32_EXT_EXTI0_1_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI2_3_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI4_15_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI16_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI17_20_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI21_22_IRQ_PRIORITY 3
-
-/*
* GPT driver system settings.
*/
#define STM32_GPT_USE_TIM2 FALSE
diff --git a/testhal/STM32/STM32L0xx/SPI/mcuconf.h b/testhal/STM32/STM32L0xx/SPI/mcuconf.h index d902d5021..12bdd8f90 100644 --- a/testhal/STM32/STM32L0xx/SPI/mcuconf.h +++ b/testhal/STM32/STM32L0xx/SPI/mcuconf.h @@ -18,14 +18,14 @@ #define MCUCONF_H
/*
- * STM32L1xx drivers configuration.
+ * STM32L0xx drivers configuration.
* The following settings override the default settings present in
* the various device driver implementation headers.
* Note that the settings for each driver only have effect if the whole
* driver is enabled in halconf.h.
*
* IRQ priorities:
- * 15...0 Lowest...Highest.
+ * 3...0 Lowest...Highest.
*
* DMA priorities:
* 0...3 Lowest...Highest.
@@ -67,6 +67,16 @@ #define STM32_HSI48SEL STM32_HSI48SEL_HSI48
/*
+ * IRQ system settings.
+ */
+#define STM32_IRQ_EXTI0_1_PRIORITY 3
+#define STM32_IRQ_EXTI2_3_PRIORITY 3
+#define STM32_IRQ_EXTI4_15_PRIORITY 3
+#define STM32_IRQ_EXTI16_PRIORITY 3
+#define STM32_IRQ_EXTI17_20_PRIORITY 3
+#define STM32_IRQ_EXTI21_22_PRIORITY 3
+
+/*
* ADC driver system settings.
* Note, IRQ is shared with EXT channels 21 and 22.
*/
@@ -78,16 +88,6 @@ #define STM32_ADC_PRESCALER_VALUE 1
/*
- * EXT driver system settings.
- */
-#define STM32_EXT_EXTI0_1_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI2_3_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI4_15_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI16_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI17_20_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI21_22_IRQ_PRIORITY 3
-
-/*
* GPT driver system settings.
*/
#define STM32_GPT_USE_TIM2 FALSE
diff --git a/testhal/STM32/STM32L0xx/USB_CDC/mcuconf.h b/testhal/STM32/STM32L0xx/USB_CDC/mcuconf.h index 717b90ac2..c1b455574 100644 --- a/testhal/STM32/STM32L0xx/USB_CDC/mcuconf.h +++ b/testhal/STM32/STM32L0xx/USB_CDC/mcuconf.h @@ -18,14 +18,14 @@ #define MCUCONF_H
/*
- * STM32L1xx drivers configuration.
+ * STM32L0xx drivers configuration.
* The following settings override the default settings present in
* the various device driver implementation headers.
* Note that the settings for each driver only have effect if the whole
* driver is enabled in halconf.h.
*
* IRQ priorities:
- * 15...0 Lowest...Highest.
+ * 3...0 Lowest...Highest.
*
* DMA priorities:
* 0...3 Lowest...Highest.
@@ -68,6 +68,16 @@ #define STM32_HSI48SEL STM32_HSI48SEL_HSI48
/*
+ * IRQ system settings.
+ */
+#define STM32_IRQ_EXTI0_1_PRIORITY 3
+#define STM32_IRQ_EXTI2_3_PRIORITY 3
+#define STM32_IRQ_EXTI4_15_PRIORITY 3
+#define STM32_IRQ_EXTI16_PRIORITY 3
+#define STM32_IRQ_EXTI17_20_PRIORITY 3
+#define STM32_IRQ_EXTI21_22_PRIORITY 3
+
+/*
* ADC driver system settings.
* Note, IRQ is shared with EXT channels 21 and 22.
*/
@@ -79,29 +89,6 @@ #define STM32_ADC_PRESCALER_VALUE 1
/*
- * DAC driver system settings.
- */
-#define STM32_DAC_DUAL_MODE FALSE
-#define STM32_DAC_USE_DAC1_CH1 FALSE
-#define STM32_DAC_USE_DAC1_CH2 FALSE
-#define STM32_DAC_DAC1_CH1_IRQ_PRIORITY 10
-#define STM32_DAC_DAC1_CH2_IRQ_PRIORITY 10
-#define STM32_DAC_DAC1_CH1_DMA_PRIORITY 2
-#define STM32_DAC_DAC1_CH2_DMA_PRIORITY 2
-#define STM32_DAC_DAC1_CH1_DMA_STREAM STM32_DMA_STREAM_ID(1, 2)
-#define STM32_DAC_DAC1_CH2_DMA_STREAM STM32_DMA_STREAM_ID(1, 4)
-
-/*
- * EXT driver system settings.
- */
-#define STM32_EXT_EXTI0_1_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI2_3_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI4_15_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI16_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI17_20_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI21_22_IRQ_PRIORITY 3
-
-/*
* GPT driver system settings.
*/
#define STM32_GPT_USE_TIM2 FALSE
diff --git a/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/mcuconf.h b/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/mcuconf.h index a517c7872..b99e21477 100644 --- a/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/mcuconf.h +++ b/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/mcuconf.h @@ -67,6 +67,16 @@ #define STM32_HSI48SEL STM32_HSI48SEL_HSI48
/*
+ * IRQ system settings.
+ */
+#define STM32_IRQ_EXTI0_1_PRIORITY 3
+#define STM32_IRQ_EXTI2_3_PRIORITY 3
+#define STM32_IRQ_EXTI4_15_PRIORITY 3
+#define STM32_IRQ_EXTI16_PRIORITY 3
+#define STM32_IRQ_EXTI17_20_PRIORITY 3
+#define STM32_IRQ_EXTI21_22_PRIORITY 3
+
+/*
* ADC driver system settings.
* Note, IRQ is shared with EXT channels 21 and 22.
*/
@@ -78,16 +88,6 @@ #define STM32_ADC_PRESCALER_VALUE 1
/*
- * EXT driver system settings.
- */
-#define STM32_EXT_EXTI0_1_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI2_3_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI4_15_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI16_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI17_20_IRQ_PRIORITY 3
-#define STM32_EXT_EXTI21_22_IRQ_PRIORITY 3
-
-/*
* GPT driver system settings.
*/
#define STM32_GPT_USE_TIM2 FALSE
|