Mercurial > public > ostc4
diff 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 |
line wrap: on
line diff
--- a/Small_CPU/Inc/uart.h Sun Nov 03 15:37:00 2024 +0100 +++ b/Small_CPU/Inc/uart.h Sun Nov 03 15:40:55 2024 +0100 @@ -25,7 +25,7 @@ #include "stm32f4xx_hal.h" -#define BUFFER_NODATA_LOW ('~') /* The read function needs a signiture which indicates that no data for processing is available.*/ +#define BUFFER_NODATA_LOW (0x15) /* The read function needs a signiture which indicates that no data for processing is available.*/ #define BUFFER_NODATA_HIGH (0xA5) @@ -53,6 +53,7 @@ #ifdef ENABLE_SENTINEL_MODE void UART_HandleSentinelData(void); #endif +void UART_clearRxBuffer(void); uint8_t UART_isCO2Connected(); uint8_t UART_isSentinelConnected(); void UART_setTargetChannel(uint8_t channel);