comparison 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
comparison
equal deleted inserted replaced
661:87bee7cc77b3 662:1b995079c045
22 extern "C" { 22 extern "C" {
23 #endif 23 #endif
24 24
25 #include "stm32f4xx_hal.h" 25 #include "stm32f4xx_hal.h"
26 26
27 void MX_USART2_UART_Init(void); 27
28 void MX_USART2_UART_DeInit(void); 28 typedef enum
29 {
30 RX_Ready= 0, /* Initial state */
31 RX_Data0, /* Process incoming data */
32 RX_Data1,
33 RX_Data2,
34 RX_Data3,
35 RX_Data4,
36 RX_DataComplete
37 } receiveState_t;
38
39
40 void MX_USART1_UART_Init(void);
41 void MX_USART1_UART_DeInit(void);
42 void MX_USART1_DMA_Init(void);
29 uint8_t UART_ButtonAdjust(uint8_t *array); 43 uint8_t UART_ButtonAdjust(uint8_t *array);
30 44 void HandleUARTData(void);
31 45
32 #ifdef __cplusplus 46 #ifdef __cplusplus
33 } 47 }
34 #endif 48 #endif
35 49