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

- Main Page
- Modules
- Data Structures
- Files

- File List

qm_identification.c
1 /*
2 * {% copyright %}
3 */
4
5 #include "qm_identification.h"
6
7 /* Quark D2000 ID is 1.1 */
8 #define QUARK_D2000_SOC_ID (0x11)
9
10 uint32_t qm_soc_id(void)
11 {
12 #if (QUARK_D2000)
13 return QUARK_D2000_SOC_ID;
14 #elif(QUARK_SE)
15 return QM_SCSS_GP->id;
16 #else
17 #error "Unsupported / unspecified processor detected."
18 #endif
19 }
20
21 uint32_t qm_soc_version(void)
22 {
23 #if (QUARK_D2000)
24 return (QUARK_D2000_SOC_ID << 8) | QM_SCSS_INFO->rev;
25 #elif(QUARK_SE)
26 return (QM_SCSS_GP->id << 8) | QM_SCSS_GP->rev;
27 #endif
28 }
qm_soc_version
uint32_t qm_soc_version(void)
Get Quark SoC version number.
Definition: qm_identification.c:21
qm_soc_id
uint32_t qm_soc_id(void)
Get Quark SoC identification number.
Definition: qm_identification.c:10