当前位置:网站首页>Embedded C second learning notes
Embedded C second learning notes
2022-06-26 01:16:00 【m0_ forty-six million three hundred and twenty-one thousand one】
1.typedef
Create a new name for a new data type , It can simplify the definition of variables .
In embedded , Often use typedef Define the structure and enumeration system
2. Structure struct { }
The general structure :struct Structure name
{ Type name 1 member 1;
Type name 2 member 2;
.............
Type name n member n
};
3. Macro definition #define
Global parameter definition , Can define basic operation rules
4. Conditional compilation
(1) Select compilation , That is, compile selectively at compile time , Not all statements will be compiled , Compile only the statements that meet the conditions
#if ()
******
#endif
(2) The header file can be defined without repeated compilation
#ifndef
边栏推荐
猜你喜欢
随机推荐
RT-Thread 项目工程搭建和配置--(Env Kconfig)
Technical introduction - detailed explanation of chip manufacturing process
Making 3D romantic cool photo album [source code attached]
Black box test - decision table method of test cases
Vscode shortcut
Installation and startup of redis
信息收集的利器,Google骇客语法
C another new class is ICO? And app Use of config
Musk vs. jobs, who is the greatest entrepreneur in the 21st century
新库上线 | CnOpenDataA股上市公司IPO申报发行文本数据
原生DOM与虚拟DOM
智慧家——全家具功能
关于HC-12无线射频模块使用
Containerd client comparison
Motor monitoring system based on MCGS and stm32
Solution to MySQL error code 2003
[从零开始学习FPGA编程-44]:视野篇 - 集成电路助力数字化时代高质量发展-1-集成电路芯片主要形态
SPI protocol
生信周刊第33期
MOS管防倒灌电路设计及其过程分析









