当前位置:网站首页>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
边栏推荐
- Common configurations in rectangular coordinate system
- AI zhetianchuan ml novice decision tree
- EDP to LVDS conversion design circuit | EDP to LVDS adapter board circuit | capstone/cs5211 chip circuit schematic reference
- Cve-2022-28346: Django SQL injection vulnerability
- General configuration title
- 9.卷积神经网络介绍
- Serial port receives a packet of data
- 利用GPU训练网络模型
- swift获取url参数
- 跨模态语义关联对齐检索-图像文本匹配(Image-Text Matching)
猜你喜欢
1. Linear regression
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
NVIDIA Jetson test installation yolox process record
利用GPU训练网络模型
133. Clone map
2022-07-07: the original array is a monotonic array with numbers greater than 0 and less than or equal to K. there may be equal numbers in it, and the overall trend is increasing. However, the number
13. Enregistrement et chargement des modèles
跨模态语义关联对齐检索-图像文本匹配(Image-Text Matching)
Ag9311maq design 100W USB type C docking station data | ag9311maq is used for 100W USB type C to HDMI with PD fast charging +u3+sd/cf docking station scheme description
新库上线 | CnOpenData中国星级酒店数据
随机推荐
Ag9310 for type-C docking station scheme circuit design method | ag9310 for type-C audio and video converter scheme circuit design reference
Basic realization of line chart (II)
Recommend a document management tool mendely Reference Manager
Su embedded training - C language programming practice (implementation of address book)
Ag9311maq design 100W USB type C docking station data | ag9311maq is used for 100W USB type C to HDMI with PD fast charging +u3+sd/cf docking station scheme description
Chapter VIII integrated learning
Cs5261type-c to HDMI alternative ag9310 | ag9310 alternative
133. 克隆图
Generic configuration legend
Complete model training routine
5. Over fitting, dropout, regularization
HDMI to VGA acquisition HD adapter scheme | HDMI to VGA 1080p audio and video converter scheme | cs5210 scheme design explanation
解决报错:npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
letcode43:字符串相乘
NVIDIA Jetson test installation yolox process record
[reprint] solve the problem that CONDA installs pytorch too slowly
C# ?,?.,?? .....
Two methods for full screen adaptation of background pictures, background size: cover; Or (background size: 100% 100%;)
10.CNN应用于手写数字识别
Basic realization of line graph