hpocapp.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #include "main.h"
  13. #include "osi_log.h"
  14. #include "nwy_osi_api.h"
  15. /*
  16. appimg_exit
  17. 仅在程序退出时打印
  18. */
  19. void appimg_exit(void){
  20. OSI_LOGI(0,"application image exit");
  21. }
  22. static void mainTask(void *param){
  23. hpocRun();//应用主程序(pt)
  24. }
  25. /*
  26. appimg_enter
  27. cat one入口函数
  28. */
  29. int appimg_enter(void *param){
  30. #ifdef OPEN_DETECTED_THREAD
  31. nwy_create_thread("detected", detectedTask, NULL, NWY_OSI_PRIORITY_NORMAL, DETECTED_THREAD_STACK, 4);
  32. #endif
  33. nwy_create_thread("main", mainTask, NULL, NWY_OSI_PRIORITY_NORMAL, 1024*10, 10);
  34. return 0;
  35. }