使用寄存器点亮LED1(PE5),,LED不亮
#include"stm32f10x.h"int main(void)
{
*(unsigned int*)0x40021018 |=(1<<6);//打开APB2时钟
*(unsigned int*)0x40011800 &=~(3<<(4*5));//配置模式
*(unsigned int*)0x4001180C |=(1<<5);//配置输出寄存器
while (1)
{
}
}
void SystemInit(void)
{
}
页:
[1]