Mercurial > public > ostc4
diff Small_CPU/Inc/uart.h @ 922:7c996354b8ac Evo_2_23
Moved UART6 into a separate unit:
UART6 connects internal devices. As a first step the existing code sections have been moved into a new unit. As well the code of the external GNSS sensor has been copied into this unit as starting point for the further development. Later the internal part can be integrated into the common uart (code cleanup).
author | Ideenmodellierer |
---|---|
date | Sun, 03 Nov 2024 20:53:05 +0100 |
parents | f72613a152dd |
children | effadaa3a1f7 |
line wrap: on
line diff
--- a/Small_CPU/Inc/uart.h Sun Nov 03 18:19:51 2024 +0100 +++ b/Small_CPU/Inc/uart.h Sun Nov 03 20:53:05 2024 +0100 @@ -29,7 +29,7 @@ #define BUFFER_NODATA_HIGH (0xA5) -UART_HandleTypeDef huart1, huart6; +UART_HandleTypeDef huart1; void MX_USART1_UART_Init(void); void MX_USART1_UART_DeInit(void); @@ -59,7 +59,7 @@ void UART_setTargetChannel(uint8_t channel); void UART_MUX_SelectAddress(uint8_t muxAddress); void UART_SendCmdString(uint8_t *cmdString); -void UART_SendCmdUbx(uint8_t *cmd, uint8_t len); +void UART_SendCmdUbx(const uint8_t *cmd, uint8_t len); void UART_ReadData(uint8_t sensorType); void UART_WriteData(void); void UART_FlushRxBuffer(void);