TCP可以正常使用

This commit is contained in:
2026-07-19 00:59:56 +08:00
parent c841bf4668
commit 17109d9baf
24 changed files with 5505 additions and 352 deletions
+3 -2
View File
@@ -11,6 +11,7 @@
/* 头文件包含区 */
#include "tpafe5160.h"
#include "main.h"
/* ======================== 私有宏定义 ======================== */
@@ -325,13 +326,13 @@ const int16_t* tpafe5160_get_buf(void)
}
/*
* 函数功能:BUSY 下降沿 EXTI 回调(由 HAL_GPIO_EXTI_IRQHandler 调用)
* 函数功能:BUSY 下降沿 EXTI 处理(由 HAL_GPIO_EXTI_Callback 调用)
* 入口参数:GPIO_Pin - 触发中断的引脚号
* 返回值:无
* 限定条件:BUSY EXTI 已使能
* 函数说明:转换完成后自动读取 8 通道数据到缓冲区,耗时约 0.5µs (168MHz)
*/
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
void tpafe5160_exti_handler(uint16_t GPIO_Pin)
{
if (GPIO_Pin != TP_BUSY_Pin) {
return;
+9
View File
@@ -217,6 +217,15 @@ void tpafe5160_clear_ready(void);
*/
const int16_t* tpafe5160_get_buf(void);
/*
* 函数功能:EXTI 中断处理(由 HAL_GPIO_EXTI_Callback 调用)
* 入口参数:GPIO_Pin - 触发的引脚号
* 返回值:无
* 限定条件:BUSY EXTI 已使能
* 函数说明:BUSY 下降沿时自动读取 8 通道数据到缓冲区
*/
void tpafe5160_exti_handler(uint16_t GPIO_Pin);
#ifdef __cplusplus
}
#endif