当前位置:网站首页>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文件下引入对应头文件如
边栏推荐
- ISPRS2021/遥感影像云检测:一种地理信息驱动的方法和一种新的大规模遥感云/雪检测数据集
- Shortcut key of Bash
- Enterprise custom form engine solution (XII) -- experience code directory structure
- 【无标题】
- 【无标题】
- leecode3. 无重复字符的最长子串
- . Net ultimate productivity of efcore sub table sub database fully automated migration codefirst
- [learning notes] zkw segment tree
- Practical case: using MYCAT to realize read-write separation of MySQL
- Analysis of DHCP dynamic host setting protocol
猜你喜欢
How to continue after handling chain interruption / sub chain error removed from scheduling
Sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]
Leetcode question brushing: binary tree 26 (insertion operation in binary search tree)
Differences between MySQL storage engine MyISAM and InnoDB
通过Keil如何查看MCU的RAM与ROM使用情况
高瓴投的澳斯康生物冲刺科创板:年营收4.5亿 丢掉与康希诺合作
About the problem of APP flash back after appium starts the app - (solved)
Practical example of propeller easydl: automatic scratch recognition of industrial parts
Ogre入门尝鲜
Smart cloud health listed: with a market value of HK $15billion, SIG Jingwei and Jingxin fund are shareholders
随机推荐
JS缓动动画原理教学(超细节)
MongoDB的用户管理总结
Grep of three swordsmen in text processing
Japanese government and enterprise employees got drunk and lost 460000 information USB flash drives. They publicly apologized and disclosed password rules
迅为iTOP-IMX6ULL开发板Pinctrl和GPIO子系统实验-修改设备树文件
飞桨EasyDL实操范例:工业零件划痕自动识别
How does MySQL create, delete, and view indexes?
《ASP.NET Core 6框架揭秘》样章[200页/5章]
How to continue after handling chain interruption / sub chain error removed from scheduling
php——laravel缓存cache
How to make the new window opened by electorn on the window taskbar
分屏bug 小记
CMU15445 (Fall 2019) 之 Project#2 - Hash Table 详解
Differences between MySQL storage engine MyISAM and InnoDB
The URL modes supported by ThinkPHP include four common modes, pathinfo, rewrite and compatibility modes
JS中为什么基础数据类型可以调用方法
Leetcode question brushing: binary tree 26 (insertion operation in binary search tree)
“新红旗杯”桌面应用创意大赛2022
如何让electorn打开的新窗口在window任务栏上面
Aosikang biological sprint scientific innovation board of Hillhouse Investment: annual revenue of 450million yuan, lost cooperation with kangxinuo