mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-19 01:15:54 +08:00
添加硬件端示例代码
This commit is contained in:
4
esp-idf/main/CMakeLists.txt
Normal file
4
esp-idf/main/CMakeLists.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
set(COMPONENT_SRCS "main.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
register_component()
|
||||
5
esp-idf/main/component.mk
Normal file
5
esp-idf/main/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.)
|
||||
|
||||
17
esp-idf/main/main.c
Normal file
17
esp-idf/main/main.c
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include "example1.h"
|
||||
#include "example2.h"
|
||||
|
||||
/******************************************************************************
|
||||
* FunctionName : app_main
|
||||
* Description : entry of user application, init user function here
|
||||
* Parameters : none
|
||||
* Returns : none
|
||||
*******************************************************************************/
|
||||
void app_main()
|
||||
{
|
||||
printf("in app code...\n");
|
||||
example1();
|
||||
example2();
|
||||
}
|
||||
Reference in New Issue
Block a user