当前位置:网站首页>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文件下引入对应头文件如
边栏推荐
- How to make the new window opened by electorn on the window taskbar
- Analysis of DHCP dynamic host setting protocol
- Leetcode brush question: binary tree 24 (the nearest common ancestor of binary tree)
- HZOJ #235. Recursive implementation of exponential enumeration
- JS缓动动画原理教学(超细节)
- Cookie and session comparison
- 【学习笔记】zkw 线段树
- 【无标题】
- [untitled]
- 2022-07-07 Daily: Ian Goodfellow, the inventor of Gan, officially joined deepmind
猜你喜欢
Isprs2021/ remote sensing image cloud detection: a geographic information driven method and a new large-scale remote sensing cloud / snow detection data set
. Net ultimate productivity of efcore sub table sub database fully automated migration codefirst
日本政企员工喝醉丢失46万信息U盘,公开道歉又透露密码规则
error LNK2019: 无法解析的外部符号
《ASP.NET Core 6框架揭秘》样章[200页/5章]
PAcP learning note 1: programming with pcap
Analysis of DHCP dynamic host setting protocol
Per capita Swiss number series, Swiss number 4 generation JS reverse analysis
Practical example of propeller easydl: automatic scratch recognition of industrial parts
Leetcode skimming: binary tree 22 (minimum absolute difference of binary search tree)
随机推荐
高瓴投的澳斯康生物冲刺科创板:年营收4.5亿 丢掉与康希诺合作
JNA learning notes 1: Concepts
[untitled]
事务的七种传播行为
Sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]
【学习笔记】zkw 线段树
Layer pop-up layer closing problem
.Net下极限生产力之efcore分表分库全自动化迁移CodeFirst
Shortcut key of Bash
@What is the difference between resource and @autowired?
学习突围2 - 关于高效学习的方法
免费手机号码归属地API查询接口
Query whether a field has an index with MySQL
MongoDB 遇见 spark(进行整合)
[learning notes] zkw segment tree
【无标题】
DrawerLayout禁止侧滑显示
Analysis of DHCP dynamic host setting protocol
怎样重置火狐浏览器
自定义线程池拒绝策略