2026-03-31 15:46:04 +08:00
|
|
|
|
/**
|
|
|
|
|
|
******************************************************************************
|
|
|
|
|
|
* @file user\global\g_init.c
|
|
|
|
|
|
* @author luhuaishuai
|
|
|
|
|
|
* @version v0.1
|
|
|
|
|
|
* @date 2026-1-12
|
|
|
|
|
|
* @brief Briefly describe the function of your function
|
|
|
|
|
|
******************************************************************************
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "g_init.h"
|
|
|
|
|
|
|
|
|
|
|
|
/* Includes -------------------------------------------------------------------*/
|
|
|
|
|
|
#include "drv_init.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @brief 初始化全局系统
|
|
|
|
|
|
* @note 初始化全局系统,包括HAL层和驱动层的初始化
|
|
|
|
|
|
*/
|
2026-05-21 10:01:28 +08:00
|
|
|
|
void g_init(void)
|
2026-03-31 15:46:04 +08:00
|
|
|
|
{
|
2026-05-21 10:01:28 +08:00
|
|
|
|
drv_all_init();
|
|
|
|
|
|
os_init();
|
2026-03-31 15:46:04 +08:00
|
|
|
|
|
2026-05-21 10:01:28 +08:00
|
|
|
|
}
|