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:
cbb
2026-07-15 02:49:37 +08:00
parent a52d94687b
commit 76da7a3dd6
37 changed files with 1401 additions and 1955 deletions
-19
View File
@@ -32,23 +32,6 @@ public:
*/
static void init();
/**
* @brief 查询 ADC DMA 缓存是否已完成首次有效填充。
* @param[in] 无。
* @param[out] 无。
* @retval bool true 表示 DMA 循环缓存已可用,false 表示仍未准备好。
*/
static bool dmaReady();
/**
* @brief 获取 ADC DMA 原始循环缓存只读指针。
* @param[in] 无。
* @param[out] 无。
* @retval const uint16_t* 返回长度为 \p kChannelCount 的原始缓存指针。
* @note 缓冲区顺序为:VIN_ADC → 温度通道 → VREF 通道。
*/
static const uint16_t *dmaBuffer();
/**
* @brief 读取指定通道在 DMA 缓存中的原始 ADC 值。
* @param[in] channel 目标 ADC 通道号。
@@ -128,6 +111,4 @@ private:
static void initDma();
};
using adc_sample_t = Adc::Sample;
#endif /* DEVICE_ADC_H */