跑马灯程序

下图文件在/LED/User/main.c

跑马灯程序_第1张图片
/User/main.c
跑马灯程序_第2张图片
/LED/STM32F2xx_StdPeriph_Driver/inc/stm32f2xx_gpio.h
//来自文件/LED/CMSIS/CM3/DeviceSupport/ST/STM32F2xx/stm32f2xx.h
0995 #define PERIPH_BASE             ((uint32_t)0x40000000)/*|< Peripheral base address in the alias region */
1005 #define AHB1PERIPH_BASE         (PERIPH_BASE + 0x00020000)
1056 #define GPIOD_BASE              (AHB1PERIPH_BASE + 0x0C00)
1156 #define GPIOD                   ((GPIO_TypeDef *) GPIOD_BASE)

STM32F20x LQFP100 pinout

跑马灯程序_第3张图片
STM32F20x LQFP100 pinout
注释
跑马灯程序_第4张图片
STM32F2xxxx Reference Manual.pdf 第134页

GPIO

registers name
configuration registers GPIOx_MODER
configuration registers GPIOx_OTYPER
configuration registers GPIOx_OSPEEDR
configuration registers GPIOx_ PUPDR
data registers GPIOx_IDR
configuration registers GPIOx_ODR
set/reset register GPIOx_BSRR
locking register GPIOx_LCKR
跑马灯程序_第5张图片
STM32F2xxxx Reference Manual.pdf 第148页
void Uart2Init(void);        /LED/User/uart.c
跑马灯程序_第6张图片
/LED/STM32F2xx_StdPeriph_Driver/inc/stm32f2xx_usart.h

你可能感兴趣的:(跑马灯程序)