#define RCC_APB2ENR *(volatile unsigned int *)(0x40021018) //通过数据手册查询这个到这个寄存器,通过指针的方式,指向这个地址。
#define GPIOC_CRH *(volatile unsigned int *)(0x40011004)
#define GPIOC_ODR *(volatile unsigned int *)(0x4001100C)int main(void)
{RCC_APB2ENR |= 1<<4;GPIOC_CRH &= ~ (0x0f<<4*5);GPIOC_CRH |= 1<<4*5;GPIOC_ODR = 0x0;///GPIOC_ODR = 0xffff;while(1){}}