2026-05-10 17:28:14 +08:00
|
|
|
/**
|
|
|
|
|
* @file temp_sensor.cpp
|
|
|
|
|
* @brief 温度传感模块实现。
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "device/adc.h"
|
|
|
|
|
#include "device/temp_sensor.h"
|
|
|
|
|
|
2026-05-10 21:27:51 +08:00
|
|
|
/**
|
|
|
|
|
* @brief 初始化温度传感采样依赖模块。
|
|
|
|
|
* @param[in] 无。
|
|
|
|
|
* @param[out] 无。
|
|
|
|
|
* @retval 无返回值。
|
|
|
|
|
* @note 当前内部直接复用 `Adc::init()` 完成温度与参考电压采样链路初始化。
|
|
|
|
|
*/
|
2026-05-10 17:28:14 +08:00
|
|
|
void TempSensor::init()
|
|
|
|
|
{
|
|
|
|
|
Adc::init();
|
|
|
|
|
}
|