Simplify arch peripheral name

This commit is contained in:
dataisland
2022-02-05 12:37:56 +08:00
parent 3421233afb
commit e5d6c4059d
4 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ gd32vf103 = {
"ECLIC": {
"base": 0xd2000000,
"struct": "GD32VF1xxEclic",
"type": "core peripheral"
"type": "core"
},
"EXMC": {
"base": 0xa0000000,
+1 -1
View File
@@ -137,7 +137,7 @@ class QlLoaderMCU(QlLoader):
base = args['base']
self.ql.hw.setup_mmio(base, size, info=f'[{name}]')
if memtype == 'core peripheral':
if memtype == 'core':
self.ql.hw.create(name.lower())
def run(self):
+4 -4
View File
@@ -15,7 +15,7 @@
"kwargs": {
"dev_id": 0x413,
},
"type": "core peripheral"
"type": "peripheral"
},
"DMA1": {
"base": 0x40026000,
@@ -143,7 +143,7 @@
"NVIC": {
"base": 0xe000e100,
"struct": "CortexM4Nvic",
"type": "core peripheral"
"type": "core"
},
"PERIP": {
"base": 0x40000000,
@@ -186,7 +186,7 @@
"SCB": {
"base": 0xe000ed00,
"struct": "CortexM4Scb",
"type": "core peripheral"
"type": "core"
},
"SDIO": {
"base": 0x40012c00,
@@ -260,7 +260,7 @@
"SYSTICK": {
"base": 0xe000e010,
"struct": "CortexM4SysTick",
"type": "core peripheral"
"type": "core"
},
"TIM1": {
"base": 0x40010000,
+1
View File
@@ -331,6 +331,7 @@ class MCUTest(unittest.TestCase):
ql.hw.create('gpiod')
ql.hw.create('spi1')
ql.hw.create('crc')
ql.hw.create('dbgmcu')
flag = False
def indicator(ql):