添加硬件端示例代码

This commit is contained in:
kerwincui
2021-05-10 13:42:01 +08:00
parent dd6fe0d3bf
commit daec4080c4
18 changed files with 1481 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
set(COMPONENT_SRCS "main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View 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
View 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();
}