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.
|
|
#include "chip.hpp"
extern "C" { void chip_init(chip_cfg_t *cfg) { //
zchip_loggger_init(cfg->huart); //
zchip_clock_cfg_t zchip_clock_cfg; zchip_clock_cfg.usdleaytim = cfg->us_dleay_tim; zchip_clock_init(&zchip_clock_cfg); //
iflytop::ChipTimIrqShceduler::Cfg ChipTimIrqShceduler_cfg; ChipTimIrqShceduler_cfg.schedulertim = cfg->tim_irq_scheduler_tim; iflytop::ChipTimIrqShceduler::instance().initialize(&ChipTimIrqShceduler_cfg);
ZLOGI("SYS", "chip init ok"); ZLOGI("SYS", "= manufacturer : %s", MANUFACTURER); ZLOGI("SYS", "= project name : %s", PROJECT_NAME); ZLOGI("SYS", "= version : %s", VERSION); ZLOGI("SYS", "= freq : %d", HAL_RCC_GetSysClockFreq()); ZLOGI("SYS", "= build time : %s", __DATE__ " " __TIME__); } }
|