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:
@@ -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 */
|
||||
Reference in New Issue
Block a user