当前位置:网站首页>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文件下引入对应头文件如


边栏推荐
- 线程池拒绝策略最佳实践
- 人均瑞数系列,瑞数 4 代 JS 逆向分析
- The difference between cache and buffer
- test
- Cloud detection 2020: self attention generation countermeasure network for cloud detection in high-resolution remote sensing images
- What kind of methods or functions can you view the laravel version of a project?
- 智云健康上市:市值150亿港元 SIG经纬与京新基金是股东
- 测试下摘要
- ISPRS2021/遥感影像云检测:一种地理信息驱动的方法和一种新的大规模遥感云/雪检测数据集
- Differences between MySQL storage engine MyISAM and InnoDB
猜你喜欢
随机推荐
《开源圆桌派》第十一期“冰与火之歌”——如何平衡开源与安全间的天然矛盾?
How to reset Google browser? Google Chrome restore default settings?
centso7 openssl 报错Verify return code: 20 (unable to get local issuer certificate)
Enterprise custom form engine solution (XII) -- experience code directory structure
Sequoia China completed the new phase of $9billion fund raising
处理链中断后如何继续/子链出错removed from scheduling
飞桨EasyDL实操范例:工业零件划痕自动识别
HZOJ #235. Recursive implementation of exponential enumeration
PAcP learning note 1: programming with pcap
Cinnamon Applet 入门
Steps of building SSM framework
高瓴投的澳斯康生物冲刺科创板:年营收4.5亿 丢掉与康希诺合作
《ASP.NET Core 6框架揭秘》样章[200页/5章]
学习突围2 - 关于高效学习的方法
服务器到服务器 (S2S) 事件 (Adjust)
Leetcode skimming: binary tree 22 (minimum absolute difference of binary search tree)
事务的七种传播行为
Grep of three swordsmen in text processing
Coscon'22 community convening order is coming! Open the world, invite all communities to embrace open source and open a new world~
Isprs2021/ remote sensing image cloud detection: a geographic information driven method and a new large-scale remote sensing cloud / snow detection data set









