summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Campbell <leecam@google.com>2016-03-01 16:10:06 -0800
committerBertrand SIMONNET <bsimonnet@google.com>2016-05-17 15:37:13 -0700
commit04e9493ab0a70641e976d1a2d11e9beb8dce7834 (patch)
treef373824bd1450c42b5c2bb1b8f95072e4012101a
parent42cf3872dd5cbf3fb68e89ce15019a3cf98431b1 (diff)
downloadedison-04e9493ab0a70641e976d1a2d11e9beb8dce7834.tar.gz
PIO HAL: Enable UART.
Bug: 27898961 Change-Id: Ie3a6927e8361c6357b4213e50ca6b541154a2d84
-rw-r--r--pio_hal/pio_hal.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/pio_hal/pio_hal.cc b/pio_hal/pio_hal.cc
index 1d778d3..d430108 100644
--- a/pio_hal/pio_hal.cc
+++ b/pio_hal/pio_hal.cc
@@ -276,9 +276,8 @@ static int register_device(const peripheral_io_module_t* dev,
const char* uart_pins[2] = {"IO0", "IO1"};
callbacks->register_simple_source("UART", uart_pins, 2);
- // TODO(leecam): Add UART back in once UART code lands
- //callbacks->register_uart_bus("UART1", "/dev/ttyMFD1");
- //callbacks->set_uart_pin_mux("UART1", "UART");
+ callbacks->register_uart_bus("UART1", "/dev/ttyMFD1");
+ callbacks->set_uart_pin_mux("UART1", "UART");
// Enable the Tri-State
set_pin_direction(214, "out");