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)
{
}
}