]> git.earman.xyz Git - sensor-watch.git/commitdiff
deprecate most watch_gpio functions in favor of gossamer
authorjoeycastillo <joeycastillo@utexas.edu>
Mon, 7 Oct 2024 11:34:15 +0000 (07:34 -0400)
committerjoeycastillo <joeycastillo@utexas.edu>
Mon, 7 Oct 2024 11:34:15 +0000 (07:34 -0400)
watch-library/shared/watch/watch_gpio.h

index 53f1d4dd49ad9a81b809f46dccd1b604010a42d9..c9117c990ea7ee5df629da1669fa14f5cbfc33e2 100644 (file)
@@ -40,7 +40,7 @@ void watch_enable_digital_input(const uint8_t pin);
 /** @brief Disables any digital input, along with any pull-up or pull-down configuration.
   * @param pin The pin that you wish to disable.
   */
-void watch_disable_digital_input(const uint8_t pin);
+void watch_disable_digital_input(const uint8_t pin) __attribute__ ((deprecated("Use HAL_GPIO_PIN_off() macro.")));
 
 /** @brief Enables a pull-up resistor on the selected pin.
   * @param pin The pin that you wish to configure.
@@ -56,21 +56,21 @@ void watch_enable_pull_down(const uint8_t pin);
   * @param pin The pin whose value you wish to read.
   * @return true if the pin was logic high; otherwise, false.
   */
-bool watch_get_pin_level(const uint8_t pin);
+bool watch_get_pin_level(const uint8_t pin) __attribute__ ((deprecated("Use HAL_GPIO_PIN_read() macro.")));
 
 /** @brief Configures the selected pin for digital output.
   * @param pin The pin that you wish to act as an output.
   */
-void watch_enable_digital_output(const uint8_t pin);
+void watch_enable_digital_output(const uint8_t pin) __attribute__ ((deprecated("Use HAL_GPIO_PIN_out() macro.")));
 
 /** @brief Disables digital output on the selected pin.
   * @param pin The pin that you wish disable.
   */
-void watch_disable_digital_output(const uint8_t pin);
+void watch_disable_digital_output(const uint8_t pin) __attribute__ ((deprecated("Use HAL_GPIO_PIN_off() macro.")));
 
 /** @brief Sets the level of the selected pin.
   * @param pin The pin whose value you wish to set.
   * @param level The level you wish to set: true for high, false for low.
   */
-void watch_set_pin_level(const uint8_t pin, const bool level);
+void watch_set_pin_level(const uint8_t pin, const bool level) __attribute__ ((deprecated("Use HAL_GPIO_PIN_write() macro.")));
 /// @}