#include #include #include "cmdline_version.hpp" #include "global.hpp" #include "project_configs.h" #include "sdk/os/zos.hpp" #include "sdk\components\zcancmder\zcanreceiver_master.hpp" #include "transparent_version.hpp" #define TAG "main" using namespace std; using namespace iflytop; extern void umain(); extern "C" { void StartDefaultTask(void const* argument) { umain(); } } void umain() { g_Key0.initAsInput(KEY1, ZGPIO::kMode_pullup, ZGPIO::kIRQ_noIrq, false); g_StateLight1.initAsOutput(STATE_LIGHT_GPIO, ZGPIO::kMode_pullup, false, false); if (g_Key0.getState()) { g_StateLight1.setState(true); cmdline_version_main(); } else { g_StateLight1.setState(false); transparent_version_main(); } };