git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6807 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2014-03-23 18:35:01 +00:00
parent 406ba0e931
commit abb3af9ecd
1 changed files with 4 additions and 1 deletions

View File

@ -128,7 +128,10 @@ void ext_lld_channel_enable(EXTDriver *extp, expchannel_t channel) {
EXT_MODE_GPIO_MASK) >>
EXT_MODE_GPIO_OFF) << ((channel & 3) * 4);
#if defined(STM32F1XX)
#if defined(STM32F10X_LD_VL) || defined(STM32F10X_MD_VL) || \
defined(STM32F10X_HD_VL) || defined(STM32F10X_LD) || \
defined(STM32F10X_MD) || defined(STM32F10X_HD) || \
defined(STM32F10X_XL) || defined(STM32F10X_CL)
AFIO->EXTICR[n] = (AFIO->EXTICR[n] & mask) | port;
#else /* !defined(STM32F1XX) */
SYSCFG->EXTICR[n] = (SYSCFG->EXTICR[n] & mask) | port;