From abba25e068fb5c6989075d04bab827ec8a21710c Mon Sep 17 00:00:00 2001
From: kYc0o <fco.ja.ac@gmail.com>
Date: Tue, 7 Jun 2016 17:55:18 +0200
Subject: [PATCH] boards/arduino-mega2560: define UART for STDIO

---
 boards/arduino-mega2560/include/board.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/boards/arduino-mega2560/include/board.h b/boards/arduino-mega2560/include/board.h
index 8bd917f531..5432669417 100644
--- a/boards/arduino-mega2560/include/board.h
+++ b/boards/arduino-mega2560/include/board.h
@@ -28,6 +28,11 @@
 extern "C" {
 #endif
 
+/**
+ * @brief Use the UART 0 for STDIO on this board
+ */
+#define UART_STDIO_DEV      UART_DEV(0)
+
 /**
 * @brief As the CPU is too slow to handle 115200 baud, we set the default
 *        baudrate to 9600 for this board
-- 
GitLab