mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-18 00:45:55 +08:00
添加硬件端固件示例代码
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
|
||||
set(COMPONENT_SRCS "example.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ". include")
|
||||
register_component()
|
||||
@@ -0,0 +1,5 @@
|
||||
#
|
||||
# "main" pseudo-component makefile.
|
||||
#
|
||||
# (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
|
||||
#include "example.h"
|
||||
#include <stdio.h>
|
||||
void example()
|
||||
{
|
||||
printf("example\n");
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
#ifndef _IOT_EXAMPLE_H_
|
||||
#define _IOT_EXAMPLE_H_
|
||||
|
||||
|
||||
void example();
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user