1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! Device electronic signature
//!
//! Ref: Section 1.5, GD32VF103 User Manual
//!
//! TODO: verify unique_id in this module
// should this module be named `signature`? this name may be too long
const UNIQUE_ID: *const = 0x1FFF_F7E8 as *const _;
const MEMORY_DENSITY: *const u16 = 0x1FFF_F7E0 as *const _;
/// Factory programed unique device id.
///
/// This field if 96 bits wide. It may be only read using 32-bit load
/// procedures.
///
/// According to section 1.5.2 of the Manual, this value
/// can never be altered by user.
/// Flash memory density in KBytes.
///
/// This value indicates the flash memory density of the device in KBytes.
/// For example, `0x0020` means 32 KBytes.
///
/// Ref: Section 1.5.1, the Manual
/// On-chip SRAM density in KBytes.
///
/// This value indicates the on-chip SRAM density of the device in KBytes.
/// For example, `0x0008` means 8 KBytes.
///
/// Ref: Section 1.5.1, the Manual