STM32F4 引脚定义和一些通道时钟开启

1.STM32F4 引脚定义和复用图 

https://blog.csdn.net/Ijerome/article/details/116426030

2.STM32F1 引脚定义和复用图

​​​​​​STM32F1xx引脚定义(复用)表格及复用时外设GPIO配置_Nevey-Chen的博客-CSDN博客

3.时钟对应通道

RCC_AHB1PeriphClockCmd(uint32_t RCC_AHB1Periph, FunctionalState NewState)

@arg RCC_AHB1Periph_GPIOA:       GPIOA clock
@arg RCC_AHB1Periph_GPIOB:       GPIOB clock 
@arg RCC_AHB1Periph_GPIOC:       GPIOC clock
@arg RCC_AHB1Periph_GPIOD:       GPIOD clock
@arg RCC_AHB1Periph_GPIOE:       GPIOE clock
@arg RCC_AHB1Periph_GPIOF:       GPIOF clock
@arg RCC_AHB1Periph_GPIOG:       GPIOG clock
@arg RCC_AHB1Periph_GPIOH:       GPIOH clock
@arg RCC_AHB1Periph_GPIOI:       GPIOI clock
@arg RCC_AHB1Periph_GPIOJ:       GPIOJ clock (STM32F42xxx/43xxx devices)
@arg RCC_AHB1Periph_GPIOK:       GPIOK clock (STM32F42xxx/43xxx devices)
@arg RCC_AHB1Periph_CRC:         CRC clock
@arg RCC_AHB1Periph_BKPSRAM:     BKPSRAM interface clock
@arg RCC_AHB1Periph_CCMDATARAMEN CCM data RAM interface clock
@arg RCC_AHB1Periph_DMA1:        DMA1 clock
@arg RCC_AHB1Periph_DMA2:        DMA2 clock
@arg RCC_AHB1Periph_DMA2D:       DMA2D clock (STM32F429xx/439xx devices)
@arg RCC_AHB1Periph_ETH_MAC:     Ethernet MAC clock
@arg RCC_AHB1Periph_ETH_MAC_Tx:  Ethernet Transmission clock
@arg RCC_AHB1Periph_ETH_MAC_Rx:  Ethernet Reception clock
@arg RCC_AHB1Periph_ETH_MAC_PTP: Ethernet PTP clock
@arg RCC_AHB1Periph_OTG_HS:      USB OTG HS clock
@arg RCC_AHB1Periph_OTG_HS_ULPI: USB OTG HS ULPI clock

RCC_AHB2PeriphClockCmd(uint32_t RCC_AHB2Periph, FunctionalState NewState)

@arg RCC_AHB2Periph_DCMI:   DCMI clock
@arg RCC_AHB2Periph_CRYP:   CRYP clock
@arg RCC_AHB2Periph_HASH:   HASH clock
@arg RCC_AHB2Periph_RNG:    RNG clock
@arg RCC_AHB2Periph_OTG_FS: USB OTG FS clock

RCC_APB1PeriphClockCmd(uint32_t RCC_APB1Periph, FunctionalState NewState)

@arg RCC_APB1Periph_TIM2:   TIM2 clock
@arg RCC_APB1Periph_TIM3:   TIM3 clock
@arg RCC_APB1Periph_TIM4:   TIM4 clock
@arg RCC_APB1Periph_TIM5:   TIM5 clock
@arg RCC_APB1Periph_TIM6:   TIM6 clock
@arg RCC_APB1Periph_TIM7:   TIM7 clock
@arg RCC_APB1Periph_TIM12:  TIM12 clock
@arg RCC_APB1Periph_TIM13:  TIM13 clock
@arg RCC_APB1Periph_TIM14:  TIM14 clock
@arg RCC_APB1Periph_WWDG:   WWDG clock
@arg RCC_APB1Periph_SPI2:   SPI2 clock
@arg RCC_APB1Periph_SPI3:   SPI3 clock
@arg RCC_APB1Periph_USART2: USART2 clock
@arg RCC_APB1Periph_USART3: USART3 clock
@arg RCC_APB1Periph_UART4:  UART4 clock
@arg RCC_APB1Periph_UART5:  UART5 clock
@arg RCC_APB1Periph_I2C1:   I2C1 clock
@arg RCC_APB1Periph_I2C2:   I2C2 clock
@arg RCC_APB1Periph_I2C3:   I2C3 clock
@arg RCC_APB1Periph_CAN1:   CAN1 clock
@arg RCC_APB1Periph_CAN2:   CAN2 clock
@arg RCC_APB1Periph_PWR:    PWR clock
@arg RCC_APB1Periph_DAC:    DAC clock
@arg RCC_APB1Periph_UART7:  UART7 clock
@arg RCC_APB1Periph_UART8:  UART8 clock

RCC_APB2PeriphClockCmd(uint32_t RCC_APB2Periph, FunctionalState NewState)

@arg RCC_APB2Periph_TIM1:   TIM1 clock
@arg RCC_APB2Periph_TIM8:   TIM8 clock
@arg RCC_APB2Periph_USART1: USART1 clock
@arg RCC_APB2Periph_USART6: USART6 clock
@arg RCC_APB2Periph_ADC1:   ADC1 clock
@arg RCC_APB2Periph_ADC2:   ADC2 clock
@arg RCC_APB2Periph_ADC3:   ADC3 clock
@arg RCC_APB2Periph_SDIO:   SDIO clock
@arg RCC_APB2Periph_SPI1:   SPI1 clock
@arg RCC_APB2Periph_SPI4:   SPI4 clock
@arg RCC_APB2Periph_SYSCFG: SYSCFG clock
@arg RCC_APB2Periph_TIM9:   TIM9 clock
@arg RCC_APB2Periph_TIM10:  TIM10 clock
@arg RCC_APB2Periph_TIM11:  TIM11 clock
@arg RCC_APB2Periph_SPI5:   SPI5 clock
@arg RCC_APB2Periph_SPI6:   SPI6 clock
@arg RCC_APB2Periph_SAI1:   SAI1 clock (STM32F42xxx/43xxx devices)
@arg RCC_APB2Periph_LTDC:   LTDC clock (STM32F429xx/439xx devices)
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值