添加硬件端固件示例代码

This commit is contained in:
kerwincui
2021-07-04 17:59:55 +08:00
parent e747bd935e
commit 224282d561
23 changed files with 5549 additions and 3 deletions

View File

@@ -0,0 +1,4 @@
set(COMPONENT_SRCS "example.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 "example.h"
#include <stdio.h>
void example()
{
printf("example\n");
}

View File

@@ -0,0 +1,9 @@
#ifndef _IOT_EXAMPLE_H_
#define _IOT_EXAMPLE_H_
void example();
#endif