diff --git a/applications/connection_demo/zigbee_demo/zigbee_receive_demo.c b/applications/connection_demo/zigbee_demo/zigbee_receive_demo.c index 74032013f..18ff257d4 100644 --- a/applications/connection_demo/zigbee_demo/zigbee_receive_demo.c +++ b/applications/connection_demo/zigbee_demo/zigbee_receive_demo.c @@ -15,7 +15,7 @@ * @brief: using zigbee to receive message * @version: 1.0 * @author: AIIT XUOS Lab -* @date: 2020/4/25 +* @date: 2021/4/30 * */ #include diff --git a/applications/connection_demo/zigbee_demo/zigbee_send_demo.c b/applications/connection_demo/zigbee_demo/zigbee_send_demo.c index 2dc6d3e5f..7b021fb55 100644 --- a/applications/connection_demo/zigbee_demo/zigbee_send_demo.c +++ b/applications/connection_demo/zigbee_demo/zigbee_send_demo.c @@ -15,7 +15,7 @@ * @brief: using zigbee to send message * @version: 1.0 * @author: AIIT XUOS Lab -* @date: 2020/4/25 +* @date: 2021/4/30 * */ #include diff --git a/applications/tflite_mnist/digit.h b/applications/tflite_mnist/digit.h index e95ea4e6b..052f4a580 100644 --- a/applications/tflite_mnist/digit.h +++ b/applications/tflite_mnist/digit.h @@ -9,6 +9,15 @@ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ + +/** +* @file: digit.h +* @brief: store digits in this file +* @version: 1.0 +* @author: AIIT XUOS Lab +* @date: 2021/4/30 +* +*/ const float mnist_digit[] = { 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, diff --git a/applications/tflite_mnist/mnistapp.cpp b/applications/tflite_mnist/mnistapp.cpp index d6a67bbda..82e7e2ea7 100644 --- a/applications/tflite_mnist/mnistapp.cpp +++ b/applications/tflite_mnist/mnistapp.cpp @@ -9,6 +9,15 @@ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ + +/** +* @file: mnistapp.cpp +* @brief: mnist function +* @version: 1.0 +* @author: AIIT XUOS Lab +* @date: 2021/4/30 +* +*/ #include #include "tensorflow/lite/micro/all_ops_resolver.h" diff --git a/applications/tflite_mnist/mnistmain.c b/applications/tflite_mnist/mnistmain.c index ed9b2cfc4..8a131721c 100644 --- a/applications/tflite_mnist/mnistmain.c +++ b/applications/tflite_mnist/mnistmain.c @@ -9,6 +9,16 @@ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ + +/** +* @file: mnistmain.c +* @brief: start mnist function +* @version: 1.0 +* @author: AIIT XUOS Lab +* @date: 2021/4/30 +* +*/ + #include void mnist_app(void); diff --git a/applications/tflite_mnist/model.h b/applications/tflite_mnist/model.h index be7732e31..20ddff64b 100644 --- a/applications/tflite_mnist/model.h +++ b/applications/tflite_mnist/model.h @@ -9,6 +9,15 @@ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ + +/** +* @file: model.h +* @brief: store model weights in this file +* @version: 1.0 +* @author: AIIT XUOS Lab +* @date: 2021/4/30 +* +*/ unsigned char mnist_model[] = { 0x1c, 0x00, 0x00, 0x00, 0x54, 0x46, 0x4c, 0x33, 0x14, 0x00, 0x20, 0x00, 0x04, 0x00, 0x08, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x14, 0x00, 0x00, 0x00, diff --git a/applications/tflite_mnist/tools/mnist-c-digit.py b/applications/tflite_mnist/tools/mnist-c-digit.py old mode 100644 new mode 100755 index 93c525c75..22e942787 --- a/applications/tflite_mnist/tools/mnist-c-digit.py +++ b/applications/tflite_mnist/tools/mnist-c-digit.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # ========================================================================================== # Copyright (c) 2020 AIIT XUOS Lab # XiOS is licensed under Mulan PSL v2. @@ -8,8 +9,14 @@ # 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: mnist-c-digit.py +# @brief: print image digit at command line +# @version: 1.0 +# @author: AIIT XUOS Lab +# @date: 2021/4/30 # ========================================================================================== -#!/usr/bin/env python3 + import tensorflow as tf diff --git a/applications/tflite_mnist/tools/mnist-c-model.py b/applications/tflite_mnist/tools/mnist-c-model.py old mode 100644 new mode 100755 index 9b40ddbb1..c2df449e7 --- a/applications/tflite_mnist/tools/mnist-c-model.py +++ b/applications/tflite_mnist/tools/mnist-c-model.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # ========================================================================================== # Copyright (c) 2020 AIIT XUOS Lab # XiOS is licensed under Mulan PSL v2. @@ -8,8 +9,14 @@ # 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: mnist-c-model.py +# @brief: open file path and load model +# @version: 1.0 +# @author: AIIT XUOS Lab +# @date: 2021/4/30 # ========================================================================================== -#!/usr/bin/env python3 + #tflite_file_path = 'mnist-default-quan.tflite' tflite_file_path = 'mnist.tflite' diff --git a/applications/tflite_mnist/tools/mnist-inference.py b/applications/tflite_mnist/tools/mnist-inference.py old mode 100644 new mode 100755 index a71ddd7ad..7d6409642 --- a/applications/tflite_mnist/tools/mnist-inference.py +++ b/applications/tflite_mnist/tools/mnist-inference.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # ========================================================================================== # Copyright (c) 2020 AIIT XUOS Lab # XiOS is licensed under Mulan PSL v2. @@ -8,8 +9,14 @@ # 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: mnist-inference.py +# @brief: load data amd start model omferemce +# @version: 1.0 +# @author: AIIT XUOS Lab +# @date: 2021/4/30 # ========================================================================================== -#!/usr/bin/env python3 + import tensorflow as tf diff --git a/applications/tflite_mnist/tools/mnist-train.py b/applications/tflite_mnist/tools/mnist-train.py old mode 100644 new mode 100755 index 39815be27..02135bff7 --- a/applications/tflite_mnist/tools/mnist-train.py +++ b/applications/tflite_mnist/tools/mnist-train.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # ========================================================================================== # Copyright (c) 2020 AIIT XUOS Lab # XiOS is licensed under Mulan PSL v2. @@ -8,8 +9,14 @@ # 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: mnist-train.py +# @brief: model training +# @version: 1.0 +# @author: AIIT XUOS Lab +# @date: 2021/4/30 # ========================================================================================== -#!/usr/bin/env python3 + import os import tensorflow as tf diff --git a/framework/connection/Adapter/include/xs_adapter_zigbee.h b/framework/connection/Adapter/include/xs_adapter_zigbee.h index 8043d9caa..e802297cd 100644 --- a/framework/connection/Adapter/include/xs_adapter_zigbee.h +++ b/framework/connection/Adapter/include/xs_adapter_zigbee.h @@ -15,7 +15,7 @@ * @brief: head file * @version: 1.0 * @author: AIIT XUOS Lab -* @date: 2020/4/25 +* @date: 2021/4/25 * */ #ifndef XS_ADAPTER_ZIGBEE_H diff --git a/framework/connection/Adapter/zigbee/xs_adaper_zigbee_register.c b/framework/connection/Adapter/zigbee/xs_adaper_zigbee_register.c index 336e34c5b..cdb8bf9cb 100644 --- a/framework/connection/Adapter/zigbee/xs_adaper_zigbee_register.c +++ b/framework/connection/Adapter/zigbee/xs_adaper_zigbee_register.c @@ -15,7 +15,7 @@ * @brief: register zigbee in initialization * @version: 1.0 * @author: AIIT XUOS Lab -* @date: 2020/4/25 +* @date: 2021/4/30 * */ #include diff --git a/framework/connection/Adapter/zigbee/xs_adapter_zigbee.c b/framework/connection/Adapter/zigbee/xs_adapter_zigbee.c index 147c9ca90..25ada96fe 100644 --- a/framework/connection/Adapter/zigbee/xs_adapter_zigbee.c +++ b/framework/connection/Adapter/zigbee/xs_adapter_zigbee.c @@ -15,7 +15,7 @@ * @brief: zigbee open close function * @version: 1.0 * @author: AIIT XUOS Lab -* @date: 2020/4/25 +* @date: 2021/4/30 * */