| 代码演示, 
#include "stm32f10x.h"                  // Device header
#include "Delay.h"
int main(void)
{
        RCC->APB2ENR = 0x00000004;     //打开GPIOA使能
        GPIOA->CRH = 0x00003000;       //配置PA11引脚为通用推挽输出模式
        while(1)
        {
        GPIOA->ODR = 0x00000800;       //PA11输出高电平
        Delay_ms(1000);
        GPIOA->ODR = 0x00000000;       //PA11输出低电平
        Delay_ms(1000);
        }
}
 |