| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- /**
- * @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 -
- * <a href="https://mengze.top/MZ-ATY_VCJS">
- * https://mengze.top/MZ-ATY_VCJS</a>
- * - CC 4.0 BY-NC-SA -
- * <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
- * https://creativecommons.org/licenses/by-nc-sa/4.0/</a>
- * - 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 *********************************/
|