stm32: f1: Additional GPIO Remappings for F100

F100 has more remap options than F10x, particularly on the High Density
devices.

Fixes github issue #365

Signed-off-by: Karl Palsson <karlp@tweak.net.au>
This commit is contained in:
Karl Palsson 2014-11-21 10:38:03 +00:00
parent 2c475a38d5
commit 3a44b1311b

View File

@ -883,6 +883,15 @@ Line Devices only
@ingroup gpio_defines @ingroup gpio_defines
@{*/ @{*/
/** various remaps, dma/dac/timer triggers (HD only) */
#define AFIO_MAPR2_MISC_REMAP (1 << 13)
/** TIM12_CH1 and TIM12_CH2 remapping (HD only) */
#define AFIO_MAPR2_TIM12_REMAP (1 << 12)
/** TIM76_DAC_DMA remap to DMA1/DMA2 */
#define AFIO_MAPR2_TIM76_DAC_DMA_REMAPE (1 << 11)
/* FSMC_NADV_DISCONNECT: */ /* FSMC_NADV_DISCONNECT: */
/** The NADV is disconnected from its allocated pin */ /** The NADV is disconnected from its allocated pin */
#define AFIO_MAPR2_FSMC_NADV_DISCONNECT (1 << 10) #define AFIO_MAPR2_FSMC_NADV_DISCONNECT (1 << 10)
@ -907,6 +916,21 @@ Line Devices only
/** TIM9 remapping */ /** TIM9 remapping */
#define AFIO_MAPR2_TIM9_REMAP (1 << 5) #define AFIO_MAPR2_TIM9_REMAP (1 << 5)
/** TIM1_DMA channel 1/2 remapping */
#define AFIO_MAPR2_TIM1_DMA_REMAP (1 << 4)
/** CEC remapping (PB8 vs PB10) */
#define AFIO_MAPR2_CEC_REMAP (1 << 3)
/** TIM17 remapping (PB9 vs PB7) */
#define AFIO_MAPR2_TIM17_REMAP (1 << 2)
/** TIM16 remapping (PB8 vs PB6) */
#define AFIO_MAPR2_TIM16_REMAP (1 << 1)
/** TIM15 remapping channels 1/2 */
#define AFIO_MAPR1_TIM16_REMAP (1 << 0)
/**@}*/ /**@}*/
/* --- AFIO_EXTICR1 values ------------------------------------------------- */ /* --- AFIO_EXTICR1 values ------------------------------------------------- */