所用到的一些c语言知识
C语言数据类型
C语言宏定义
关键字:#define
1 |
C语言typedef
将一个比较长的变量换个名字
1 | typedef unsigned char uint8_t; |
C语言结构体
1 | GPIO_InitTypeDef GPIO_InitStructure;//定义结构体 |
C语言枚举
enum
PVD
1 | const int num = 10; |
1 | constexpr int value = 42; // 编译时常量 |
关键字:#define
1 |
将一个比较长的变量换个名字
1 | typedef unsigned char uint8_t; |
1 | GPIO_InitTypeDef GPIO_InitStructure;//定义结构体 |
enum
1 | const int num = 10; |
1 | constexpr int value = 42; // 编译时常量 |