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
master
gdisirio 2012-01-29 17:31:19 +00:00
parent bd959fa31c
commit ccd6229bb4
2 changed files with 7 additions and 1 deletions

View File

@ -480,6 +480,9 @@ void ext_lld_start(EXTDriver *extp) {
CORTEX_PRIORITY_MASK(STM32_EXT_EXTI18_IRQ_PRIORITY)); CORTEX_PRIORITY_MASK(STM32_EXT_EXTI18_IRQ_PRIORITY));
nvicEnableVector(ETH_WKUP_IRQn, nvicEnableVector(ETH_WKUP_IRQn,
CORTEX_PRIORITY_MASK(STM32_EXT_EXTI19_IRQ_PRIORITY)); 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 #else
/* EXTI vectors specific to STM32F1xx except Connectivity Line.*/ /* EXTI vectors specific to STM32F1xx except Connectivity Line.*/
nvicEnableVector(USB_FS_WKUP_IRQn, nvicEnableVector(USB_FS_WKUP_IRQn,
@ -555,6 +558,9 @@ void ext_lld_stop(EXTDriver *extp) {
/* EXTI vectors specific to STM32F1xx Connectivity Line.*/ /* EXTI vectors specific to STM32F1xx Connectivity Line.*/
nvicDisableVector(OTG_FS_WKUP_IRQn); nvicDisableVector(OTG_FS_WKUP_IRQn);
nvicDisableVector(ETH_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 #else
/* EXTI vectors specific to STM32F1xx except Connectivity Line.*/ /* EXTI vectors specific to STM32F1xx except Connectivity Line.*/
nvicDisableVector(USB_FS_WKUP_IRQn); nvicDisableVector(USB_FS_WKUP_IRQn);

View File

@ -207,7 +207,7 @@
#define STM32_HAS_ETH FALSE #define STM32_HAS_ETH FALSE
/* EXTI attributes.*/ /* EXTI attributes.*/
#define STM32_EXTI_NUM_CHANNELS 19 #define STM32_EXTI_NUM_CHANNELS 18
/* GPIO attributes.*/ /* GPIO attributes.*/
#define STM32_HAS_GPIOA TRUE #define STM32_HAS_GPIOA TRUE