From c6c0b752c3c77198b3534fade14ec0927be5007a Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Thu, 16 Nov 2017 18:10:48 +0100 Subject: [PATCH] boards/nucleo: use shard board.h and board.c files --- boards/common/nucleo/Makefile | 3 + boards/common/nucleo/board.c | 50 +++++++++++++ boards/common/nucleo/include/board_nucleo.h | 71 +++++++++++++++++++ .../include/{board_common.h => board.h} | 22 ++---- .../include/{board_common.h => board.h} | 23 ++---- .../common/nucleo64/include/arduino_board.h | 2 +- .../common/nucleo64/include/arduino_pinmap.h | 2 +- .../include/{board_common.h => board.h} | 26 +++---- boards/nucleo-f030/Makefile | 1 + boards/nucleo-f030/board.c | 37 ---------- boards/nucleo-f030/include/board.h | 45 ------------ boards/nucleo-f070/Makefile | 1 + boards/nucleo-f070/board.c | 37 ---------- boards/nucleo-f070/include/board.h | 46 ------------ boards/nucleo-f072/Makefile | 1 + boards/nucleo-f072/board.c | 36 ---------- boards/nucleo-f072/include/board.h | 44 ------------ boards/nucleo-f091/Makefile | 1 + boards/nucleo-f091/board.c | 34 --------- boards/nucleo-f091/include/board.h | 43 ----------- boards/nucleo-f103/Makefile | 1 + boards/nucleo-f103/board.c | 34 --------- boards/nucleo-f103/include/board.h | 42 ----------- boards/nucleo-f302/Makefile | 1 + boards/nucleo-f302/board.c | 34 --------- boards/nucleo-f302/include/board.h | 37 ---------- boards/nucleo-f303/Makefile | 1 + boards/nucleo-f303/board.c | 34 --------- boards/nucleo-f303/include/board.h | 37 ---------- boards/nucleo-f334/Makefile | 1 + boards/nucleo-f334/board.c | 34 --------- boards/nucleo-f334/include/board.h | 43 ----------- boards/nucleo-f401/Makefile | 1 + boards/nucleo-f401/board.c | 34 --------- boards/nucleo-f401/include/board.h | 43 ----------- boards/nucleo-f410/Makefile | 1 + boards/nucleo-f410/board.c | 34 --------- boards/nucleo-f410/include/board.h | 43 ----------- boards/nucleo-f411/Makefile | 1 + boards/nucleo-f411/board.c | 34 --------- boards/nucleo-f411/include/board.h | 43 ----------- boards/nucleo-f446/Makefile | 1 + boards/nucleo-f446/board.c | 34 --------- boards/nucleo-f446/include/board.h | 43 ----------- boards/nucleo-l053/Makefile | 1 + boards/nucleo-l053/board.c | 37 ---------- boards/nucleo-l053/include/board.h | 45 ------------ boards/nucleo-l073/Makefile | 1 + boards/nucleo-l073/board.c | 37 ---------- boards/nucleo-l073/include/board.h | 45 ------------ boards/nucleo-l152/Makefile | 1 + boards/nucleo-l152/board.c | 34 --------- boards/nucleo-l152/include/board.h | 43 ----------- boards/nucleo-l476/Makefile | 1 + boards/nucleo-l476/board.c | 34 --------- boards/nucleo-l476/include/board.h | 37 ---------- boards/nucleo144-f207/Makefile | 1 + boards/nucleo144-f207/board.c | 33 --------- boards/nucleo144-f207/include/board.h | 36 ---------- boards/nucleo144-f303/Makefile | 1 + boards/nucleo144-f303/board.c | 33 --------- boards/nucleo144-f303/include/board.h | 43 ----------- boards/nucleo144-f412/Makefile | 1 + boards/nucleo144-f412/board.c | 35 --------- boards/nucleo144-f412/include/board.h | 45 ------------ boards/nucleo144-f413/Makefile | 1 + boards/nucleo144-f413/board.c | 35 --------- boards/nucleo144-f413/include/board.h | 45 ------------ boards/nucleo144-f429/Makefile | 1 + boards/nucleo144-f429/board.c | 33 --------- boards/nucleo144-f429/include/board.h | 43 ----------- boards/nucleo144-f446/Makefile | 1 + boards/nucleo144-f446/board.c | 33 --------- boards/nucleo144-f446/include/board.h | 43 ----------- boards/nucleo144-f722/Makefile | 1 + boards/nucleo144-f722/board.c | 32 --------- boards/nucleo144-f722/include/board.h | 35 --------- boards/nucleo144-f746/Makefile | 1 + boards/nucleo144-f746/board.c | 32 --------- boards/nucleo144-f746/include/board.h | 35 --------- boards/nucleo144-f767/Makefile | 1 + boards/nucleo144-f767/board.c | 32 --------- boards/nucleo144-f767/include/board.h | 35 --------- boards/nucleo32-f031/Makefile | 1 + boards/nucleo32-f031/board.c | 36 ---------- boards/nucleo32-f031/include/board.h | 37 ---------- boards/nucleo32-f042/Makefile | 1 + boards/nucleo32-f042/board.c | 34 --------- boards/nucleo32-f042/include/board.h | 35 --------- boards/nucleo32-f303/Makefile | 1 + boards/nucleo32-f303/board.c | 34 --------- boards/nucleo32-f303/include/board.h | 35 --------- boards/nucleo32-l031/Makefile | 1 + boards/nucleo32-l031/board.c | 37 ---------- boards/nucleo32-l031/include/board.h | 40 ----------- boards/nucleo32-l432/Makefile | 1 + boards/nucleo32-l432/board.c | 36 ---------- boards/nucleo32-l432/include/board.h | 33 --------- 98 files changed, 178 insertions(+), 2303 deletions(-) create mode 100644 boards/common/nucleo/Makefile create mode 100644 boards/common/nucleo/board.c create mode 100644 boards/common/nucleo/include/board_nucleo.h rename boards/common/nucleo144/include/{board_common.h => board.h} (79%) rename boards/common/nucleo32/include/{board_common.h => board.h} (63%) rename boards/common/nucleo64/include/{board_common.h => board.h} (66%) delete mode 100644 boards/nucleo-f030/board.c delete mode 100644 boards/nucleo-f030/include/board.h delete mode 100644 boards/nucleo-f070/board.c delete mode 100644 boards/nucleo-f070/include/board.h delete mode 100644 boards/nucleo-f072/board.c delete mode 100644 boards/nucleo-f072/include/board.h delete mode 100644 boards/nucleo-f091/board.c delete mode 100644 boards/nucleo-f091/include/board.h delete mode 100644 boards/nucleo-f103/board.c delete mode 100644 boards/nucleo-f103/include/board.h delete mode 100644 boards/nucleo-f302/board.c delete mode 100644 boards/nucleo-f302/include/board.h delete mode 100644 boards/nucleo-f303/board.c delete mode 100644 boards/nucleo-f303/include/board.h delete mode 100644 boards/nucleo-f334/board.c delete mode 100644 boards/nucleo-f334/include/board.h delete mode 100644 boards/nucleo-f401/board.c delete mode 100644 boards/nucleo-f401/include/board.h delete mode 100644 boards/nucleo-f410/board.c delete mode 100644 boards/nucleo-f410/include/board.h delete mode 100644 boards/nucleo-f411/board.c delete mode 100644 boards/nucleo-f411/include/board.h delete mode 100644 boards/nucleo-f446/board.c delete mode 100644 boards/nucleo-f446/include/board.h delete mode 100644 boards/nucleo-l053/board.c delete mode 100644 boards/nucleo-l053/include/board.h delete mode 100644 boards/nucleo-l073/board.c delete mode 100644 boards/nucleo-l073/include/board.h delete mode 100644 boards/nucleo-l152/board.c delete mode 100644 boards/nucleo-l152/include/board.h delete mode 100644 boards/nucleo-l476/board.c delete mode 100644 boards/nucleo-l476/include/board.h delete mode 100644 boards/nucleo144-f207/board.c delete mode 100644 boards/nucleo144-f207/include/board.h delete mode 100644 boards/nucleo144-f303/board.c delete mode 100644 boards/nucleo144-f303/include/board.h delete mode 100644 boards/nucleo144-f412/board.c delete mode 100644 boards/nucleo144-f412/include/board.h delete mode 100644 boards/nucleo144-f413/board.c delete mode 100644 boards/nucleo144-f413/include/board.h delete mode 100644 boards/nucleo144-f429/board.c delete mode 100644 boards/nucleo144-f429/include/board.h delete mode 100644 boards/nucleo144-f446/board.c delete mode 100644 boards/nucleo144-f446/include/board.h delete mode 100644 boards/nucleo144-f722/board.c delete mode 100644 boards/nucleo144-f722/include/board.h delete mode 100644 boards/nucleo144-f746/board.c delete mode 100644 boards/nucleo144-f746/include/board.h delete mode 100644 boards/nucleo144-f767/board.c delete mode 100644 boards/nucleo144-f767/include/board.h delete mode 100644 boards/nucleo32-f031/board.c delete mode 100644 boards/nucleo32-f031/include/board.h delete mode 100644 boards/nucleo32-f042/board.c delete mode 100644 boards/nucleo32-f042/include/board.h delete mode 100644 boards/nucleo32-f303/board.c delete mode 100644 boards/nucleo32-f303/include/board.h delete mode 100644 boards/nucleo32-l031/board.c delete mode 100644 boards/nucleo32-l031/include/board.h delete mode 100644 boards/nucleo32-l432/board.c delete mode 100644 boards/nucleo32-l432/include/board.h diff --git a/boards/common/nucleo/Makefile b/boards/common/nucleo/Makefile new file mode 100644 index 0000000000..1b4b11ec13 --- /dev/null +++ b/boards/common/nucleo/Makefile @@ -0,0 +1,3 @@ +MODULE = boards_common_nucleo + +include $(RIOTBASE)/Makefile.base diff --git a/boards/common/nucleo/board.c b/boards/common/nucleo/board.c new file mode 100644 index 0000000000..9edd95d995 --- /dev/null +++ b/boards/common/nucleo/board.c @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2014-2017 Freie Universität Berlin + * 2015 Lari Lehtomäki + * 2015 TriaGnoSys GmbH + * 2016-2017 Inria + * 2016-2017 OTA keys + * + * 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. + */ + +/** + * @ingroup boards_nucleo + * @{ + * + * @file + * @brief Board initialization code for all Nucleo boards + * + * @author Hauke Petersen + * @author Thomas Eichinger + * @author Lari Lehtomäki + * @author Alexandre Abadie + * @author Víctor Ariño + * @author José Alamos + * @author Vincent Dupont + * + * @} + */ + +#include "board.h" +#include "periph/gpio.h" + +void board_init(void) +{ + /* initialize the CPU */ + cpu_init(); + + /* initialization of on-board LEDs + * NOTE: LED0 must be explicitly enabled as it is also used for SPI_DEV(0) */ +#ifdef AUTO_INIT_LED0 + gpio_init(LED0_PIN, GPIO_OUT); +#endif +#ifdef LED1_PIN + gpio_init(LED1_PIN, GPIO_OUT); +#endif +#ifdef LED2_PIN + gpio_init(LED2_PIN, GPIO_OUT); +#endif +} diff --git a/boards/common/nucleo/include/board_nucleo.h b/boards/common/nucleo/include/board_nucleo.h new file mode 100644 index 0000000000..c22bddd64d --- /dev/null +++ b/boards/common/nucleo/include/board_nucleo.h @@ -0,0 +1,71 @@ +/* + * 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_common_nucleo STM Nucleo Common + * @ingroup boards_common + * @brief Common files and configuration for all STM Nucleo boards + * @{ + * + * @file + * @brief Global common Nucleo board configuration + * + * @author Hauke Petersen + */ + +#ifndef BOARD_NUCLEO_H +#define BOARD_NUCLEO_H + +#include "cpu.h" +#include "periph_conf.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @name Xtimer configuration + * @{ + */ +#if defined(CPU_FAM_STM32F0) || defined(CPU_FAM_STM32L0) && \ + !defined(CPU_MODEL_STM32F042K6) && !defined(CPU_MODEL_STM32F031K6) +#define XTIMER_WIDTH (16) +#endif + +#if defined(CPU_MODEL_STM32F334R8) +#define XTIMER_SHOOT_EARLY (2) +#define XTIMER_OVERHEAD (5) +#endif + +#if defined(CPU_FAM_STM32F1) +#define XTIMER_WIDTH (16) +#define XTIMER_BACKOFF (5) +#endif + +#if defined(CPU_FAM_STM32L1) +#define XTIMER_BACKOFF (3) +#define XTIMER_OVERHEAD (6) +#endif + +#if defined(CPU_FAM_STM32F4) || defined(CPU_MODEL_STM32F303ZE) +#define XTIMER_BACKOFF (5) +#define XTIMER_OVERHEAD (6) +#endif +/** @} */ + +/** + * @brief Initialize board specific hardware, including clock, LEDs and std-IO + */ +void board_init(void); + +#ifdef __cplusplus +} +#endif + +#endif /* BOARD_NUCLEO_H */ +/** @} */ diff --git a/boards/common/nucleo144/include/board_common.h b/boards/common/nucleo144/include/board.h similarity index 79% rename from boards/common/nucleo144/include/board_common.h rename to boards/common/nucleo144/include/board.h index acb4dd7dea..0cc8cdbf4c 100644 --- a/boards/common/nucleo144/include/board_common.h +++ b/boards/common/nucleo144/include/board.h @@ -1,6 +1,7 @@ /* * Copyright (C) 2017 Inria * 2017 OTAKeys + * 2018 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 @@ -8,13 +9,9 @@ */ /** - * @defgroup boards_nucleo144 STM Nucleo144 Boards - * @ingroup boards - * @brief Support for STM Nucleo 144 boards - * * @defgroup boards_common_nucleo144 STM Nucleo144 common * @ingroup boards_common - * @brief Shared files and configuration for all STM Nucleo144 boards. + * @brief Common files and configuration for STM Nucleo144 boards * @{ * * @file @@ -23,13 +20,13 @@ * @author Alexandre Abadie * @author Vincent Dupont * @author Sebastian Meiling + * @author Hauke Petersen */ -#ifndef BOARD_COMMON_H -#define BOARD_COMMON_H +#ifndef BOARD_H +#define BOARD_H -#include "cpu.h" -#include "periph_conf.h" +#include "board_nucleo.h" #include "arduino_pinmap.h" #ifdef __cplusplus @@ -67,14 +64,9 @@ extern "C" { #define BTN0_MODE GPIO_IN_PD /** @} */ -/** - * @brief Initialize board specific hardware, including clock, LEDs and std-IO - */ -void board_init(void); - #ifdef __cplusplus } #endif -#endif /* BOARD_COMMON_H */ +#endif /* BOARD_H */ /** @} */ diff --git a/boards/common/nucleo32/include/board_common.h b/boards/common/nucleo32/include/board.h similarity index 63% rename from boards/common/nucleo32/include/board_common.h rename to boards/common/nucleo32/include/board.h index dadee8794b..24ed304394 100644 --- a/boards/common/nucleo32/include/board_common.h +++ b/boards/common/nucleo32/include/board.h @@ -7,26 +7,22 @@ */ /** - * @defgroup boards_nucleo32 STM Nucleo32 Boards - * @ingroup boards - * @brief Support for STM Nucleo 32 boards - * - * @defgroup boards_common_nucleo32 STM Nucleo32 common + * @defgroup boards_common_nucleo32 STM Nucleo32 Common * @ingroup boards_common - * @brief Shared files and configuration for all STM Nucleo32 boards. + * @brief Common files and configuration for STM Nucleo32 boards * @{ * * @file * @brief Common pin definitions and board configuration options * * @author Alexandre Abadie + * @author Hauke Petersen */ -#ifndef BOARD_COMMON_H -#define BOARD_COMMON_H +#ifndef BOARD_H +#define BOARD_H -#include "cpu.h" -#include "periph_conf.h" +#include "board_nucleo.h" #include "arduino_pinmap.h" #ifdef __cplusplus @@ -44,14 +40,9 @@ extern "C" { #define LED0_TOGGLE (GPIOB->ODR ^= LED0_MASK) /** @} */ -/** - * @brief Initialize board specific hardware, including clock, LEDs and std-IO - */ -void board_init(void); - #ifdef __cplusplus } #endif -#endif /* BOARD_COMMON_H */ +#endif /* BOARD_H */ /** @} */ diff --git a/boards/common/nucleo64/include/arduino_board.h b/boards/common/nucleo64/include/arduino_board.h index a64307120d..0164ce7bfb 100644 --- a/boards/common/nucleo64/include/arduino_board.h +++ b/boards/common/nucleo64/include/arduino_board.h @@ -8,7 +8,7 @@ */ /** - * @ingroup boards_common_nucleo + * @ingroup boards_common_nucleo64 * @{ * * @file diff --git a/boards/common/nucleo64/include/arduino_pinmap.h b/boards/common/nucleo64/include/arduino_pinmap.h index 60418f64fa..d342fb3ab9 100644 --- a/boards/common/nucleo64/include/arduino_pinmap.h +++ b/boards/common/nucleo64/include/arduino_pinmap.h @@ -7,7 +7,7 @@ */ /** - * @ingroup boards_common_nucleo + * @ingroup boards_common_nucleo64 * @{ * * @file diff --git a/boards/common/nucleo64/include/board_common.h b/boards/common/nucleo64/include/board.h similarity index 66% rename from boards/common/nucleo64/include/board_common.h rename to boards/common/nucleo64/include/board.h index 0050a06589..9fdf82a097 100644 --- a/boards/common/nucleo64/include/board_common.h +++ b/boards/common/nucleo64/include/board.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 Freie Universität Berlin + * Copyright (C) 2016-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 @@ -7,13 +7,9 @@ */ /** - * @defgroup boards_nucleo STM Nucleo Boards - * @ingroup boards - * @brief Support for STM Nucleo boards - * - * @defgroup boards_common_nucleo STM Nucleo common + * @defgroup boards_common_nucleo64 STM Nucleo64 Common * @ingroup boards_common - * @brief Shared files and configuration for all STM Nucleo boards. + * @brief Common files and configuration for STM Nucleo64 boards * @{ * * @file @@ -23,11 +19,10 @@ * @author Sebastian Meiling */ -#ifndef BOARD_COMMON_H -#define BOARD_COMMON_H +#ifndef BOARD_H +#define BOARD_H -#include "cpu.h" -#include "periph_conf.h" +#include "board_nucleo.h" #include "arduino_pinmap.h" #ifdef __cplusplus @@ -35,7 +30,7 @@ extern "C" { #endif /** - * @brief LED pin definitions and handlers + * @name LED pin definitions and handlers * @{ */ #ifdef CPU_MODEL_STM32F302R8 @@ -61,14 +56,9 @@ extern "C" { #define BTN0_MODE GPIO_IN_PU /** @} */ -/** - * @brief Initialize board specific hardware, including clock, LEDs and std-IO - */ -void board_init(void); - #ifdef __cplusplus } #endif -#endif /* BOARD_COMMON_H */ +#endif /* BOARD_H */ /** @} */ diff --git a/boards/nucleo-f030/Makefile b/boards/nucleo-f030/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo-f030/Makefile +++ b/boards/nucleo-f030/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo-f030/board.c b/boards/nucleo-f030/board.c deleted file mode 100644 index da9f9b1b9e..0000000000 --- a/boards/nucleo-f030/board.c +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2016 Inria - * - * 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. - */ - -/** - * @ingroup boards_nucleo-f030 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo-f030 board - * - * @author Hauke Petersen - * @author José Alamos - * @author Alexandre Abadie - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo-f030/include/board.h b/boards/nucleo-f030/include/board.h deleted file mode 100644 index 2fe3daa29c..0000000000 --- a/boards/nucleo-f030/include/board.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2016 Inria - * - * 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_nucleo-f030 Nucleo-F030 - * @ingroup boards_nucleo - * @brief Support for the nucleo-f030 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo-f030 board - * - * @author Hauke Petersen - * @author Mohmmad Ayman - * @author José Alamos - * @author Alexandre Abadie - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "board_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name Xtimer configuration - * @{ - */ -#define XTIMER_WIDTH (16) -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo-f070/Makefile b/boards/nucleo-f070/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo-f070/Makefile +++ b/boards/nucleo-f070/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo-f070/board.c b/boards/nucleo-f070/board.c deleted file mode 100644 index c127cb11be..0000000000 --- a/boards/nucleo-f070/board.c +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2016 Freie Universität Berlin - * 2016 Inria - * - * 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. - */ - -/** - * @ingroup boards_nucleo-f070 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo-f070 board - * - * @author Hauke Petersen - * @author Alexandre Abadie - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo-f070/include/board.h b/boards/nucleo-f070/include/board.h deleted file mode 100644 index 6375cdd925..0000000000 --- a/boards/nucleo-f070/include/board.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2016 Freie Universität Berlin - * 2016 Inria - * - * 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_nucleo-f072 Nucleo-F072 - * @ingroup boards_nucleo - * @brief Support for the nucleo-f072 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo-f072 board - * - * @author Hauke Petersen - * @author Mohmmad Ayman - * @author José Alamos - * @author Alexandre Abadie - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "board_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name Xtimer configuration - * @{ - */ -#define XTIMER_WIDTH (16) -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo-f072/Makefile b/boards/nucleo-f072/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo-f072/Makefile +++ b/boards/nucleo-f072/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo-f072/board.c b/boards/nucleo-f072/board.c deleted file mode 100644 index 7e62553e80..0000000000 --- a/boards/nucleo-f072/board.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2015 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. - */ - -/** - * @ingroup boards_nucleo-f072 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo-f072 board - * - * @author Hauke Petersen - * @author José Alamos - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo-f072/include/board.h b/boards/nucleo-f072/include/board.h deleted file mode 100644 index fb6793b92d..0000000000 --- a/boards/nucleo-f072/include/board.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2015 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_nucleo-f072 Nucleo-F072 - * @ingroup boards_nucleo - * @brief Support for the nucleo-f072 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo-f072 board - * - * @author Hauke Petersen - * @author Mohmmad Ayman - * @author José Alamos - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "board_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name Xtimer configuration - * @{ - */ -#define XTIMER_WIDTH (16) -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo-f091/Makefile b/boards/nucleo-f091/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo-f091/Makefile +++ b/boards/nucleo-f091/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo-f091/board.c b/boards/nucleo-f091/board.c deleted file mode 100644 index b1244ac9f3..0000000000 --- a/boards/nucleo-f091/board.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2015 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. - */ - -/** - * @ingroup boards_nucleo-f091 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo-f091 board - * - * @author Hauke Petersen - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo-f091/include/board.h b/boards/nucleo-f091/include/board.h deleted file mode 100644 index 958a3c51d0..0000000000 --- a/boards/nucleo-f091/include/board.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2015 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_nucleo-f091 Nucleo-F091 - * @ingroup boards_nucleo - * @brief Support for the nucleo-f091 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo-f091 board - * - * @author Hauke Petersen - * @author Mohmmad Ayman - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "board_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name Xtimer configuration - * @{ - */ -#define XTIMER_WIDTH (16) -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo-f103/Makefile b/boards/nucleo-f103/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo-f103/Makefile +++ b/boards/nucleo-f103/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo-f103/board.c b/boards/nucleo-f103/board.c deleted file mode 100644 index ddbc97ef2d..0000000000 --- a/boards/nucleo-f103/board.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2015 TriaGnoSys GmbH - * - * 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. - */ - -/** - * @ingroup boards_nucleo-f103 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo-f103 board - * - * @author Víctor Ariño - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo-f103/include/board.h b/boards/nucleo-f103/include/board.h deleted file mode 100644 index d2e2d4277f..0000000000 --- a/boards/nucleo-f103/include/board.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2015 TriaGnoSys GmbH - * - * 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_nucleo-f103 Nucleo-F103 - * @ingroup boards_nucleo - * @brief Support for the nucleo-f103 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo-f103 board - * - * @author Víctor Ariño - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "board_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name xtimer configuration - */ -#define XTIMER_WIDTH (16) -#define XTIMER_BACKOFF 5 -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo-f302/Makefile b/boards/nucleo-f302/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo-f302/Makefile +++ b/boards/nucleo-f302/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo-f302/board.c b/boards/nucleo-f302/board.c deleted file mode 100644 index f59a752799..0000000000 --- a/boards/nucleo-f302/board.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2015 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. - */ - -/** - * @ingroup boards_nucleo-f303 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo-f303 board - * - * @author Hauke Petersen - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo-f302/include/board.h b/boards/nucleo-f302/include/board.h deleted file mode 100644 index f2c0222523..0000000000 --- a/boards/nucleo-f302/include/board.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * Copyright (C) 2015 Freie Universität Berlin - * Copyright (C) 2015 Hamburg University of Applied Sciences - * - * 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_nucleo-f302 Nucleo-F302 - * @ingroup boards_nucleo - * @brief Support for the nucleo-f302 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo-f302 board - * - * @author Alexandre Abadie - * @author Hauke Petersen - * @author Katja Kirstein - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "cpu.h" -#include "periph_conf.h" -#include "board_common.h" - -#ifdef __cplusplus -extern "C" {} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo-f303/Makefile b/boards/nucleo-f303/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo-f303/Makefile +++ b/boards/nucleo-f303/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo-f303/board.c b/boards/nucleo-f303/board.c deleted file mode 100644 index f59a752799..0000000000 --- a/boards/nucleo-f303/board.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2015 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. - */ - -/** - * @ingroup boards_nucleo-f303 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo-f303 board - * - * @author Hauke Petersen - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo-f303/include/board.h b/boards/nucleo-f303/include/board.h deleted file mode 100644 index 6a5cca92df..0000000000 --- a/boards/nucleo-f303/include/board.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2015 Freie Universität Berlin - * Copyright (C) 2015 Hamburg University of Applied Sciences - * - * 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_nucleo-f303 Nucleo-F303 - * @ingroup boards_nucleo - * @brief Support for the nucleo-f303 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo-f303 board - * - * @author Hauke Petersen - * @author Katja Kirstein - */ - -#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/nucleo-f334/Makefile b/boards/nucleo-f334/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo-f334/Makefile +++ b/boards/nucleo-f334/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo-f334/board.c b/boards/nucleo-f334/board.c deleted file mode 100644 index 6c69470772..0000000000 --- a/boards/nucleo-f334/board.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2015 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. - */ - -/** - * @ingroup boards_nucleo-f334 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo-f334 board - * - * @author Hauke Petersen - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo-f334/include/board.h b/boards/nucleo-f334/include/board.h deleted file mode 100644 index 95d42d83ea..0000000000 --- a/boards/nucleo-f334/include/board.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2015 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_nucleo-f334 Nucleo-F334 - * @ingroup boards_nucleo - * @brief Support for the nucleo-f334 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo-f334 board - * - * @author Hauke Petersen - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "board_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name xtimer tuning values - * @{ - */ -#define XTIMER_OVERHEAD 5 -#define XTIMER_SHOOT_EARLY 2 -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo-f401/Makefile b/boards/nucleo-f401/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo-f401/Makefile +++ b/boards/nucleo-f401/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo-f401/board.c b/boards/nucleo-f401/board.c deleted file mode 100644 index 2c392f81f9..0000000000 --- a/boards/nucleo-f401/board.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2015 Lari Lehtomäki - * - * 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. - */ - -/** - * @ingroup boards_nucleo-f401 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo-f401 board - * - * @author Lari Lehtomäki - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo-f401/include/board.h b/boards/nucleo-f401/include/board.h deleted file mode 100644 index 8b6640d1f6..0000000000 --- a/boards/nucleo-f401/include/board.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2015 Lari Lehtomäki - * - * 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_nucleo-f401 Nucleo-F401 - * @ingroup boards_nucleo - * @brief Support for the nucleo-f401 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo-f401 board - * - * @author Lari Lehtomäki - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "board_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name xtimer configuration - * @{ - */ -#define XTIMER_OVERHEAD (6) -#define XTIMER_BACKOFF (5) -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo-f410/Makefile b/boards/nucleo-f410/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo-f410/Makefile +++ b/boards/nucleo-f410/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo-f410/board.c b/boards/nucleo-f410/board.c deleted file mode 100644 index fc48de3350..0000000000 --- a/boards/nucleo-f410/board.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2016 Inria - * - * 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. - */ - -/** - * @ingroup boards_nucleo-f410 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo-f410 board - * - * @author Alexandre Abadie - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo-f410/include/board.h b/boards/nucleo-f410/include/board.h deleted file mode 100644 index cc1b472714..0000000000 --- a/boards/nucleo-f410/include/board.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2016 Inria - * - * 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_nucleo-f410 Nucleo-F410 - * @ingroup boards_nucleo - * @brief Support for the nucleo-f410 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo-f410 board - * - * @author Alexandre Abadie - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "board_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name xtimer configuration - * @{ - */ -#define XTIMER_OVERHEAD (6) -#define XTIMER_BACKOFF (5) -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo-f411/Makefile b/boards/nucleo-f411/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo-f411/Makefile +++ b/boards/nucleo-f411/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo-f411/board.c b/boards/nucleo-f411/board.c deleted file mode 100644 index 6d899e21b1..0000000000 --- a/boards/nucleo-f411/board.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2016 Inria - * - * 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. - */ - -/** - * @ingroup boards_nucleo-f411 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo-f411 board - * - * @author Alexandre Abadie - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo-f411/include/board.h b/boards/nucleo-f411/include/board.h deleted file mode 100644 index 615f83639a..0000000000 --- a/boards/nucleo-f411/include/board.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2016 Inria - * - * 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_nucleo-f411 Nucleo-F411 - * @ingroup boards_nucleo - * @brief Support for the nucleo-f411 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo-f411 board - * - * @author Alexandre Abadie - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "board_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name xtimer configuration - * @{ - */ -#define XTIMER_OVERHEAD (6) -#define XTIMER_BACKOFF (5) -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo-f446/Makefile b/boards/nucleo-f446/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo-f446/Makefile +++ b/boards/nucleo-f446/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo-f446/board.c b/boards/nucleo-f446/board.c deleted file mode 100644 index d43b11a2a4..0000000000 --- a/boards/nucleo-f446/board.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2016 Inria - * - * 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. - */ - -/** - * @ingroup boards_nucleo-f446 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo-f446 board - * - * @author Alexandre Abadie - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo-f446/include/board.h b/boards/nucleo-f446/include/board.h deleted file mode 100644 index 987eb9084d..0000000000 --- a/boards/nucleo-f446/include/board.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2016 Inria - * - * 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_nucleo-f446 Nucleo-F446 - * @ingroup boards_nucleo - * @brief Support for the nucleo-f446 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo-f446 board - * - * @author Alexandre Abadie - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "board_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name xtimer configuration - * @{ - */ -#define XTIMER_OVERHEAD (6) -#define XTIMER_BACKOFF (5) -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo-l053/Makefile b/boards/nucleo-l053/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo-l053/Makefile +++ b/boards/nucleo-l053/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo-l053/board.c b/boards/nucleo-l053/board.c deleted file mode 100644 index 149aaf381f..0000000000 --- a/boards/nucleo-l053/board.c +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2016-2017 Freie Universität Berlin - * 2017 Inria - * - * 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. - */ - -/** - * @ingroup boards_nucleo-l053 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo-l053 board - * - * @author Hauke Petersen - * @author Alexandre Abadie - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo-l053/include/board.h b/boards/nucleo-l053/include/board.h deleted file mode 100644 index a0628be86e..0000000000 --- a/boards/nucleo-l053/include/board.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2017 Freie Universität Berlin - * 2017 Inria - * - * 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_nucleo-l053 Nucleo-L053 - * @ingroup boards_nucleo - * @brief Support for the nucleo-l053 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo-l053 board - * - * @author Hauke Petersen - * @author Alexandre Abadie - */ - -#ifndef BOARD_H -#define BOARD_H - -#include -#include "board_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name xtimer configuration - * @{ - */ -#define XTIMER_WIDTH (16) -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo-l073/Makefile b/boards/nucleo-l073/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo-l073/Makefile +++ b/boards/nucleo-l073/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo-l073/board.c b/boards/nucleo-l073/board.c deleted file mode 100644 index 55437879dd..0000000000 --- a/boards/nucleo-l073/board.c +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2016 Freie Universität Berlin - * 2016 Inria - * - * 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. - */ - -/** - * @ingroup boards_nucleo-l073 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo-l073 board - * - * @author Hauke Petersen - * @author Alexandre Abadie - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo-l073/include/board.h b/boards/nucleo-l073/include/board.h deleted file mode 100644 index c6ae5cf9c4..0000000000 --- a/boards/nucleo-l073/include/board.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2017 Freie Universität Berlin - * 2017 Inria - * - * 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_nucleo-l073 Nucleo-L073 - * @ingroup boards_nucleo - * @brief Support for the nucleo-l073 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo-l073 board - * - * @author Hauke Petersen - * @author Alexandre Abadie - */ - -#ifndef BOARD_H -#define BOARD_H - -#include -#include "board_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name xtimer configuration - * @{ - */ -#define XTIMER_WIDTH (16) -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo-l152/Makefile b/boards/nucleo-l152/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo-l152/Makefile +++ b/boards/nucleo-l152/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo-l152/board.c b/boards/nucleo-l152/board.c deleted file mode 100644 index da7c2d0aa6..0000000000 --- a/boards/nucleo-l152/board.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2014 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. - */ - -/** - * @ingroup boards_nucleo-l152 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo-l152 board - * - * @author Thomas Eichinger - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo-l152/include/board.h b/boards/nucleo-l152/include/board.h deleted file mode 100644 index e1efc60cab..0000000000 --- a/boards/nucleo-l152/include/board.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2014 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_nucleo-l152 Nucleo-L152 - * @ingroup boards_nucleo - * @brief Support for the nucleo-l152 board. - * @{ - * - * @file - * @brief Board specific definitions for the nucleo-l152 board. - * - * @author Thomas Eichinger - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "board_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name xtimer configuration - * @{ - */ -#define XTIMER_OVERHEAD (6) -#define XTIMER_BACKOFF (3) -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo-l476/Makefile b/boards/nucleo-l476/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo-l476/Makefile +++ b/boards/nucleo-l476/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo-l476/board.c b/boards/nucleo-l476/board.c deleted file mode 100644 index e5e9b97ad9..0000000000 --- a/boards/nucleo-l476/board.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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. - */ - -/** - * @ingroup boards_nucleo-l476 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo-l476 board - * - * @author Hauke Petersen - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - - /* initialize the boards LED only if explicitly enabled (pin is already used - * for SPI_DEV(0)) */ -#ifdef AUTO_INIT_LED0 - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo-l476/include/board.h b/boards/nucleo-l476/include/board.h deleted file mode 100644 index 70e352c3ef..0000000000 --- a/boards/nucleo-l476/include/board.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2017 Freie Universität Berlin - * 2017 Inria - * - * 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_nucleo-l476 Nucleo-L476 - * @ingroup boards_nucleo - * @brief Support for the nucleo-l476 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo-l476 board - * - * @author Hauke Petersen - * @author Alexandre Abadie - */ - -#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/nucleo144-f207/Makefile b/boards/nucleo144-f207/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo144-f207/Makefile +++ b/boards/nucleo144-f207/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo144-f207/board.c b/boards/nucleo144-f207/board.c deleted file mode 100644 index 68853f5417..0000000000 --- a/boards/nucleo144-f207/board.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2016-2017 OTA keys S.A. - * - * 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. - */ - -/** - * @ingroup boards_nucleo144-f207 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo144-f207 board - * - * @author Vincent Dupont - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - - /* initialize the boards LEDs */ - gpio_init(LED0_PIN, GPIO_OUT); - gpio_init(LED1_PIN, GPIO_OUT); - gpio_init(LED2_PIN, GPIO_OUT); -} diff --git a/boards/nucleo144-f207/include/board.h b/boards/nucleo144-f207/include/board.h deleted file mode 100644 index ed55f650ad..0000000000 --- a/boards/nucleo144-f207/include/board.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2016-2017 OTA keys S.A. - * - * 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_nucleo144-f207 Nucleo144-F207 - * @ingroup boards_nucleo144 - * @brief Support for the nucleo144-f207 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo144-f207 board - * - * @author Vincent Dupont - */ - -#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/nucleo144-f303/Makefile b/boards/nucleo144-f303/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo144-f303/Makefile +++ b/boards/nucleo144-f303/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo144-f303/board.c b/boards/nucleo144-f303/board.c deleted file mode 100644 index 97c85b3ebd..0000000000 --- a/boards/nucleo144-f303/board.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * 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. - */ - -/** - * @ingroup boards_nucleo144-f303 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo144-f303 board - * - * @author Alexandre Abadie - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - - /* initialize the boards LEDs */ - gpio_init(LED0_PIN, GPIO_OUT); - gpio_init(LED1_PIN, GPIO_OUT); - gpio_init(LED2_PIN, GPIO_OUT); -} diff --git a/boards/nucleo144-f303/include/board.h b/boards/nucleo144-f303/include/board.h deleted file mode 100644 index f137485907..0000000000 --- a/boards/nucleo144-f303/include/board.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * 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_nucleo144-f303 Nucleo144-F303 - * @ingroup boards_nucleo144 - * @brief Support for the nucleo144-f303 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo144-f303 board - * - * @author Alexandre Abadie - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "board_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name xtimer configuration - * @{ - */ -#define XTIMER_OVERHEAD (6) -#define XTIMER_BACKOFF (5) -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo144-f412/Makefile b/boards/nucleo144-f412/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo144-f412/Makefile +++ b/boards/nucleo144-f412/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo144-f412/board.c b/boards/nucleo144-f412/board.c deleted file mode 100644 index 3df94277f4..0000000000 --- a/boards/nucleo144-f412/board.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * 2017 OTA keys S.A. - * - * 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. - */ - -/** - * @ingroup boards_nucleo144-f412 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo144-f412 board - * - * @author Alexandre Abadie - * @author Vincent Dupont - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - - /* initialize the boards LEDs */ - gpio_init(LED0_PIN, GPIO_OUT); - gpio_init(LED1_PIN, GPIO_OUT); - gpio_init(LED2_PIN, GPIO_OUT); -} diff --git a/boards/nucleo144-f412/include/board.h b/boards/nucleo144-f412/include/board.h deleted file mode 100644 index 142cf54f44..0000000000 --- a/boards/nucleo144-f412/include/board.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * 2017 OTA keys S.A. - * - * 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_nucleo144-f412 Nucleo144-F412 - * @ingroup boards_nucleo144 - * @brief Support for the Nucleo144-f412 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo144-f412 board - * - * @author Alexandre Abadie - * @author Vincent Dupont - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "board_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name xtimer configuration - * @{ - */ -#define XTIMER_OVERHEAD (6) -#define XTIMER_BACKOFF (5) -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo144-f413/Makefile b/boards/nucleo144-f413/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo144-f413/Makefile +++ b/boards/nucleo144-f413/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo144-f413/board.c b/boards/nucleo144-f413/board.c deleted file mode 100644 index 29eb82af14..0000000000 --- a/boards/nucleo144-f413/board.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2016 Inria - * 2017 OTA keys S.A. - * - * 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. - */ - -/** - * @ingroup boards_nucleo144-f413 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo144-f413 board - * - * @author Alexandre Abadie - * @author Vincent Dupont - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - - /* initialize the boards LEDs */ - gpio_init(LED0_PIN, GPIO_OUT); - gpio_init(LED1_PIN, GPIO_OUT); - gpio_init(LED2_PIN, GPIO_OUT); -} diff --git a/boards/nucleo144-f413/include/board.h b/boards/nucleo144-f413/include/board.h deleted file mode 100644 index 56aa1a74e2..0000000000 --- a/boards/nucleo144-f413/include/board.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2016 Inria - * 2017 OTA keys S.A. - * - * 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_nucleo144-f413 Nucleo144-F413 - * @ingroup boards_nucleo144 - * @brief Support for the Nucleo144-f413 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo144-f413 board - * - * @author Alexandre Abadie - * @author Vincent Dupont - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "board_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name xtimer configuration - * @{ - */ -#define XTIMER_OVERHEAD (6) -#define XTIMER_BACKOFF (5) -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo144-f429/Makefile b/boards/nucleo144-f429/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo144-f429/Makefile +++ b/boards/nucleo144-f429/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo144-f429/board.c b/boards/nucleo144-f429/board.c deleted file mode 100644 index 53b97668a6..0000000000 --- a/boards/nucleo144-f429/board.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * 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. - */ - -/** - * @ingroup boards_nucleo144-f429 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo144-f429 board - * - * @author Alexandre Abadie - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - - /* initialize the boards LEDs */ - gpio_init(LED0_PIN, GPIO_OUT); - gpio_init(LED1_PIN, GPIO_OUT); - gpio_init(LED2_PIN, GPIO_OUT); -} diff --git a/boards/nucleo144-f429/include/board.h b/boards/nucleo144-f429/include/board.h deleted file mode 100644 index eeffc6503f..0000000000 --- a/boards/nucleo144-f429/include/board.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * 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_nucleo144-f429 Nucleo144-F429 - * @ingroup boards_nucleo144 - * @brief Support for the nucleo144-f429 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo144-f429 board - * - * @author Alexandre Abadie - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "board_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name xtimer configuration - * @{ - */ -#define XTIMER_OVERHEAD (6) -#define XTIMER_BACKOFF (5) -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo144-f446/Makefile b/boards/nucleo144-f446/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo144-f446/Makefile +++ b/boards/nucleo144-f446/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo144-f446/board.c b/boards/nucleo144-f446/board.c deleted file mode 100644 index 528f722980..0000000000 --- a/boards/nucleo144-f446/board.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * 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. - */ - -/** - * @ingroup boards_nucleo144-f446 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo144-f446 board - * - * @author Alexandre Abadie - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - - /* initialize the boards LEDs */ - gpio_init(LED0_PIN, GPIO_OUT); - gpio_init(LED1_PIN, GPIO_OUT); - gpio_init(LED2_PIN, GPIO_OUT); -} diff --git a/boards/nucleo144-f446/include/board.h b/boards/nucleo144-f446/include/board.h deleted file mode 100644 index 2ab1771289..0000000000 --- a/boards/nucleo144-f446/include/board.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * 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_nucleo144-f446 Nucleo144-F446 - * @ingroup boards_nucleo144 - * @brief Support for the nucleo144-f446 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo144-f446 board - * - * @author Alexandre Abadie - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "board_common.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name xtimer configuration - * @{ - */ -#define XTIMER_OVERHEAD (6) -#define XTIMER_BACKOFF (5) -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo144-f722/Makefile b/boards/nucleo144-f722/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo144-f722/Makefile +++ b/boards/nucleo144-f722/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo144-f722/board.c b/boards/nucleo144-f722/board.c deleted file mode 100644 index ad2fc960a2..0000000000 --- a/boards/nucleo144-f722/board.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * 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. - */ - -/** - * @ingroup boards_nucleo144-f722 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo144-f722 board - * - * @author Alexandre Abadie - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - - gpio_init(LED0_PIN, GPIO_OUT); - gpio_init(LED1_PIN, GPIO_OUT); - gpio_init(LED2_PIN, GPIO_OUT); -} diff --git a/boards/nucleo144-f722/include/board.h b/boards/nucleo144-f722/include/board.h deleted file mode 100644 index b5c8ac496d..0000000000 --- a/boards/nucleo144-f722/include/board.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * 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_nucleo144-f722 Nucleo144-F722 - * @ingroup boards_nucleo144 - * @brief Support for the nucleo144-f722 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo144-f722 board - * - * @author Alexandre Abadie - */ - -#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/nucleo144-f746/Makefile b/boards/nucleo144-f746/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo144-f746/Makefile +++ b/boards/nucleo144-f746/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo144-f746/board.c b/boards/nucleo144-f746/board.c deleted file mode 100644 index 966f2ad061..0000000000 --- a/boards/nucleo144-f746/board.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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. - */ - -/** - * @ingroup boards_nucleo144-f746 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo144-f746 board - * - * @author Hauke Petersen - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - - gpio_init(LED0_PIN, GPIO_OUT); - gpio_init(LED1_PIN, GPIO_OUT); - gpio_init(LED2_PIN, GPIO_OUT); -} diff --git a/boards/nucleo144-f746/include/board.h b/boards/nucleo144-f746/include/board.h deleted file mode 100644 index 149811b693..0000000000 --- a/boards/nucleo144-f746/include/board.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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_nucleo144-f746 Nucleo144-F746 - * @ingroup boards_nucleo144 - * @brief Support for the nucleo144-f746 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo144-f746 board - * - * @author Hauke Petersen - */ - -#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/nucleo144-f767/Makefile b/boards/nucleo144-f767/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo144-f767/Makefile +++ b/boards/nucleo144-f767/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo144-f767/board.c b/boards/nucleo144-f767/board.c deleted file mode 100644 index cb9e940e72..0000000000 --- a/boards/nucleo144-f767/board.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * 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. - */ - -/** - * @ingroup boards_nucleo144-f767 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo144-f767 board - * - * @author Alexandre Abadie - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - - gpio_init(LED0_PIN, GPIO_OUT); - gpio_init(LED1_PIN, GPIO_OUT); - gpio_init(LED2_PIN, GPIO_OUT); -} diff --git a/boards/nucleo144-f767/include/board.h b/boards/nucleo144-f767/include/board.h deleted file mode 100644 index 5ad2c09163..0000000000 --- a/boards/nucleo144-f767/include/board.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * 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_nucleo144-f767 Nucleo144-F767 - * @ingroup boards_nucleo144 - * @brief Support for the nucleo144-f767 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo144-f767 board - * - * @author Alexandre Abadie - */ - -#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/nucleo32-f031/Makefile b/boards/nucleo32-f031/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo32-f031/Makefile +++ b/boards/nucleo32-f031/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo32-f031/board.c b/boards/nucleo32-f031/board.c deleted file mode 100644 index e3ba49f4ab..0000000000 --- a/boards/nucleo32-f031/board.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * 2016 OTA keys - * - * 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. - */ - -/** - * @ingroup boards_nucleo32-f031 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo32-f031 board - * - * @author Alexandre Abadie - * @author Vincent Dupont - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo32-f031/include/board.h b/boards/nucleo32-f031/include/board.h deleted file mode 100644 index d312e37e0b..0000000000 --- a/boards/nucleo32-f031/include/board.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * 2017 OTA keys - * - * 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_nucleo32-f031 Nucleo32-F031 - * @ingroup boards_nucleo32 - * @brief Support for the nucleo32-f031 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo32-f031 board - * - * @author Alexandre Abadie - * @author Vincent Dupont - */ - -#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/nucleo32-f042/Makefile b/boards/nucleo32-f042/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo32-f042/Makefile +++ b/boards/nucleo32-f042/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo32-f042/board.c b/boards/nucleo32-f042/board.c deleted file mode 100644 index 783050aae7..0000000000 --- a/boards/nucleo32-f042/board.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2016 OTA keys - * - * 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. - */ - -/** - * @ingroup boards_nucleo32-f042 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo32-f042 board - * - * @author Vincent Dupont - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo32-f042/include/board.h b/boards/nucleo32-f042/include/board.h deleted file mode 100644 index 56e9f29e61..0000000000 --- a/boards/nucleo32-f042/include/board.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2016 OTA keys - * - * 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_nucleo32-f042 Nucleo32-F042 - * @ingroup boards_nucleo32 - * @brief Support for the Nucleo32-f042 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo32-f042 board - * - * @author Vincent Dupont - */ - -#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/nucleo32-f303/Makefile b/boards/nucleo32-f303/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo32-f303/Makefile +++ b/boards/nucleo32-f303/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo32-f303/board.c b/boards/nucleo32-f303/board.c deleted file mode 100644 index c362061b47..0000000000 --- a/boards/nucleo32-f303/board.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * 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. - */ - -/** - * @ingroup boards_nucleo32-f303 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo32-f303 board - * - * @author Alexandre Abadie - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo32-f303/include/board.h b/boards/nucleo32-f303/include/board.h deleted file mode 100644 index a23c88874d..0000000000 --- a/boards/nucleo32-f303/include/board.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * 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_nucleo32-f303 Nucleo32-F303 - * @ingroup boards_nucleo32 - * @brief Support for the nucleo32-f303 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo32-f303 board - * - * @author Alexandre Abadie - */ - -#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/nucleo32-l031/Makefile b/boards/nucleo32-l031/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo32-l031/Makefile +++ b/boards/nucleo32-l031/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo32-l031/board.c b/boards/nucleo32-l031/board.c deleted file mode 100644 index e9dd918157..0000000000 --- a/boards/nucleo32-l031/board.c +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2017 Freie Universität Berlin - * 2017 Inria - * - * 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. - */ - -/** - * @ingroup boards_nucleo32-l031 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo32-l031 board - * - * @author Hauke Petersen - * @author Alexandre Abadie - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo32-l031/include/board.h b/boards/nucleo32-l031/include/board.h deleted file mode 100644 index bf94fa4bc2..0000000000 --- a/boards/nucleo32-l031/include/board.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2017 Freie Universität Berlin - * 2017 Inria - * - * 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_nucleo32-l031 Nucleo32-L031 - * @ingroup boards_nucleo32 - * @brief Support for the nucleo32-l031 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo32-l031 board - * - * @author Hauke Petersen - * @author Alexandre Aabdie - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "board_common.h" - -/** - * @name xtimer configuration - * @{ - */ -#define XTIMER_WIDTH (16U) -/** @} */ - -#ifdef __cplusplus -extern "C" {} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/nucleo32-l432/Makefile b/boards/nucleo32-l432/Makefile index f8fcbb53a0..4dd17b1d0c 100644 --- a/boards/nucleo32-l432/Makefile +++ b/boards/nucleo32-l432/Makefile @@ -1,3 +1,4 @@ MODULE = board +DIRS = $(RIOTBOARD)/common/nucleo include $(RIOTBASE)/Makefile.base diff --git a/boards/nucleo32-l432/board.c b/boards/nucleo32-l432/board.c deleted file mode 100644 index 726f533575..0000000000 --- a/boards/nucleo32-l432/board.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * 2017 OTA keys - * - * 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. - */ - -/** - * @ingroup boards_nucleo32-l432 - * @{ - * - * @file - * @brief Board specific implementations for the nucleo32-l432 board - * - * @author Alexandre Abadie - * @author Vincent Dupont - * - * @} - */ - -#include "board.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* initialize the CPU */ - cpu_init(); - -#ifdef AUTO_INIT_LED0 - /* The LED pin is also used for SPI, so we enable it - only if explicitly wanted by the user */ - gpio_init(LED0_PIN, GPIO_OUT); -#endif -} diff --git a/boards/nucleo32-l432/include/board.h b/boards/nucleo32-l432/include/board.h deleted file mode 100644 index 079891bfe8..0000000000 --- a/boards/nucleo32-l432/include/board.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * 2017 OTA keys - * - * 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_nucleo32-l432 Nucleo32-L432 - * @ingroup boards_nucleo32 - * @brief Support for the nucleo32-l432 board - * @{ - * - * @file - * @brief Board specific definitions for the nucleo32-l432 board - * - * @author Alexandre Abadie - * @author Vincent Dupont - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "board_common.h" - -#ifdef __cplusplus -extern "C" {} -#endif - -#endif /* BOARD_H */ -/** @} */