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:
@@ -56,14 +56,6 @@ private:
|
||||
*/
|
||||
static uint16_t nextIndex(uint16_t idx);
|
||||
|
||||
/**
|
||||
* @brief 判断环形发送缓冲是否已满。
|
||||
* @param[in] 无。
|
||||
* @param[out] 无。
|
||||
* @retval bool true 表示已满,false 表示可继续写入。
|
||||
*/
|
||||
static bool isBufferFull();
|
||||
|
||||
/**
|
||||
* @brief 判断环形发送缓冲是否为空。
|
||||
* @param[in] 无。
|
||||
@@ -75,7 +67,6 @@ private:
|
||||
static bool putCharNonBlocking(int ch);
|
||||
|
||||
static constexpr uint16_t kTxBufSize = 1024U;
|
||||
static volatile uint32_t s_dropCount;
|
||||
static uint8_t s_txBuf[kTxBufSize];
|
||||
static volatile uint16_t s_txHead;
|
||||
static volatile uint16_t s_txTail;
|
||||
|
||||
Reference in New Issue
Block a user