Browse Source

stm32f1:gpio: docs: clarify more AF remaps

pull/1358/head
Karl Palsson 3 years ago
parent
commit
2483e2e358
  1. 37
      include/libopencm3/stm32/f1/gpio.h

37
include/libopencm3/stm32/f1/gpio.h

@ -896,48 +896,37 @@ Line Devices only
/** 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)
/* TIM14_REMAP: */ /** TIM14 CH1 remapping (Clear: PA7 vs Set: PF9 */
/** TIM14 remapping */
#define AFIO_MAPR2_TIM14_REMAP (1 << 9) #define AFIO_MAPR2_TIM14_REMAP (1 << 9)
/* TIM13_REMAP: */ /** TIM13 CH1 remapping (Clear: PA6 vs Set: PF8 */
/** TIM13 remapping */
#define AFIO_MAPR2_TIM13_REMAP (1 << 8) #define AFIO_MAPR2_TIM13_REMAP (1 << 8)
/* TIM11_REMAP: */ /** TIM11 CH1 remapping (Clear: PB7 vs Set: PF7 */
/** TIM11 remapping */
#define AFIO_MAPR2_TIM11_REMAP (1 << 7) #define AFIO_MAPR2_TIM11_REMAP (1 << 7)
/* TIM10_REMAP: */ /** TIM10 CH1 remapping (Clear: PB8 vs Set: PF6 */
/** TIM10 remapping */
#define AFIO_MAPR2_TIM10_REMAP (1 << 6) #define AFIO_MAPR2_TIM10_REMAP (1 << 6)
/* TIM9_REMAP: */ /** TIM9 Ch1/2 remapping (Clear: PA2,PA3 vs Set: PE5,PE6 */
/** TIM9 remapping */
#define AFIO_MAPR2_TIM9_REMAP (1 << 5) #define AFIO_MAPR2_TIM9_REMAP (1 << 5)
/** TIM1_DMA channel remapping */ /** TIM1_DMA channel remapping
/* * Clear: CH1->DMA1-ch2, CH2->DM1-ch3
0: * Set: CH1->DMA1-ch6, CH2->DMA1-ch6
TIM1_CH1 DMA - DMA1 Channel 2 */
TIM1_CH2 DMA - DMA1 CHannel 3
1:
TIM1_CH1 DMA - DMA1 Channel 6
TIM1_CH2 DMA - DMA1 Channel 6
*/
#define AFIO_MAPR2_TIM1_DMA_REMAP (1 << 4) #define AFIO_MAPR2_TIM1_DMA_REMAP (1 << 4)
/** CEC remapping (PB8 vs PB10) */ /** CEC remapping (Clear: PB8 vs Set: PB10) */
#define AFIO_MAPR2_CEC_REMAP (1 << 3) #define AFIO_MAPR2_CEC_REMAP (1 << 3)
/** TIM17 remapping (PB9 vs PB7) */ /** TIM17 remapping (Clear: PB9 vs Set: PB7) */
#define AFIO_MAPR2_TIM17_REMAP (1 << 2) #define AFIO_MAPR2_TIM17_REMAP (1 << 2)
/** TIM16 remapping (PB8 vs PA6) */ /** TIM16 remapping (Clear: PB8 vs Set: PA6) */
#define AFIO_MAPR2_TIM16_REMAP (1 << 1) #define AFIO_MAPR2_TIM16_REMAP (1 << 1)
/** TIM15 remapping (PA2, PA3 vs PB14, PB15) */ /** TIM15 remapping (Clear: PA2, PA3 vs Set: PB14, PB15) */
#define AFIO_MAPR2_TIM15_REMAP (1 << 0) #define AFIO_MAPR2_TIM15_REMAP (1 << 0)
/**@}*/ /**@}*/

Loading…
Cancel
Save