-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathke02z.repl
87 lines (71 loc) · 3.58 KB
/
ke02z.repl
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
cpu: CPU.CortexM @ sysbus
cpuType: "cortex-m0+"
nvic: nvic
nvic: IRQControllers.NVIC @ sysbus 0xE000E000
systickFrequency: 1000000000 // 1000 MHz
IRQ -> cpu@0
wdt: Timers.KE02Z_WDT @ sysbus 0x40052000
IRQ -> nvic@28
ics: Miscellaneous.KE02Z_ICS @ sysbus 0x40064000
IRQ -> nvic@27
osc: Miscellaneous.KE02Z_OSC @ sysbus 0x40065000
sim: Miscellaneous.KE02Z_SIM @ sysbus 0x40048000
flash: Memory.MappedMemory @ sysbus 0x0
size: 0x00010000 // 64 KB
sram: Memory.MappedMemory @ sysbus 0x1FFFFC00
size: 0x00001000 // 4 KB
gpioA: GPIOPort.NXPGPIOPort @ {
sysbus new Bus.BusMultiRegistration { address: 0x400FF000; size: 0x40; region: "gpio" };
sysbus new Bus.BusMultiRegistration { address: 0x40049000; size: 0xD0; region: "port" }}
numberOfPins: 32
gpioB: GPIOPort.NXPGPIOPort @ {
sysbus new Bus.BusMultiRegistration { address: 0x400FF040; size: 0x40; region: "gpio" };
sysbus new Bus.BusMultiRegistration { address: 0x4004A000; size: 0xD0; region: "port" }}
numberOfPins: 32
uart0: UART.KE02Z_UART @ sysbus 0x4006A000
IRQ -> nvic@12
uart1: UART.KE02Z_UART @ sysbus 0x4006B000
IRQ -> nvic@12
uart2: UART.KE02Z_UART @ sysbus 0x4006C000
IRQ -> nvic@14
sysbus:
init:
// System Memory Map
Tag <0x00000000, 0x07FFFFFF> "ProgramFlash"
Tag <0x10000000, 0x100000FF> "EEPROM"
Tag <0x1FFFFC00, 0x1FFFFFFF> "SRAM_L"
Tag <0x20000000, 0x20000BFF> "SRAM_R"
Tag <0x40000000, 0x4007FFFF> "AIPSPeripherals" // AIPS
Tag <0x400FF000, 0x400FFFFF> "GPIO"
Tag <0x44000000, 0x5FFFFFFF> "BitManipulationEngine" // BME
Tag <0xE0000000, 0xE00FFFFF> "PrivatePeripherals" // PPB
Tag <0xF0003000, 0xF0003FFF> "MiscControlModule" // MCM
Tag <0xF8000000, 0xFFFFFFFF> "FastGPIO" // FGPIO
// Private Peripheral Bus (PPB) Memory Map
Tag <0xE000E010, 0xE000E0FF> "SysTick"
Tag <0xE000E100, 0xE000ECFF> "NVIC"
Tag <0xE000ED00, 0xE000ED8F> "SystemControlBlock" // SCB
Tag <0xE000EDF0, 0xE000EEFF> "Debug"
Tag <0xE00FF000, 0xE00FFFFF> "CoreRomSpace" // CRS
// Peripheral Bridge (AIPS-Lite) Memory Map
Tag <0x4000F000, 0x4000F004> "GpioController" // (aliased to 0x400F_F000)
Tag <0x40020000, 0x40020001> "FlashMemory" // FTMRH
Tag <0x40031000, 0x40031001> "IrqController" // IRQ
Tag <0x40032000, 0x40032004> "CyclicRedundancyCheck" // CRC
Tag <0x40037000, 0x40037004> "ProgrammableInterruptTimers" // PIT
Tag <0x40038000, 0x40038004> "FlexTimer0" // FTM0
Tag <0x40039000, 0x40039004> "FlexTimer1" // FTM1
Tag <0x4003A000, 0x4003A004> "FlexTimer2" // FTM2
Tag <0x4003B000, 0x4003B004> "AnalogToDigitalConverter" // ADC
Tag <0x4003D000, 0x4003D004> "RealtimeClock" // RTC
Tag <0x40049000, 0x40049004> "PortController" //
Tag <0x40065000, 0x40065001> "SystemOscillator" 0xF // OSC
Tag <0x40066000, 0x40066001> "I2C0"
Tag <0x40073000, 0x40073001> "AnalogComparator0" // ACMP0
Tag <0x40074000, 0x40074001> "AnalogComparator1" // ACMP1
Tag <0x40076000, 0x40076001> "SerialPeripheralInterface0" // SPI0
Tag <0x40077000, 0x40077001> "SerialPeripheralInterface1" // SPI1
Tag <0x40079000, 0x40079001> "KeyboardInterrupt0" // KBI0
Tag <0x4007A000, 0x4007A001> "KeyboardInterrupt1" // KBI1
Tag <0x4007D000, 0x4007D001> "PowerManagementController" // PMC
Tag <0x400FF000, 0x400FF004> "GpioControllerAlias" // Aias of 0x4000F000 above