STM32F407 跑马灯实验
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 |

浙公网安备 33010602011771号