diff --git a/boards/arduino-atmega-common/Makefile.include b/boards/arduino-atmega-common/Makefile.include index 0f008fcffd89c3fce634ea925fdaa6b55d9c2fff..3d34267eacb9e53adb9241554f891c3bd59dc520 100644 --- a/boards/arduino-atmega-common/Makefile.include +++ b/boards/arduino-atmega-common/Makefile.include @@ -1,6 +1,8 @@ # include optional dependencies include $(RIOTBOARD)/arduino-atmega-common/Makefile.dep +INCLUDES += -I$(RIOTBOARD)/arduino-atmega-common/include + # define port used to flash the board OS = $(shell uname) ifeq ($(OS),Linux) diff --git a/boards/arduino-atmega-common/include/board.h b/boards/arduino-atmega-common/include/board_common.h similarity index 97% rename from boards/arduino-atmega-common/include/board.h rename to boards/arduino-atmega-common/include/board_common.h index 4ac9984b96f784e0871c4e39576e2cec8c825daf..ee3ef7ef00050dd50a32fa531862ced79a037c9a 100644 --- a/boards/arduino-atmega-common/include/board.h +++ b/boards/arduino-atmega-common/include/board_common.h @@ -22,8 +22,8 @@ * @author Laurent Navet <laurent.navet@gmail.com> */ -#ifndef BOARD_H -#define BOARD_H +#ifndef BOARD_COMMON_H +#define BOARD_COMMON_H #include "cpu.h" #include "arduino_pinmap.h" @@ -106,5 +106,5 @@ void board_init(void); } #endif -#endif /* BOARD_H */ +#endif /* BOARD_COMMON_H */ /** @} */ diff --git a/boards/arduino-duemilanove/Makefile.include b/boards/arduino-duemilanove/Makefile.include index 45a8b2c9f7c8f7f7e1de1601e9e43de3f7d31ab8..51fdbd905cebb91796eff689b94cc577fceed7ad 100644 --- a/boards/arduino-duemilanove/Makefile.include +++ b/boards/arduino-duemilanove/Makefile.include @@ -3,9 +3,6 @@ export CPU = atmega328p USEMODULE += arduino-atmega-common -# add arduino-atmega-common include path -INCLUDES += -I$(RIOTBOARD)/arduino-atmega-common/include - #export needed for flash rule export PORT_LINUX ?= /dev/ttyUSB0 export PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*))) diff --git a/boards/arduino-duemilanove/include/board.h b/boards/arduino-duemilanove/include/board.h new file mode 100644 index 0000000000000000000000000000000000000000..0e49b2ce0e5bbd7faa45be313a40ea3b3be5780a --- /dev/null +++ b/boards/arduino-duemilanove/include/board.h @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2017 Freie Universität Berlin + * + * This file is subject to the terms and conditions of the GNU Lesser + * General Public License v2.1. See the file LICENSE in the top level + * directory for more details. + */ + +/** + * @defgroup boards_arduino-duemilanove Arduino Duemilanove + * @ingroup boards + * @brief Support for the Arduino Duemilanove board + * @{ + * + * @file + * @brief Board specific definitions for the Arduino Duemilanove board + * + * @author Martine Lenders <m.lenders@fu-berlin.de> + */ + +#ifndef BOARD_H +#define BOARD_H + +#include "board_common.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* BOARD_H */ +/** @} */ diff --git a/boards/arduino-mega2560/Makefile.include b/boards/arduino-mega2560/Makefile.include index de5cc950488ed72e3cce32e15a254eae1eb196b0..fedd10f136547abd77c992817285e26b97267a73 100644 --- a/boards/arduino-mega2560/Makefile.include +++ b/boards/arduino-mega2560/Makefile.include @@ -3,9 +3,6 @@ export CPU = atmega2560 USEMODULE += arduino-atmega-common -# add arduino-atmega-common include path -INCLUDES += -I$(RIOTBOARD)/arduino-atmega-common/include - #export needed for flash rule export PORT_LINUX ?= /dev/ttyACM0 export PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*))) @@ -17,4 +14,4 @@ export FFLAGS += -p m2560 # overridden for debugging (which requires changes that require to use an ISP) export PROGRAMMER ?= stk500v2 -include $(RIOTBOARD)/arduino-atmega-common/Makefile.include \ No newline at end of file +include $(RIOTBOARD)/arduino-atmega-common/Makefile.include diff --git a/boards/arduino-mega2560/include/board.h b/boards/arduino-mega2560/include/board.h new file mode 100644 index 0000000000000000000000000000000000000000..384350f83343240f3777bb8fd4d5882f576473a2 --- /dev/null +++ b/boards/arduino-mega2560/include/board.h @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2017 Freie Universität Berlin + * + * This file is subject to the terms and conditions of the GNU Lesser + * General Public License v2.1. See the file LICENSE in the top level + * directory for more details. + */ + +/** + * @defgroup boards_arduino-mega2560 Arduino Mega 2560 + * @ingroup boards + * @brief Support for the Arduino Mega 2560 board + * @{ + * + * @file + * @brief Board specific definitions for the Arduino Mega 2560 board + * + * @author Martine Lenders <m.lenders@fu-berlin.de> + */ + +#ifndef BOARD_H +#define BOARD_H + +#include "board_common.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* BOARD_H */ +/** @} */ diff --git a/boards/arduino-uno/Makefile.include b/boards/arduino-uno/Makefile.include index 4f30ca91d2e499056fc59f3faf19c932d1f6936c..16616f50dc3c8d5d92d7faa22564875be403ad1b 100644 --- a/boards/arduino-uno/Makefile.include +++ b/boards/arduino-uno/Makefile.include @@ -3,9 +3,6 @@ export CPU = atmega328p USEMODULE += arduino-atmega-common -# add arduino-atmega-common include path -INCLUDES += -I$(RIOTBOARD)/arduino-atmega-common/include - # export needed for flash rule export PORT_LINUX ?= /dev/ttyACM0 export PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*))) diff --git a/boards/arduino-uno/include/board.h b/boards/arduino-uno/include/board.h new file mode 100644 index 0000000000000000000000000000000000000000..de71b61b1aa4e30d2237b456c7c0ba22b72491c8 --- /dev/null +++ b/boards/arduino-uno/include/board.h @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2017 Freie Universität Berlin + * + * This file is subject to the terms and conditions of the GNU Lesser + * General Public License v2.1. See the file LICENSE in the top level + * directory for more details. + */ + +/** + * @defgroup boards_arduino-uno Arduino Uno + * @ingroup boards + * @brief Support for the Arduino Uno board + * @{ + * + * @file + * @brief Board specific definitions for the Arduino Uno board + * + * @author Martine Lenders <m.lenders@fu-berlin.de> + */ + +#ifndef BOARD_H +#define BOARD_H + +#include "board_common.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* BOARD_H */ +/** @} */