/* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA"). * All rights reserved. * * This software is supplied "AS IS" without any warranties. * RDA assumes no responsibility or liability for the use of the software, * conveys no license or title under any patent, copyright, or mask work * right to the product. RDA reserves the right to make changes in the * software without notification. RDA also make no representation or * warranty that such application will be suitable for the specified use * without further testing or modification. */ //#define OSI_LOG_TAG OSI_MAKE_LOG_TAG() #include "main.h" #include "lsapi_types.h" #include "lsapi_sys.h" #include "lsapi_os.h" /* appimg_exit 仅在程序退出时打印 */ void appimg_exit(void){ LSAPI_Log_Debug("application image exit"); } static void mainTask(void *param){ hpocRun();//应用主程序(pt) } /* appimg_enter cat one入口函数 */ int appimg_enter(void *param){ LSAPI_OSI_ThreadCreate("main", mainTask, NULL, LSAPI_OSI_PRIORITY_NORMAL, PT_THREAD_STACK, 4); #ifdef USE_DETECTED_THREAD LSAPI_OSI_ThreadCreate("detector", detector, NULL, LSAPI_OSI_PRIORITY_NORMAL, 1024*2, 4); #endif return 0; }