rename chapters
This commit is contained in:
23
Chapter16/fsm/renode_scripts/stm32f072.resc
Normal file
23
Chapter16/fsm/renode_scripts/stm32f072.resc
Normal file
@@ -0,0 +1,23 @@
|
||||
using sysbus
|
||||
|
||||
mach create
|
||||
machine LoadPlatformDescription $ORIGIN/stm32f072.repl
|
||||
machine LoadPlatformDescriptionFromString "button1: Miscellaneous.Button @ gpioPortA 4 { IRQ -> gpioPortA@4 }"
|
||||
machine LoadPlatformDescriptionFromString "button2: Miscellaneous.Button @ gpioPortA 5 { IRQ -> gpioPortA@5 }"
|
||||
machine LoadPlatformDescriptionFromString "button3: Miscellaneous.Button @ gpioPortA 6 { IRQ -> gpioPortA@6 }"
|
||||
machine LoadPlatformDescriptionFromString "button4: Miscellaneous.Button @ gpioPortA 7 { IRQ -> gpioPortA@7 }"
|
||||
machine LoadPlatformDescriptionFromString "button5: Miscellaneous.Button @ gpioPortA 8 { IRQ -> gpioPortA@8 }"
|
||||
machine LoadPlatformDescriptionFromString "button6: Miscellaneous.Button @ gpioPortA 9 { IRQ -> gpioPortA@9 }"
|
||||
|
||||
$bin?=$ORIGIN/../build/bare.elf
|
||||
|
||||
showAnalyzer usart2
|
||||
|
||||
macro reset
|
||||
"""
|
||||
sysbus LoadELF $bin
|
||||
"""
|
||||
|
||||
runMacro $reset
|
||||
|
||||
start
|
||||
Reference in New Issue
Block a user