1234567891011121314151617181920212223242526272829303132333435363738 |
- /* 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.
- */
- #include "main.h"
- #include "osi_log.h"
- #include "nwy_osi_api.h"
- /*
- appimg_exit
- 仅在程序退出时打印
- */
- void appimg_exit(void){
- OSI_LOGI(0,"application image exit");
- }
- static void mainTask(void *param){
- hpocRun();//应用主程序(pt)
- }
- /*
- appimg_enter
- cat one入口函数
- */
- int appimg_enter(void *param){
- #ifdef OPEN_DETECTED_THREAD
- nwy_create_thread("detected", detectedTask, NULL, NWY_OSI_PRIORITY_NORMAL, DETECTED_THREAD_STACK, 4);
- #endif
- nwy_create_thread("main", mainTask, NULL, NWY_OSI_PRIORITY_NORMAL, 1024*10, 10);
-
- return 0;
- }
|