MDK头文件定义空函数中无参数要加(void) eg. void led_init() ; 要写成 void led_init(void); 转载于:https://www.cnblogs.com/520sbc/p/7756859.html