diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-11-16 18:39:47 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-11-16 18:39:47 +0000 |
commit | 354bd66eb083691cab4c2c29b32a836805ac5edc (patch) | |
tree | a6cdb1387752aaea3715b7551b24c2aaf3c64be6 /demos/STM8S-STM8S105-DISCOVERY-STVD/demo | |
parent | 5962467685985de2d79a85a1fcf8b1961d3d72de (diff) | |
download | ChibiOS-354bd66eb083691cab4c2c29b32a836805ac5edc.tar.gz ChibiOS-354bd66eb083691cab4c2c29b32a836805ac5edc.tar.bz2 ChibiOS-354bd66eb083691cab4c2c29b32a836805ac5edc.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2371 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/STM8S-STM8S105-DISCOVERY-STVD/demo')
-rw-r--r-- | demos/STM8S-STM8S105-DISCOVERY-STVD/demo/mcuconf.h | 9 |
1 files changed, 7 insertions, 2 deletions
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()
|