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/
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.
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/