当前位置:网站首页>ESP32构解工程添加组件
ESP32构解工程添加组件
2022-07-07 11:19:00 【Lee1989琦】
一、顶层文件CMakeList.txt
# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
include($ENV{
IDF_PATH}/tools/cmake/project.cmake)
project(3_4_lcd)工程名字这里是复制别人的组件,除工程名自己修改之外其他不变
- 组件文件CMakeList.txt
- 无论是app_main.c还是其他组件都需要有CMakeList.txt
二、组件文件CMakeList.txt
idf_component_register(SRCS "Lcd.c"
//组件下.c文件名字
INCLUDE_DIRS "."
//当前文件目录下
REQUIRES driver)
//引用了esp-idf的组件等于stm32库函数
三、组件文件引用其他组件
- 在其他点c文件下引入其他点c文件只需要在CmakeList文件下引入对应头文件如
边栏推荐
- - Oui. Migration entièrement automatisée de la Sous - base de données des tableaux d'effets sous net
- Leetcode skimming: binary tree 23 (mode in binary search tree)
- 【学习笔记】线段树选做
- 解决缓存击穿问题
- Find ID value MySQL in string
- .Net下极限生产力之efcore分表分库全自动化迁移CodeFirst
- MongoDB复制(副本集)总结
- Leetcode brush question: binary tree 24 (the nearest common ancestor of binary tree)
- regular expression
- 高瓴投的澳斯康生物冲刺科创板:年营收4.5亿 丢掉与康希诺合作
猜你喜欢
Sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]
DETR介绍
centso7 openssl 报错Verify return code: 20 (unable to get local issuer certificate)
【学习笔记】zkw 线段树
云检测2020:用于高分辨率遥感图像中云检测的自注意力生成对抗网络Self-Attentive Generative Adversarial Network for Cloud Detection
Leetcode skimming: binary tree 22 (minimum absolute difference of binary search tree)
红杉中国完成新一期90亿美元基金募集
Adopt a cow to sprint A shares: it plans to raise 1.85 billion yuan, and Xu Xiaobo holds nearly 40%
《ASP.NET Core 6框架揭秘》样章[200页/5章]
JS缓动动画原理教学(超细节)
随机推荐
【无标题】
Layer pop-up layer closing problem
test
.Net下極限生產力之efcore分錶分庫全自動化遷移CodeFirst
Practical example of propeller easydl: automatic scratch recognition of industrial parts
.Net下极限生产力之efcore分表分库全自动化迁移CodeFirst
谷歌浏览器如何重置?谷歌浏览器恢复默认设置?
智云健康上市:市值150亿港元 SIG经纬与京新基金是股东
- Oui. Migration entièrement automatisée de la Sous - base de données des tableaux d'effets sous net
DrawerLayout禁止侧滑显示
JS determines whether an object is empty
PHP calls the pure IP database to return the specific address
初学XML
Leetcode skimming: binary tree 27 (delete nodes in the binary search tree)
云检测2020:用于高分辨率遥感图像中云检测的自注意力生成对抗网络Self-Attentive Generative Adversarial Network for Cloud Detection
API query interface for free mobile phone number ownership
Smart cloud health listed: with a market value of HK $15billion, SIG Jingwei and Jingxin fund are shareholders
Shortcut key of Bash
[learning notes] zkw segment tree
Steps of building SSM framework