添加注释
This commit is contained in:
@@ -271,26 +271,30 @@ void iot_mode_set(int fw_mode)
|
||||
|
||||
}
|
||||
|
||||
// 硬件部分初始化
|
||||
void iot_hw_init()
|
||||
{
|
||||
// 初始化efuse
|
||||
iot_efuse_init();
|
||||
|
||||
// 初始化时钟
|
||||
system_clock_init();
|
||||
|
||||
// 初始化boardid为0
|
||||
iot_board_info_init();
|
||||
|
||||
// 加密
|
||||
iot_crypto_init();
|
||||
|
||||
/*resource initializations;*/
|
||||
// 初始化flash
|
||||
mtd_device_init(0);
|
||||
|
||||
/* init oem module load oem cfg from file */
|
||||
// 初始化oem状态 cco还是sta
|
||||
#if (PLC_SUPPORT_CCO_ROLE)
|
||||
iot_oem_init(1);
|
||||
#else
|
||||
iot_oem_init(0);
|
||||
#endif
|
||||
|
||||
// 目前是空函数
|
||||
iot_cal_data_init();
|
||||
|
||||
#if (IOT_FLASH_BUILD == 1)
|
||||
@@ -308,11 +312,13 @@ void iot_hw_init()
|
||||
#endif
|
||||
|
||||
#if (IOT_FLASH_BUILD == 1)
|
||||
// 打印oem配置信息
|
||||
iot_board_cfg_dump();
|
||||
#endif
|
||||
|
||||
iot_busmon_init();
|
||||
/*platform intialization*/
|
||||
// 这里初始化cpu中断 异常处理函数 gp定时器等
|
||||
platform_init();
|
||||
/* chip id checking */
|
||||
iot_chip_id_check();
|
||||
@@ -320,9 +326,11 @@ void iot_hw_init()
|
||||
iot_wdg_enable();
|
||||
}
|
||||
|
||||
// 子系统初始化
|
||||
void iot_sub_system_init()
|
||||
{
|
||||
/* init common modules */
|
||||
// 检查前导零数组是否正常
|
||||
iot_bitops_init();
|
||||
|
||||
/* init os related modules and utilities */
|
||||
|
||||
Reference in New Issue
Block a user