先看头文件
#ifndef __GPIO_LED72MHZ__
#define __GPIO_LED72MHZ__
#define GPIOB_BASE 0x40010c00
#define GPIOB_CRH (GPIOB_BASE + 0x04)
#define GPIOB_ODR (GPIOB_BASE + 0x0c)
#define rGPIOB_CRH (*(unsigned int *)GPIOB_CRH)
#define rGPIOB_ODR (*(unsigned int *)GPIOB_ODR)
#define RCC_BASE 0x40021000
#define RCC_APB2ENR (RCC_BASE + 0x18)
#define rRCC_APB2ENR (*(unsigned int *)RCC_APB2ENR)
void ledInit(void);
void ledFlash(void