From a0cf906b69605c6d0c203b913eca0e183f260a8a Mon Sep 17 00:00:00 2001 From: zjh <1260248908@qq.com> Date: Thu, 22 Jun 2023 11:49:34 +0800 Subject: [PATCH] add:test_hash.c --- APP_Framework/Applications/app_test/Kconfig | 4 +++ APP_Framework/Applications/app_test/Makefile | 4 +++ APP_Framework/Applications/app_test/readme.md | 0 .../Applications/app_test/test_hash.c | 31 +++++++++++++++++++ 4 files changed, 39 insertions(+) create mode 100644 APP_Framework/Applications/app_test/readme.md create mode 100644 APP_Framework/Applications/app_test/test_hash.c diff --git a/APP_Framework/Applications/app_test/Kconfig b/APP_Framework/Applications/app_test/Kconfig index 45df5f5d5..1298d10b5 100644 --- a/APP_Framework/Applications/app_test/Kconfig +++ b/APP_Framework/Applications/app_test/Kconfig @@ -239,6 +239,10 @@ menu "test app" menuconfig USER_TEST_TIMER bool "Config test soft timer" default n + + menuconfig USER_TEST_HASH + bool "Config test hash" + default n endif endmenu diff --git a/APP_Framework/Applications/app_test/Makefile b/APP_Framework/Applications/app_test/Makefile index 1cf919846..9e42f459c 100644 --- a/APP_Framework/Applications/app_test/Makefile +++ b/APP_Framework/Applications/app_test/Makefile @@ -101,5 +101,9 @@ ifeq ($(CONFIG_ADD_XIZI_FETURES),y) SRC_FILES += test_timer.c endif + ifeq ($(CONFIG_USER_TEST_HASH),y) + SRC_FILES += test_hash.c + endif + include $(KERNEL_ROOT)/compiler.mk endif diff --git a/APP_Framework/Applications/app_test/readme.md b/APP_Framework/Applications/app_test/readme.md new file mode 100644 index 000000000..e69de29bb diff --git a/APP_Framework/Applications/app_test/test_hash.c b/APP_Framework/Applications/app_test/test_hash.c new file mode 100644 index 000000000..7ecccb162 --- /dev/null +++ b/APP_Framework/Applications/app_test/test_hash.c @@ -0,0 +1,31 @@ +/* +* Copyright (c) 2020 AIIT XUOS Lab +* XiUOS is licensed under Mulan PSL v2. +* You can use this software according to the terms and conditions of the Mulan PSL v2. +* You may obtain a copy of Mulan PSL v2 at: +* http://license.coscl.org.cn/MulanPSL2 +* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +* See the Mulan PSL v2 for more details. +*/ + +/** +* @file: test_hash.c +* @brief: a application of adc function +* @version: 1.1 +* @author: AIIT XUOS Lab +* @date: 2023/6/22 +*/ + +#include +#include +#include +#ifdef ADD_XIZI_FETURES + +void TestHash(void) +{ + printf("hallo!Hash.\n"); +} +PRIV_SHELL_CMD_FUNCTION(TestHash, a hash test sample, PRIV_SHELL_CMD_MAIN_ATTR); +#endif \ No newline at end of file