types.h: Move mraa_pinmodes_t to types.h
authorBrendan Le Foll <brendan.le.foll@intel.com>
Tue, 2 Dec 2014 23:18:20 +0000 (23:18 +0000)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Tue, 2 Dec 2014 23:18:20 +0000 (23:18 +0000)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
api/mraa/common.h
api/mraa/types.h

index 18af987..20c1b70 100644 (file)
@@ -44,20 +44,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.
  */
 typedef struct {
index 78885ec..f194903 100644 (file)
@@ -68,6 +68,20 @@ typedef enum {
 } 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.
  * This function * will set to MAX if * priority is > MAX. Function will return