mirror of https://gitee.com/ptower/pmu.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1005 B
28 lines
1005 B
2 months ago
|
//
|
||
|
// 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
|