From c380603a5dad3d3c6b4d9e639f0085a4ab9d9fd5 Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Mon, 15 Jul 2013 20:57:12 +0200 Subject: [PATCH] moved native internal functions declarations --- native/board_init.c | 2 ++ native/drivers/native-uart0.c | 2 +- native/include/board.h | 6 ------ native/include/board_internal.h | 6 ++++++ 4 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 native/include/board_internal.h diff --git a/native/board_init.c b/native/board_init.c index d32c653dc9..fa1a319afc 100644 --- a/native/board_init.c +++ b/native/board_init.c @@ -15,6 +15,8 @@ #include #include "board.h" +#include "board_internal.h" + /** * Nothing to initialize at the moment. * Turns the red LED on and the green LED off. diff --git a/native/drivers/native-uart0.c b/native/drivers/native-uart0.c index b43a7dcbe4..3af009eee4 100644 --- a/native/drivers/native-uart0.c +++ b/native/drivers/native-uart0.c @@ -17,7 +17,7 @@ int _native_uart_out; fd_set _native_uart_rfds; -static inline int uart0_puts(char *astring, int length) +inline int uart0_puts(char *astring, int length) { return puts(astring); } diff --git a/native/include/board.h b/native/include/board.h index 69e40eb383..18ee528271 100644 --- a/native/include/board.h +++ b/native/include/board.h @@ -21,9 +21,3 @@ void LED_GREEN_TOGGLE(void); void LED_RED_OFF(void); void LED_RED_ON(void); void LED_RED_TOGGLE(void); - -#ifdef MODULE_UART0 -#include -extern fd_set _native_uart_rfds; -extern void _native_handle_uart0_input(void); -#endif diff --git a/native/include/board_internal.h b/native/include/board_internal.h new file mode 100644 index 0000000000..752cbcdfb5 --- /dev/null +++ b/native/include/board_internal.h @@ -0,0 +1,6 @@ +#ifdef MODULE_UART0 +#include +extern fd_set _native_uart_rfds; +void _native_handle_uart0_input(void); +void _native_init_uart0(void); +#endif