refactor(device): 移除未使用的CAN DMA初始化函数和SPI中断处理
移除了CAN模块中未启用的DMA初始化相关代码,包括can_dma_init函数 和相关的调用。同时移除了SPI OTA模块中已废弃的中断处理函数和C风格 兼容包装函数,这些功能已被DMA方式替代。 BREAKING CHANGE: 移除了can_dma_init函数和spi_ota_irq_handler等C风格API。
This commit is contained in:
@@ -56,7 +56,6 @@ public:
|
||||
static void configureSpi0();
|
||||
static void configureDma();
|
||||
static void configureExti();
|
||||
static void onSpiInterrupt();
|
||||
static void onCsExtiInterrupt();
|
||||
|
||||
static bool hasTxFrame();
|
||||
@@ -125,25 +124,4 @@ private:
|
||||
/* OTA.cpp 通过此变量更新 SPI 响应帧的 CREDIT 字段 */
|
||||
extern volatile u8 g_localCredit;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void spi_ota_init(void);
|
||||
void spi_ota_poll(void);
|
||||
void spi_ota_service_pending_tx(void);
|
||||
void spi_ota_set_sender(OTAHandler *handler);
|
||||
void spi_ota_on_cs_assert(void);
|
||||
void spi_ota_on_cs_release(void);
|
||||
void spi_ota_gpio_init(void);
|
||||
void spi_ota_spi0_init(void);
|
||||
void spi_ota_exti_init(void);
|
||||
void spi_ota_irq_handler(void);
|
||||
void spi_ota_cs_exti_handler(void);
|
||||
bool spi_ota_has_tx_frame(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user