commit b643e4d8210280171a72fa172dc09b357c41ccca Author: 高熔琦 Date: Mon Dec 22 15:13:55 2025 +0800 FirstCommit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bb2f807 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +# 先关闭所有 +* +!/.gitignore + +# 仅上传custom目录下的文件 +!/custom/ +!/custom/** \ No newline at end of file diff --git a/custom/custom.mk b/custom/custom.mk new file mode 100644 index 0000000..2308d5b --- /dev/null +++ b/custom/custom.mk @@ -0,0 +1,7 @@ +include tools/scripts/config.mk + +CUSTOM_DIR := custom + +ifeq ($(strip $(DEMO_SUPPORT)),n) +include $(CUSTOM_DIR)/custom_main/custom_main.mk +endif \ No newline at end of file diff --git a/custom/custom_main/custom_main.mk b/custom/custom_main/custom_main.mk new file mode 100644 index 0000000..e8369d0 --- /dev/null +++ b/custom/custom_main/custom_main.mk @@ -0,0 +1,6 @@ + +CUSTOM_MAIN_DIR := custom/custom_main + + +OC_FILES += $(CUSTOM_MAIN_DIR)/src/custom_main.c +INC += -I'$(CUSTOM_MAIN_DIR)/inc' \ No newline at end of file diff --git a/custom/custom_main/inc/custom_main.h b/custom/custom_main/inc/custom_main.h new file mode 100644 index 0000000..a581448 --- /dev/null +++ b/custom/custom_main/inc/custom_main.h @@ -0,0 +1,13 @@ +/********************************************************* +* @file cm_main.h +* @brief ML302 OpenCPU main header file +* Copyright (c) 2019 China Mobile IOT. +* All rights reserved. +* created by XieGangLiang 2019/10/08 +********************************************************/ +#ifndef __CM_MAIN_H__ +#define __CM_MAIN_H__ + + + +#endif diff --git a/custom/custom_main/src/custom_main.c b/custom/custom_main/src/custom_main.c new file mode 100644 index 0000000..88903a9 --- /dev/null +++ b/custom/custom_main/src/custom_main.c @@ -0,0 +1,6 @@ + + +int cm_opencpu_entry(char * param) +{ + return 0; +}