Fixes for enums in TactilityC (#404)

This commit is contained in:
Ken Van Hoeylandt
2025-11-01 09:38:32 +01:00
committed by GitHub
parent 569cce38fa
commit e2ec39304c
8 changed files with 18 additions and 20 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ typedef unsigned int GpioPin;
/** GPIO pin mode used by the HAL.
* @warning The order must match tt::hal::gpio::Mode
*/
enum GpioMode {
typedef enum {
/** Pin is disabled (high-impedance). */
GpioModeDisable = 0,
/** Pin configured as input only. */
@@ -28,7 +28,7 @@ enum GpioMode {
GpioModeInputOutput,
/** Pin configured for both input and output (open-drain). */
GpioModeInputOutputOpenDrain
};
} GpioMode;
/** Configure a single GPIO pin.
* @param[in] pin GPIO number to configure.