#include "entry/EasyUIContext.h" #include "uart/UartContext.h" #include "manager/ConfigManager.h" #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ void onEasyUIInit(EasyUIContext *pContext) { // 初始化时打开串口 //UARTCONTEXT->openUart(CONFIGMANAGER->getUartName().c_str(), CONFIGMANAGER->getUartBaudRate()); UartContext::init(); } void onEasyUIDeinit(EasyUIContext *pContext) { UartContext::destroy(); } const char* onStartupApp(EasyUIContext *pContext) { return "startActivity"; } #ifdef __cplusplus } #endif /* __cplusplus */