TCP可以正常使用
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user