Mercurial > public > ostc4
diff Small_CPU/Src/baseCPU2.c @ 932:effadaa3a1f7 Evo_2_23
Cleanup Gnss UART implementation:
The first draft of the internal UART implementation was just a copy of the external UART handling. To avoid duplicated code and maintainance issue both UARTs (external/internal 6/1) share the same functions. To enable this a control structure has to be used as function input which defines the none shared resources like DMA control and rx/tx buffers
author | Ideenmodellierer |
---|---|
date | Sat, 07 Dec 2024 21:28:08 +0100 |
parents | 7c996354b8ac |
children | 3029f0332f4f |
line wrap: on
line diff
--- a/Small_CPU/Src/baseCPU2.c Tue Dec 03 20:32:51 2024 +0100 +++ b/Small_CPU/Src/baseCPU2.c Sat Dec 07 21:28:08 2024 +0100 @@ -448,6 +448,10 @@ GPIO_GPS_BCKP_ON(); MX_USART6_UART_Init(); GNSS_Init(&GNSS_Handle, &huart6); +#else +#ifdef ENABLE_GNSS_SUPPORT + GNSS_Init(&GNSS_Handle, &huart1); +#endif #endif /*