Intel® Quark™ Microcontroller Software Interface 1.4.0 Intel® Quark™ Microcontroller BSP

- Main Page
- Modules
- Data Structures
- Files

- File List

qm_version.h
1 /*
2 * {% copyright %}
3 */
4
5 #ifndef __QM_VERSION_H__
6 #define __QM_VERSION_H__
7
8 #include "qm_common.h"
9 #include "qm_soc_regs.h"
10
11 /**
12 * Version number functions for API.
13 *
14 * @defgroup groupVersion Version
15 * @{
16 */
17
18 /* Create a single version number from the major, minor and patch numbers. */
19 #define QM_VER_API_UINT \
20 ((QM_VER_API_MAJOR * 10000) + (QM_VER_API_MINOR * 100) + \
21 QM_VER_API_PATCH)
22
23 /* Create a version number string from the major, minor and patch numbers. */
24 #define QM_VER_API_STRING \
25 QM_VER_STRINGIFY(QM_VER_API_MAJOR, QM_VER_API_MINOR, QM_VER_API_PATCH)
26
27 /**
28 * Get the ROM version number.
29 *
30 * Reads the ROM version information from flash and returns it.
31 *
32 * @return uint32_t ROM version.
33 */
34 uint32_t qm_ver_rom(void);
35
36 /**
37 * @}
38 */
39
40 #endif /* __QM_VERSION_H__ */
qm_ver_rom
uint32_t qm_ver_rom(void)
Get the ROM version number.
Definition: qm_version.c:7