Search found 1 match

by sunny913765809
Wed Jun 10, 2020 8:55 am
Forum: ESP IoT Solution 中文讨论版
Topic: 怎么在esp32的idf里面加入自己的 .c .h文件?
Replies: 3
Views: 13207

怎么在esp32的idf里面加入自己的 .c .h文件?

在esp-idf\examples\wifi\getting_started\mystation工程下,加入一个components目录,里面包含一个drv.c 和 drv.h 并加入了CMakeLists.txt和component.mk,但是编译时总是提示错误:error: drv.h: No such file or directory. 我少了什么步骤没做吗? CMakeLists.txt内容:idf_component_register(SRCS "user.c" INCLUDE_DIRS .) component.mk内容:COMPONENT_ADD_INCLUDEDIRS := .