#ifndef AP_HAL_H#define AP_HAL_HIAR中提示错误:Warning[Pa050]: non-native end of line sequence detected (this diagnostic is only issued once)
最后结尾缺少#endif
#if 或 #ifdef 后是需要 #endif 的,来表示条件编译的结束的
标准语法需要有#endif结尾