From 9aed5d7e7b3c7bf09da712e9c272ece401a7acc9 Mon Sep 17 00:00:00 2001 From: QuakeGod <QuakeGod@sina.com> Date: 星期一, 25 十一月 2024 14:51:23 +0800 Subject: [PATCH] add UltraSonic and MultiWireLess --- KPLC/Inc/main.h | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/KPLC/Inc/main.h b/KPLC/Inc/main.h index 81823cb..44f8e1e 100644 --- a/KPLC/Inc/main.h +++ b/KPLC/Inc/main.h @@ -77,6 +77,32 @@ #include "KBus.h" extern stKBusDef KBus1; + +#define Uart1RxBufSize 256 +#define RX2BUFSIZE 64 +#define TX2BUFSIZE 64 +#define DefaultUart1Baud 115200 +#define DefaultUart2Baud 1000000 +#define AlterUart2Baud 500000 + +extern volatile char Uart1BaudGot; +extern volatile char Uart1BaudFirstGot; + +extern unsigned char Uart1Mode; +extern unsigned int Uart1Baud; +extern unsigned int Uart2Baud; + +extern volatile int PendSvCount; + +extern unsigned char Uart1RxBuf1[Uart1RxBufSize]; +extern unsigned char Uart1TxBuf1[260]; + +extern unsigned char Uart2RxBuf1[RX2BUFSIZE]; +extern unsigned char Uart2TxBuf1[TX2BUFSIZE]; + +extern unsigned short Uart1RxBuf1DataLen; +extern unsigned short Uart2RxBuf1DataLen; + /* USER CODE END Private defines */ #ifdef __cplusplus -- Gitblit v1.9.1