From 849c7af120b4dd015a590f95b900d794e319eab7 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 5 Oct 2014 09:05:07 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7363 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/chconf.h | 2 +- demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/mcuconf.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'demos/STM32/RT-STM32F103-OLIMEX_STM32_P103') diff --git a/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/chconf.h b/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/chconf.h index de3797f02..32a7ac145 100644 --- a/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/chconf.h +++ b/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/chconf.h @@ -46,7 +46,7 @@ * @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 10000 +#define CH_CFG_ST_FREQUENCY 2000 /** * @brief Time delta constant for the tick-less mode. diff --git a/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/mcuconf.h b/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/mcuconf.h index 66348b688..a9529b8cc 100644 --- a/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/mcuconf.h +++ b/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/mcuconf.h @@ -175,6 +175,12 @@ #define STM32_SPI_SPI3_IRQ_PRIORITY 10 #define STM32_SPI_DMA_ERROR_HOOK(spip) osalSysHalt("DMA failure") +/* + * ST driver system settings. + */ +#define STM32_ST_IRQ_PRIORITY 8 +#define STM32_ST_USE_TIMER 2 + /* * UART driver system settings. */ -- cgit v1.2.3