diff --git a/boards/common/nucleo/Makefile b/boards/common/nucleo/Makefile new file mode 100644 index 000000000000..1b4b11ec13d8 --- /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 000000000000..9edd95d9954a --- /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 000000000000..9cb6cc755fb0 --- /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_nucleo STM Nucleo boards + * @ingroup boards + * @brief 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 88% rename from boards/common/nucleo144/include/board_common.h rename to boards/common/nucleo144/include/board.h index f4bc572cfb4c..a23d847ca3bd 100644 --- a/boards/common/nucleo144/include/board_common.h +++ b/boards/common/nucleo144/include/board.h @@ -21,11 +21,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 @@ -63,14 +62,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 75% rename from boards/common/nucleo32/include/board_common.h rename to boards/common/nucleo32/include/board.h index 895ea0b3ee81..334b7f5adf09 100644 --- a/boards/common/nucleo32/include/board_common.h +++ b/boards/common/nucleo32/include/board.h @@ -7,7 +7,7 @@ */ /** - * @defgroup boards_nucleo32-common STM Nucleo-32 Common + * @defgroup boards_common_nucleo32 STM Nucleo-32 Common * @ingroup boards_nucleo * @brief Common files for STM Nucleo-32 boards * @{ @@ -18,11 +18,10 @@ * @author Alexandre Abadie */ -#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 @@ -40,14 +39,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/board_common.h b/boards/common/nucleo64/include/board.h similarity index 67% rename from boards/common/nucleo64/include/board_common.h rename to boards/common/nucleo64/include/board.h index e37498246771..9d1e3271d4c0 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,15 +7,9 @@ */ /** - * @defgroup boards_nucleo STM Nucleo boards - * @ingroup boards - * @brief STM Nucleo boards - */ - -/** - * @defgroup boards_nucleo64_common STM Nucleo 64 boards common + * @defgroup boards_nucleo64_common STM Nucleo-64 Common * @ingroup boards_nucleo - * @brief Common files for STM Nucleo 64 boards + * @brief Common files for STM Nucleo-64 boards * @{ * * @file @@ -25,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 @@ -37,7 +30,7 @@ extern "C" { #endif /** - * @brief LED pin definitions and handlers + * @name LED pin definitions and handlers * @{ */ #ifdef CPU_MODEL_STM32F302R8 @@ -63,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 f8fcbb53a065..4dd17b1d0c90 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 da9f9b1b9e2e..000000000000 --- 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 0144d1c7b4db..000000000000 --- 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 Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 c127cb11be90..000000000000 --- 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 a382ef671ac3..000000000000 --- 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 Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 7e62553e801e..000000000000 --- 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 c0cd12e474e0..000000000000 --- 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 Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 b1244ac9f3ad..000000000000 --- 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 e08507d489da..000000000000 --- 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 Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 ddbc97ef2da8..000000000000 --- 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 17f2bcdbe51e..000000000000 --- 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 Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 f59a752799ed..000000000000 --- 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 1885346bd983..000000000000 --- 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 Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 f59a752799ed..000000000000 --- 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 8735fa418989..000000000000 --- 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 Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 6c694707722e..000000000000 --- 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 502f279eb481..000000000000 --- 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 Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 2c392f81f9d7..000000000000 --- 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 c222040e9a63..000000000000 --- 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 Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 fc48de3350a1..000000000000 --- 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 4c2f4ea86391..000000000000 --- 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 Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 6d899e21b157..000000000000 --- 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 05ba6f691228..000000000000 --- 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 Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 d43b11a2a49b..000000000000 --- 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 c1f1c2755f57..000000000000 --- 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 Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 149aaf381f2f..000000000000 --- 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 f9052961d952..000000000000 --- 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 Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 55437879dd03..000000000000 --- 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 c708d6b2f385..000000000000 --- 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 Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 da7c2d0aa6c8..000000000000 --- 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 6b04eb81c701..000000000000 --- 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 Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 e5e9b97ad996..000000000000 --- 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 cb05ddc4d6e9..000000000000 --- 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 Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 68853f541713..000000000000 --- 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 f1c67df60f8d..000000000000 --- 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_nucleo - * @brief Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 97c85b3ebdfb..000000000000 --- 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 5967239f8ea1..000000000000 --- 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_nucleo - * @brief Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 3df94277f454..000000000000 --- 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 2bc644fc5636..000000000000 --- 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 Nucleo-F412 - * @ingroup boards_nucleo - * @brief Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 29eb82af1412..000000000000 --- 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 ae0911480091..000000000000 --- 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 Nucleo-F413 - * @ingroup boards_nucleo - * @brief Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 53b97668a626..000000000000 --- 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 4e48d1eecc66..000000000000 --- 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_nucleo - * @brief Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 528f72298016..000000000000 --- 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 507f214c878f..000000000000 --- 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_nucleo - * @brief Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 ad2fc960a2f4..000000000000 --- 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 a87d63c4e886..000000000000 --- 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 - * @brief Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 966f2ad06173..000000000000 --- 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 4de9f3e64728..000000000000 --- 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_nucleo - * @brief Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 cb9e940e729a..000000000000 --- 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 5b7ed437a3f2..000000000000 --- 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_nucleo - * @brief Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 e3ba49f4abea..000000000000 --- 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 95498955120f..000000000000 --- 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_nucleo - * @brief Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 783050aae7e4..000000000000 --- 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 6f2955c041f7..000000000000 --- 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 Nucleo-F042 - * @ingroup boards_nucleo - * @brief Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 c362061b4724..000000000000 --- 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 090b7a940e29..000000000000 --- 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_nucleo - * @brief Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 e9dd918157bb..000000000000 --- 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 6d764134f581..000000000000 --- 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_nucleo - * @brief Board specific files 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 f8fcbb53a065..4dd17b1d0c90 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 726f5335758f..000000000000 --- 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 6b9a8af0957d..000000000000 --- 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_nucleo - * @brief Board specific files 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 */ -/** @} */