From 354bd66eb083691cab4c2c29b32a836805ac5edc Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 16 Nov 2010 18:39:47 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2371 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/STM8S-STM8S208-RC/mcuconf.h | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'demos/STM8S-STM8S208-RC/mcuconf.h') 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() -- cgit v1.2.3