添加硬件端示例代码

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,3 @@
set(COMPONENT_SRCS "example2.c")
set(COMPONENT_ADD_INCLUDEDIRS ". include")
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.)

View File

@@ -0,0 +1,7 @@
#include "example2.h"
#include <stdio.h>
void example2()
{
printf("example2\n");
}

View File

@@ -0,0 +1,9 @@
#ifndef _IOT_EXAMPLE2_H_
#define _IOT_EXAMPLE2_H_
void example2();
#endif