1.配置RCC_APB2ENR(见参考手册7.3.7)
2.配置GPIOC_CRH(见参考手册8.2.2)
3.配置GPIOC_ODR(见参考手册8.2.4)
#include "stm32f10x.h" // Device header
int main(void)
{
RCC->APB2ENR = 0x00000010;
GPIOC->CRH = 0x00300000;
GPIOC->ODR = 0x00000000;
while(1)
{
}
}
标签:8.2,参考手册,点灯,APB2ENR,STM32,GPIOC,寄存器,CRH,RCC
From: https://www.cnblogs.com/ykc3/p/17471388.html