 ///   - board: The board name
 /// - Returns: The output ports
 public func setupOUT(ports: [GPIOName], for board: SupportedBoard) -> [GPIOName: GPIO] {
-  let gpios = GPIOs(for: board)
-  var result: [GPIOName: GPIO] = [:]
-  for key in ports {
-    if let gpio = gpios[key] {
-      gpio.direction = .OUT
-      gpio.value = 0
-      result[key] = gpio
+    let gpios = GPIOs(for: board)
+    var result: [GPIOName: GPIO] = [:]
+    for key in ports {
+        if let gpio = gpios[key] {
+            gpio.direction = .OUT
+            gpio.value = 0
+            result[key] = gpio
+        }
     }
-  }
-
-  return result
+    
+    return result
 }
 
 /// Returns a list of GPIOs configured as input

///   - board: The board name
/// - Returns: The input ports
public func setupIN(ports: [GPIOName], for board: SupportedBoard) -> [GPIOName: GPIO] {
  let gpios = GPIOs(for: board)
  var result: [GPIOName: GPIO] = [:]
  for key in ports {
    if let gpio = gpios[key] {
      gpio.direction = .IN
      result[key] = gpio
    }
  }

  return result
}

#if os(Linux)
    import Glibc
#else
    import Darwin.C
#endif

import SwiftyGPIO

private func GPIOs(for board: SupportedBoard) -> [GPIOName: GPIO] {
    return SwiftyGPIO.GPIOs(for: board)
}

/// Returns a list of GPIOs configured as output
