Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion RIOT
Submodule RIOT updated 1031 files
9 changes: 8 additions & 1 deletion dist/robotframework/res/api_shell.keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Library String
Library Collections

Resource util.keywords.txt

*** Keywords ***
API Call Expect
[Documentation] Fails if the result of the given ``call`` does not
Expand All @@ -26,11 +28,16 @@ API Call Should Error
[Arguments] ${call} @{args} &{kwargs}
API Call Expect Error ${call} @{args} &{kwargs}

API Get Last Result As Integer
API Result Data As Integer
[Documentation] Return result of last API call as an integer
${ret}= Convert to Integer ${RESULT['data'][0]}
[Return] ${ret}

API Result Data As List
[Documentation] Return result of last API call as list
${ret}= Set Variable ${RESULT['data']}
[Return] ${ret}

API Result Message Should Contain
[Documentation] Fails if ${msg} is not in the last API message
[Arguments] ${msg}
Expand Down
6 changes: 6 additions & 0 deletions dist/robotframework/res/philip.keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ PHILIP Log Stats
[Documentation] Write PHiLIP statistics to log and print on console
${stats}= PHILIP Stats
Log ${stats}

PHILIP Trace GPIO ${pin}
[Documentation] Enable tracing for a gpio debug pin
API Call Should Succeed PHiLIP.Write Reg gpio[${pin}].mode.init 0
API Call Should Succeed PHiLIP.Write Reg gpio[${pin}].mode.io_type 3
API Call Should Succeed PHiLIP.Execute Changes
10 changes: 10 additions & 0 deletions dist/robotframework/res/util.keywords.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
*** Settings ***
Library String
Library Collections

*** Keywords ***
Length Should Be Greater
[Documentation] Evaluate length of list to be greater than given number.
[Arguments] ${list} ${gtlen}
${length}= Get Length ${list}
Should be True ${length} > ${gtlen}
7 changes: 7 additions & 0 deletions tests/periph_timer/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
include ../Makefile.tests_common

USEMODULE += shell
FEATURES_REQUIRED += periph_timer
FEATURES_REQUIRED += periph_gpio

include $(RIOTBASE)/Makefile.include
16 changes: 16 additions & 0 deletions tests/periph_timer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# periph timer test

This application provides a wrapper for testing the periph_timer api via the
RIOT shell. To capture fast low level timing events some functions provide
additional parameters to signal events over gpio pins e.g. before calling a
timer function or on ISR callback execution.
While this test can be run manually and with any external measurement equipment,
it is recommended to use it together with the provided robot test on a PHiLIP-
based HIL setup.
Consult the 'help' shell command for available actions.

Running this test with robot framework is done with this command:
`BOARD=whatever PORT=/dev/ttyACM0 PHILIP_PORT=/dev/ttyACM1 DEBUG0_PORT=1 DEBUG0_PIN=3 make robot-test`

Where DEBUG0_PORT and DEBUG0_PIN are the RIOT specific pin identifiers of the
DUT pin that is connected to PHiLIPs DEBUG0 pin.
Loading