diff Small_CPU/Inc/uart.h @ 662:1b995079c045 Betatest

PSCR Mode
author heinrichs weikamp
date Tue, 14 Dec 2021 15:36:10 +0100
parents 5f11787b4f42
children fca2bd25e6e2
line wrap: on
line diff
--- a/Small_CPU/Inc/uart.h	Mon Nov 01 12:39:34 2021 +0100
+++ b/Small_CPU/Inc/uart.h	Tue Dec 14 15:36:10 2021 +0100
@@ -24,10 +24,24 @@
 
 #include "stm32f4xx_hal.h"
 
-void MX_USART2_UART_Init(void);
-void MX_USART2_UART_DeInit(void);
+
+ typedef enum
+ {
+ 	RX_Ready= 0,					/* Initial state */
+ 	RX_Data0,						/* Process incoming data */
+	RX_Data1,
+	RX_Data2,
+	RX_Data3,
+	RX_Data4,
+	RX_DataComplete
+ } receiveState_t;
+
+
+void MX_USART1_UART_Init(void);
+void MX_USART1_UART_DeInit(void);
+void MX_USART1_DMA_Init(void);
 uint8_t UART_ButtonAdjust(uint8_t *array);
-
+void HandleUARTData(void);
 
 #ifdef __cplusplus
 }