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.
16 lines
456 B
16 lines
456 B
#include "chip.hpp"
|
|
|
|
extern "C" {
|
|
void chip_init(chip_cfg_t *cfg) {
|
|
//
|
|
zchip_clock_cfg_t zchip_clock_cfg;
|
|
zchip_clock_cfg.usdleaytim = cfg->us_dleay_tim;
|
|
zchip_clock_init(&zchip_clock_cfg);
|
|
//
|
|
zchip_loggger_init(cfg->huart);
|
|
//
|
|
iflytop::ChipTimIrqShceduler::Cfg ChipTimIrqShceduler_cfg;
|
|
ChipTimIrqShceduler_cfg.schedulertim = cfg->tim_irq_scheduler_tim;
|
|
iflytop::ChipTimIrqShceduler::instance().initialize(&ChipTimIrqShceduler_cfg);
|
|
}
|
|
}
|