hpocapp.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. //#define OSI_LOG_TAG OSI_MAKE_LOG_TAG()
  13. #include "main.h"
  14. #include "lsapi_types.h"
  15. #include "lsapi_sys.h"
  16. #include "lsapi_os.h"
  17. /*
  18. appimg_exit
  19. 仅在程序退出时打印
  20. */
  21. void appimg_exit(void){
  22. LSAPI_Log_Debug("application image exit");
  23. //LSAPI_OSI_ThreadExit();
  24. }
  25. static void mainTask(void *param){
  26. hpocRun();//应用主程序(pt)
  27. }
  28. /*
  29. appimg_enter
  30. cat one入口函数
  31. */
  32. int appimg_enter(void *param){
  33. LSAPI_OSI_ThreadCreate("main", mainTask, NULL, LSAPI_OSI_PRIORITY_NORMAL, MAIN_PT_THREAD_STACK, 10);
  34. //appimg_exit();
  35. return 0;
  36. }