为了以后切换编译器方便,尽量保持源码的兼容性。
布尔值
C 默认用的是 _Bool ,这个类型c++不认
如果想用 bool 的话,添加头文件
#include <stdbool.h>
extern
c 头文件创建的时候,这么写
#ifndef __AT32F415_BOARD_H
#define __AT32F415_BOARD_H
#ifdef __cplusplus
extern "C" {
#endif //__cplusplus
//这里是c相关的内容
//头文件,接口函数等
////////
#ifdef __cplusplus
}
#endif //__cplusplus
#endif
未完…………