1*** Variables ***
2${UART}                       sysbus.uart0
3${URI}                        @https://dl.antmicro.com/projects/renode
4
5*** Keywords **
6Create Platform
7    [Arguments]               ${elf}
8
9    Execute Command           mach create "max32650"
10    Execute Command           machine LoadPlatformDescription @platforms/boards/max32652-evkit.repl
11    Execute Command           sysbus LoadELF ${URI}/${elf}
12
13*** Test Cases ***
14Should return temperature from TMP103 over I2C
15    Create Platform           max32650-i2c_tmp103.elf-s_1036416-199a0f445f8bd65dd11b1f867f4848e732016892
16    Execute Command           machine LoadPlatformDescriptionFromString "tmp103: Sensors.TMP103 @ i2c1 0x70"
17
18    Create Terminal Tester    ${UART}
19
20    # Set temperature to 29C
21    Execute Command           sysbus.i2c1.tmp103 Temperature 29
22
23    Start Emulation
24    Wait For Line On Uart     Temperature: 29C
25