#include "stm32f10x.h" // Device header int main(void) { // 打卡GPIOC的时钟 RCC->APB2ENR = 0x00000010; GPIOC->CRH = 0x00300000; // 控制PC13等是否点亮 全0 为亮 00002000是灭灯 GPIOC->ODR = 0x00000000; while(1) { } }
#include "stm32f10x.h" // Device header int main(void) { // 打卡GPIOC的时钟 RCC->APB2ENR = 0x00000010; GPIOC->CRH = 0x00300000; // 控制PC13等是否点亮 全0 为亮 00002000是灭灯 GPIOC->ODR = 0x00000000; while(1) { } }