stm32f429引脚复用

以下内容在stm32f4xx_gpio.h内

[cpp]  view plain  copy
  1. /** @defgroup GPIO_Alternat_function_selection_define  
  2.   * @{  
  3.   */   
  4. /**  
  5.   * @brief   AF 0 selection   
  6.   */   
  7. #define GPIO_AF_RTC_50Hz      ((uint8_t)0x00)  /* RTC_50Hz Alternate Function mapping */  
  8. #define GPIO_AF_MCO           ((uint8_t)0x00)  /* MCO (MCO1 and MCO2) Alternate Function mapping */  
  9. #define GPIO_AF_TAMPER        ((uint8_t)0x00)  /* TAMPER (TAMPER_1 and TAMPER_2) Alternate Function mapping */  
  10. #define GPIO_AF_SWJ           ((uint8_t)0x00)  /* SWJ (SWD and JTAG) Alternate Function mapping */  
  11. #define GPIO_AF_TRACE         ((uint8_t)0x00)  /* TRACE Alternate Function mapping */  
  12. #if defined (STM32F446xx)  
  13. #define GPIO_AF0_TIM2         ((uint8_t)0x00)  /* TIM2 Alternate Function mapping */  
  14. #endif /* STM32F446xx */  
  15.   
  16. /**  
  17.   * @brief   AF 1 selection   
  18.   */   
  19. #define GPIO_AF_TIM1          ((uint8_t)0x01)  /* TIM1 Alternate Function mapping */  
  20. #define GPIO_AF_TIM2          ((uint8_t)0x01)  /* TIM2 Alternate Function mapping */  
  21.   
  22. /**  
  23.   * @brief   AF 2 selection   
  24.   */   
  25. #define GPIO_AF_TIM3          ((uint8_t)0x02)  /* TIM3 Alternate Function mapping */  
  26. #define GPIO_AF_TIM4          ((uint8_t)0x02)  /* TIM4 Alternate Function mapping */  
  27. #define GPIO_AF_TIM5          ((uint8_t)0x02)  /* TIM5 Alternate Function mapping */  
  28.   
  29. /**  
  30.   * @brief   AF 3 selection   
  31.   */   
  32. #define GPIO_AF_TIM8          ((uint8_t)0x03)  /* TIM8 Alternate Function mapping */  
  33. #define GPIO_AF_TIM9          ((uint8_t)0x03)  /* TIM9 Alternate Function mapping */  
  34. #define GPIO_AF_TIM10         ((uint8_t)0x03)  /* TIM10 Alternate Function mapping */  
  35. #define GPIO_AF_TIM11         ((uint8_t)0x03)  /* TIM11 Alternate Function mapping */  
  36. #if defined (STM32F446xx)  
  37. #define GPIO_AF3_CEC          ((uint8_t)0x03)  /* CEC Alternate Function mapping */  
  38. #endif /* STM32F446xx */  
  39. /**  
  40.   * @brief   AF 4 selection   
  41.   */   
  42. #define GPIO_AF_I2C1          ((uint8_t)0x04)  /* I2C1 Alternate Function mapping */  
  43. #define GPIO_AF_I2C2          ((uint8_t)0x04)  /* I2C2 Alternate Function mapping */  
  44. #define GPIO_AF_I2C3          ((uint8_t)0x04)  /* I2C3 Alternate Function mapping */  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值