【文件属性】:
文件名称:STM32 GPIO
文件大小:427KB
文件格式:RAR
更新时间:2015-08-22 04:53:33
STM32 GPIO
void LedFlash(void)
{
static unsigned char leds = 0x01;
leds <<= 1;
if ( (leds&0x0f;) == 0)
leds = 0x01;
GPIOC->ODR = (GPIOC->ODR & 0xFFFF00FF) | (leds << 8);
}
STM32 LED点灯程序
void Delay(unsigned long time)
{unsigned long i,j;
for(j=0; j