/*STM32最小系统点灯*/
int main()
{
//使能GPIOA时钟 0x4002 1000+0x18 起始地址加偏移地址
*(unsigned int*) 0x40021018 |=0x01 << 4;
//配置GPIOA输出模式 0x4001 1000+0x04
*(unsigned int*) 0x40011004 |=0x01 << 20;
//配置GPIOA输出低电平 0x4001 1000+0ch
*(unsigned int*) 0x400110ch &=~(0x01<<13);
}
工程文件