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
735 B

2 months ago
//
// Created by lidong on 25-8-4.
//
#ifndef VERSION_H
#define VERSION_H
#define VERSION_MAIN (0x01U) /*!< [31:24] main version */
#define VERSION_SUB1 (0x00U) /*!< [23:16] sub1 version */
#define VERSION_SUB2 (0x00U) /*!< [15:8] sub2 version */
#define VERSION_RC (0x00U) /*!< [7:0] release candidate */
#define VERSION ((VERSION_MAIN << 24) \
|(VERSION_SUB1 << 16) \
|(VERSION_SUB2 << 8 ) \
|(VERSION_RC))
2 months ago
/**
* @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 VERSION;
2 months ago
}
#endif //VERSION_H