|
|
@ -6,9 +6,11 @@ |
|
|
|
#include "configs/device_id_mgr.hpp"
|
|
|
|
#include "sdk/chip/chip.hpp"
|
|
|
|
#include "sdk/os/zos.hpp"
|
|
|
|
#include "subboards/subboard30_shake_module/subboard30_shake_module.hpp"
|
|
|
|
|
|
|
|
#define TAG "main"
|
|
|
|
using namespace std; |
|
|
|
using namespace iflytop; |
|
|
|
|
|
|
|
extern void umain(); |
|
|
|
extern "C" { |
|
|
@ -36,8 +38,14 @@ void umain() { |
|
|
|
ZEARLY_LOGI("SYS", "= build time : %s", __DATE__ " " __TIME__); |
|
|
|
ZEARLY_LOGI("SYS", "= device id : %d", id); |
|
|
|
|
|
|
|
|
|
|
|
ZLOGI(TAG, "zaf_flash_flush ok"); |
|
|
|
if (id <= 0) { |
|
|
|
chip_set_error(); |
|
|
|
ZEARLY_LOGE("SYS", "device id is not set"); |
|
|
|
} else { |
|
|
|
if (id == 30) { |
|
|
|
Subboard30ShakeModule::ins()->initializeAndRun(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
while (true) { |
|
|
|
zos_delay(1); |
|
|
|