From 686248bd930a0cb22de7a30459d507966dbce3e8 Mon Sep 17 00:00:00 2001 From: AceVest Date: Fri, 27 Jul 2018 15:41:36 +0800 Subject: [PATCH] ... --- rtos/components/utils/CMakeLists.txt | 5 +++++ rtos/components/utils/Kconfig | 0 rtos/components/utils/Kconfig.projbuild | 0 rtos/components/utils/component.mk | 0 rtos/components/utils/debug.S | 6 ++++++ rtos/components/utils/debug.c | 13 +++++++++++++ rtos/components/utils/debug.h | 14 ++++++++++++++ rtos/components/utils/utils.h | 12 ++++++++++++ 8 files changed, 50 insertions(+) create mode 100644 rtos/components/utils/CMakeLists.txt create mode 100644 rtos/components/utils/Kconfig create mode 100644 rtos/components/utils/Kconfig.projbuild create mode 100644 rtos/components/utils/component.mk create mode 100644 rtos/components/utils/debug.S create mode 100644 rtos/components/utils/debug.c create mode 100644 rtos/components/utils/debug.h create mode 100644 rtos/components/utils/utils.h diff --git a/rtos/components/utils/CMakeLists.txt b/rtos/components/utils/CMakeLists.txt new file mode 100644 index 0000000..3328262 --- /dev/null +++ b/rtos/components/utils/CMakeLists.txt @@ -0,0 +1,5 @@ +ADD_LIBRARY(utils STATIC + debug.c + debug.S +) + diff --git a/rtos/components/utils/Kconfig b/rtos/components/utils/Kconfig new file mode 100644 index 0000000..e69de29 diff --git a/rtos/components/utils/Kconfig.projbuild b/rtos/components/utils/Kconfig.projbuild new file mode 100644 index 0000000..e69de29 diff --git a/rtos/components/utils/component.mk b/rtos/components/utils/component.mk new file mode 100644 index 0000000..e69de29 diff --git a/rtos/components/utils/debug.S b/rtos/components/utils/debug.S new file mode 100644 index 0000000..588e5a4 --- /dev/null +++ b/rtos/components/utils/debug.S @@ -0,0 +1,6 @@ +.global asm_debug +asm_debug: + nop + nop + nop + ret diff --git a/rtos/components/utils/debug.c b/rtos/components/utils/debug.c new file mode 100644 index 0000000..05062d9 --- /dev/null +++ b/rtos/components/utils/debug.c @@ -0,0 +1,13 @@ +/* + * ------------------------------------------------------------------------ + * File Name: debug.c + * Author: Zhao Yanbai + * 2018-07-07 14:02:11 Saturday CST + * Description: none + * ------------------------------------------------------------------------ + */ + +int debug() { + + return 0; +} diff --git a/rtos/components/utils/debug.h b/rtos/components/utils/debug.h new file mode 100644 index 0000000..2abfbdc --- /dev/null +++ b/rtos/components/utils/debug.h @@ -0,0 +1,14 @@ +/* + * ------------------------------------------------------------------------ + * File Name: debug.h + * Author: Zhao Yanbai + * 2018-07-26 15:47:46 Thursday CST + * Description: none + * ------------------------------------------------------------------------ + */ + +#pragma once + +void debug(); + +void asm_debug(); diff --git a/rtos/components/utils/utils.h b/rtos/components/utils/utils.h new file mode 100644 index 0000000..e715ddf --- /dev/null +++ b/rtos/components/utils/utils.h @@ -0,0 +1,12 @@ +/* + * ------------------------------------------------------------------------ + * File Name: ../components/utils/utils.h + * Author: Zhao Yanbai + * 2018-07-27 15:35:19 星期五 CST + * Description: none + * ------------------------------------------------------------------------ + */ + +#pragma once + +#include "debug.h" -- 2.44.0