diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/STM8L-STM8L152-DISCOVERY-STVD/demo/mcuconf.h | 24 | ||||
-rw-r--r-- | demos/STM8S-STM8S105-DISCOVERY-STVD/demo/mcuconf.h | 9 | ||||
-rw-r--r-- | demos/STM8S-STM8S208-RC/mcuconf.h | 23 |
3 files changed, 36 insertions, 20 deletions
diff --git a/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/mcuconf.h b/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/mcuconf.h index 69a205fb6..27a71ee9c 100644 --- a/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/mcuconf.h +++ b/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/mcuconf.h @@ -28,19 +28,19 @@ /*
* HAL general settings.
*/
-#define STM8L_NO_CLOCK_INIT FALSE
-#define STM8L_HSI_ENABLED TRUE
-#define STM8L_LSI_ENABLED TRUE
-#define STM8L_HSE_ENABLED FALSE
-#define STM8L_LSE_ENABLED TRUE
-#define STM8L_SYSCLK_SOURCE CLK_SYSSEL_HSI
-#define STM8L_SYSCLK_DIVIDER CLK_SYSCLK_DIV1
-#define STM8L_RTCCLK_SOURCE CLK_RTCSEL_LSE
-#define STM8L_RTCCLK_DIVIDER CLK_RTCCLK_DIV1
+#define STM8L_NO_CLOCK_INIT FALSE
+#define STM8L_HSI_ENABLED TRUE
+#define STM8L_LSI_ENABLED TRUE
+#define STM8L_HSE_ENABLED FALSE
+#define STM8L_LSE_ENABLED TRUE
+#define STM8L_SYSCLK_SOURCE CLK_SYSSEL_HSI
+#define STM8L_SYSCLK_DIVIDER CLK_SYSCLK_DIV1
+#define STM8L_RTCCLK_SOURCE CLK_RTCSEL_LSE
+#define STM8L_RTCCLK_DIVIDER CLK_RTCCLK_DIV1
/*
* SERIAL driver system settings.
*/
-#define STM8L_SERIAL_USE_USART1 TRUE
-#define STM8L_SERIAL_USE_USART2 FALSE
-#define STM8L_SERIAL_USE_USART3 FALSE
+#define STM8L_SERIAL_USE_USART1 TRUE
+#define STM8L_SERIAL_USE_USART2 FALSE
+#define STM8L_SERIAL_USE_USART3 FALSE
diff --git a/demos/STM8S-STM8S105-DISCOVERY-STVD/demo/mcuconf.h b/demos/STM8S-STM8S105-DISCOVERY-STVD/demo/mcuconf.h index 757bba2ce..61b572a82 100644 --- a/demos/STM8S-STM8S105-DISCOVERY-STVD/demo/mcuconf.h +++ b/demos/STM8S-STM8S105-DISCOVERY-STVD/demo/mcuconf.h @@ -28,9 +28,14 @@ /*
* HAL general settings.
*/
-#define STM8_CLOCK_SOURCE CLK_SOURCE_HSI
+#define STM8_NO_CLOCK_INIT FALSE
+#define STM8_HSI_ENABLED FALSE
+#define STM8_LSI_ENABLED TRUE
+#define STM8_HSE_ENABLED TRUE
+#define STM8_SYSCLK_SOURCE CLK_SYSSEL_HSE
#define STM8_HSI_DIVIDER CLK_HSI_DIV1
#define STM8_CPU_DIVIDER CLK_CPU_DIV1
+#define STM8_CAN_DIVIDER_VALUE 1
/*
* SERIAL driver system settings.
@@ -42,5 +47,5 @@ /*
* SPI driver system settings.
*/
-#define STM8_SPI_USE_SPI FALSE
+#define STM8_SPI_USE_SPI TRUE
#define STM8_SPI_ERROR_HOOK(spip) chSysHalt()
diff --git a/demos/STM8S-STM8S208-RC/mcuconf.h b/demos/STM8S-STM8S208-RC/mcuconf.h index c2148ac5b..53b52fb2a 100644 --- a/demos/STM8S-STM8S208-RC/mcuconf.h +++ b/demos/STM8S-STM8S208-RC/mcuconf.h @@ -28,13 +28,24 @@ /*
* HAL general settings.
*/
-#define STM8_CLOCK_SOURCE CLK_SOURCE_HSI
-#define STM8_HSI_DIVIDER CLK_HSI_DIV1
-#define STM8_CPU_DIVIDER CLK_CPU_DIV1
+#define STM8_NO_CLOCK_INIT FALSE
+#define STM8_HSI_ENABLED FALSE
+#define STM8_LSI_ENABLED TRUE
+#define STM8_HSE_ENABLED TRUE
+#define STM8_SYSCLK_SOURCE CLK_SYSSEL_HSI
+#define STM8_HSI_DIVIDER CLK_HSI_DIV1
+#define STM8_CPU_DIVIDER CLK_CPU_DIV1
+#define STM8_CAN_DIVIDER_VALUE 1
/*
* SERIAL driver system settings.
*/
-#define USE_STM8_UART1 TRUE
-#define USE_STM8_UART2 FALSE
-#define USE_STM8_UART3 FALSE
+#define USE_STM8_UART1 TRUE
+#define USE_STM8_UART2 FALSE
+#define USE_STM8_UART3 FALSE
+
+/*
+ * SPI driver system settings.
+ */
+#define STM8_SPI_USE_SPI TRUE
+#define STM8_SPI_ERROR_HOOK(spip) chSysHalt()
|