Mercurial > public > ostc4
comparison Small_CPU/Inc/uart.h @ 918:f72613a152dd Evo_2_23
Switch external interface tx communication to DMA:
In the previous version the transmitting of data was done in polling mode. With the introduction of new sensors the length of commands send to the sensor may increase and have a impact to the runtim behavior of the SW. To avoid this the DMA transfers for TX has been activated.
author | Ideenmodellierer |
---|---|
date | Sun, 03 Nov 2024 15:40:55 +0100 |
parents | 4832981f9af8 |
children | 7c996354b8ac |
comparison
equal
deleted
inserted
replaced
917:0d6c4b40fae4 | 918:f72613a152dd |
---|---|
23 #endif | 23 #endif |
24 | 24 |
25 #include "stm32f4xx_hal.h" | 25 #include "stm32f4xx_hal.h" |
26 | 26 |
27 | 27 |
28 #define BUFFER_NODATA_LOW ('~') /* The read function needs a signiture which indicates that no data for processing is available.*/ | 28 #define BUFFER_NODATA_LOW (0x15) /* The read function needs a signiture which indicates that no data for processing is available.*/ |
29 #define BUFFER_NODATA_HIGH (0xA5) | 29 #define BUFFER_NODATA_HIGH (0xA5) |
30 | 30 |
31 | 31 |
32 UART_HandleTypeDef huart1, huart6; | 32 UART_HandleTypeDef huart1, huart6; |
33 | 33 |
51 void UART_HandleGnssData(void); | 51 void UART_HandleGnssData(void); |
52 #endif | 52 #endif |
53 #ifdef ENABLE_SENTINEL_MODE | 53 #ifdef ENABLE_SENTINEL_MODE |
54 void UART_HandleSentinelData(void); | 54 void UART_HandleSentinelData(void); |
55 #endif | 55 #endif |
56 void UART_clearRxBuffer(void); | |
56 uint8_t UART_isCO2Connected(); | 57 uint8_t UART_isCO2Connected(); |
57 uint8_t UART_isSentinelConnected(); | 58 uint8_t UART_isSentinelConnected(); |
58 void UART_setTargetChannel(uint8_t channel); | 59 void UART_setTargetChannel(uint8_t channel); |
59 void UART_MUX_SelectAddress(uint8_t muxAddress); | 60 void UART_MUX_SelectAddress(uint8_t muxAddress); |
60 void UART_SendCmdString(uint8_t *cmdString); | 61 void UART_SendCmdString(uint8_t *cmdString); |