当前位置:网站首页>Macro definition and multiple parameters
Macro definition and multiple parameters
2022-07-08 01:13:00 【__ Small crisp__】
Macro definition
Macro definition and multiple parameters
because keil Configured library function package , The following error occurred during compilation :
.\Objects\new.axf: Error: L6218E: Undefined symbol assert_param (referred from stm32f4xx_gpio.o)
as a result of keil Fewer macros in the configuration
stay stm32f4xx.h in , You can see
It can be seen that there is no configuration USE_STDPERIPH_DRIVER Can't contain stm32f4xx_conf.h
See a usage
#if defined A|| defined B /* A or B Defined , Then select execute printf1, Otherwise execution printf2 */
printf1(".....");
#else
printf2(".....");
#endif
#if !defined A|| !defined B /* A or B Undefined , Then select execute printf1, Otherwise execution printf2 */
printf1(".....");
#else
printf2(".....");
#endif
#if defined and #if !defined Can define parameters with multiple macros
#ifdef and #ifndef Parameters can only be defined with a macro , You can't use expressions
边栏推荐
- Su embedded training - Day8
- 2.非线性回归
- 解决报错:npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
- 完整的模型训练套路
- [deep learning] AI one click to change the sky
- Jemter distributed
- 130. 被圍繞的區域
- 12. RNN is applied to handwritten digit recognition
- Fundamentals - integrating third-party technology
- Chapter 5 neural network
猜你喜欢
Generic configuration legend
Basic realization of line chart (II)
High quality USB sound card / audio chip sss1700 | sss1700 design 96 kHz 24 bit sampling rate USB headset microphone scheme | sss1700 Chinese design scheme explanation
130. 被围绕的区域
Invalid V-for traversal element style
What does interface testing test?
Malware detection method based on convolutional neural network
Basic implementation of pie chart
Jemter distributed
General configuration tooltip
随机推荐
y59.第三章 Kubernetes从入门到精通 -- 持续集成与部署(三二)
The weight of the product page of the second level classification is low. What if it is not included?
[note] common combined filter circuit
C#中string用法
Jemter distributed
letcode43:字符串相乘
Fofa attack and defense challenge record
Using GPU to train network model
13. Enregistrement et chargement des modèles
Several frequently used OCR document scanning tools | no watermark | avoid IQ tax
130. Surrounding area
Recommend a document management tool mendely Reference Manager
串口接收一包数据
AI zhetianchuan ml novice decision tree
133. 克隆图
完整的模型验证(测试,demo)套路
Saving and reading of network model
2.非线性回归
What does interface testing test?
4.交叉熵