Refactor and clean up codebase
- Removed unused constants and type aliases in app_spi_command_defs.h and temp_sensor.h. - Simplified ISpiCommandHandler destructor to default. - Eliminated redundant methods and comments in temp_sensor and usart0 files. - Consolidated writeU32Le function to app_spi_command_defs.h for reuse. - Updated comments for clarity and accuracy in task_manager.h and task_runner.cpp. - Removed hardfault.h as it contained no declarations. - Cleaned up CANFD and watchdog implementations by removing dead code and unnecessary comments. - Updated version numbers in config.h to reflect recent changes. - Enhanced error handling and diagnostics in hardfault handling.
This commit is contained in:
@@ -9,8 +9,6 @@
|
||||
*/
|
||||
class TempSensor {
|
||||
public:
|
||||
using Data = Adc::Sample;
|
||||
|
||||
/**
|
||||
* @brief 初始化温度采样依赖资源。
|
||||
* @param[in] 无。
|
||||
@@ -19,17 +17,6 @@ public:
|
||||
* @note 当前通过调用 Adc::init() 完成内部通道准备。
|
||||
*/
|
||||
static void init();
|
||||
|
||||
/**
|
||||
* @brief 采集一次温度相关样本。
|
||||
* @param[in] 无。
|
||||
* @param[out] data 指向输出 Data 结构体的指针。
|
||||
* @retval 无返回值。
|
||||
* @note 内部调用 Adc::collectSample() 填充完整 ADC 结果。
|
||||
*/
|
||||
static void sample(Data *data);
|
||||
};
|
||||
|
||||
using temp_sensor_data_t = TempSensor::Data;
|
||||
|
||||
#endif /* DEVICE_TEMP_SENSOR_H */
|
||||
Reference in New Issue
Block a user