You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
752 B
31 lines
752 B
#include <stddef.h>
|
|
#include <stdio.h>
|
|
|
|
#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();
|
|
}
|
|
};
|