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.
29 lines
639 B
29 lines
639 B
#include "device.hpp"
|
|
#define TAG "main"
|
|
namespace iflytop {
|
|
extern void uart_debug_fn_reg();
|
|
extern void can_cmd_reg_fn_reg();
|
|
}; // namespace iflytop
|
|
|
|
using namespace iflytop;
|
|
extern "C"{
|
|
void umain(void) {
|
|
ZHALCORE::cfg_t oscfg = {
|
|
.delayhtim = &DELAY_US_TIMER,
|
|
.debuguart = &DEBUG_UART,
|
|
};
|
|
ZHALCORE::getInstance()->initialize(oscfg);
|
|
|
|
ZLOGI(TAG, "pipeline_disinfection_liquid_path_control:%s", VERSION);
|
|
|
|
device_init();
|
|
uart_debug_fn_reg();
|
|
can_cmd_reg_fn_reg();
|
|
ZLOGI(TAG, "init done");
|
|
while (1) {
|
|
cmdScheduler.schedule();
|
|
ZHALCORE::getInstance()->loop();
|
|
HAL_IWDG_Refresh(&hiwdg);
|
|
}
|
|
}
|
|
}
|