int main(void)
{(*(volatile unsigned int*)(0x40021000+0x18))=1<<2; //APB2,GPIOA 时钟使能
(*(volatile unsigned int*)(0x40010800+0x00))=3; //11:输出模式,适中电流推动/吸入能力
while(1)
{
(*(unsigned int*)(0x40010800+0x0C))=1; //GPIOA_ODT
(*(unsigned int*)(0x40010800+0x0C))=0;
}
}
|