Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
931:5a9bc2e6112d | 932:effadaa3a1f7 |
---|---|
446 GNSS_IO_init(); | 446 GNSS_IO_init(); |
447 GPIO_GPS_ON(); | 447 GPIO_GPS_ON(); |
448 GPIO_GPS_BCKP_ON(); | 448 GPIO_GPS_BCKP_ON(); |
449 MX_USART6_UART_Init(); | 449 MX_USART6_UART_Init(); |
450 GNSS_Init(&GNSS_Handle, &huart6); | 450 GNSS_Init(&GNSS_Handle, &huart6); |
451 #else | |
452 #ifdef ENABLE_GNSS_SUPPORT | |
453 GNSS_Init(&GNSS_Handle, &huart1); | |
454 #endif | |
451 #endif | 455 #endif |
452 | 456 |
453 /* | 457 /* |
454 * Demo code from SimpleMethod | 458 * Demo code from SimpleMethod |
455 * called 1/second | 459 * called 1/second |