@@ -34,6 +34,16 @@ extern "C" {
3434 * # Defined behavior
3535 * * ::gpio_init and other init functions can be called with NC or a valid PinName for the target - Verified by ::gpio_nc_test
3636 * * ::gpio_is_connected can be used to test whether a gpio_t object was initialized with NC - Verified by ::gpio_nc_test
37+ * * ::gpio_init initializes the GPIO pin
38+ * * ::gpio_mode sets the mode of the given pin
39+ * * ::gpio_dir sets the direction of the given pin
40+ * * ::gpio_write sets the gpio output value
41+ * * ::gpio_read reads the input value
42+ * * ::gpio_init_in inits the input pin and sets mode to PullDefault
43+ * * ::gpio_init_in_ex inits the input pin and sets the mode
44+ * * ::gpio_init_out inits the pin as an output, with predefined output value 0
45+ * * ::gpio_init_out_ex inits the pin as an output and sets the output value
46+ * * ::gpio_init_inout inits the pin to be input/output and set pin mode and value
3747 *
3848 * # Undefined behavior
3949 * * Calling any ::gpio_mode, ::gpio_dir, ::gpio_write or ::gpio_read on a gpio_t object that was initialized
@@ -43,6 +53,16 @@ extern "C" {
4353 * @{
4454 */
4555
56+ /**
57+ * \defgroup hal_gpio_tests GPIO HAL tests
58+ * The GPIO HAL tests ensure driver conformance to defined behaviour.
59+ *
60+ * To run the GPIO hal tests use the command:
61+ *
62+ * mbed test -t <toolchain> -m <target> -n tests-mbed_hal_fpga_ci_test_shield-gpio,tests-mbed_hal-gpio
63+ *
64+ */
65+
4666/** Set the given pin as GPIO
4767 *
4868 * @param pin The pin to be set as GPIO
0 commit comments