38
|
1 /**
|
|
2 ******************************************************************************
|
|
3 * @file uart.h
|
|
4 * @author heinrichs weikamp gmbh
|
|
5 * @version V0.0.1
|
|
6 * @date 27-March-2014
|
|
7 * @brief button control
|
|
8 *
|
|
9 ******************************************************************************
|
|
10 * @attention
|
|
11 *
|
|
12 * <h2><center>© COPYRIGHT(c) 2015 heinrichs weikamp</center></h2>
|
|
13 *
|
|
14 ******************************************************************************
|
|
15 */
|
|
16
|
|
17 /* Define to prevent recursive inclusion -------------------------------------*/
|
|
18 #ifndef UART_H
|
|
19 #define UART_H
|
|
20
|
|
21 #ifdef __cplusplus
|
|
22 extern "C" {
|
|
23 #endif
|
|
24
|
|
25 #include "stm32f4xx_hal.h"
|
|
26
|
662
|
27
|
|
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);
|
38
|
43 uint8_t UART_ButtonAdjust(uint8_t *array);
|
662
|
44 void HandleUARTData(void);
|
38
|
45
|
|
46 #ifdef __cplusplus
|
|
47 }
|
|
48 #endif
|
|
49
|
|
50 #endif /* UART_H */
|
|
51
|
|
52 /************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/
|