/** * @file STM32_HAL_PRINTF_ATY.h * * @param Project DEVICE_GENERAL_ATY_LIB * * @author ATY * * @copyright * - Copyright 2017 - 2023 MZ-ATY * - This code follows: * - MZ-ATY Various Contents Joint Statement - * * https://mengze.top/MZ-ATY_VCJS * - CC 4.0 BY-NC-SA - * * https://creativecommons.org/licenses/by-nc-sa/4.0/ * - Your use will be deemed to have accepted the terms of this statement. * * @brief Familiar functions of printf for STM32 device HAL lib * * @version * - 1_01_221029 > ATY * -# Preliminary version, first Release ******************************************************************************** */ #ifndef __STM32_HAL_PRINTF_ATY_H #define __STM32_HAL_PRINTF_ATY_H #ifndef __PRINTF_ATY #define __PRINTF_ATY #endif /* __PRINTF_ATY */ #include "INCLUDE_ATY.h" #include "stdio.h" /******************************* For user *************************************/ /******************************************************************************/ #ifdef DEBUG_PRINTF_RECEIVE #include "stdlib.h" #include "string.h" #define PRINTF_RX_MAX_LEN 100 typedef struct _uartMsgStruct{ uint8_t* rx; uint8_t* tx; uint8_t rxCount; uint8_t txCount; uint8_t rcvOverFlag; } uartMsgStruct; extern struct _uartMsgStruct uartPrintfMsgStruct; void PrintfReceiveInit(void); void PrintfReceiveProcess(void); void PrintfReceiveProcess_User(struct _uartMsgStruct* ptr); #endif /* DEBUG_PRINTF_RECEIVE */ #endif /* __STM32_HAL_PRINTF_ATY_H */ /******************************** End Of File *********************************/