aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-29 17:31:19 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-29 17:31:19 +0000
commitccd6229bb4dc92afd6194de02f8cd51de8d561cc (patch)
treeebb06e7a298fcb64bd466c83f868e31422b623f4 /os/hal
parentbd959fa31cf4e8cf8a6ee4592fb60a7fe024a2f5 (diff)
downloadChibiOS-ccd6229bb4dc92afd6194de02f8cd51de8d561cc.tar.gz
ChibiOS-ccd6229bb4dc92afd6194de02f8cd51de8d561cc.tar.bz2
ChibiOS-ccd6229bb4dc92afd6194de02f8cd51de8d561cc.zip
Fixed problem with EXT driver on STM32F100 devices.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3894 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/platforms/STM32/ext_lld.c6
-rw-r--r--os/hal/platforms/STM32F1xx/hal_lld_f100.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32/ext_lld.c b/os/hal/platforms/STM32/ext_lld.c
index 65a4fc3b9..569262e75 100644
--- a/os/hal/platforms/STM32/ext_lld.c
+++ b/os/hal/platforms/STM32/ext_lld.c
@@ -480,6 +480,9 @@ void ext_lld_start(EXTDriver *extp) {
CORTEX_PRIORITY_MASK(STM32_EXT_EXTI18_IRQ_PRIORITY));
nvicEnableVector(ETH_WKUP_IRQn,
CORTEX_PRIORITY_MASK(STM32_EXT_EXTI19_IRQ_PRIORITY));
+#elif defined(STM32F10X_LD_VL) || defined(STM32F10X_MD_VL) || \
+ defined(STM32F10X_HD_VL)
+ /* EXTI vectors specific to STM32F1xx Value Line.*/
#else
/* EXTI vectors specific to STM32F1xx except Connectivity Line.*/
nvicEnableVector(USB_FS_WKUP_IRQn,
@@ -555,6 +558,9 @@ void ext_lld_stop(EXTDriver *extp) {
/* EXTI vectors specific to STM32F1xx Connectivity Line.*/
nvicDisableVector(OTG_FS_WKUP_IRQn);
nvicDisableVector(ETH_WKUP_IRQn);
+#elif defined(STM32F10X_LD_VL) || defined(STM32F10X_MD_VL) || \
+ defined(STM32F10X_HD_VL)
+ /* EXTI vectors specific to STM32F1xx Value Line.*/
#else
/* EXTI vectors specific to STM32F1xx except Connectivity Line.*/
nvicDisableVector(USB_FS_WKUP_IRQn);
diff --git a/os/hal/platforms/STM32F1xx/hal_lld_f100.h b/os/hal/platforms/STM32F1xx/hal_lld_f100.h
index beeefeb47..509b20054 100644
--- a/os/hal/platforms/STM32F1xx/hal_lld_f100.h
+++ b/os/hal/platforms/STM32F1xx/hal_lld_f100.h
@@ -207,7 +207,7 @@
#define STM32_HAS_ETH FALSE
/* EXTI attributes.*/
-#define STM32_EXTI_NUM_CHANNELS 19
+#define STM32_EXTI_NUM_CHANNELS 18
/* GPIO attributes.*/
#define STM32_HAS_GPIOA TRUE