1、库函数版本调用的函数有哪些?对应的源文件/头文件是哪个?

库函数 源文件 头文件
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOF, ENABLE stm32f4xx_rcc.c stm32f4xx_rcc.h
GPIO_Init(GPIOF, &GPIO_InitStruct)  stm32f4xx_gpio.c  stm32f4xx_gpio.h
GPIO_SetBits(GPIOF,GPIO_Pin_9 | GPIO_Pin_10) stm32f4xx_gpio.c stm32f4xx_gpio.h
GPIO_ResetBits(GPIOF,GPIO_Pin_9)  stm32f4xx_gpio.c  stm32f4xx_gpio.h

 

 

 

 

 

 

2、寄存器版本需要调用的寄存器?

寄存器 源文件 头文件
RCC->AHB1ENR |= 1<<5;   stm32f4xx.h
GPIOF->MODER &= ~(3<<9*2);   stm32f4xx.h
GPIOF->OTYPER &=~(1<<9);   stm32f4xx.h
GPIOF->OSPEEDR &= ~(3<<9*2);   stm32f4xx.h
GPIOF->PUPDR &= ~(3<<9*2);   stm32f4xx.h
GPIOF->ODR &= ~(1<<9);   stm32f4xx.h
Stm32_Clock_Init(336,8,2,7); sys.c sys.h

相关文章:

  • 2021-07-14
  • 2022-01-26
  • 2021-12-31
  • 2022-12-23
  • 2022-02-05
  • 2021-09-22
猜你喜欢
  • 2021-04-27
  • 2022-12-23
  • 2021-12-28
  • 2021-12-11
  • 2021-10-21
  • 2022-12-23
  • 2021-04-07
相关资源
相似解决方案