mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-18 00:45:55 +08:00
添加硬件端示例代码
This commit is contained in:
3
esp-idf/components/example2/CMakeLists.txt
Normal file
3
esp-idf/components/example2/CMakeLists.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "example2.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ". include")
|
||||
register_component()
|
||||
5
esp-idf/components/example2/component.mk
Normal file
5
esp-idf/components/example2/component.mk
Normal file
@@ -0,0 +1,5 @@
|
||||
#
|
||||
# "main" pseudo-component makefile.
|
||||
#
|
||||
# (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
|
||||
|
||||
7
esp-idf/components/example2/example2.c
Normal file
7
esp-idf/components/example2/example2.c
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
#include "example2.h"
|
||||
#include <stdio.h>
|
||||
void example2()
|
||||
{
|
||||
printf("example2\n");
|
||||
}
|
||||
9
esp-idf/components/example2/include/example2.h
Normal file
9
esp-idf/components/example2/include/example2.h
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
#ifndef _IOT_EXAMPLE2_H_
|
||||
#define _IOT_EXAMPLE2_H_
|
||||
|
||||
|
||||
void example2();
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user