// // Created by lidong on 25-8-4. // #ifndef VERSION_H #define VERSION_H #define __PY32F030xx_STK_BSP_VERSION_MAIN (0x01U) /*!< [31:24] main version */ #define __PY32F030xx_STK_BSP_VERSION_SUB1 (0x00U) /*!< [23:16] sub1 version */ #define __PY32F030xx_STK_BSP_VERSION_SUB2 (0x00U) /*!< [15:8] sub2 version */ #define __PY32F030xx_STK_BSP_VERSION_RC (0x00U) /*!< [7:0] release candidate */ #define __PY32F030xx_STK_BSP_VERSION ((__PY32F030xx_STK_BSP_VERSION_MAIN << 24) \ |(__PY32F030xx_STK_BSP_VERSION_SUB1 << 16) \ |(__PY32F030xx_STK_BSP_VERSION_SUB2 << 8 ) \ |(__PY32F030xx_STK_BSP_VERSION_RC)) /** * @brief This method returns the PY32F030 STK BSP Driver revision. * @retval version : 0xXYZR (8bits for each decimal, R for RC) */ static inline uint32_t BSP_GetVersion(void) { return __PY32F030xx_STK_BSP_VERSION; } #endif //VERSION_H