Mercurial > public > ostc4
view Small_CPU/Inc/uart.h @ 669:c1e203ffb478 Betatest
Rework charge cycle:
The charge counter is increasing decreasing also if the real value is maybe not defined (definition is done for example by a completed charging cycle). This caused some problems with invalid displayed charge per centage values. To avoid this the state of an unknow counter value was introduced. The indication is done by converting the counter into a negativ value.
author | Ideenmodellierer |
---|---|
date | Sat, 12 Mar 2022 22:49:09 +0100 |
parents | 1b995079c045 |
children | fca2bd25e6e2 |
line wrap: on
line source
/** ****************************************************************************** * @file uart.h * @author heinrichs weikamp gmbh * @version V0.0.1 * @date 27-March-2014 * @brief button control * ****************************************************************************** * @attention * * <h2><center>© COPYRIGHT(c) 2015 heinrichs weikamp</center></h2> * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef UART_H #define UART_H #ifdef __cplusplus extern "C" { #endif #include "stm32f4xx_hal.h" typedef enum { RX_Ready= 0, /* Initial state */ RX_Data0, /* Process incoming data */ RX_Data1, RX_Data2, RX_Data3, RX_Data4, RX_DataComplete } receiveState_t; void MX_USART1_UART_Init(void); void MX_USART1_UART_DeInit(void); void MX_USART1_DMA_Init(void); uint8_t UART_ButtonAdjust(uint8_t *array); void HandleUARTData(void); #ifdef __cplusplus } #endif #endif /* UART_H */ /************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/