#include #include #include "service/config_service.h" #include "zsdk/zsdk.h" #define TAG "main" using namespace std; extern void umain(); extern "C" { extern void MX_LWIP_Init(void); void StartDefaultTask(void const* argument) { umain(); } } /******************************************************************************* * MAIN * *******************************************************************************/ /** * @brief * | extern_if_service | * ======================================== * | reg_manager | device_info | * ======================================== * | fpage_if | * ========================= * */ extern "C" { // void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { // } } // void debug_light_ctrl() { // static uint32_t lastcall = 0; // static bool light_status = false; // if (zaf_has_passedms(lastcall) > 100) { // light_status = !light_status; // zaf_gpio_write(&m_debug_led, light_status); // lastcall = zaf_get_ticket(); // } // } void umain() { ZLOGI(TAG, "system init done"); int32_t count = 0; ZLOGI(TAG, "%s: %d.%d.%d", PROJECT, VERSION_MAIN(PC_VERSION), VERSION_SUB(PC_VERSION), VERSION_FIX(PC_VERSION)); ZLOGI(TAG, "sn: %s", sn_get_str()); config_init(); while (true) { osDelay(10); } }