int main(void)
{
InitDelay(); //delay init
InitDebug(); //init debug
UART_Initialize(); //uart init
//KEY_Initialize(); //key init
printf("*\n");
PWM_Gpio_Init(); //pwm channel gpio PC9 PWM1-CH6
PWM_Initialize(); //pwm init
#if 0
PWM_CaptureGpio_Init(); //capture gpio init PA1 PWM0-CH0
PWM_CaptureFreq_Init(); //capture frequence init
while(1)
{
}
#endif
}
大佬们,我main函数去掉了while(1){},程序不停的从头开始执行,不停的打印*号,请问大佬们,为啥 |