| 12345678910111213141516171819202122232425262728293031 |
- /*
- * @Description:
- * @Version: 2.0
- * @Author: Seven
- * @Date: 2023-06-06 14:17:45
- * @LastEditors: Seven
- * @LastEditTime: 2023-06-08 09:23:01
- */
- #ifndef __UART_PT_H
- #define __UART_PT_H
- #include "gd32f10x.h"
- #include "tools.h"
- #if 1
- #define PT_ON 1
- #define PT_OFF 0
- #define PT_TIME (10*60*1000)//产测超时时间,连续这么长时间未收到产测指令,关闭产测
- typedef struct _PT_TEST_{
- uint8_t bTestStart; // 产测开始
- timeout_t tt_pt_time;
- }PtTest;
- extern PtTest g_ptTest;
- void uart_cmd_task(uint32_t uartid, char *data, uint16_t len);
- void pt_cmd_task(void);
- #endif
- #endif
|