#include"stm32f10x.h"
void delay(unsigned int i)
{
unsigned int a,b;
for(a=0;a++;a<i)
for(b=0;b++;b<i);
}
int main(void)
{
RCC_APB2ENR |=((1)<<3);
GPIOB->CRL&=((0x0f) <<(4*0));
GPIOB->CRL|=((1)<<(4*0));
while(1)
{
GPIOB->OD&=~(1<<0);
delay(0xffff);
GPIOB->ODR|=(1<<0);
}
} |
for(a=0;a++;a<i) // 没见过这种语法。看不懂是啥。 3个分号啊?