Main.cpp 560 B

12345678910111213141516171819202122232425262728
  1. #include "entry/EasyUIContext.h"
  2. #include "uart/UartContext.h"
  3. #include "manager/ConfigManager.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif /* __cplusplus */
  7. void onEasyUIInit(EasyUIContext *pContext) {
  8. // 初始化时打开串口
  9. //UARTCONTEXT->openUart(CONFIGMANAGER->getUartName().c_str(), CONFIGMANAGER->getUartBaudRate());
  10. UartContext::init();
  11. }
  12. void onEasyUIDeinit(EasyUIContext *pContext) {
  13. UartContext::destroy();
  14. }
  15. const char* onStartupApp(EasyUIContext *pContext) {
  16. return "startActivity";
  17. }
  18. #ifdef __cplusplus
  19. }
  20. #endif /* __cplusplus */