-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmetadata.rs
54 lines (54 loc) · 1.42 KB
/
metadata.rs
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
47
48
49
50
51
52
53
54
include!("../metadata_0343.rs");
use crate::metadata::PeripheralRccKernelClock::{Clock, Mux};
pub static METADATA: Metadata = Metadata {
name: "STM32G474RE",
family: "STM32G4",
line: "STM32G4x4",
memory: &[
MemoryRegion {
name: "BANK_1",
kind: MemoryRegionKind::Flash,
address: 0x8000000,
size: 524288,
settings: Some(
FlashSettings {
erase_size: 4096,
write_size: 8,
erase_value: 255,
},
),
},
MemoryRegion {
name: "CCMRAM_ICODE",
kind: MemoryRegionKind::Ram,
address: 0x10000000,
size: 32768,
settings: None,
},
MemoryRegion {
name: "SRAM1",
kind: MemoryRegionKind::Ram,
address: 0x20000000,
size: 81920,
settings: None,
},
MemoryRegion {
name: "SRAM2",
kind: MemoryRegionKind::Ram,
address: 0x20014000,
size: 16384,
settings: None,
},
MemoryRegion {
name: "CCMRAM_DCODE",
kind: MemoryRegionKind::Ram,
address: 0x20018000,
size: 32768,
settings: None,
},
],
peripherals: PERIPHERALS,
nvic_priority_bits: Some(4),
interrupts: INTERRUPTS,
dma_channels: DMA_CHANNELS,
};