mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
svd2repl: generate repl with namespaced peripherals
Now that the peripherals are all namespaced, generate the repl files as part of the build using this new convention. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
4b3d1503e7
commit
934fb38f03
1 changed files with 22 additions and 22 deletions
|
|
@ -489,7 +489,7 @@ fn parse_vendor_extensions<T: BufRead>(
|
|||
fn print_header<U: Write>(out: &mut U) -> std::io::Result<()> {
|
||||
let s = r####"// Renode Platform file generated by svd2repl
|
||||
// This file is automatically generated
|
||||
cpu: CPU.AesVexRiscv @ sysbus
|
||||
cpu: CPU.Betrusted.AesVexRiscv @ sysbus
|
||||
cpuType: "rv32imac"
|
||||
privilegeArchitecture: PrivilegeArchitecture.Priv1_10
|
||||
PerformanceInMips: 120
|
||||
|
|
@ -499,11 +499,11 @@ cpu: CPU.AesVexRiscv @ sysbus
|
|||
|
||||
fn print_footer<U: Write>(out: &mut U) -> std::io::Result<()> {
|
||||
let s = r####"
|
||||
abracom_rtc: Sensors.ABRTCMC @ i2c 0x68
|
||||
abracom_rtc: Timers.Betrusted.ABRTCMC @ i2c 0x68
|
||||
|
||||
audio_codec: Sensors.TLV320AIC3100 @ i2c 0x18
|
||||
audio_codec: Sensors.Betrusted.TLV320AIC3100 @ i2c 0x18
|
||||
|
||||
flash: SPI.MXIC_MX66UM1G45G @ spinor
|
||||
flash: SPI.Betrusted.MXIC_MX66UM1G45G @ spinor
|
||||
underlyingMemory: spiflash
|
||||
|
||||
sysbus:
|
||||
|
|
@ -653,25 +653,25 @@ pub fn generate<T: Read, U: Write>(src: T, dest: &mut U) -> Result<(), ParseErro
|
|||
let mut cs_peripherals = HashMap::new();
|
||||
cs_peripherals.insert("app_uart", "UART.LiteX_UART");
|
||||
cs_peripherals.insert("console", "UART.LiteX_UART");
|
||||
cs_peripherals.insert("btevents", "GPIOPort.BtEvents");
|
||||
cs_peripherals.insert("engine", "Miscellaneous.Engine");
|
||||
cs_peripherals.insert("com", "SPI.BetrustedSocCom");
|
||||
cs_peripherals.insert("i2c", "I2C.BetrustedSocI2C");
|
||||
cs_peripherals.insert("jtag", "Miscellaneous.BetrustedJtag");
|
||||
cs_peripherals.insert("keyboard", "Input.BetrustedKbd");
|
||||
cs_peripherals.insert("keyrom", "Miscellaneous.Keyrom");
|
||||
cs_peripherals.insert("memlcd", "Video.BetrustedLCD");
|
||||
cs_peripherals.insert("sha512", "Miscellaneous.Sha512");
|
||||
cs_peripherals.insert("spinor_soft_int", "Miscellaneous.SpinorSoftInt");
|
||||
cs_peripherals.insert("spinor", "SPI.BetrustedSpinor");
|
||||
cs_peripherals.insert("susres", "Timers.SusRes");
|
||||
cs_peripherals.insert("timer0", "Timers.LiteX_Timer_32");
|
||||
cs_peripherals.insert("trng_kernel", "Miscellaneous.BetrustedRNGKernel");
|
||||
cs_peripherals.insert("trng_server", "Miscellaneous.BetrustedRNGServer");
|
||||
cs_peripherals.insert("ticktimer", "Timers.TickTimer");
|
||||
cs_peripherals.insert("btevents", "GPIOPort.Betrusted.BtEvents");
|
||||
cs_peripherals.insert("engine", "Miscellaneous.Betrusted.Engine");
|
||||
cs_peripherals.insert("com", "SPI.Betrusted.BetrustedSocCom");
|
||||
cs_peripherals.insert("i2c", "I2C.Betrusted.BetrustedSocI2C");
|
||||
cs_peripherals.insert("jtag", "Miscellaneous.Betrusted.BetrustedJtag");
|
||||
cs_peripherals.insert("keyboard", "Input.Betrusted.BetrustedKbd");
|
||||
cs_peripherals.insert("keyrom", "Miscellaneous.Betrusted.Keyrom");
|
||||
cs_peripherals.insert("memlcd", "Video.Betrusted.BetrustedLCD");
|
||||
cs_peripherals.insert("sha512", "Miscellaneous.Betrusted.Sha512");
|
||||
cs_peripherals.insert("spinor_soft_int", "Miscellaneous.Betrusted.SpinorSoftInt");
|
||||
cs_peripherals.insert("spinor", "SPI.Betrusted.BetrustedSpinor");
|
||||
cs_peripherals.insert("susres", "Timers.Betrusted.SusRes");
|
||||
cs_peripherals.insert("timer0", "Timers.Betrusted.LiteX_Timer_32");
|
||||
cs_peripherals.insert("trng_kernel", "Miscellaneous.Betrusted.BetrustedRNGKernel");
|
||||
cs_peripherals.insert("trng_server", "Miscellaneous.Betrusted.BetrustedRNGServer");
|
||||
cs_peripherals.insert("ticktimer", "Timers.Betrusted.TickTimer");
|
||||
cs_peripherals.insert("uart", "UART.LiteX_UART");
|
||||
cs_peripherals.insert("wfi", "Miscellaneous.BetrustedWfi");
|
||||
cs_peripherals.insert("wdt", "Timers.BetrustedWatchdog");
|
||||
cs_peripherals.insert("wfi", "Miscellaneous.Betrusted.BetrustedWfi");
|
||||
cs_peripherals.insert("wdt", "Timers.Betrusted.BetrustedWatchdog");
|
||||
|
||||
print_header(dest).or(Err(ParseError::WriteError))?;
|
||||
print_peripherals(
|
||||
|
|
|
|||
Loading…
Reference in a new issue