view Small_CPU/Inc/uart_Internal.h @ 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 5a9bc2e6112d
children
line wrap: on
line source

/**
  ******************************************************************************
  * @file    uartInternal.h
  * @author  heinrichs weikamp gmbh
  * @version V0.0.1
  * @date    03-November-2024
  * @brief   button control
  *           
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; COPYRIGHT(c) 2015 heinrichs weikamp</center></h2>
  *
  ******************************************************************************
  */ 

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef UARTINTERNAL_H
#define UARTINTERNAL_H

#ifdef __cplusplus
 extern "C" {
#endif

#include "stm32f4xx_hal.h"

UART_HandleTypeDef huart6;

void MX_USART6_UART_Init(void);
void MX_USART6_DMA_Init(void);
void MX_USART6_UART_DeInit(void);
void GNSS_IO_init(void);

void UART6_HandleUART();

#ifdef __cplusplus
}
#endif

#endif /* UARTINTERNAL_H */

/************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/