Browse Source

update

master
zhaohe 1 year ago
parent
commit
fd424aeed7
  1. 7
      chip/chip.cpp
  2. 3
      components/subcanmodule/zcancmder_subboard_initer.cpp

7
chip/chip.cpp

@ -38,12 +38,5 @@ void chip_init(chip_cfg_t *cfg) {
g_debuglight.toggleState();
},
50);
ZEARLY_LOGI("SYS", "chip init ok");
ZEARLY_LOGI("SYS", "= manufacturer : %s", PC_MANUFACTURER);
ZEARLY_LOGI("SYS", "= project name : %s", PC_PROJECT_NAME);
ZEARLY_LOGI("SYS", "= version : %s", PC_VERSION);
ZEARLY_LOGI("SYS", "= freq : %d", HAL_RCC_GetSysClockFreq());
ZEARLY_LOGI("SYS", "= build time : %s", __DATE__ " " __TIME__);
}
}

3
components/subcanmodule/zcancmder_subboard_initer.cpp

@ -35,12 +35,13 @@ void ZCancmderSubboardIniter::init(cfg_t* cfg) {
/*******************************************************************************
* NVSINIT *
*******************************************************************************/
#if PC_NVS_ENABLE
if (PC_NVS_ENABLE) {
ZNVS::ins().initialize(PC_NVS_CONFIG_FLASH_SECTOR);
nvs_init_cb();
ZNVS::ins().init_config();
}
#endif
auto zcanCmder_cfg = zcanCmder.createCFG(m_cfg.deviceId);
zcanCmder.init(zcanCmder_cfg);

Loading…
Cancel
Save