点亮PC13

发布时间 2023-11-05 14:11:15作者: 流浪のwolf
#include "stm32f10x.h"                  // Device header

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