diff --git a/api/mraa/common.h b/api/mraa/common.h index 18af987..20c1b70 100644 --- a/api/mraa/common.h +++ b/api/mraa/common.h @@ -43,20 +43,6 @@ extern "C" { */ typedef unsigned int mraa_boolean_t; -/** - * Enum representing different possible modes for a pin. - */ -typedef enum { - MRAA_PIN_VALID = 0, /**< Pin Valid */ - MRAA_PIN_GPIO = 1, /**< General Purpose IO */ - MRAA_PIN_PWM = 2, /**< Pulse Width Modulation */ - MRAA_PIN_FAST_GPIO = 3, /**< Faster GPIO */ - MRAA_PIN_SPI = 4, /**< SPI */ - MRAA_PIN_I2C = 5, /**< I2C */ - MRAA_PIN_AIO = 6, /**< Analog in */ - MRAA_PIN_UART = 7 /**< UART */ -} mraa_pinmodes_t; - /** * A bitfield representing the capabilities of a pin. */ diff --git a/api/mraa/types.h b/api/mraa/types.h index 78885ec..f194903 100644 --- a/api/mraa/types.h +++ b/api/mraa/types.h @@ -67,6 +67,20 @@ typedef enum { MRAA_ERROR_UNSPECIFIED = 99 /**< Unknown Error */ } mraa_result_t; +/** + * Enum representing different possible modes for a pin. + */ +typedef enum { + MRAA_PIN_VALID = 0, /**< Pin Valid */ + MRAA_PIN_GPIO = 1, /**< General Purpose IO */ + MRAA_PIN_PWM = 2, /**< Pulse Width Modulation */ + MRAA_PIN_FAST_GPIO = 3, /**< Faster GPIO */ + MRAA_PIN_SPI = 4, /**< SPI */ + MRAA_PIN_I2C = 5, /**< I2C */ + MRAA_PIN_AIO = 6, /**< Analog in */ + MRAA_PIN_UART = 7 /**< UART */ +} mraa_pinmodes_t; + /** * This function attempts to set the mraa process to a given priority and the * scheduler to SCHED_RR. Highest * priority is typically 99 and minimum is 0.