添加智能灯固件代码

This commit is contained in:
kerwincui
2021-07-13 17:14:51 +08:00
parent 332f74dd17
commit ecc0b91b8b
2568 changed files with 229441 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
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_EXAMPLE2_H_
#define _IOT_EXAMPLE2_H_
void example();
#endif