仿真平台内核初版 -tlib库 包含<sparc arm riscv powerPC>
This commit is contained in:
35
tests/peripherals/LSM9DS1.robot
Normal file
35
tests/peripherals/LSM9DS1.robot
Normal file
@@ -0,0 +1,35 @@
|
||||
*** Variables ***
|
||||
${UART} sysbus.uart0
|
||||
${URI} @https://dl.antmicro.com/projects/renode
|
||||
|
||||
*** Keywords ***
|
||||
Create Machine
|
||||
Execute Command mach create
|
||||
Execute Command machine LoadPlatformDescription @platforms/boards/arduino_nano_33_ble.repl
|
||||
|
||||
Execute Command sysbus LoadELF ${URI}/arduino_nano_33_ble--tf_magic_wand.elf-s_7482772-5722cd8b1dd7b040366cbc259f5175b62aa4496c
|
||||
|
||||
*** Test Cases ***
|
||||
Should Detect RING Motion
|
||||
Create Machine
|
||||
Create Terminal Tester ${UART}
|
||||
|
||||
# This line must use the "path" notation to handle paths with spaces
|
||||
Execute Command sysbus.twi0.lsm9ds1_imu FeedAccelerationSample "${CURDIR}${/}circle_rotated.data"
|
||||
|
||||
Start Emulation
|
||||
Wait For Line On Uart Magic starts
|
||||
Wait For Line On Uart RING:
|
||||
|
||||
Should Detect SLOPE Motion
|
||||
Create Machine
|
||||
Create Terminal Tester ${UART}
|
||||
|
||||
# This line must use the "path" notation to handle paths with spaces
|
||||
Execute Command sysbus.twi0.lsm9ds1_imu FeedAccelerationSample "${CURDIR}${/}angle_rotated.data"
|
||||
|
||||
Start Emulation
|
||||
Wait For Line On Uart Magic starts
|
||||
Wait For Line On Uart SLOPE:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user