RIOT-OS / RobotFW-tests

Includes tests for RIOT based on the Robot Framework
GNU Lesser General Public License v2.1
4 stars 13 forks source link

tests/periph_gpio: Add periph gpio test for debug pin checks #38

Closed MrKevinWeiss closed 4 years ago

MrKevinWeiss commented 5 years ago

Description

This adds some firmware and interface for periph GPIO It also has a robot test to check if the debug pins are correct

This can serve as a basis for other GPIO tests but is immediatly useful to test if the debug pins in a CI are correct. This can be used in the future to check if the gpio_init can override pins initialized with af such as SPI and I2C pins. PHiLIP must first be upgraded to read the values of each of the pins.

The gpio port can be written a number of ways which gets taken care of in the python interface.

PORT_A
PORTA
P_A
PA
P0
0

Testing Procedure

What I did: DEBUG0_PORT=P1 DEBUG0_PIN=5 DEBUG1_PORT=P_B DEBUG1_PIN=3 DEBUG2_PORT=PA DEBUG2_PIN=12 PHILIP_PORT=/dev/ttyACM1 PORT=/dev/ttyACM0 BOARD=nucleo-l433rc make robot-clean robot-test robot-html -C tests/periph_gpio/

Generalized (fill in your own ?): DEBUG0_PORT=? DEBUG0_PIN=? DEBUG1_PORT=? DEBUG1_PIN=? DEBUG2_PORT=? DEBUG2_PIN=? PHILIP_PORT=? PORT=? BOARD=? make robot-clean robot-test robot-html -C tests/periph_gpio/

MrKevinWeiss commented 4 years ago

This seems to be working as expected, any chance we can get it in?

MrKevinWeiss commented 4 years ago

copied errors from other files, Should be OK now.

MrKevinWeiss commented 4 years ago

Thanks for the review!