From e2cb8e7c81df2ad44efb944ca5f96f0154aeea81 Mon Sep 17 00:00:00 2001
From: Hauke Petersen <hauke.petersen@fu-berlin.de>
Date: Fri, 29 May 2015 13:12:30 +0200
Subject: [PATCH] sys/uart0: include cpu.h in board_uart0.h

Some CPUs (e.g. cortex-m based ones) define the UART0_BUFSIZE
in cpu.h. So also include this file here.
---
 sys/include/board_uart0.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/include/board_uart0.h b/sys/include/board_uart0.h
index 9a3b354524..9f100836c5 100644
--- a/sys/include/board_uart0.h
+++ b/sys/include/board_uart0.h
@@ -21,7 +21,8 @@
 #define __BOARD_UART0_H
 
 #include "kernel_types.h"
-#include "cpu_conf.h"   /* To give user access to UART0_BUFSIZE */
+#include "cpu.h"        /* To give user access to UART0_BUFSIZE */
+#include "cpu_conf.h"   /* Some CPUs define this in cpu_conf.h... */
 
 #ifdef __cplusplus
 extern "C" {
-- 
GitLab