stm32接上电源
#include "stm32f10x.h" int main(void) { //配置RCC寄存器使能GPIO时钟 *(unsigned int *)0X40021018 |= (1<<2); // 配置 推挽输出 *(unsigned int *)0X40010800 |= (1<<(4*2)); //PA1 ODR PA2 (1<<2) *(unsigned int *)0X4001080C &= ~(1<<2); while(1); } void SystemInit(void) { }
原文:https://www.cnblogs.com/mingjing/p/13610138.html