Fix missing gpio_get_pad prototype in hardware/gpio.h (#3232)

* Fix missing gpio_get_pad prototype in hardware/gpio.h

Fixes #2154

* Update src/rp2_common/hardware_gpio/include/hardware/gpio.h

Co-authored-by: Andrew Scheller <andrew.scheller@raspberrypi.com>

---------

Co-authored-by: Andrew Scheller <andrew.scheller@raspberrypi.com>
diff --git a/src/rp2_common/hardware_gpio/include/hardware/gpio.h b/src/rp2_common/hardware_gpio/include/hardware/gpio.h
index 49b2975..aa2ddc3 100644
--- a/src/rp2_common/hardware_gpio/include/hardware/gpio.h
+++ b/src/rp2_common/hardware_gpio/include/hardware/gpio.h
@@ -903,6 +903,19 @@
 #endif
 }
 
+/*! \brief Get the raw input level at the pad of a single specified GPIO
+ *  \ingroup hardware_gpio
+ *
+ * This reads the signal coming from the pad, before any GPIO function muxing or input override
+ * (see \ref gpio_set_inover) is applied, so it reflects the state of the pin even when it is not assigned to SIO.
+ *
+ * \note As a side effect this enables input on the pad (see \ref gpio_set_input_enabled) and leaves it enabled.
+ *
+ * \param gpio GPIO number
+ * \return 1 if the pad input is high, 0 if it is low
+ */
+int gpio_get_pad(uint gpio);
+
 /*! \brief Get raw value of all GPIOs
  *  \ingroup hardware_gpio
  *