diff --git a/boards/acd52832/include/board.h b/boards/acd52832/include/board.h index 83605e94eb..c3e40f10a0 100644 --- a/boards/acd52832/include/board.h +++ b/boards/acd52832/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_acd52832 * @@ -19,9 +21,6 @@ * @author Dimitri Nahm */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #ifdef __cplusplus @@ -54,5 +53,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/acd52832/include/gpio_params.h b/boards/acd52832/include/gpio_params.h index 6589f57d51..9f9c949052 100644 --- a/boards/acd52832/include/gpio_params.h +++ b/boards/acd52832/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_acd52832 * @{ @@ -17,9 +19,6 @@ * @author Peter Kietzmann */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -50,5 +49,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/acd52832/include/periph_conf.h b/boards/acd52832/include/periph_conf.h index 736bba4082..b6baff8544 100644 --- a/boards/acd52832/include/periph_conf.h +++ b/boards/acd52832/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_acd52832 * @{ @@ -19,9 +21,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_32_1.h" #include "cfg_rtt_default.h" @@ -97,5 +96,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/adafruit-clue/include/board.h b/boards/adafruit-clue/include/board.h index 2625232b21..6b7b9bf9ef 100644 --- a/boards/adafruit-clue/include/board.h +++ b/boards/adafruit-clue/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-clue * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" @@ -115,5 +114,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/adafruit-clue/include/gpio_params.h b/boards/adafruit-clue/include/gpio_params.h index 2dad21d464..54d365b636 100644 --- a/boards/adafruit-clue/include/gpio_params.h +++ b/boards/adafruit-clue/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-clue * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -54,5 +53,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/adafruit-clue/include/periph_conf.h b/boards/adafruit-clue/include/periph_conf.h index fcabda7ef2..8aa6d4fda7 100644 --- a/boards/adafruit-clue/include/periph_conf.h +++ b/boards/adafruit-clue/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-clue * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_32_0.h" #include "cfg_rtt_default.h" @@ -119,5 +118,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/adafruit-feather-nrf52840-express/include/bat_voltage_params.h b/boards/adafruit-feather-nrf52840-express/include/bat_voltage_params.h index a4acfe210c..c5a0ff192d 100644 --- a/boards/adafruit-feather-nrf52840-express/include/bat_voltage_params.h +++ b/boards/adafruit-feather-nrf52840-express/include/bat_voltage_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-feather-nrf52840-express * @{ @@ -16,9 +18,6 @@ * @author Martine S. Lenders */ -#ifndef BAT_VOLTAGE_PARAMS_H -#define BAT_VOLTAGE_PARAMS_H - #include "saul/bat_voltage.h" #ifdef __cplusplus @@ -52,5 +51,4 @@ static const saul_bat_voltage_params_t saul_bat_voltage_params[] = } #endif -#endif /* BAT_VOLTAGE_PARAMS_H */ /** @} */ diff --git a/boards/adafruit-feather-nrf52840-express/include/board.h b/boards/adafruit-feather-nrf52840-express/include/board.h index bb9e59e245..63a66acc98 100644 --- a/boards/adafruit-feather-nrf52840-express/include/board.h +++ b/boards/adafruit-feather-nrf52840-express/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-feather-nrf52840-express * @{ @@ -17,9 +19,6 @@ * @author Martine S. Lenders */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" #include "periph/gpio.h" @@ -83,5 +82,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/adafruit-feather-nrf52840-express/include/gpio_params.h b/boards/adafruit-feather-nrf52840-express/include/gpio_params.h index 0393cd7dc9..2451edf507 100644 --- a/boards/adafruit-feather-nrf52840-express/include/gpio_params.h +++ b/boards/adafruit-feather-nrf52840-express/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-feather-nrf52840-express * @{ @@ -16,9 +18,6 @@ * @author Martine S. Lenders */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -55,5 +54,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/adafruit-feather-nrf52840-express/include/periph_conf.h b/boards/adafruit-feather-nrf52840-express/include/periph_conf.h index f2e7d24967..356c448f98 100644 --- a/boards/adafruit-feather-nrf52840-express/include/periph_conf.h +++ b/boards/adafruit-feather-nrf52840-express/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-feather-nrf52840-express * @{ @@ -18,9 +20,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_32_1.h" #include "cfg_rtt_default.h" @@ -93,5 +92,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/adafruit-feather-nrf52840-sense/include/bat_voltage_params.h b/boards/adafruit-feather-nrf52840-sense/include/bat_voltage_params.h index 6eb1c23a9d..ff2f1f3291 100644 --- a/boards/adafruit-feather-nrf52840-sense/include/bat_voltage_params.h +++ b/boards/adafruit-feather-nrf52840-sense/include/bat_voltage_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-feather-nrf52840-sense * @{ @@ -16,9 +18,6 @@ * @author Martine S. Lenders */ -#ifndef BAT_VOLTAGE_PARAMS_H -#define BAT_VOLTAGE_PARAMS_H - #include "saul/bat_voltage.h" #ifdef __cplusplus @@ -52,5 +51,4 @@ static const saul_bat_voltage_params_t saul_bat_voltage_params[] = } #endif -#endif /* BAT_VOLTAGE_PARAMS_H */ /** @} */ diff --git a/boards/adafruit-feather-nrf52840-sense/include/board.h b/boards/adafruit-feather-nrf52840-sense/include/board.h index 1709437c1a..cb5f26ae80 100644 --- a/boards/adafruit-feather-nrf52840-sense/include/board.h +++ b/boards/adafruit-feather-nrf52840-sense/include/board.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-feather-nrf52840-sense * @{ @@ -19,9 +21,6 @@ * @author Michel Rottleuthner */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" #include "periph/gpio.h" @@ -116,5 +115,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/adafruit-feather-nrf52840-sense/include/gpio_params.h b/boards/adafruit-feather-nrf52840-sense/include/gpio_params.h index 6e9fcb53d1..a0df52672f 100644 --- a/boards/adafruit-feather-nrf52840-sense/include/gpio_params.h +++ b/boards/adafruit-feather-nrf52840-sense/include/gpio_params.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-feather-nrf52840-sense * @{ @@ -18,9 +20,6 @@ * @author Michel Rottleuthner */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -57,5 +56,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/adafruit-feather-nrf52840-sense/include/periph_conf.h b/boards/adafruit-feather-nrf52840-sense/include/periph_conf.h index abac13acaa..0d299b65c1 100644 --- a/boards/adafruit-feather-nrf52840-sense/include/periph_conf.h +++ b/boards/adafruit-feather-nrf52840-sense/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-feather-nrf52840-sense * @{ @@ -20,9 +22,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_32_0.h" #include "cfg_rtt_default.h" @@ -95,5 +94,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/adafruit-grand-central-m4-express/include/arduino_iomap.h b/boards/adafruit-grand-central-m4-express/include/arduino_iomap.h index 135d8e9d28..f1eab97149 100644 --- a/boards/adafruit-grand-central-m4-express/include/arduino_iomap.h +++ b/boards/adafruit-grand-central-m4-express/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-grand-central-m4-express * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -99,5 +98,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/adafruit-grand-central-m4-express/include/board.h b/boards/adafruit-grand-central-m4-express/include/board.h index 02fb9bb796..0f43062777 100644 --- a/boards/adafruit-grand-central-m4-express/include/board.h +++ b/boards/adafruit-grand-central-m4-express/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-grand-central-m4-express * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph/gpio.h" @@ -93,5 +92,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/adafruit-grand-central-m4-express/include/gpio_params.h b/boards/adafruit-grand-central-m4-express/include/gpio_params.h index 5f83516959..31f21b5363 100644 --- a/boards/adafruit-grand-central-m4-express/include/gpio_params.h +++ b/boards/adafruit-grand-central-m4-express/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-grand-central-m4-express * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -55,5 +54,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/adafruit-grand-central-m4-express/include/periph_conf.h b/boards/adafruit-grand-central-m4-express/include/periph_conf.h index 49d5546179..f795740b08 100644 --- a/boards/adafruit-grand-central-m4-express/include/periph_conf.h +++ b/boards/adafruit-grand-central-m4-express/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-grand-central-m4-express * @{ @@ -18,9 +20,6 @@ * @author Gunar Schorcht */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -339,5 +338,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/adafruit-itsybitsy-m4/include/board.h b/boards/adafruit-itsybitsy-m4/include/board.h index 91dbaef91e..4a48c17e19 100644 --- a/boards/adafruit-itsybitsy-m4/include/board.h +++ b/boards/adafruit-itsybitsy-m4/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-itsybitsy-m4 * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph/gpio.h" @@ -68,5 +67,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/adafruit-itsybitsy-m4/include/gpio_params.h b/boards/adafruit-itsybitsy-m4/include/gpio_params.h index 5d1f71a374..c97d21242d 100644 --- a/boards/adafruit-itsybitsy-m4/include/gpio_params.h +++ b/boards/adafruit-itsybitsy-m4/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-itsybitsy-m4 * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -42,5 +41,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/adafruit-itsybitsy-m4/include/periph_conf.h b/boards/adafruit-itsybitsy-m4/include/periph_conf.h index 48b762427e..b89fff5681 100644 --- a/boards/adafruit-itsybitsy-m4/include/periph_conf.h +++ b/boards/adafruit-itsybitsy-m4/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-itsybitsy-m4 * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -269,5 +268,4 @@ static const adc_conf_chan_t adc_channels[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/adafruit-itsybitsy-nrf52/include/board.h b/boards/adafruit-itsybitsy-nrf52/include/board.h index 07e62ae403..95dc0bdd39 100644 --- a/boards/adafruit-itsybitsy-nrf52/include/board.h +++ b/boards/adafruit-itsybitsy-nrf52/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-itsybitsy-nrf52 * @{ @@ -16,9 +18,6 @@ * @author Bruno Chianca */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" #include "periph/gpio.h" @@ -73,5 +72,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/adafruit-itsybitsy-nrf52/include/gpio_params.h b/boards/adafruit-itsybitsy-nrf52/include/gpio_params.h index 38670eaf5e..1431b71fe6 100644 --- a/boards/adafruit-itsybitsy-nrf52/include/gpio_params.h +++ b/boards/adafruit-itsybitsy-nrf52/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-itsybitsy-nrf52 * @{ @@ -17,9 +19,6 @@ * @author Bruno Chianca */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -50,5 +49,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/adafruit-itsybitsy-nrf52/include/periph_conf.h b/boards/adafruit-itsybitsy-nrf52/include/periph_conf.h index 464d7edff3..419879db52 100644 --- a/boards/adafruit-itsybitsy-nrf52/include/periph_conf.h +++ b/boards/adafruit-itsybitsy-nrf52/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-itsybitsy-nrf52 * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_32_1.h" #include "cfg_rtt_default.h" @@ -90,5 +89,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/adafruit-metro-m4-express/include/arduino_iomap.h b/boards/adafruit-metro-m4-express/include/arduino_iomap.h index c12257e23f..973ce4e319 100644 --- a/boards/adafruit-metro-m4-express/include/arduino_iomap.h +++ b/boards/adafruit-metro-m4-express/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-metro-m4-express * @{ @@ -16,9 +18,6 @@ * @author Marian Buschsieweke */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -132,5 +131,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/adafruit-metro-m4-express/include/board.h b/boards/adafruit-metro-m4-express/include/board.h index be4afd5c6a..592f6e703e 100644 --- a/boards/adafruit-metro-m4-express/include/board.h +++ b/boards/adafruit-metro-m4-express/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-metro-m4-express * @{ @@ -16,9 +18,6 @@ * @author Marian Buschsieweke */ -#ifndef BOARD_H -#define BOARD_H - #include "arduino_iomap.h" #include "cpu.h" #include "periph/gpio.h" @@ -74,5 +73,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/adafruit-metro-m4-express/include/gpio_params.h b/boards/adafruit-metro-m4-express/include/gpio_params.h index a8217a27b9..bf3c7eaadd 100644 --- a/boards/adafruit-metro-m4-express/include/gpio_params.h +++ b/boards/adafruit-metro-m4-express/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-metro-m4-express * @{ @@ -16,9 +18,6 @@ * @author Marian Buschsieweke */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -55,5 +54,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/adafruit-metro-m4-express/include/periph_conf.h b/boards/adafruit-metro-m4-express/include/periph_conf.h index 820c340b32..8c4fafbd58 100644 --- a/boards/adafruit-metro-m4-express/include/periph_conf.h +++ b/boards/adafruit-metro-m4-express/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-metro-m4-express * @{ @@ -16,9 +18,6 @@ * @author Marian Buschsieweke */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -264,5 +263,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/adafruit-pybadge/include/board.h b/boards/adafruit-pybadge/include/board.h index 7fc807b575..181cc2e32e 100644 --- a/boards/adafruit-pybadge/include/board.h +++ b/boards/adafruit-pybadge/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-pybadge * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph/gpio.h" @@ -115,5 +114,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/adafruit-pybadge/include/gpio_params.h b/boards/adafruit-pybadge/include/gpio_params.h index 2f041591c2..0c9a90a29f 100644 --- a/boards/adafruit-pybadge/include/gpio_params.h +++ b/boards/adafruit-pybadge/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-pybadge * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -42,5 +41,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/adafruit-pybadge/include/periph_conf.h b/boards/adafruit-pybadge/include/periph_conf.h index 2b5eeef894..7d4ea4b657 100644 --- a/boards/adafruit-pybadge/include/periph_conf.h +++ b/boards/adafruit-pybadge/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_adafruit-pybadge * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -301,5 +300,4 @@ static const adc_conf_chan_t adc_channels[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/airfy-beacon/include/board.h b/boards/airfy-beacon/include/board.h index d5c83e217a..c530d8801b 100644 --- a/boards/airfy-beacon/include/board.h +++ b/boards/airfy-beacon/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_airfy-beacon * @{ @@ -16,14 +18,10 @@ * @author Christian Mehlis */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #ifdef __cplusplus extern "C" {} #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/airfy-beacon/include/periph_conf.h b/boards/airfy-beacon/include/periph_conf.h index db0b912c31..80fc751d68 100644 --- a/boards/airfy-beacon/include/periph_conf.h +++ b/boards/airfy-beacon/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_airfy-beacon * @{ @@ -17,9 +19,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_16_1.h" #include "cfg_timer_012.h" @@ -105,5 +104,4 @@ static const adc_conf_t adc_config[] = {3, 4, 5, 6}; } /* end extern "C" */ #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/alientek-pandora/include/board.h b/boards/alientek-pandora/include/board.h index 90032b7bf1..bc7c45cfa2 100644 --- a/boards/alientek-pandora/include/board.h +++ b/boards/alientek-pandora/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_alientek-pandora * @{ @@ -16,9 +18,6 @@ * @author Luo Jia */ -#ifndef BOARD_H -#define BOARD_H - #include #include "cpu.h" @@ -68,5 +67,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/alientek-pandora/include/gpio_params.h b/boards/alientek-pandora/include/gpio_params.h index c1cfb03af5..3476e44ff2 100644 --- a/boards/alientek-pandora/include/gpio_params.h +++ b/boards/alientek-pandora/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_alientek-pandora * @{ @@ -16,9 +18,6 @@ * @author Luo Jia */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -80,5 +79,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/alientek-pandora/include/periph_conf.h b/boards/alientek-pandora/include/periph_conf.h index 960a0b1429..0e4e8bf3a1 100644 --- a/boards/alientek-pandora/include/periph_conf.h +++ b/boards/alientek-pandora/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_alientek-pandora * @{ @@ -16,9 +18,6 @@ * @author Luo Jia */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 /**< This board provides LSE */ @@ -85,5 +84,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/arduino-duemilanove/include/board.h b/boards/arduino-duemilanove/include/board.h index 8c7a541c0a..a3917f6f89 100644 --- a/boards/arduino-duemilanove/include/board.h +++ b/boards/arduino-duemilanove/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_arduino-duemilanove * @{ @@ -16,9 +18,6 @@ * @author Martine Lenders */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #ifdef __cplusplus @@ -29,5 +28,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/arduino-leonardo/include/board.h b/boards/arduino-leonardo/include/board.h index 17078925c7..6b79e8db62 100644 --- a/boards/arduino-leonardo/include/board.h +++ b/boards/arduino-leonardo/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_arduino-leonardo * @{ @@ -16,9 +18,6 @@ * @author Thomas Perrot */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #ifdef __cplusplus @@ -29,5 +28,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/arduino-mega2560/include/atmega_pcint.h b/boards/arduino-mega2560/include/atmega_pcint.h index 47dcbafdbd..5ce56811b0 100644 --- a/boards/arduino-mega2560/include/atmega_pcint.h +++ b/boards/arduino-mega2560/include/atmega_pcint.h @@ -1,5 +1,4 @@ -#ifndef ATMEGA_PCINT_H -#define ATMEGA_PCINT_H +#pragma once #ifdef __cplusplus extern "C" { @@ -12,5 +11,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* ATMEGA_PCINT_H */ diff --git a/boards/arduino-mega2560/include/board.h b/boards/arduino-mega2560/include/board.h index f2f78f0056..ebd9ba019f 100644 --- a/boards/arduino-mega2560/include/board.h +++ b/boards/arduino-mega2560/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_arduino-mega2560 * @{ @@ -16,9 +18,6 @@ * @author Martine Lenders */ -#ifndef BOARD_H -#define BOARD_H - #ifdef __cplusplus extern "C" { #endif @@ -37,5 +36,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/arduino-mkr1000/include/board.h b/boards/arduino-mkr1000/include/board.h index e5a5d75e93..6d3ff9f78a 100644 --- a/boards/arduino-mkr1000/include/board.h +++ b/boards/arduino-mkr1000/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_arduino-mkr1000 * @{ @@ -17,9 +19,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "board_common.h" @@ -62,5 +61,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/arduino-mkrfox1200/include/board.h b/boards/arduino-mkrfox1200/include/board.h index 4181ac5cd4..a799be0eff 100644 --- a/boards/arduino-mkrfox1200/include/board.h +++ b/boards/arduino-mkrfox1200/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_arduino-mkrfox1200 * @{ @@ -17,9 +19,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "board_common.h" @@ -61,5 +60,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/arduino-mkrwan1300/include/board.h b/boards/arduino-mkrwan1300/include/board.h index e36a8fe611..753be78113 100644 --- a/boards/arduino-mkrwan1300/include/board.h +++ b/boards/arduino-mkrwan1300/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_arduino-mkrwan1300 * @brief Support for the Arduino MKRWAN1300 board. @@ -18,9 +20,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "board_common.h" @@ -51,5 +50,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/arduino-mkrwan1300/include/periph_conf.h b/boards/arduino-mkrwan1300/include/periph_conf.h index fc905952e1..72f825efef 100644 --- a/boards/arduino-mkrwan1300/include/periph_conf.h +++ b/boards/arduino-mkrwan1300/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_arduino-mkrwan1300 * @{ @@ -21,9 +23,6 @@ * @author Bumsik kim */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "periph_conf_common.h" @@ -99,5 +98,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/arduino-mkrzero/include/board.h b/boards/arduino-mkrzero/include/board.h index 5a00cbaaed..b6329499ad 100644 --- a/boards/arduino-mkrzero/include/board.h +++ b/boards/arduino-mkrzero/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_arduino-mkrzero * @{ @@ -17,9 +19,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "board_common.h" @@ -69,5 +68,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/arduino-nano-33-ble-sense/include/board.h b/boards/arduino-nano-33-ble-sense/include/board.h index 6be7ce7038..263515c596 100644 --- a/boards/arduino-nano-33-ble-sense/include/board.h +++ b/boards/arduino-nano-33-ble-sense/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_arduino-nano-33-ble-sense * @{ @@ -16,9 +18,6 @@ * @author Méwen Berthelot */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" @@ -103,5 +102,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/arduino-nano-33-ble-sense/include/gpio_params.h b/boards/arduino-nano-33-ble-sense/include/gpio_params.h index 9056feca4a..741d706658 100644 --- a/boards/arduino-nano-33-ble-sense/include/gpio_params.h +++ b/boards/arduino-nano-33-ble-sense/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_arduino-nano-33-ble-sense * @{ @@ -16,9 +18,6 @@ * @author Méwen Berthelot */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -65,5 +64,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/arduino-nano-33-ble-sense/include/periph_conf.h b/boards/arduino-nano-33-ble-sense/include/periph_conf.h index a8d377daa7..481e8472e7 100644 --- a/boards/arduino-nano-33-ble-sense/include/periph_conf.h +++ b/boards/arduino-nano-33-ble-sense/include/periph_conf.h @@ -5,6 +5,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_arduino-nano-33-ble-sense * @{ @@ -16,9 +18,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_32_1.h" #include "cfg_rtt_default.h" @@ -92,5 +91,4 @@ extern "C" } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/arduino-nano-33-ble/include/board.h b/boards/arduino-nano-33-ble/include/board.h index a02bd3e873..742fd29f80 100644 --- a/boards/arduino-nano-33-ble/include/board.h +++ b/boards/arduino-nano-33-ble/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_arduino-nano-33-ble * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" @@ -65,5 +64,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/arduino-nano-33-ble/include/gpio_params.h b/boards/arduino-nano-33-ble/include/gpio_params.h index 3ee2a13f41..8e6e9f5996 100644 --- a/boards/arduino-nano-33-ble/include/gpio_params.h +++ b/boards/arduino-nano-33-ble/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_arduino-nano-33-ble * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -65,5 +64,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/arduino-nano-33-ble/include/periph_conf.h b/boards/arduino-nano-33-ble/include/periph_conf.h index 0d4d1582df..b28e28158f 100644 --- a/boards/arduino-nano-33-ble/include/periph_conf.h +++ b/boards/arduino-nano-33-ble/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_arduino-nano-33-ble * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_32_1.h" #include "cfg_rtt_default.h" @@ -87,5 +86,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/arduino-nano-33-iot/include/board.h b/boards/arduino-nano-33-iot/include/board.h index 1209d41602..4323eaf072 100644 --- a/boards/arduino-nano-33-iot/include/board.h +++ b/boards/arduino-nano-33-iot/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_arduino-nano-33-iot * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph/gpio.h" @@ -46,5 +45,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/arduino-nano-33-iot/include/gpio_params.h b/boards/arduino-nano-33-iot/include/gpio_params.h index 3029bdffb9..5f54a188fb 100644 --- a/boards/arduino-nano-33-iot/include/gpio_params.h +++ b/boards/arduino-nano-33-iot/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_arduino-nano-33-iot * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -42,5 +41,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/arduino-nano-33-iot/include/periph_conf.h b/boards/arduino-nano-33-iot/include/periph_conf.h index 932ff51510..1f6cea66d2 100644 --- a/boards/arduino-nano-33-iot/include/periph_conf.h +++ b/boards/arduino-nano-33-iot/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_arduino-nano-33-iot * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -285,5 +284,4 @@ static const sam0_common_usb_config_t sam_usbdev_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/arduino-nano/include/board.h b/boards/arduino-nano/include/board.h index caf484f4f3..924eff0b97 100644 --- a/boards/arduino-nano/include/board.h +++ b/boards/arduino-nano/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_arduino-nano * @{ @@ -16,9 +18,6 @@ * @author Martine Lenders */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #ifdef __cplusplus @@ -29,5 +28,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/arduino-uno/include/board.h b/boards/arduino-uno/include/board.h index 63878510b6..659cc2e52f 100644 --- a/boards/arduino-uno/include/board.h +++ b/boards/arduino-uno/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_arduino-uno * @{ @@ -16,9 +18,6 @@ * @author Martine Lenders */ -#ifndef BOARD_H -#define BOARD_H - /** * @name ztimer configuration values * @@ -39,5 +38,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/atmega1284p/include/board.h b/boards/atmega1284p/include/board.h index 88109f08ce..f148f20ef6 100644 --- a/boards/atmega1284p/include/board.h +++ b/boards/atmega1284p/include/board.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atmega1284p * @{ @@ -20,9 +22,6 @@ * @author Laurent Navet */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -57,5 +56,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/atmega1284p/include/periph_conf.h b/boards/atmega1284p/include/periph_conf.h index 2792015553..c9d0b96a60 100644 --- a/boards/atmega1284p/include/periph_conf.h +++ b/boards/atmega1284p/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atmega1284p * @{ @@ -16,9 +18,6 @@ * @author Marian Buschsieweke */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #ifdef __cplusplus extern "C" { #endif @@ -39,5 +38,4 @@ extern "C" { #include "periph_conf_atmega_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/atmega256rfr2-xpro/include/board.h b/boards/atmega256rfr2-xpro/include/board.h index 04ab135947..cdb5839c4f 100644 --- a/boards/atmega256rfr2-xpro/include/board.h +++ b/boards/atmega256rfr2-xpro/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atmega256rfr2-xpro * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph/gpio.h" @@ -74,5 +73,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/atmega256rfr2-xpro/include/gpio_params.h b/boards/atmega256rfr2-xpro/include/gpio_params.h index 3b6a97a33b..3905a01204 100644 --- a/boards/atmega256rfr2-xpro/include/gpio_params.h +++ b/boards/atmega256rfr2-xpro/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atmega256rfr2-xpro * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -49,5 +48,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/atmega256rfr2-xpro/include/periph_conf.h b/boards/atmega256rfr2-xpro/include/periph_conf.h index 2099903c35..bb3f4655df 100644 --- a/boards/atmega256rfr2-xpro/include/periph_conf.h +++ b/boards/atmega256rfr2-xpro/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atmega256rfr2-xpro * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_conf_atmega_common.h" #ifdef __cplusplus @@ -29,5 +28,4 @@ extern "C" { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/atmega328p-xplained-mini/include/board.h b/boards/atmega328p-xplained-mini/include/board.h index 1848fd0c16..410ba960fa 100644 --- a/boards/atmega328p-xplained-mini/include/board.h +++ b/boards/atmega328p-xplained-mini/include/board.h @@ -9,6 +9,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atmega328p_xplained_mini * @{ @@ -22,9 +24,6 @@ * @author Gerson Fernando Budke */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -80,5 +79,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/atmega328p-xplained-mini/include/gpio_params.h b/boards/atmega328p-xplained-mini/include/gpio_params.h index f2dedc9b1d..bde5475102 100644 --- a/boards/atmega328p-xplained-mini/include/gpio_params.h +++ b/boards/atmega328p-xplained-mini/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atmega328p_xplained_mini * @{ @@ -16,9 +18,6 @@ * @author Gerson Fernando Budke */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -49,5 +48,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/atmega328p-xplained-mini/include/periph_conf.h b/boards/atmega328p-xplained-mini/include/periph_conf.h index 0823b4fccd..1ae3eb21b7 100644 --- a/boards/atmega328p-xplained-mini/include/periph_conf.h +++ b/boards/atmega328p-xplained-mini/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atmega328p_xplained_mini * @{ @@ -18,9 +20,6 @@ * @author Gerson Fernando Budke */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #ifdef __cplusplus extern "C" { #endif @@ -41,5 +40,4 @@ extern "C" { #include "periph_conf_atmega_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/atmega328p/include/board.h b/boards/atmega328p/include/board.h index b1d83d3ed8..a20dcca1e6 100644 --- a/boards/atmega328p/include/board.h +++ b/boards/atmega328p/include/board.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atmega328p * @{ @@ -20,9 +22,6 @@ * @author Laurent Navet */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -57,5 +56,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/atmega328p/include/periph_conf.h b/boards/atmega328p/include/periph_conf.h index 47a9b4650b..08ec668cba 100644 --- a/boards/atmega328p/include/periph_conf.h +++ b/boards/atmega328p/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atmega328p * @{ @@ -16,9 +18,6 @@ * @author Marian Buschsieweke */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #ifdef __cplusplus extern "C" { #endif @@ -39,5 +38,4 @@ extern "C" { #include "periph_conf_atmega_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/atmega8/include/board.h b/boards/atmega8/include/board.h index 965e444881..a6f0f3eca9 100644 --- a/boards/atmega8/include/board.h +++ b/boards/atmega8/include/board.h @@ -9,6 +9,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atmega8 * @{ @@ -22,9 +24,6 @@ * @author Hugues Larrive */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -59,5 +58,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/atmega8/include/periph_conf.h b/boards/atmega8/include/periph_conf.h index ba64fb3669..73fd2a9836 100644 --- a/boards/atmega8/include/periph_conf.h +++ b/boards/atmega8/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atmega8 * @{ @@ -18,9 +20,6 @@ * @author Hugues Larrive */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #ifdef __cplusplus extern "C" { #endif @@ -41,5 +40,4 @@ extern "C" { #include "periph_conf_atmega_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/atxmega-a1-xplained/include/board.h b/boards/atxmega-a1-xplained/include/board.h index 733df9d89e..cfe20af799 100644 --- a/boards/atxmega-a1-xplained/include/board.h +++ b/boards/atxmega-a1-xplained/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atxmega-a1-xplained * @{ @@ -16,9 +18,6 @@ * @author Gerson Fernando Budke */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "macros/units.h" @@ -182,5 +181,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/atxmega-a1-xplained/include/gpio_params.h b/boards/atxmega-a1-xplained/include/gpio_params.h index 2b08978fed..c942604b7b 100644 --- a/boards/atxmega-a1-xplained/include/gpio_params.h +++ b/boards/atxmega-a1-xplained/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atxmega-a1-xplained * @{ @@ -16,9 +18,6 @@ * @author Gerson Fernando Budke */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -133,5 +132,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/atxmega-a1-xplained/include/periph_conf.h b/boards/atxmega-a1-xplained/include/periph_conf.h index ffdf34f018..5ab8aac08d 100644 --- a/boards/atxmega-a1-xplained/include/periph_conf.h +++ b/boards/atxmega-a1-xplained/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atxmega-a1-xplained * @{ @@ -17,9 +19,6 @@ */ #include "mutex.h" -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #ifdef __cplusplus extern "C" { #endif @@ -238,5 +237,4 @@ static const ebi_conf_t ebi_config = { #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/atxmega-a1u-xpro/include/board.h b/boards/atxmega-a1u-xpro/include/board.h index 8ac664712d..43d40ff278 100644 --- a/boards/atxmega-a1u-xpro/include/board.h +++ b/boards/atxmega-a1u-xpro/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atxmega-a1u-xpro * @{ @@ -16,9 +18,6 @@ * @author Gerson Fernando Budke */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "macros/units.h" @@ -99,5 +98,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/atxmega-a1u-xpro/include/gpio_params.h b/boards/atxmega-a1u-xpro/include/gpio_params.h index c206dc3abc..9053919be3 100644 --- a/boards/atxmega-a1u-xpro/include/gpio_params.h +++ b/boards/atxmega-a1u-xpro/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atxmega-a1u-xpro * @{ @@ -16,9 +18,6 @@ * @author Gerson Fernando Budke */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -49,5 +48,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/atxmega-a1u-xpro/include/periph_conf.h b/boards/atxmega-a1u-xpro/include/periph_conf.h index 9b6cb31a23..baeba762ab 100644 --- a/boards/atxmega-a1u-xpro/include/periph_conf.h +++ b/boards/atxmega-a1u-xpro/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atxmega-a1u-xpro * @{ @@ -17,9 +19,6 @@ */ #include "mutex.h" -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #ifdef __cplusplus extern "C" { #endif @@ -174,5 +173,4 @@ static const ebi_conf_t ebi_config = { #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/atxmega-a3bu-xplained/include/board.h b/boards/atxmega-a3bu-xplained/include/board.h index 75bdb0a17a..dfec78f0a2 100644 --- a/boards/atxmega-a3bu-xplained/include/board.h +++ b/boards/atxmega-a3bu-xplained/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atxmega-a3bu-xplained * @{ @@ -16,9 +18,6 @@ * @author Gerson Fernando Budke */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "macros/units.h" @@ -114,5 +113,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/atxmega-a3bu-xplained/include/gpio_params.h b/boards/atxmega-a3bu-xplained/include/gpio_params.h index e718690d63..57337dd0d0 100644 --- a/boards/atxmega-a3bu-xplained/include/gpio_params.h +++ b/boards/atxmega-a3bu-xplained/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atxmega-a3bu-xplained * @{ @@ -16,9 +18,6 @@ * @author Gerson Fernando Budke */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -67,5 +66,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/atxmega-a3bu-xplained/include/periph_conf.h b/boards/atxmega-a3bu-xplained/include/periph_conf.h index a9106673cb..3b2066b626 100644 --- a/boards/atxmega-a3bu-xplained/include/periph_conf.h +++ b/boards/atxmega-a3bu-xplained/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_atxmega-a3bu-xplained * @{ @@ -17,9 +19,6 @@ */ #include "mutex.h" -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #ifdef __cplusplus extern "C" { #endif @@ -153,5 +152,4 @@ static const spi_conf_t spi_config[] = { #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/avr-rss2/include/board.h b/boards/avr-rss2/include/board.h index 4c2c74726a..6c0c317b3d 100644 --- a/boards/avr-rss2/include/board.h +++ b/boards/avr-rss2/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_avr-rss2 * @{ @@ -17,9 +19,6 @@ * */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph/gpio.h" @@ -114,5 +113,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/avr-rss2/include/eui_provider_params.h b/boards/avr-rss2/include/eui_provider_params.h index 3642ecfb06..889c278550 100644 --- a/boards/avr-rss2/include/eui_provider_params.h +++ b/boards/avr-rss2/include/eui_provider_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_avr-rss2 * @{ @@ -15,9 +17,6 @@ * * @author Benjamin Valentin */ -#ifndef EUI_PROVIDER_PARAMS_H -#define EUI_PROVIDER_PARAMS_H - #include "at24mac.h" #ifdef __cplusplus @@ -46,5 +45,4 @@ static inline int _at24mac_get_eui64(uint8_t index, eui64_t *addr) } #endif -#endif /* EUI_PROVIDER_PARAMS_H */ /** @} */ diff --git a/boards/avr-rss2/include/gpio_params.h b/boards/avr-rss2/include/gpio_params.h index fb2ba79b0d..de8eb0d8b7 100644 --- a/boards/avr-rss2/include/gpio_params.h +++ b/boards/avr-rss2/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_avr-rss2 * @{ @@ -16,9 +18,6 @@ * @author Robert Olsson */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -55,5 +54,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/avr-rss2/include/periph_conf.h b/boards/avr-rss2/include/periph_conf.h index 750e2659d9..2735d011a0 100644 --- a/boards/avr-rss2/include/periph_conf.h +++ b/boards/avr-rss2/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_avr-rss2 * @{ @@ -16,9 +18,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #ifdef __cplusplus extern "C" { #endif @@ -36,5 +35,4 @@ extern "C" { #include "periph_conf_atmega_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/avsextrem/include/board.h b/boards/avsextrem/include/board.h index 16985607ad..079bff3c84 100644 --- a/boards/avsextrem/include/board.h +++ b/boards/avsextrem/include/board.h @@ -7,6 +7,8 @@ * */ +#pragma once + /** * @ingroup boards_avsextrem * @{ @@ -18,9 +20,6 @@ * @author Zakaria Kasmi */ -#ifndef BOARD_H -#define BOARD_H - #include "lpc23xx.h" #include "bitarithm.h" @@ -52,4 +51,3 @@ extern "C" { #endif /** @} */ -#endif /* BOARD_H */ diff --git a/boards/avsextrem/include/periph_conf.h b/boards/avsextrem/include/periph_conf.h index ace679fc99..c023484188 100644 --- a/boards/avsextrem/include/periph_conf.h +++ b/boards/avsextrem/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_avsextrem * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -84,5 +83,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/b-l072z-lrwan1/include/board.h b/boards/b-l072z-lrwan1/include/board.h index 0e2392771a..7d2cd5be4a 100644 --- a/boards/b-l072z-lrwan1/include/board.h +++ b/boards/b-l072z-lrwan1/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_b-l072z-lrwan1 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include #include "cpu.h" @@ -85,5 +84,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/b-l072z-lrwan1/include/gpio_params.h b/boards/b-l072z-lrwan1/include/gpio_params.h index 9b9a5d0fc2..fc0a6ed4e1 100644 --- a/boards/b-l072z-lrwan1/include/gpio_params.h +++ b/boards/b-l072z-lrwan1/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_b-l072z-lrwan1 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -64,5 +63,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/b-l072z-lrwan1/include/periph_conf.h b/boards/b-l072z-lrwan1/include/periph_conf.h index 04120a659f..a46465a35c 100644 --- a/boards/b-l072z-lrwan1/include/periph_conf.h +++ b/boards/b-l072z-lrwan1/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_b-l072z-lrwan1 * @{ @@ -17,9 +19,6 @@ * @author Thibault Tisserand */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -167,5 +166,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/b-l475e-iot01a/include/board.h b/boards/b-l475e-iot01a/include/board.h index 43f6c38e79..2d8d732377 100644 --- a/boards/b-l475e-iot01a/include/board.h +++ b/boards/b-l475e-iot01a/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_b-l475e-iot01a * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include #include "cpu.h" @@ -83,5 +82,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/b-l475e-iot01a/include/gpio_params.h b/boards/b-l475e-iot01a/include/gpio_params.h index c8e17a692f..76834746ae 100644 --- a/boards/b-l475e-iot01a/include/gpio_params.h +++ b/boards/b-l475e-iot01a/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_b-l475e-iot01a * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -57,5 +56,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/b-l475e-iot01a/include/periph_conf.h b/boards/b-l475e-iot01a/include/periph_conf.h index e8db2a2927..92443d0022 100644 --- a/boards/b-l475e-iot01a/include/periph_conf.h +++ b/boards/b-l475e-iot01a/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_b-l475e-iot01a * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -250,5 +249,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/b-u585i-iot02a/include/board.h b/boards/b-u585i-iot02a/include/board.h index 51b384a1dd..44e409fc11 100644 --- a/boards/b-u585i-iot02a/include/board.h +++ b/boards/b-u585i-iot02a/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_b-u585i-iot02a * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include #include "cpu.h" @@ -72,5 +71,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/b-u585i-iot02a/include/gpio_params.h b/boards/b-u585i-iot02a/include/gpio_params.h index e68a927c8c..20b5128331 100644 --- a/boards/b-u585i-iot02a/include/gpio_params.h +++ b/boards/b-u585i-iot02a/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_b-u585i-iot02a * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -63,5 +62,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/b-u585i-iot02a/include/periph_conf.h b/boards/b-u585i-iot02a/include/periph_conf.h index f552c8535b..4c06c9d35b 100644 --- a/boards/b-u585i-iot02a/include/periph_conf.h +++ b/boards/b-u585i-iot02a/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_b-u585i-iot02a * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -185,5 +184,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/bastwan/include/board.h b/boards/bastwan/include/board.h index d729dca6f3..0dea72fa38 100644 --- a/boards/bastwan/include/board.h +++ b/boards/bastwan/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_bastwan BastWAN board * @ingroup boards @@ -21,9 +23,6 @@ * @author Lokotius Filzer */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph/gpio.h" #include "periph/pm.h" @@ -72,5 +71,4 @@ extern "C" } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/bastwan/include/gpio_params.h b/boards/bastwan/include/gpio_params.h index 9102dc8922..2114807a6d 100644 --- a/boards/bastwan/include/gpio_params.h +++ b/boards/bastwan/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_bastwan * @{ @@ -16,9 +18,6 @@ * @author Lokotius Filzer */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -44,5 +43,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/bastwan/include/periph_conf.h b/boards/bastwan/include/periph_conf.h index 66d6b7c299..1bb9c186ed 100644 --- a/boards/bastwan/include/periph_conf.h +++ b/boards/bastwan/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_bastwan * @{ @@ -16,9 +18,6 @@ * @author Lokotius Filzer */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "macros/units.h" @@ -205,5 +204,4 @@ static const sam0_common_usb_config_t sam_usbdev_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/blackpill-stm32f103c8/include/board.h b/boards/blackpill-stm32f103c8/include/board.h index 8fad855e3f..04cc18e2b6 100644 --- a/boards/blackpill-stm32f103c8/include/board.h +++ b/boards/blackpill-stm32f103c8/include/board.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_blackpill_stm32f103c8 * @brief Support for the stm32f103c8 based Black pill. @@ -24,9 +26,6 @@ * @author Marian Buschsieweke */ -#ifndef BOARD_H -#define BOARD_H - #ifdef __cplusplus extern "C" { #endif @@ -47,5 +46,4 @@ extern "C" { /* Beware: This include must come *after* LED0 parameters have been defined */ #include "board_common.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/blackpill-stm32f103cb/include/board.h b/boards/blackpill-stm32f103cb/include/board.h index 6f1b1962a5..fe0bfaf690 100644 --- a/boards/blackpill-stm32f103cb/include/board.h +++ b/boards/blackpill-stm32f103cb/include/board.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_blackpill_stm32f103cb * @brief Support for the stm32f103c8 based Black pill. @@ -24,9 +26,6 @@ * @author Marian Buschsieweke */ -#ifndef BOARD_H -#define BOARD_H - #ifdef __cplusplus extern "C" { #endif @@ -47,5 +46,4 @@ extern "C" { /* Beware: This include must come *after* LED0 parameters have been defined */ #include "board_common.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/bluepill-stm32f030c8/include/board.h b/boards/bluepill-stm32f030c8/include/board.h index 5c96d63abe..b903cfa791 100644 --- a/boards/bluepill-stm32f030c8/include/board.h +++ b/boards/bluepill-stm32f030c8/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_bluepill-stm32f030c8 * @@ -21,9 +23,6 @@ * @author Benjamin Valentin */ -#ifndef BOARD_H -#define BOARD_H - #ifdef __cplusplus extern "C" { #endif @@ -51,5 +50,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/bluepill-stm32f030c8/include/gpio_params.h b/boards/bluepill-stm32f030c8/include/gpio_params.h index 2b6a57eda6..d45ec4b09f 100644 --- a/boards/bluepill-stm32f030c8/include/gpio_params.h +++ b/boards/bluepill-stm32f030c8/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_bluepill-stm32f030c8 * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -43,5 +42,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/bluepill-stm32f030c8/include/periph_conf.h b/boards/bluepill-stm32f030c8/include/periph_conf.h index ab23acef84..d28ff4cf39 100644 --- a/boards/bluepill-stm32f030c8/include/periph_conf.h +++ b/boards/bluepill-stm32f030c8/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_bluepill-stm32f030c8 * @{ @@ -17,9 +19,6 @@ * @author Benjamin Valentin */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides a LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -149,5 +148,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/bluepill-stm32f103c8/include/board.h b/boards/bluepill-stm32f103c8/include/board.h index 19bdad24a9..a36a4e8724 100644 --- a/boards/bluepill-stm32f103c8/include/board.h +++ b/boards/bluepill-stm32f103c8/include/board.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_bluepill_stm32f103c8 * @@ -26,9 +28,6 @@ * @author Alexander Kurth */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #ifdef __cplusplus @@ -39,5 +38,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/bluepill-stm32f103cb/include/board.h b/boards/bluepill-stm32f103cb/include/board.h index 4a0d399afe..9fd51e60af 100644 --- a/boards/bluepill-stm32f103cb/include/board.h +++ b/boards/bluepill-stm32f103cb/include/board.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_bluepill_stm32f103cb * @@ -26,9 +28,6 @@ * @author Alexander Kurth */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #ifdef __cplusplus @@ -41,5 +40,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/calliope-mini/include/board.h b/boards/calliope-mini/include/board.h index 793b7d82a6..331af74c15 100644 --- a/boards/calliope-mini/include/board.h +++ b/boards/calliope-mini/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_calliope-mini * @@ -19,9 +21,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #ifdef __cplusplus @@ -60,5 +59,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/calliope-mini/include/gpio_params.h b/boards/calliope-mini/include/gpio_params.h index b4aeb1138d..ab7480b8f6 100644 --- a/boards/calliope-mini/include/gpio_params.h +++ b/boards/calliope-mini/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_calliope-mini * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -50,5 +49,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/calliope-mini/include/periph_conf.h b/boards/calliope-mini/include/periph_conf.h index 5c62be7b73..454c3ec565 100644 --- a/boards/calliope-mini/include/periph_conf.h +++ b/boards/calliope-mini/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_calliope-mini * @{ @@ -17,9 +19,6 @@ * @author Semjon Kerner */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_16_0.h" #include "cfg_timer_012.h" @@ -80,5 +79,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/cc1312-launchpad/include/board.h b/boards/cc1312-launchpad/include/board.h index 3487ecc620..380fa8ef00 100644 --- a/boards/cc1312-launchpad/include/board.h +++ b/boards/cc1312-launchpad/include/board.h @@ -8,6 +8,8 @@ * details. */ +#pragma once + /** * @ingroup boards_cc1352_launchpad * @{ @@ -20,9 +22,6 @@ * @author Anton Gerasimov */ -#ifndef BOARD_H -#define BOARD_H - #include "periph/gpio.h" #ifdef __cplusplus @@ -69,5 +68,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/cc1312-launchpad/include/gpio_params.h b/boards/cc1312-launchpad/include/gpio_params.h index 140124702f..1db277330b 100644 --- a/boards/cc1312-launchpad/include/gpio_params.h +++ b/boards/cc1312-launchpad/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_cc1312_launchpad * @{ @@ -16,9 +18,6 @@ * @author Jean Pierre Dudey */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -59,5 +58,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/cc1312-launchpad/include/periph_conf.h b/boards/cc1312-launchpad/include/periph_conf.h index de8791e23b..a1179e5543 100644 --- a/boards/cc1312-launchpad/include/periph_conf.h +++ b/boards/cc1312-launchpad/include/periph_conf.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_cc1312_launchpad * @{ @@ -20,9 +22,6 @@ * @author Jean Pierre Dudey */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -118,5 +117,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/cc1350-launchpad/include/board.h b/boards/cc1350-launchpad/include/board.h index a2592e032d..3a0f30c25b 100644 --- a/boards/cc1350-launchpad/include/board.h +++ b/boards/cc1350-launchpad/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_cc1350_launchpad * @{ @@ -16,9 +18,6 @@ * @author Jean Pierre Dudey */ -#ifndef BOARD_H -#define BOARD_H - #include "periph/gpio.h" #ifdef __cplusplus @@ -65,5 +64,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/cc1350-launchpad/include/gpio_params.h b/boards/cc1350-launchpad/include/gpio_params.h index e4710cc53e..715f6a9643 100644 --- a/boards/cc1350-launchpad/include/gpio_params.h +++ b/boards/cc1350-launchpad/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_cc1350_launchpad * @{ @@ -16,9 +18,6 @@ * @author Jean Pierre Dudey */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -59,5 +58,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/cc1350-launchpad/include/periph_conf.h b/boards/cc1350-launchpad/include/periph_conf.h index 5d4448d216..0b62d45957 100644 --- a/boards/cc1350-launchpad/include/periph_conf.h +++ b/boards/cc1350-launchpad/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_cc1350_launchpad * @{ @@ -16,9 +18,6 @@ * @author Jean Pierre Dudey */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "macros/units.h" @@ -104,5 +103,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/cc1352-launchpad/include/board.h b/boards/cc1352-launchpad/include/board.h index f447ad34b5..0d9c222390 100644 --- a/boards/cc1352-launchpad/include/board.h +++ b/boards/cc1352-launchpad/include/board.h @@ -8,6 +8,8 @@ * details. */ +#pragma once + /** * @ingroup boards_cc1352_launchpad * @{ @@ -20,9 +22,6 @@ * @author Anton Gerasimov */ -#ifndef BOARD_H -#define BOARD_H - #include "periph/gpio.h" #ifdef __cplusplus @@ -69,5 +68,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/cc1352-launchpad/include/gpio_params.h b/boards/cc1352-launchpad/include/gpio_params.h index 67191900ea..1883076bcf 100644 --- a/boards/cc1352-launchpad/include/gpio_params.h +++ b/boards/cc1352-launchpad/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_cc1352_launchpad * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -59,5 +58,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/cc1352-launchpad/include/periph_conf.h b/boards/cc1352-launchpad/include/periph_conf.h index e559c06458..0e73d773a7 100644 --- a/boards/cc1352-launchpad/include/periph_conf.h +++ b/boards/cc1352-launchpad/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_cc1352_launchpad * @{ @@ -18,9 +20,6 @@ * @author Sebastian Meiling */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -104,5 +103,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/cc1352p-launchpad/include/board.h b/boards/cc1352p-launchpad/include/board.h index 47b5da42a1..a28a8cc345 100644 --- a/boards/cc1352p-launchpad/include/board.h +++ b/boards/cc1352p-launchpad/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_cc1352p_launchpad * @{ @@ -16,9 +18,6 @@ * @author Luis A. Ruiz */ -#ifndef BOARD_H -#define BOARD_H - #include "periph/gpio.h" #ifdef __cplusplus @@ -65,5 +64,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/cc1352p-launchpad/include/gpio_params.h b/boards/cc1352p-launchpad/include/gpio_params.h index 8b7ccca9c7..b62271897f 100644 --- a/boards/cc1352p-launchpad/include/gpio_params.h +++ b/boards/cc1352p-launchpad/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_cc1352p_launchpad * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -59,5 +58,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/cc1352p-launchpad/include/periph_conf.h b/boards/cc1352p-launchpad/include/periph_conf.h index 71d3a9c6ad..b7d9db4690 100644 --- a/boards/cc1352p-launchpad/include/periph_conf.h +++ b/boards/cc1352p-launchpad/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_cc1352p_launchpad * @{ @@ -17,9 +19,6 @@ * @author Luis A. Ruiz */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -114,5 +113,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/cc2538dk/include/board.h b/boards/cc2538dk/include/board.h index cbab635a75..fa7384d3e6 100644 --- a/boards/cc2538dk/include/board.h +++ b/boards/cc2538dk/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_cc2538dk * @{ @@ -15,9 +17,6 @@ * @author Ian Martin */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph/gpio.h" #include "cc2538_eui_primary.h" @@ -84,5 +83,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/cc2538dk/include/periph_conf.h b/boards/cc2538dk/include/periph_conf.h index 28db02e01f..05193036ac 100644 --- a/boards/cc2538dk/include/periph_conf.h +++ b/boards/cc2538dk/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_cc2538dk * @{ @@ -16,9 +18,6 @@ * @author Ian Martin */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cpu.h" #include "periph_cpu.h" @@ -104,5 +103,4 @@ static const adc_conf_t adc_config[] = { } /* end extern "C" */ #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/cc2650-launchpad/include/board.h b/boards/cc2650-launchpad/include/board.h index 46f4c65180..0d62898d39 100644 --- a/boards/cc2650-launchpad/include/board.h +++ b/boards/cc2650-launchpad/include/board.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_cc2650_launchpad * @{ @@ -18,9 +20,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #include "periph/gpio.h" #ifdef __cplusplus @@ -67,5 +66,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/cc2650-launchpad/include/gpio_params.h b/boards/cc2650-launchpad/include/gpio_params.h index 288f901e4c..77e309dbc3 100644 --- a/boards/cc2650-launchpad/include/gpio_params.h +++ b/boards/cc2650-launchpad/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_cc2650_launchpad * @{ @@ -16,9 +18,6 @@ * @author Jean Pierre Dudey */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -59,5 +58,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/cc2650-launchpad/include/periph_conf.h b/boards/cc2650-launchpad/include/periph_conf.h index dc8d2d48d4..44ddfebe41 100644 --- a/boards/cc2650-launchpad/include/periph_conf.h +++ b/boards/cc2650-launchpad/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_cc2650_launchpad * @{ @@ -18,9 +20,6 @@ * @author Sebastian Meiling */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -105,5 +104,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/cc2650stk/include/board.h b/boards/cc2650stk/include/board.h index 7509600d2e..c3946fb297 100644 --- a/boards/cc2650stk/include/board.h +++ b/boards/cc2650stk/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_cc2650stk * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #include "periph/gpio.h" #ifdef __cplusplus @@ -65,5 +64,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/cc2650stk/include/gpio_params.h b/boards/cc2650stk/include/gpio_params.h index 215cd4fc9e..595fb46af2 100644 --- a/boards/cc2650stk/include/gpio_params.h +++ b/boards/cc2650stk/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_cc2650stk * @{ @@ -16,9 +18,6 @@ * @author Sebastian Meiling */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -57,5 +56,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/cc2650stk/include/periph_conf.h b/boards/cc2650stk/include/periph_conf.h index 9d0625be5e..485310770d 100644 --- a/boards/cc2650stk/include/periph_conf.h +++ b/boards/cc2650stk/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_cc2650stk * @{ @@ -16,9 +18,6 @@ * @author Leon M. George */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -102,5 +101,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/common/arduino-atmega/include/arduino_iomap.h b/boards/common/arduino-atmega/include/arduino_iomap.h index e7b143357d..a80f54e640 100644 --- a/boards/common/arduino-atmega/include/arduino_iomap.h +++ b/boards/common/arduino-atmega/include/arduino_iomap.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_arduino-atmega * @{ @@ -24,9 +26,6 @@ * @author Thomas Perrot */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/adc.h" #include "periph/gpio.h" #include "periph/i2c.h" @@ -332,5 +331,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/common/arduino-atmega/include/board_common.h b/boards/common/arduino-atmega/include/board_common.h index efd5979291..ea10b4019c 100644 --- a/boards/common/arduino-atmega/include/board_common.h +++ b/boards/common/arduino-atmega/include/board_common.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_common_arduino-atmega Arduino Atmega Common * @ingroup boards_common @@ -22,9 +24,6 @@ * @author Thomas Perrot */ -#ifndef BOARD_COMMON_H -#define BOARD_COMMON_H - #include "cpu.h" #include "arduino_pinmap.h" @@ -127,5 +126,4 @@ extern "C" { } #endif -#endif /* BOARD_COMMON_H */ /** @} */ diff --git a/boards/common/arduino-atmega/include/gpio_params.h b/boards/common/arduino-atmega/include/gpio_params.h index 1cf28a85fd..2c33eabb7a 100644 --- a/boards/common/arduino-atmega/include/gpio_params.h +++ b/boards/common/arduino-atmega/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_arduino-atmega * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -42,5 +41,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/common/arduino-atmega/include/periph_conf.h b/boards/common/arduino-atmega/include/periph_conf.h index dcad10a5ec..6b224bfd37 100644 --- a/boards/common/arduino-atmega/include/periph_conf.h +++ b/boards/common/arduino-atmega/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_arduino-atmega * @{ @@ -16,9 +18,6 @@ * @author Marian Buschsieweke */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #ifdef __cplusplus extern "C" { #endif @@ -35,5 +34,3 @@ extern "C" { #endif #include "periph_conf_atmega_common.h" - -#endif /* PERIPH_CONF_H */ diff --git a/boards/common/arduino-due/include/arduino_iomap.h b/boards/common/arduino-due/include/arduino_iomap.h index 0c14f6b96a..399ed93867 100644 --- a/boards/common/arduino-due/include/arduino_iomap.h +++ b/boards/common/arduino-due/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_arduino_due * @{ @@ -19,9 +21,6 @@ * @author Hauke Petersen */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/adc.h" #include "periph/gpio.h" #include "periph/i2c.h" @@ -200,5 +199,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/common/arduino-due/include/board.h b/boards/common/arduino-due/include/board.h index 76093b9d42..85c4dba6a3 100644 --- a/boards/common/arduino-due/include/board.h +++ b/boards/common/arduino-due/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_common_arduino_due Arduino Due Common * @ingroup boards_common @@ -18,9 +20,6 @@ * @author Hauke Petersen */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "arduino_pinmap.h" #include "periph/gpio.h" @@ -44,5 +43,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/common/arduino-due/include/gpio_params.h b/boards/common/arduino-due/include/gpio_params.h index 79273cb9fd..7266eded21 100644 --- a/boards/common/arduino-due/include/gpio_params.h +++ b/boards/common/arduino-due/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_arduino_due * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -42,5 +41,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/common/arduino-due/include/periph_conf.h b/boards/common/arduino-due/include/periph_conf.h index 20be9b26e7..eb33015ad2 100644 --- a/boards/common/arduino-due/include/periph_conf.h +++ b/boards/common/arduino-due/include/periph_conf.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (C) 2014-2015,2017 Freie Universität Berlin * @@ -18,9 +20,6 @@ * @author Andreas "Paul" Pauli */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -166,5 +165,4 @@ static const pwm_chan_conf_t pwm_chan[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/common/arduino-due/include/sdcard_spi_params.h b/boards/common/arduino-due/include/sdcard_spi_params.h index 608a4726dc..1f409cbc68 100644 --- a/boards/common/arduino-due/include/sdcard_spi_params.h +++ b/boards/common/arduino-due/include/sdcard_spi_params.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_arduino_due * @{ @@ -18,9 +20,6 @@ * @author Hauke Petersen */ -#ifndef SDCARD_SPI_PARAMS_H -#define SDCARD_SPI_PARAMS_H - #include "arduino_pinmap.h" #ifdef __cplusplus @@ -74,5 +73,4 @@ static const sdcard_spi_params_t sdcard_spi_params[] = { } #endif -#endif /* SDCARD_SPI_PARAMS_H */ /** @} */ diff --git a/boards/common/arduino-mkr/include/arduino_iomap.h b/boards/common/arduino-mkr/include/arduino_iomap.h index 162c72c9d4..dab945fc51 100644 --- a/boards/common/arduino-mkr/include/arduino_iomap.h +++ b/boards/common/arduino-mkr/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_arduino-mkr * @{ @@ -19,9 +21,6 @@ * @author Alexandre Abadie */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -115,5 +114,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/common/arduino-mkr/include/board_common.h b/boards/common/arduino-mkr/include/board_common.h index cc2d3d673b..12ff82b4d0 100644 --- a/boards/common/arduino-mkr/include/board_common.h +++ b/boards/common/arduino-mkr/include/board_common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_common_arduino-mkr Arduino MKR Common * @ingroup boards_common @@ -19,9 +21,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_COMMON_H -#define BOARD_COMMON_H - #include "cpu.h" #include "periph_conf.h" #include "arduino_pinmap.h" @@ -34,5 +33,4 @@ extern "C" { } #endif -#endif /* BOARD_COMMON_H */ /** @} */ diff --git a/boards/common/arduino-mkr/include/gpio_params.h b/boards/common/arduino-mkr/include/gpio_params.h index 16db1acb5a..b42aae9a0a 100644 --- a/boards/common/arduino-mkr/include/gpio_params.h +++ b/boards/common/arduino-mkr/include/gpio_params.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_arduino-mkr * @{ @@ -18,9 +20,6 @@ * @author Hauke Petersen */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -44,5 +43,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/common/arduino-mkr/include/periph_conf.h b/boards/common/arduino-mkr/include/periph_conf.h index 25f52b025c..1e30c299f4 100644 --- a/boards/common/arduino-mkr/include/periph_conf.h +++ b/boards/common/arduino-mkr/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_arduino-mkr * @{ @@ -21,9 +23,6 @@ * @author Bumsik kim */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "periph_conf_common.h" @@ -104,5 +103,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/common/arduino-mkr/include/periph_conf_common.h b/boards/common/arduino-mkr/include/periph_conf_common.h index ff23c4d384..474110aab9 100644 --- a/boards/common/arduino-mkr/include/periph_conf_common.h +++ b/boards/common/arduino-mkr/include/periph_conf_common.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_arduino-mkr * @{ @@ -22,9 +24,6 @@ * @author Bumsik kim */ -#ifndef PERIPH_CONF_COMMON_H -#define PERIPH_CONF_COMMON_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -216,5 +215,4 @@ static const sam0_common_usb_config_t sam_usbdev_config[] = { } #endif -#endif /* PERIPH_CONF_COMMON_H */ /** @} */ diff --git a/boards/common/arduino-zero/include/arduino_iomap.h b/boards/common/arduino-zero/include/arduino_iomap.h index 2761cbdb0a..1fb8111c74 100644 --- a/boards/common/arduino-zero/include/arduino_iomap.h +++ b/boards/common/arduino-zero/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_arduino_zero * @{ @@ -19,9 +21,6 @@ * @author Alexandre Abadie */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/adc.h" #include "periph/gpio.h" #include "periph/i2c.h" @@ -168,5 +167,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/common/arduino-zero/include/board.h b/boards/common/arduino-zero/include/board.h index 0268e9d2b6..2bc474a405 100644 --- a/boards/common/arduino-zero/include/board.h +++ b/boards/common/arduino-zero/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_common_arduino_zero Common files of Arduino Zero and clones * @ingroup boards_common @@ -18,9 +20,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph_cpu.h" @@ -57,5 +56,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/common/arduino-zero/include/gpio_params.h b/boards/common/arduino-zero/include/gpio_params.h index 9bd9297975..dd61ad043d 100644 --- a/boards/common/arduino-zero/include/gpio_params.h +++ b/boards/common/arduino-zero/include/gpio_params.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_arduino_zero * @{ @@ -18,9 +20,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -44,5 +43,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/common/arduino-zero/include/periph_conf.h b/boards/common/arduino-zero/include/periph_conf.h index 040e22d316..ef6e4827a5 100644 --- a/boards/common/arduino-zero/include/periph_conf.h +++ b/boards/common/arduino-zero/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_arduino_zero * @{ @@ -21,9 +23,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "cpu.h" @@ -308,5 +307,4 @@ static const sam0_common_usb_config_t sam_usbdev_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/common/atmega/include/periph_conf_atmega_common.h b/boards/common/atmega/include/periph_conf_atmega_common.h index 8ba78f5c63..3791d8c6cf 100644 --- a/boards/common/atmega/include/periph_conf_atmega_common.h +++ b/boards/common/atmega/include/periph_conf_atmega_common.h @@ -13,6 +13,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_arduino-atmega * @{ @@ -32,9 +34,6 @@ * @author Hugues Larrive */ -#ifndef PERIPH_CONF_ATMEGA_COMMON_H -#define PERIPH_CONF_ATMEGA_COMMON_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -244,5 +243,4 @@ extern "C" { } #endif -#endif /* PERIPH_CONF_ATMEGA_COMMON_H */ /** @} */ diff --git a/boards/common/atxmega/include/periph_conf_common.h b/boards/common/atxmega/include/periph_conf_common.h index 95f54717ea..b445e18cdb 100644 --- a/boards/common/atxmega/include/periph_conf_common.h +++ b/boards/common/atxmega/include/periph_conf_common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_atxmega * @{ @@ -16,9 +18,6 @@ * @author Gerson Fernando Budke */ -#ifndef PERIPH_CONF_COMMON_H -#define PERIPH_CONF_COMMON_H - #include "periph_cpu.h" #include "macros/units.h" @@ -96,5 +95,4 @@ extern "C" { } #endif -#endif /* PERIPH_CONF_COMMON_H */ /** @} */ diff --git a/boards/common/blxxxpill/include/board_common.h b/boards/common/blxxxpill/include/board_common.h index d9c79dd786..af160a0128 100644 --- a/boards/common/blxxxpill/include/board_common.h +++ b/boards/common/blxxxpill/include/board_common.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_blxxxpill * @@ -21,9 +23,6 @@ * @author Alexander Kurth */ -#ifndef BOARD_COMMON_H -#define BOARD_COMMON_H - #ifdef __cplusplus extern "C" { #endif @@ -63,5 +62,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_COMMON_H */ /** @} */ diff --git a/boards/common/blxxxpill/include/gpio_params.h b/boards/common/blxxxpill/include/gpio_params.h index 913060746d..3be508f026 100644 --- a/boards/common/blxxxpill/include/gpio_params.h +++ b/boards/common/blxxxpill/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_blxxxpill * @{ @@ -16,9 +18,6 @@ * @author Sebastian Meiling */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -43,5 +42,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/common/blxxxpill/include/periph_conf.h b/boards/common/blxxxpill/include/periph_conf.h index fb5b24a763..ddd15c40e6 100644 --- a/boards/common/blxxxpill/include/periph_conf.h +++ b/boards/common/blxxxpill/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_blxxxpill * @{ @@ -21,9 +23,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* blxxxpill boards provide an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -370,5 +369,4 @@ static const stm32_usbdev_fs_config_t stm32_usbdev_fs_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/common/cc2538/include/cfg_clk_default.h b/boards/common/cc2538/include/cfg_clk_default.h index 60dedb582e..e768d585bd 100644 --- a/boards/common/cc2538/include/cfg_clk_default.h +++ b/boards/common/cc2538/include/cfg_clk_default.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_cc2538 * @{ @@ -21,9 +23,6 @@ * @author Francisco Molina */ -#ifndef CFG_CLK_DEFAULT_H -#define CFG_CLK_DEFAULT_H - #include #include "cpu.h" @@ -79,5 +78,4 @@ extern "C" { } #endif -#endif /* CFG_CLK_DEFAULT_H */ /** @} */ diff --git a/boards/common/cc2538/include/cfg_timer_default.h b/boards/common/cc2538/include/cfg_timer_default.h index e2fd4c8b1a..232b2c1c80 100644 --- a/boards/common/cc2538/include/cfg_timer_default.h +++ b/boards/common/cc2538/include/cfg_timer_default.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_cc2538 * @{ @@ -19,9 +21,6 @@ * @author Sebastian Meiling */ -#ifndef CFG_TIMER_DEFAULT_H -#define CFG_TIMER_DEFAULT_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -64,5 +63,4 @@ static const timer_conf_t timer_config[] = { } /* end extern "C" */ #endif -#endif /* CFG_TIMER_DEFAULT_H */ /** @} */ diff --git a/boards/common/e104-bt50xxa-tb/include/board.h b/boards/common/e104-bt50xxa-tb/include/board.h index 97ab45a0af..75902a2204 100644 --- a/boards/common/e104-bt50xxa-tb/include/board.h +++ b/boards/common/e104-bt50xxa-tb/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_e104-bt50xxa-tb * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #ifdef __cplusplus @@ -68,5 +67,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/common/e104-bt50xxa-tb/include/gpio_params.h b/boards/common/e104-bt50xxa-tb/include/gpio_params.h index ae47cc6d2c..d6c0e4af35 100644 --- a/boards/common/e104-bt50xxa-tb/include/gpio_params.h +++ b/boards/common/e104-bt50xxa-tb/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_e104-bt50xxa-tb * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -63,5 +62,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/common/e104-bt50xxa-tb/include/periph_conf.h b/boards/common/e104-bt50xxa-tb/include/periph_conf.h index 4dde7a8e22..d0996ae185 100644 --- a/boards/common/e104-bt50xxa-tb/include/periph_conf.h +++ b/boards/common/e104-bt50xxa-tb/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_e104-bt50xxa-tb * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_rtt_default.h" #include "cfg_timer_default.h" @@ -98,5 +97,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/common/esp32/include/board_common_esp32.h b/boards/common/esp32/include/board_common_esp32.h index ed49ed3d4b..759c306eb6 100644 --- a/boards/common/esp32/include/board_common_esp32.h +++ b/boards/common/esp32/include/board_common_esp32.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_esp32 * @brief Board definitions that are common for all ESP32 boards. @@ -20,9 +22,6 @@ * @{ */ -#ifndef BOARD_COMMON_ESP32_H -#define BOARD_COMMON_ESP32_H - #include "board_common.h" /** @@ -48,5 +47,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_COMMON_ESP32_H */ /** @} */ diff --git a/boards/common/esp32/include/periph_conf_common_esp32.h b/boards/common/esp32/include/periph_conf_common_esp32.h index 888cecb2c5..821808a78b 100644 --- a/boards/common/esp32/include/periph_conf_common_esp32.h +++ b/boards/common/esp32/include/periph_conf_common_esp32.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_esp32 * @brief Common declarations of ESP32 periphery for all ESP32 boards @@ -20,9 +22,6 @@ * @{ */ -#ifndef PERIPH_CONF_COMMON_ESP32_H -#define PERIPH_CONF_COMMON_ESP32_H - #ifdef __cplusplus extern "C" { #endif @@ -44,5 +43,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* PERIPH_CONF_COMMON_ESP32_H */ /** @} */ diff --git a/boards/common/esp32c3/include/periph_conf_common_esp32c3.h b/boards/common/esp32c3/include/periph_conf_common_esp32c3.h index 1824d51103..93b9d16ff8 100644 --- a/boards/common/esp32c3/include/periph_conf_common_esp32c3.h +++ b/boards/common/esp32c3/include/periph_conf_common_esp32c3.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_esp32c3 * @brief Common peripheral configurations for ESP32-C3 boards @@ -21,9 +23,6 @@ * @{ */ -#ifndef PERIPH_CONF_COMMON_ESP32C3_H -#define PERIPH_CONF_COMMON_ESP32C3_H - #ifdef __cplusplus extern "C" { #endif @@ -45,5 +44,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* PERIPH_CONF_COMMON_ESP32C3_H */ /** @} */ diff --git a/boards/common/esp32s2/include/periph_conf_common_esp32s2.h b/boards/common/esp32s2/include/periph_conf_common_esp32s2.h index 1a7580782b..187dd063f9 100644 --- a/boards/common/esp32s2/include/periph_conf_common_esp32s2.h +++ b/boards/common/esp32s2/include/periph_conf_common_esp32s2.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_esp32s2 * @brief Common peripheral configurations for ESP32-S2 boards @@ -21,9 +23,6 @@ * @{ */ -#ifndef PERIPH_CONF_COMMON_ESP32S2_H -#define PERIPH_CONF_COMMON_ESP32S2_H - #ifdef __cplusplus extern "C" { #endif @@ -45,5 +44,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* PERIPH_CONF_COMMON_ESP32S2_H */ /** @} */ diff --git a/boards/common/esp32s3/include/periph_conf_common_esp32s3.h b/boards/common/esp32s3/include/periph_conf_common_esp32s3.h index 629c17f273..4ad032e6b9 100644 --- a/boards/common/esp32s3/include/periph_conf_common_esp32s3.h +++ b/boards/common/esp32s3/include/periph_conf_common_esp32s3.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_esp32s3 * @brief Common peripheral configurations for ESP32-S3 boards @@ -21,9 +23,6 @@ * @{ */ -#ifndef PERIPH_CONF_COMMON_ESP32S3_H -#define PERIPH_CONF_COMMON_ESP32S3_H - #ifdef __cplusplus extern "C" { #endif @@ -45,5 +44,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* PERIPH_CONF_COMMON_ESP32S3_H */ /** @} */ diff --git a/boards/common/esp32x/include/board_common.h b/boards/common/esp32x/include/board_common.h index b39c1d03b9..4bdbcea506 100644 --- a/boards/common/esp32x/include/board_common.h +++ b/boards/common/esp32x/include/board_common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_esp32x * @brief Board definitions that are common for all ESP32x boards. @@ -20,9 +22,6 @@ * @{ */ -#ifndef BOARD_COMMON_H -#define BOARD_COMMON_H - #include #include "cpu.h" @@ -139,5 +138,4 @@ void print_board_config(void); } /* end extern "C" */ #endif -#endif /* BOARD_COMMON_H */ /** @} */ diff --git a/boards/common/esp32x/include/periph_conf_common.h b/boards/common/esp32x/include/periph_conf_common.h index 0d56301e48..dfb4df6447 100644 --- a/boards/common/esp32x/include/periph_conf_common.h +++ b/boards/common/esp32x/include/periph_conf_common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_esp32x * @brief Peripheral configurations that are common for all ESP32x boards @@ -21,9 +23,6 @@ * @{ */ -#ifndef PERIPH_CONF_COMMON_H -#define PERIPH_CONF_COMMON_H - #if defined(CPU_FAM_ESP32) #include "periph_conf_common_esp32.h" #elif defined(CPU_FAM_ESP32C3) @@ -413,5 +412,4 @@ static const dwc2_usb_otg_fshs_config_t dwc2_usb_otg_fshs_config[] = { } /* end extern "C" */ #endif -#endif /* PERIPH_CONF_COMMON_H */ /** @} */ diff --git a/boards/common/esp8266/include/board_common.h b/boards/common/esp8266/include/board_common.h index 35855066d3..c4674fe8e0 100644 --- a/boards/common/esp8266/include/board_common.h +++ b/boards/common/esp8266/include/board_common.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef BOARD_COMMON_H -#define BOARD_COMMON_H +#pragma once /** * @ingroup boards_common_esp8266 @@ -133,4 +132,3 @@ void board_print_config (void); /** @} */ #endif /* ESP_PLATFORM */ -#endif /* BOARD_COMMON_H */ diff --git a/boards/common/esp8266/include/board_modules.h b/boards/common/esp8266/include/board_modules.h index 6d43eac9b1..51122d5e5d 100644 --- a/boards/common/esp8266/include/board_modules.h +++ b/boards/common/esp8266/include/board_modules.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef BOARD_MODULES_H -#define BOARD_MODULES_H +#pragma once /** * @ingroup boards_common_esp8266 @@ -126,5 +125,3 @@ extern "C" { #endif /** @} */ - -#endif /* BOARD_MODULES_H */ diff --git a/boards/common/esp8266/include/periph_conf_common.h b/boards/common/esp8266/include/periph_conf_common.h index 04ec1a61c0..0b1953a737 100644 --- a/boards/common/esp8266/include/periph_conf_common.h +++ b/boards/common/esp8266/include/periph_conf_common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_esp8266 * @brief Configurations of the MCU periphery that are common for all @@ -15,9 +17,6 @@ * @{ */ -#ifndef PERIPH_CONF_COMMON_H -#define PERIPH_CONF_COMMON_H - /* include board.h and periph_cpu.h to make them visible in any case */ #include "periph_cpu.h" #include "kernel_defines.h" @@ -272,5 +271,4 @@ static const uart_conf_t uart_config[] = { } /* end extern "C" */ #endif -#endif /* PERIPH_CONF_COMMON_H */ /** @} */ diff --git a/boards/common/gd32v/include/board_common.h b/boards/common/gd32v/include/board_common.h index 412b9b5d91..3a2e8738e3 100644 --- a/boards/common/gd32v/include/board_common.h +++ b/boards/common/gd32v/include/board_common.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_gd32v * @{ @@ -18,9 +20,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_COMMON_H -#define BOARD_COMMON_H - #ifdef __cplusplus extern "C" { #endif @@ -36,5 +35,4 @@ extern "C" { } #endif -#endif /* BOARD_COMMON_H */ /** @} */ diff --git a/boards/common/gd32v/include/cfg_i2c_default.h b/boards/common/gd32v/include/cfg_i2c_default.h index b658c5f537..8bf7d52e72 100644 --- a/boards/common/gd32v/include/cfg_i2c_default.h +++ b/boards/common/gd32v/include/cfg_i2c_default.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_gd32v * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef CFG_I2C_DEFAULT_H -#define CFG_I2C_DEFAULT_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -84,5 +83,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* CFG_I2C_DEFAULT_H */ /** @} */ diff --git a/boards/common/gd32v/include/cfg_spi_default.h b/boards/common/gd32v/include/cfg_spi_default.h index 011b8aa469..ac9ebd0a73 100644 --- a/boards/common/gd32v/include/cfg_spi_default.h +++ b/boards/common/gd32v/include/cfg_spi_default.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_gd32v * @{ @@ -18,9 +20,6 @@ * @author Gunar Schorcht */ -#ifndef CFG_SPI_DEFAULT_H -#define CFG_SPI_DEFAULT_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -106,5 +105,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* CFG_SPI_DEFAULT_H */ /** @} */ diff --git a/boards/common/gd32v/include/cfg_timer_default.h b/boards/common/gd32v/include/cfg_timer_default.h index dba83d304f..8f32578945 100644 --- a/boards/common/gd32v/include/cfg_timer_default.h +++ b/boards/common/gd32v/include/cfg_timer_default.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_gd32v * @{ @@ -18,9 +20,6 @@ * @author Gunar Schorcht */ -#ifndef CFG_TIMER_DEFAULT_H -#define CFG_TIMER_DEFAULT_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -102,5 +101,4 @@ static const timer_conf_t timer_config[] = { } #endif -#endif /* CFG_TIMER_DEFAULT_H */ /** @} */ diff --git a/boards/common/gd32v/include/cfg_uart_default.h b/boards/common/gd32v/include/cfg_uart_default.h index 70ba87c68b..084677eea4 100644 --- a/boards/common/gd32v/include/cfg_uart_default.h +++ b/boards/common/gd32v/include/cfg_uart_default.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_gd32v * @{ @@ -18,9 +20,6 @@ * @author Gunar Schorcht */ -#ifndef CFG_UART_DEFAULT_H -#define CFG_UART_DEFAULT_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -51,5 +50,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* CFG_UART_DEFAULT_H */ /** @} */ diff --git a/boards/common/gd32v/include/cfg_usbdev_default.h b/boards/common/gd32v/include/cfg_usbdev_default.h index 475b00b966..9a5ead0b67 100644 --- a/boards/common/gd32v/include/cfg_usbdev_default.h +++ b/boards/common/gd32v/include/cfg_usbdev_default.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_gd32v * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef CFG_USBDEV_DEFAULT_H -#define CFG_USBDEV_DEFAULT_H - #include "vendor/usbdev_gd32v.h" #include "usbdev_synopsys_dwc2.h" @@ -59,5 +58,4 @@ static const dwc2_usb_otg_fshs_config_t dwc2_usb_otg_fshs_config[] = { } #endif -#endif /* CFG_USBDEV_DEFAULT_H */ /** @} */ diff --git a/boards/common/gd32v/include/periph_common_conf.h b/boards/common/gd32v/include/periph_common_conf.h index a66fe3b5f0..61608fc6e3 100644 --- a/boards/common/gd32v/include/periph_common_conf.h +++ b/boards/common/gd32v/include/periph_common_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_gd32v * @{ @@ -18,9 +20,6 @@ * @author Gunar Schorcht */ -#ifndef PERIPH_COMMON_CONF_H -#define PERIPH_COMMON_CONF_H - #include "macros/units.h" #include "periph_cpu.h" @@ -62,5 +61,4 @@ extern "C" { } #endif -#endif /* PERIPH_COMMON_CONF_H */ /** @} */ diff --git a/boards/common/iotlab/include/board_common.h b/boards/common/iotlab/include/board_common.h index b6a7039502..5048885036 100644 --- a/boards/common/iotlab/include/board_common.h +++ b/boards/common/iotlab/include/board_common.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup boards_common_iotlab IoTlab Common * @ingroup boards_common @@ -21,9 +23,6 @@ * @author Hauke Petersen */ -#ifndef BOARD_COMMON_H -#define BOARD_COMMON_H - #include #include "cpu.h" @@ -96,5 +95,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_COMMON_H */ /** @} */ diff --git a/boards/common/iotlab/include/gpio_params.h b/boards/common/iotlab/include/gpio_params.h index ade0ac25b1..62887d1d48 100644 --- a/boards/common/iotlab/include/gpio_params.h +++ b/boards/common/iotlab/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_iotlab * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -55,5 +54,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/common/iotlab/include/openwsn_defs.h b/boards/common/iotlab/include/openwsn_defs.h index cb8469fd98..6527261cb4 100644 --- a/boards/common/iotlab/include/openwsn_defs.h +++ b/boards/common/iotlab/include/openwsn_defs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common * @{ @@ -16,9 +18,6 @@ * @author Francisco Molina */ -#ifndef OPENWSN_DEFS_H -#define OPENWSN_DEFS_H - #ifdef __cplusplus extern "C" { #endif @@ -44,5 +43,4 @@ extern "C" { } #endif -#endif /* OPENWSN_DEFS_H */ /** @} */ diff --git a/boards/common/iotlab/include/periph_conf_common.h b/boards/common/iotlab/include/periph_conf_common.h index a4bd239775..089c48aabf 100644 --- a/boards/common/iotlab/include/periph_conf_common.h +++ b/boards/common/iotlab/include/periph_conf_common.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_common_iotlab * @{ @@ -17,9 +19,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_COMMON_H -#define PERIPH_CONF_COMMON_H - /* iotlab boards provide an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -168,5 +167,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_COMMON_H */ /** @} */ diff --git a/boards/common/kw41z/include/board_common.h b/boards/common/kw41z/include/board_common.h index 6baa9f6df6..de47ca7711 100644 --- a/boards/common/kw41z/include/board_common.h +++ b/boards/common/kw41z/include/board_common.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @defgroup boards_common_kw41z KW41Z common * @ingroup boards_common @@ -20,9 +22,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_COMMON_H -#define BOARD_COMMON_H - #include "cpu.h" #include "periph_conf.h" @@ -35,5 +34,4 @@ extern "C" } #endif -#endif /* BOARD_COMMON_H */ /** @} */ diff --git a/boards/common/kw41z/include/cfg_i2c_default.h b/boards/common/kw41z/include/cfg_i2c_default.h index 3b33eed4c8..3792e69ff9 100644 --- a/boards/common/kw41z/include/cfg_i2c_default.h +++ b/boards/common/kw41z/include/cfg_i2c_default.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_common_kw41z * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef CFG_I2C_DEFAULT_H -#define CFG_I2C_DEFAULT_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -50,5 +49,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* CFG_I2C_DEFAULT_H */ /** @} */ diff --git a/boards/common/kw41z/include/periph_conf_common.h b/boards/common/kw41z/include/periph_conf_common.h index 6eafe08695..0c6dbee9db 100644 --- a/boards/common/kw41z/include/periph_conf_common.h +++ b/boards/common/kw41z/include/periph_conf_common.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_common_kw41z * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef PERIPH_CONF_COMMON_H -#define PERIPH_CONF_COMMON_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -177,5 +176,4 @@ static const uint32_t spi_clk_config[] = { } #endif -#endif /* PERIPH_CONF_COMMON_H */ /** @} */ diff --git a/boards/common/microbit/include/microbit.h b/boards/common/microbit/include/microbit.h index 23630b0af0..455226af00 100644 --- a/boards/common/microbit/include/microbit.h +++ b/boards/common/microbit/include/microbit.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_common_microbit Common microbit LED handling * @ingroup boards_common @@ -17,9 +19,6 @@ * @author Hauke Petersen */ -#ifndef MICROBIT_H -#define MICROBIT_H - #include #ifdef __cplusplus @@ -87,5 +86,4 @@ void microbit_matrix_shift_str(const char *str, uint32_t delay); } #endif -#endif /* MICROBIT_H */ /** @} */ diff --git a/boards/common/msb-430/include/board_common.h b/boards/common/msb-430/include/board_common.h index 4a0e99352c..2a58435a63 100644 --- a/boards/common/msb-430/include/board_common.h +++ b/boards/common/msb-430/include/board_common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_common_msb-430 MSB-430 common * @ingroup boards_common @@ -19,9 +21,6 @@ * @author Hauke Petersen */ -#ifndef BOARD_COMMON_H -#define BOARD_COMMON_H - #include "cpu.h" #ifdef __cplusplus @@ -54,5 +53,4 @@ extern "C" { } #endif -#endif /* BOARD_COMMON_H */ /** @} */ diff --git a/boards/common/msp430/include/cfg_timer_a_smclk_b_aclk.h b/boards/common/msp430/include/cfg_timer_a_smclk_b_aclk.h index 3ae3cd6615..fb18253e57 100644 --- a/boards/common/msp430/include/cfg_timer_a_smclk_b_aclk.h +++ b/boards/common/msp430/include/cfg_timer_a_smclk_b_aclk.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_msp430 * @{ @@ -17,9 +19,6 @@ * @author Marian Buschsieweke */ -#ifndef CFG_TIMER_A_SMCLK_B_ACLK_H -#define CFG_TIMER_A_SMCLK_B_ACLK_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -57,5 +56,4 @@ static const timer_conf_t timer_conf[] = { } #endif -#endif /* CFG_TIMER_A_SMCLK_B_ACLK_H */ /** @} */ diff --git a/boards/common/native/include/board.h b/boards/common/native/include/board.h index c836f540bc..2ce8bc5dc6 100644 --- a/boards/common/native/include/board.h +++ b/boards/common/native/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_native * @@ -19,9 +21,6 @@ * @author Ludwig Knüpfer */ -#ifndef BOARD_H -#define BOARD_H - #include /* RIOT includes */ @@ -219,4 +218,3 @@ static const motor_driver_config_t motor_driver_config[] = { #endif /** @} */ -#endif /* BOARD_H */ diff --git a/boards/common/native/include/board_internal.h b/boards/common/native/include/board_internal.h index ec1117ba34..22796f8102 100644 --- a/boards/common/native/include/board_internal.h +++ b/boards/common/native/include/board_internal.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef BOARD_INTERNAL_H -#define BOARD_INTERNAL_H +#pragma once #ifdef __cplusplus extern "C" { @@ -15,5 +14,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* BOARD_INTERNAL_H */ diff --git a/boards/common/native/include/eui_provider_params.h b/boards/common/native/include/eui_provider_params.h index 875b51f5e9..196cf0af71 100644 --- a/boards/common/native/include/eui_provider_params.h +++ b/boards/common/native/include/eui_provider_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_native * @{ @@ -15,9 +17,6 @@ * * @author Benjamin Valentin */ -#ifndef EUI_PROVIDER_PARAMS_H -#define EUI_PROVIDER_PARAMS_H - #include "native_cli_eui_provider.h" #ifdef __cplusplus @@ -40,5 +39,4 @@ extern "C" { } #endif -#endif /* EUI_PROVIDER_PARAMS_H */ /** @} */ diff --git a/boards/common/nrf51/include/board_common.h b/boards/common/nrf51/include/board_common.h index 210aa470f1..cd8d6beb6e 100644 --- a/boards/common/nrf51/include/board_common.h +++ b/boards/common/nrf51/include/board_common.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_common_nrf51 NRF51 common * @ingroup boards_common @@ -20,9 +22,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_COMMON_H -#define BOARD_COMMON_H - #include "cpu.h" #ifdef __cplusplus @@ -54,5 +53,4 @@ extern "C" { } #endif -#endif /* BOARD_COMMON_H */ /** @} */ diff --git a/boards/common/nrf51/include/cfg_clock_16_0.h b/boards/common/nrf51/include/cfg_clock_16_0.h index 1f3fad6035..17bb0c9ea6 100644 --- a/boards/common/nrf51/include/cfg_clock_16_0.h +++ b/boards/common/nrf51/include/cfg_clock_16_0.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nrf51 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef CFG_CLOCK_16_0_H -#define CFG_CLOCK_16_0_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -46,5 +45,4 @@ } /* end extern "C" */ #endif -#endif /* CFG_CLOCK_16_0_H */ /** @} */ diff --git a/boards/common/nrf51/include/cfg_clock_16_1.h b/boards/common/nrf51/include/cfg_clock_16_1.h index b888c44acc..5c5fc11621 100644 --- a/boards/common/nrf51/include/cfg_clock_16_1.h +++ b/boards/common/nrf51/include/cfg_clock_16_1.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nrf51 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef CFG_CLOCK_16_1_H -#define CFG_CLOCK_16_1_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -46,5 +45,4 @@ } /* end extern "C" */ #endif -#endif /* CFG_CLOCK_16_1_H */ /** @} */ diff --git a/boards/common/nrf51/include/cfg_rtt_default.h b/boards/common/nrf51/include/cfg_rtt_default.h index fc6d252655..eeec934af0 100644 --- a/boards/common/nrf51/include/cfg_rtt_default.h +++ b/boards/common/nrf51/include/cfg_rtt_default.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nrf51 * @{ @@ -18,9 +20,6 @@ * @author Hauke Petersen */ -#ifndef CFG_RTT_DEFAULT_H -#define CFG_RTT_DEFAULT_H - #ifdef __cplusplus extern "C" { #endif @@ -47,5 +46,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* CFG_RTT_DEFAULT_H */ /** @} */ diff --git a/boards/common/nrf51/include/cfg_timer_01.h b/boards/common/nrf51/include/cfg_timer_01.h index 5c04d9e4ac..b90cb2c5d3 100644 --- a/boards/common/nrf51/include/cfg_timer_01.h +++ b/boards/common/nrf51/include/cfg_timer_01.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nrf51 * @{ @@ -18,9 +20,6 @@ * @author Hauke Petersen */ -#ifndef CFG_TIMER_01_H -#define CFG_TIMER_01_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -61,5 +60,4 @@ static const timer_conf_t timer_config[] = { } /* end extern "C" */ #endif -#endif /* CFG_TIMER_01_H */ /** @} */ diff --git a/boards/common/nrf51/include/cfg_timer_012.h b/boards/common/nrf51/include/cfg_timer_012.h index bf1770c238..6f1b6abd57 100644 --- a/boards/common/nrf51/include/cfg_timer_012.h +++ b/boards/common/nrf51/include/cfg_timer_012.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nrf51 * @{ @@ -18,9 +20,6 @@ * @author Hauke Petersen */ -#ifndef CFG_TIMER_012_H -#define CFG_TIMER_012_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -70,5 +69,4 @@ static const timer_conf_t timer_config[] = { } /* end extern "C" */ #endif -#endif /* CFG_TIMER_012_H */ /** @} */ diff --git a/boards/common/nrf52/include/board_common.h b/boards/common/nrf52/include/board_common.h index 3ffc07db5a..bb47efd653 100644 --- a/boards/common/nrf52/include/board_common.h +++ b/boards/common/nrf52/include/board_common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nrf52 * @brief Shared files and configuration for all nRF52 boards. @@ -17,9 +19,6 @@ * @author Hauke Petersen */ -#ifndef BOARD_COMMON_H -#define BOARD_COMMON_H - #include "cpu.h" #ifdef __cplusplus @@ -30,5 +29,4 @@ extern "C" { } #endif -#endif /* BOARD_COMMON_H */ /** @} */ diff --git a/boards/common/nrf52/include/cfg_clock_32_0.h b/boards/common/nrf52/include/cfg_clock_32_0.h index 292f8dd3f9..bb476d3fb8 100644 --- a/boards/common/nrf52/include/cfg_clock_32_0.h +++ b/boards/common/nrf52/include/cfg_clock_32_0.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nrf52 * @{ @@ -17,9 +19,6 @@ * */ -#ifndef CFG_CLOCK_32_0_H -#define CFG_CLOCK_32_0_H - #ifdef __cplusplus extern "C" { #endif @@ -44,5 +43,4 @@ extern "C" { } #endif -#endif /* CFG_CLOCK_32_0_H */ /** @} */ diff --git a/boards/common/nrf52/include/cfg_clock_32_1.h b/boards/common/nrf52/include/cfg_clock_32_1.h index 73b73814d3..ee5acd35c1 100644 --- a/boards/common/nrf52/include/cfg_clock_32_1.h +++ b/boards/common/nrf52/include/cfg_clock_32_1.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nrf52 * @{ @@ -17,9 +19,6 @@ * */ -#ifndef CFG_CLOCK_32_1_H -#define CFG_CLOCK_32_1_H - #ifdef __cplusplus extern "C" { #endif @@ -44,5 +43,4 @@ extern "C" { } #endif -#endif /* CFG_CLOCK_32_1_H */ /** @} */ diff --git a/boards/common/nrf52/include/cfg_i2c_default.h b/boards/common/nrf52/include/cfg_i2c_default.h index 93e86530e1..16ab1a828a 100644 --- a/boards/common/nrf52/include/cfg_i2c_default.h +++ b/boards/common/nrf52/include/cfg_i2c_default.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nrf52 * @{ @@ -17,9 +19,6 @@ * */ -#ifndef CFG_I2C_DEFAULT_H -#define CFG_I2C_DEFAULT_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -53,5 +52,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* CFG_I2C_DEFAULT_H */ /** @} */ diff --git a/boards/common/nrf52/include/cfg_rtt_default.h b/boards/common/nrf52/include/cfg_rtt_default.h index 088a1cd80a..c44f403886 100644 --- a/boards/common/nrf52/include/cfg_rtt_default.h +++ b/boards/common/nrf52/include/cfg_rtt_default.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nrf52 * @{ @@ -17,9 +19,6 @@ * */ -#ifndef CFG_RTT_DEFAULT_H -#define CFG_RTT_DEFAULT_H - #ifdef __cplusplus extern "C" { #endif @@ -46,5 +45,4 @@ extern "C" { } #endif -#endif /* CFG_RTT_DEFAULT_H */ /** @} */ diff --git a/boards/common/nrf52/include/cfg_spi_default.h b/boards/common/nrf52/include/cfg_spi_default.h index bf4ea29f5c..2d0b42fc8d 100644 --- a/boards/common/nrf52/include/cfg_spi_default.h +++ b/boards/common/nrf52/include/cfg_spi_default.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nrf52 * @{ @@ -17,9 +19,6 @@ * */ -#ifndef CFG_SPI_DEFAULT_H -#define CFG_SPI_DEFAULT_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -49,5 +48,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* CFG_SPI_DEFAULT_H */ /** @} */ diff --git a/boards/common/nrf52/include/cfg_timer_default.h b/boards/common/nrf52/include/cfg_timer_default.h index 2931a014c3..9807d90ff6 100644 --- a/boards/common/nrf52/include/cfg_timer_default.h +++ b/boards/common/nrf52/include/cfg_timer_default.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nrf52 * @{ @@ -17,9 +19,6 @@ * */ -#ifndef CFG_TIMER_DEFAULT_H -#define CFG_TIMER_DEFAULT_H - #include "kernel_defines.h" #include "periph_cpu.h" @@ -102,5 +101,4 @@ static const timer_conf_t timer_config[] = { } #endif -#endif /* CFG_TIMER_DEFAULT_H */ /** @} */ diff --git a/boards/common/nrf52xxxdk/include/gpio_params.h b/boards/common/nrf52xxxdk/include/gpio_params.h index 2929055107..bf2fcff1a3 100644 --- a/boards/common/nrf52xxxdk/include/gpio_params.h +++ b/boards/common/nrf52xxxdk/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nrf52xxxdk * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -70,5 +69,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/common/nrf52xxxdk/include/periph_conf_common.h b/boards/common/nrf52xxxdk/include/periph_conf_common.h index 0b7bbdd019..42362f96b8 100644 --- a/boards/common/nrf52xxxdk/include/periph_conf_common.h +++ b/boards/common/nrf52xxxdk/include/periph_conf_common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_common_nrf52xxxdk NRF52 DK common * @ingroup boards_common_nrf52 @@ -18,9 +20,6 @@ * */ -#ifndef PERIPH_CONF_COMMON_H -#define PERIPH_CONF_COMMON_H - #include "periph_cpu.h" #include "cfg_clock_32_1.h" #include "cfg_i2c_default.h" @@ -73,5 +72,4 @@ static const pwm_conf_t pwm_config[] = { } #endif -#endif /* PERIPH_CONF_COMMON_H */ /** @} */ diff --git a/boards/common/nrf52xxxdk/include/pwm_params.h b/boards/common/nrf52xxxdk/include/pwm_params.h index 3c070b110c..f00e71bae4 100644 --- a/boards/common/nrf52xxxdk/include/pwm_params.h +++ b/boards/common/nrf52xxxdk/include/pwm_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nrf52xxxdk * @{ @@ -16,9 +18,6 @@ * @author Marian Buschsieweke */ -#ifndef PWM_PARAMS_H -#define PWM_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -63,5 +62,4 @@ static const saul_pwm_dimmer_params_t saul_pwm_dimmer_params[] = } #endif -#endif /* PWM_PARAMS_H */ /** @} */ diff --git a/boards/common/nucleo/include/board_nucleo.h b/boards/common/nucleo/include/board_nucleo.h index ebc075fe33..6c41d0edd9 100644 --- a/boards/common/nucleo/include/board_nucleo.h +++ b/boards/common/nucleo/include/board_nucleo.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_common_nucleo STM32 Nucleo Common * @ingroup boards_common @@ -18,9 +20,6 @@ * @author Hauke Petersen */ -#ifndef BOARD_NUCLEO_H -#define BOARD_NUCLEO_H - #include "cpu.h" #include "periph_conf.h" @@ -59,5 +58,4 @@ extern "C" { } #endif -#endif /* BOARD_NUCLEO_H */ /** @} */ diff --git a/boards/common/nucleo144/include/arduino_iomap.h b/boards/common/nucleo144/include/arduino_iomap.h index c93c54bc33..28ea25e261 100644 --- a/boards/common/nucleo144/include/arduino_iomap.h +++ b/boards/common/nucleo144/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nucleo144 * @{ @@ -19,9 +21,6 @@ * @author Alexandre Abadie */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -108,5 +107,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/common/nucleo144/include/board.h b/boards/common/nucleo144/include/board.h index b79562d3e4..1c982a4f6a 100644 --- a/boards/common/nucleo144/include/board.h +++ b/boards/common/nucleo144/include/board.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_common_nucleo144 STM32 Nucleo-144 * @ingroup boards @@ -23,9 +25,6 @@ * @author Hauke Petersen */ -#ifndef BOARD_H -#define BOARD_H - #include "arduino_pinmap.h" #include "board_nucleo.h" @@ -81,5 +80,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/common/nucleo144/include/gpio_params.h b/boards/common/nucleo144/include/gpio_params.h index a688f97dbb..044de5018f 100644 --- a/boards/common/nucleo144/include/gpio_params.h +++ b/boards/common/nucleo144/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nucleo144 * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -58,5 +57,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/common/nucleo32/include/arduino_iomap.h b/boards/common/nucleo32/include/arduino_iomap.h index b8174fa29e..20b7981d94 100644 --- a/boards/common/nucleo32/include/arduino_iomap.h +++ b/boards/common/nucleo32/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nucleo32 * @{ @@ -19,9 +21,6 @@ * @author Alexandre Abadie */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" #ifdef __cplusplus @@ -101,5 +100,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/common/nucleo32/include/board.h b/boards/common/nucleo32/include/board.h index 5cc6cd65f9..aeb903b669 100644 --- a/boards/common/nucleo32/include/board.h +++ b/boards/common/nucleo32/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_common_nucleo32 STM32 Nucleo-32 * @ingroup boards @@ -19,9 +21,6 @@ * @author Hauke Petersen */ -#ifndef BOARD_H -#define BOARD_H - #include "board_nucleo.h" #include "arduino_pinmap.h" @@ -44,5 +43,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/common/nucleo32/include/gpio_params.h b/boards/common/nucleo32/include/gpio_params.h index 94f7a59e81..d8585e7816 100644 --- a/boards/common/nucleo32/include/gpio_params.h +++ b/boards/common/nucleo32/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nucleo32 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -46,5 +45,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/common/nucleo64/include/arduino_iomap.h b/boards/common/nucleo64/include/arduino_iomap.h index b1bc691283..c467e02244 100644 --- a/boards/common/nucleo64/include/arduino_iomap.h +++ b/boards/common/nucleo64/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nucleo64 * @{ @@ -19,9 +21,6 @@ * @author Alexandre Abadie */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" #include "periph_conf.h" @@ -131,5 +130,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/common/nucleo64/include/board.h b/boards/common/nucleo64/include/board.h index 46de2d26a6..1b896c8102 100644 --- a/boards/common/nucleo64/include/board.h +++ b/boards/common/nucleo64/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_common_nucleo64 STM32 Nucleo-64 * @ingroup boards @@ -19,9 +21,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #include "board_nucleo.h" #include "arduino_pinmap.h" #include "motor_driver.h" @@ -121,5 +120,4 @@ static const motor_driver_config_t motor_driver_config[] = { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/common/nucleo64/include/gpio_params.h b/boards/common/nucleo64/include/gpio_params.h index b9eb9f32b8..0653f7da9b 100644 --- a/boards/common/nucleo64/include/gpio_params.h +++ b/boards/common/nucleo64/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_nucleo * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -54,5 +53,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/common/particle-mesh/include/bat_voltage_params.h b/boards/common/particle-mesh/include/bat_voltage_params.h index ed48cdeabd..f84a56c434 100644 --- a/boards/common/particle-mesh/include/bat_voltage_params.h +++ b/boards/common/particle-mesh/include/bat_voltage_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_particle-mesh * @{ @@ -16,9 +18,6 @@ * @author Martine S. Lenders */ -#ifndef BAT_VOLTAGE_PARAMS_H -#define BAT_VOLTAGE_PARAMS_H - #include "saul/bat_voltage.h" #ifdef __cplusplus @@ -52,5 +51,4 @@ static const saul_bat_voltage_params_t saul_bat_voltage_params[] = } #endif -#endif /* BAT_VOLTAGE_PARAMS_H */ /** @} */ diff --git a/boards/common/particle-mesh/include/board.h b/boards/common/particle-mesh/include/board.h index 51bdd5fbd2..3d8540e0e6 100644 --- a/boards/common/particle-mesh/include/board.h +++ b/boards/common/particle-mesh/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_particle-mesh * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" @@ -190,5 +189,4 @@ void board_nrfantenna_select(enum board_nrfantenna_selection choice); } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/common/particle-mesh/include/gpio_params.h b/boards/common/particle-mesh/include/gpio_params.h index c9b8d65739..2735da51f3 100644 --- a/boards/common/particle-mesh/include/gpio_params.h +++ b/boards/common/particle-mesh/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_particle-mesh * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -43,5 +42,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/common/particle-mesh/include/periph_conf_common.h b/boards/common/particle-mesh/include/periph_conf_common.h index 8557594a8a..bd88e297f8 100644 --- a/boards/common/particle-mesh/include/periph_conf_common.h +++ b/boards/common/particle-mesh/include/periph_conf_common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_particle-mesh * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_COMMON_H -#define PERIPH_CONF_COMMON_H - #include "periph_cpu.h" #include "cfg_clock_32_1.h" #include "cfg_i2c_default.h" @@ -68,5 +67,4 @@ static const pwm_conf_t pwm_config[] = { } #endif -#endif /* PERIPH_CONF_COMMON_H */ /** @} */ diff --git a/boards/common/particle-mesh/include/pwm_params.h b/boards/common/particle-mesh/include/pwm_params.h index 85d68fb4d7..a5e2c0fe9b 100644 --- a/boards/common/particle-mesh/include/pwm_params.h +++ b/boards/common/particle-mesh/include/pwm_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_particle-mesh * @{ @@ -16,9 +18,6 @@ * @author Christian Amsüss */ -#ifndef PWM_PARAMS_H -#define PWM_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -44,5 +43,4 @@ static const saul_pwm_rgb_params_t saul_pwm_rgb_params[] = } #endif -#endif /* PWM_PARAMS_H */ /** @} */ diff --git a/boards/common/remote/include/board_common.h b/boards/common/remote/include/board_common.h index 9906e57e91..7834b9e37c 100644 --- a/boards/common/remote/include/board_common.h +++ b/boards/common/remote/include/board_common.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @defgroup boards_common_remote Zolertia Re-Mote common * @ingroup boards_common @@ -20,9 +22,6 @@ * Antonio Lignan */ -#ifndef BOARD_COMMON_H -#define BOARD_COMMON_H - #include "cpu.h" #include "periph/gpio.h" #include "periph/spi.h" @@ -87,5 +86,4 @@ #ifdef __cplusplus } /* end extern "C" */ #endif -#endif /* BOARD_COMMON_H */ /** @} */ diff --git a/boards/common/remote/include/cfg_adc_default.h b/boards/common/remote/include/cfg_adc_default.h index e616ce93f9..d80b26c957 100644 --- a/boards/common/remote/include/cfg_adc_default.h +++ b/boards/common/remote/include/cfg_adc_default.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_remote * @{ @@ -19,9 +21,6 @@ * @author Sebastian Meiling */ -#ifndef CFG_ADC_DEFAULT_H -#define CFG_ADC_DEFAULT_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -48,5 +47,4 @@ static const adc_conf_t adc_config[] = { } /* end extern "C" */ #endif -#endif /* CFG_ADC_DEFAULT_H */ /** @} */ diff --git a/boards/common/remote/include/cfg_i2c_default.h b/boards/common/remote/include/cfg_i2c_default.h index 02c2dee5ad..757c775d7d 100644 --- a/boards/common/remote/include/cfg_i2c_default.h +++ b/boards/common/remote/include/cfg_i2c_default.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_remote * @{ @@ -19,9 +21,6 @@ * @author Sebastian Meiling */ -#ifndef CFG_I2C_DEFAULT_H -#define CFG_I2C_DEFAULT_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -49,5 +48,4 @@ static const i2c_conf_t i2c_config[] = { } /* end extern "C" */ #endif -#endif /* CFG_I2C_DEFAULT_H */ /** @} */ diff --git a/boards/common/remote/include/cfg_spi_default.h b/boards/common/remote/include/cfg_spi_default.h index ea7c468143..37d0884c3f 100644 --- a/boards/common/remote/include/cfg_spi_default.h +++ b/boards/common/remote/include/cfg_spi_default.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_remote * @{ @@ -19,9 +21,6 @@ * @author Sebastian Meiling */ -#ifndef CFG_SPI_DEFAULT_H -#define CFG_SPI_DEFAULT_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -56,5 +55,4 @@ static const spi_conf_t spi_config[] = { } /* end extern "C" */ #endif -#endif /* CFG_SPI_DEFAULT_H */ /** @} */ diff --git a/boards/common/remote/include/cfg_uart_default.h b/boards/common/remote/include/cfg_uart_default.h index b347839b23..2b688146ac 100644 --- a/boards/common/remote/include/cfg_uart_default.h +++ b/boards/common/remote/include/cfg_uart_default.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_remote * @{ @@ -19,9 +21,6 @@ * @author Sebastian Meiling */ -#ifndef CFG_UART_DEFAULT_H -#define CFG_UART_DEFAULT_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -66,5 +65,4 @@ static const uart_conf_t uart_config[] = { } /* end extern "C" */ #endif -#endif /* CFG_UART_DEFAULT_H */ /** @} */ diff --git a/boards/common/remote/include/fancy_leds.h b/boards/common/remote/include/fancy_leds.h index 0470b8128c..ec44966f1e 100644 --- a/boards/common/remote/include/fancy_leds.h +++ b/boards/common/remote/include/fancy_leds.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_common_remote * @{ @@ -17,9 +19,6 @@ * @author Antonio Lignan */ -#ifndef FANCY_LEDS_H -#define FANCY_LEDS_H - #include "board_common.h" #ifdef __cplusplus @@ -62,5 +61,4 @@ #ifdef __cplusplus } /* end extern "C" */ #endif -#endif /* FANCY_LEDS_H */ /** @} */ diff --git a/boards/common/saml1x/include/board.h b/boards/common/saml1x/include/board.h index 4ba1350410..f6a8100fe8 100644 --- a/boards/common/saml1x/include/board.h +++ b/boards/common/saml1x/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_common_saml1x Microchip SAML1X * @ingroup boards @@ -19,9 +21,6 @@ * @author Dylan Laduranty */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph/gpio.h" @@ -81,5 +80,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/common/saml1x/include/gpio_params.h b/boards/common/saml1x/include/gpio_params.h index 4bdec6222a..62e1d6dcce 100644 --- a/boards/common/saml1x/include/gpio_params.h +++ b/boards/common/saml1x/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_saml1x * @{ @@ -16,9 +18,6 @@ * @author Dylan Laduranty */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -49,5 +48,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/common/saml1x/include/periph_conf.h b/boards/common/saml1x/include/periph_conf.h index d416c0f633..b90f21edb3 100644 --- a/boards/common/saml1x/include/periph_conf.h +++ b/boards/common/saml1x/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_saml1x * @{ @@ -17,9 +19,6 @@ * @author Dylan Laduranty */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -260,5 +259,4 @@ static const adc_conf_chan_t adc_channels[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/common/seeedstudio-xiao-nrf52840/include/arduino_iomap.h b/boards/common/seeedstudio-xiao-nrf52840/include/arduino_iomap.h index 8ef1e51397..a8c99e4e41 100644 --- a/boards/common/seeedstudio-xiao-nrf52840/include/arduino_iomap.h +++ b/boards/common/seeedstudio-xiao-nrf52840/include/arduino_iomap.h @@ -6,8 +6,8 @@ * directory for more details. */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H +#pragma once + /** * @ingroup boards_seeedstudio-xiao-nrf52840 * @ingroup boards_seeedstudio-xiao-nrf52840-sense @@ -129,4 +129,3 @@ extern "C" { #endif /** @} */ -#endif /* ARDUINO_IOMAP_H */ diff --git a/boards/common/seeedstudio-xiao-nrf52840/include/board.h b/boards/common/seeedstudio-xiao-nrf52840/include/board.h index 025af2c2c9..7d646da38f 100644 --- a/boards/common/seeedstudio-xiao-nrf52840/include/board.h +++ b/boards/common/seeedstudio-xiao-nrf52840/include/board.h @@ -6,8 +6,8 @@ * directory for more details. */ -#ifndef BOARD_H -#define BOARD_H +#pragma once + /** * @ingroup boards_seeedstudio-xiao-nrf52840 * @ingroup boards_seeedstudio-xiao-nrf52840-sense @@ -112,4 +112,3 @@ extern "C" { #endif /** @} */ -#endif /* BOARD_H */ diff --git a/boards/common/seeedstudio-xiao-nrf52840/include/gpio_params.h b/boards/common/seeedstudio-xiao-nrf52840/include/gpio_params.h index bf8d5f2390..04170141de 100644 --- a/boards/common/seeedstudio-xiao-nrf52840/include/gpio_params.h +++ b/boards/common/seeedstudio-xiao-nrf52840/include/gpio_params.h @@ -6,8 +6,8 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once + /** * @ingroup boards_seeedstudio-xiao-nrf52840 * @ingroup boards_seeedstudio-xiao-nrf52840-sense @@ -56,4 +56,3 @@ static const saul_gpio_params_t saul_gpio_params[] = #endif /** @} */ -#endif /* GPIO_PARAMS_H */ diff --git a/boards/common/seeedstudio-xiao-nrf52840/include/periph_conf.h b/boards/common/seeedstudio-xiao-nrf52840/include/periph_conf.h index 77ba8edf08..87e4f2c4a7 100644 --- a/boards/common/seeedstudio-xiao-nrf52840/include/periph_conf.h +++ b/boards/common/seeedstudio-xiao-nrf52840/include/periph_conf.h @@ -6,8 +6,8 @@ * directory for more details. */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H +#pragma once + /** * @ingroup boards_seeedstudio-xiao-nrf52840 * @ingroup boards_seeedstudio-xiao-nrf52840-sense @@ -103,4 +103,3 @@ static const i2c_conf_t i2c_config[] = { #endif /** @} */ -#endif /* PERIPH_CONF_H */ diff --git a/boards/common/silabs/drivers/include/aem.h b/boards/common/silabs/drivers/include/aem.h index 77d6fcdd45..f651dd953f 100644 --- a/boards/common/silabs/drivers/include/aem.h +++ b/boards/common/silabs/drivers/include/aem.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_common_silabs_drivers_aem Advanced energy monitor driver * @ingroup boards_common_silabs_drivers @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef AEM_H -#define AEM_H - #include "board.h" #ifdef __cplusplus @@ -60,5 +59,4 @@ void aem_init(void); } #endif -#endif /* AEM_H */ /** @} */ diff --git a/boards/common/silabs/drivers/include/bc.h b/boards/common/silabs/drivers/include/bc.h index 8dcce24353..24bfa39c0f 100644 --- a/boards/common/silabs/drivers/include/bc.h +++ b/boards/common/silabs/drivers/include/bc.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_common_silabs_drivers_bc Board communication controller * @ingroup boards_common_silabs_drivers @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef BC_H -#define BC_H - #include "board.h" #ifdef __cplusplus @@ -39,5 +38,4 @@ void bc_init(void); } #endif -#endif /* BC_H */ /** @} */ diff --git a/boards/common/silabs/drivers/include/pic.h b/boards/common/silabs/drivers/include/pic.h index 17d8a5737d..ea717cefea 100644 --- a/boards/common/silabs/drivers/include/pic.h +++ b/boards/common/silabs/drivers/include/pic.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_common_silabs_drivers_pic Power-and-interrupt driver * @ingroup boards_common_silabs_drivers @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef PIC_H -#define PIC_H - #include "board.h" #ifdef __cplusplus @@ -49,5 +48,4 @@ void pic_write(uint8_t addr, uint8_t value); } #endif -#endif /* PIC_H */ /** @} */ diff --git a/boards/common/silabs/include/arduino_iomap.h b/boards/common/silabs/include/arduino_iomap.h index e65ab2297b..b8d83ab5f7 100644 --- a/boards/common/silabs/include/arduino_iomap.h +++ b/boards/common/silabs/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_silabs * @brief SiLabs Boards configuration for the Arduino API @@ -14,9 +16,6 @@ * @{ */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "board.h" #include "periph_cpu.h" #include "periph/adc.h" @@ -50,5 +49,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/common/silabs/include/board_common.h b/boards/common/silabs/include/board_common.h index 42a30e9749..7cbdb23744 100644 --- a/boards/common/silabs/include/board_common.h +++ b/boards/common/silabs/include/board_common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_silabs * @@ -18,9 +20,6 @@ * @author Bas Stottelaar */ -#ifndef BOARD_COMMON_H -#define BOARD_COMMON_H - #include "board.h" #ifdef __cplusplus @@ -38,5 +37,4 @@ void board_common_init(void); } #endif -#endif /* BOARD_COMMON_H */ /** @} */ diff --git a/boards/common/silabs/include/usbdev_cfg_otg_fs.h b/boards/common/silabs/include/usbdev_cfg_otg_fs.h index 338dad0208..a563b04c0e 100644 --- a/boards/common/silabs/include/usbdev_cfg_otg_fs.h +++ b/boards/common/silabs/include/usbdev_cfg_otg_fs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_silabs * @{ @@ -16,9 +18,6 @@ * @author Koen Zandberg */ -#ifndef USBDEV_CFG_OTG_FS_H -#define USBDEV_CFG_OTG_FS_H - #include "periph_cpu.h" #include "usbdev_efm32.h" #include "usbdev_synopsys_dwc2.h" @@ -52,5 +51,4 @@ static const dwc2_usb_otg_fshs_config_t dwc2_usb_otg_fshs_config[] = { } #endif -#endif /* USBDEV_CFG_OTG_FS_H */ /** @} */ diff --git a/boards/common/slwstk6000b/include/board.h b/boards/common/slwstk6000b/include/board.h index c4ccce554c..b764fad9c3 100644 --- a/boards/common/slwstk6000b/include/board.h +++ b/boards/common/slwstk6000b/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_slwstk6000b * @{ @@ -18,9 +20,6 @@ * @author Kai Beckmann */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph/adc.h" @@ -125,5 +124,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/common/slwstk6000b/include/gpio_params.h b/boards/common/slwstk6000b/include/gpio_params.h index cf1600a67e..68183bb393 100644 --- a/boards/common/slwstk6000b/include/gpio_params.h +++ b/boards/common/slwstk6000b/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_slwstk6000b * @{ @@ -16,9 +18,6 @@ * @author Bas Stottelaar */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -59,5 +58,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/common/slwstk6000b/include/periph_conf.h b/boards/common/slwstk6000b/include/periph_conf.h index a72ddf5f5d..bafa2c3236 100644 --- a/boards/common/slwstk6000b/include/periph_conf.h +++ b/boards/common/slwstk6000b/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_slwstk6000b * @{ @@ -18,9 +20,6 @@ * @author Kai Beckmann */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cpu.h" #include "periph_cpu.h" #include "em_cmu.h" @@ -194,5 +193,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/common/slwstk6000b/modules/slwrb4150a/include/board_module.h b/boards/common/slwstk6000b/modules/slwrb4150a/include/board_module.h index 04a535aa56..c60d9658d2 100644 --- a/boards/common/slwstk6000b/modules/slwrb4150a/include/board_module.h +++ b/boards/common/slwstk6000b/modules/slwrb4150a/include/board_module.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_slwstk6000b * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef BOARD_MODULE_H -#define BOARD_MODULE_H - #include "periph/gpio.h" #ifdef __cplusplus @@ -107,5 +106,4 @@ extern "C" { } #endif -#endif /* BOARD_MODULE_H */ /** @} */ diff --git a/boards/common/slwstk6000b/modules/slwrb4162a/include/board_module.h b/boards/common/slwstk6000b/modules/slwrb4162a/include/board_module.h index 26670ca209..926ee85452 100644 --- a/boards/common/slwstk6000b/modules/slwrb4162a/include/board_module.h +++ b/boards/common/slwstk6000b/modules/slwrb4162a/include/board_module.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_slwstk6000b * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef BOARD_MODULE_H -#define BOARD_MODULE_H - #include "periph/gpio.h" #ifdef __cplusplus @@ -107,5 +106,4 @@ extern "C" { } #endif -#endif /* BOARD_MODULE_H */ /** @} */ diff --git a/boards/common/sodaq/include/board_common.h b/boards/common/sodaq/include/board_common.h index eb688c57d6..6b3065840f 100644 --- a/boards/common/sodaq/include/board_common.h +++ b/boards/common/sodaq/include/board_common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_common_sodaq SODAQ boards common * @ingroup boards_common @@ -18,9 +20,6 @@ * @author Kees Bakker */ -#ifndef BOARD_COMMON_H -#define BOARD_COMMON_H - #ifdef __cplusplus extern "C" { #endif @@ -37,5 +36,4 @@ extern "C" { } #endif -#endif /* BOARD_COMMON_H */ /** @} */ diff --git a/boards/common/sodaq/include/cfg_clock_default.h b/boards/common/sodaq/include/cfg_clock_default.h index eccc6794b7..b3fc30042e 100644 --- a/boards/common/sodaq/include/cfg_clock_default.h +++ b/boards/common/sodaq/include/cfg_clock_default.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_sodaq * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef CFG_CLOCK_DEFAULT_H -#define CFG_CLOCK_DEFAULT_H - #include #include "cpu.h" @@ -79,5 +78,4 @@ extern "C" { } #endif -#endif /* CFG_CLOCK_DEFAULT_H */ /** @} */ diff --git a/boards/common/sodaq/include/cfg_rtc_default.h b/boards/common/sodaq/include/cfg_rtc_default.h index 0dc2798dc9..c7ea9da17e 100644 --- a/boards/common/sodaq/include/cfg_rtc_default.h +++ b/boards/common/sodaq/include/cfg_rtc_default.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_sodaq * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef CFG_RTC_DEFAULT_H -#define CFG_RTC_DEFAULT_H - #include #include "cpu.h" @@ -39,5 +38,4 @@ extern "C" { } #endif -#endif /* CFG_RTC_DEFAULT_H */ /** @} */ diff --git a/boards/common/sodaq/include/cfg_rtt_default.h b/boards/common/sodaq/include/cfg_rtt_default.h index 0a6230a7bd..bce586abdf 100644 --- a/boards/common/sodaq/include/cfg_rtt_default.h +++ b/boards/common/sodaq/include/cfg_rtt_default.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_sodaq * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef CFG_RTT_DEFAULT_H -#define CFG_RTT_DEFAULT_H - #include #include "cpu.h" @@ -41,5 +40,4 @@ extern "C" { } #endif -#endif /* CFG_RTT_DEFAULT_H */ /** @} */ diff --git a/boards/common/sodaq/include/cfg_spi_default.h b/boards/common/sodaq/include/cfg_spi_default.h index b0d2dcc05d..b9b7d644b5 100644 --- a/boards/common/sodaq/include/cfg_spi_default.h +++ b/boards/common/sodaq/include/cfg_spi_default.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_sodaq * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef CFG_SPI_DEFAULT_H -#define CFG_SPI_DEFAULT_H - #include #include "cpu.h" @@ -58,5 +57,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* CFG_SPI_DEFAULT_H */ /** @} */ diff --git a/boards/common/sodaq/include/cfg_timer_default.h b/boards/common/sodaq/include/cfg_timer_default.h index da9606a029..3234498c7f 100644 --- a/boards/common/sodaq/include/cfg_timer_default.h +++ b/boards/common/sodaq/include/cfg_timer_default.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-autonomo * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef CFG_TIMER_DEFAULT_H -#define CFG_TIMER_DEFAULT_H - #include #include "cpu.h" @@ -72,5 +71,4 @@ static const tc32_conf_t timer_config[] = { } #endif -#endif /* CFG_TIMER_DEFAULT_H */ /** @} */ diff --git a/boards/common/sodaq/include/cfg_usbdev_default.h b/boards/common/sodaq/include/cfg_usbdev_default.h index 08446316e4..884d0b2358 100644 --- a/boards/common/sodaq/include/cfg_usbdev_default.h +++ b/boards/common/sodaq/include/cfg_usbdev_default.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_sodaq * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef CFG_USBDEV_DEFAULT_H -#define CFG_USBDEV_DEFAULT_H - #include #include "cpu.h" @@ -47,5 +46,4 @@ static const sam0_common_usb_config_t sam_usbdev_config[] = { } #endif -#endif /* CFG_USBDEV_DEFAULT_H */ /** @} */ diff --git a/boards/common/stm32/include/cfg_i2c1_pb6_pb7.h b/boards/common/stm32/include/cfg_i2c1_pb6_pb7.h index cf239ba619..a662e2e2d0 100644 --- a/boards/common/stm32/include/cfg_i2c1_pb6_pb7.h +++ b/boards/common/stm32/include/cfg_i2c1_pb6_pb7.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_stm32 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef CFG_I2C1_PB6_PB7_H -#define CFG_I2C1_PB6_PB7_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -66,5 +65,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* CFG_I2C1_PB6_PB7_H */ /** @} */ diff --git a/boards/common/stm32/include/cfg_i2c1_pb8_pb9.h b/boards/common/stm32/include/cfg_i2c1_pb8_pb9.h index dd6f5015fe..1b3dcc607c 100644 --- a/boards/common/stm32/include/cfg_i2c1_pb8_pb9.h +++ b/boards/common/stm32/include/cfg_i2c1_pb8_pb9.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_stm32 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef CFG_I2C1_PB8_PB9_H -#define CFG_I2C1_PB8_PB9_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -91,5 +90,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* CFG_I2C1_PB8_PB9_H */ /** @} */ diff --git a/boards/common/stm32/include/cfg_rtt_default.h b/boards/common/stm32/include/cfg_rtt_default.h index eb8e1a4233..d21380a09e 100644 --- a/boards/common/stm32/include/cfg_rtt_default.h +++ b/boards/common/stm32/include/cfg_rtt_default.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_stm32 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef CFG_RTT_DEFAULT_H -#define CFG_RTT_DEFAULT_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -46,5 +45,4 @@ extern "C" { } #endif -#endif /* CFG_RTT_DEFAULT_H */ /** @} */ diff --git a/boards/common/stm32/include/cfg_timer_tim2.h b/boards/common/stm32/include/cfg_timer_tim2.h index 818cd20085..65477b9125 100644 --- a/boards/common/stm32/include/cfg_timer_tim2.h +++ b/boards/common/stm32/include/cfg_timer_tim2.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_stm32 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef CFG_TIMER_TIM2_H -#define CFG_TIMER_TIM2_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -58,5 +57,4 @@ static const timer_conf_t timer_config[] = { } #endif -#endif /* CFG_TIMER_TIM2_H */ /** @} */ diff --git a/boards/common/stm32/include/cfg_timer_tim2_tim15_tim16.h b/boards/common/stm32/include/cfg_timer_tim2_tim15_tim16.h index 56d08e1c9b..d4bcb301cc 100644 --- a/boards/common/stm32/include/cfg_timer_tim2_tim15_tim16.h +++ b/boards/common/stm32/include/cfg_timer_tim2_tim15_tim16.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_stm32 * @{ @@ -17,9 +19,6 @@ * @author Marian Buschsieweke */ -#ifndef CFG_TIMER_TIM2_TIM15_TIM16_H -#define CFG_TIMER_TIM2_TIM15_TIM16_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -73,5 +72,4 @@ static const timer_conf_t timer_config[] = { } #endif -#endif /* CFG_TIMER_TIM2_TIM15_TIM16_H */ /** @} */ diff --git a/boards/common/stm32/include/cfg_timer_tim5.h b/boards/common/stm32/include/cfg_timer_tim5.h index 7b32fbfa72..0f09fe7e68 100644 --- a/boards/common/stm32/include/cfg_timer_tim5.h +++ b/boards/common/stm32/include/cfg_timer_tim5.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_stm32 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef CFG_TIMER_TIM5_H -#define CFG_TIMER_TIM5_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -52,5 +51,4 @@ static const timer_conf_t timer_config[] = { } #endif -#endif /* CFG_TIMER_TIM5_H */ /** @} */ diff --git a/boards/common/stm32/include/cfg_timer_tim5_and_tim2.h b/boards/common/stm32/include/cfg_timer_tim5_and_tim2.h index 1a1c56fec2..36be91edd1 100644 --- a/boards/common/stm32/include/cfg_timer_tim5_and_tim2.h +++ b/boards/common/stm32/include/cfg_timer_tim5_and_tim2.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_stm32 * @{ @@ -17,9 +19,6 @@ * @author Alexandre Abadie */ -#ifndef CFG_TIMER_TIM5_AND_TIM2_H -#define CFG_TIMER_TIM5_AND_TIM2_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -74,5 +73,4 @@ static const timer_conf_t timer_config[] = { } #endif -#endif /* CFG_TIMER_TIM5_AND_TIM2_H */ /** @} */ diff --git a/boards/common/stm32/include/cfg_usb_otg_fs.h b/boards/common/stm32/include/cfg_usb_otg_fs.h index fd3b888000..68d79c8220 100644 --- a/boards/common/stm32/include/cfg_usb_otg_fs.h +++ b/boards/common/stm32/include/cfg_usb_otg_fs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_stm32 * @{ @@ -16,9 +18,6 @@ * @author Koen Zandberg */ -#ifndef CFG_USB_OTG_FS_H -#define CFG_USB_OTG_FS_H - #include "periph_cpu.h" #include "usbdev_synopsys_dwc2.h" @@ -57,5 +56,4 @@ static const dwc2_usb_otg_fshs_config_t dwc2_usb_otg_fshs_config[] = { } #endif -#endif /* CFG_USB_OTG_FS_H */ /** @} */ diff --git a/boards/common/stm32/include/cfg_usb_otg_fs_u5.h b/boards/common/stm32/include/cfg_usb_otg_fs_u5.h index 8bb37371ff..cbe2f98ae4 100644 --- a/boards/common/stm32/include/cfg_usb_otg_fs_u5.h +++ b/boards/common/stm32/include/cfg_usb_otg_fs_u5.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_stm32 * @{ @@ -18,9 +20,6 @@ * @author Gunar Schorcht */ -#ifndef CFG_USB_OTG_FS_U5_H -#define CFG_USB_OTG_FS_U5_H - #include "periph_cpu.h" #include "usbdev_synopsys_dwc2.h" @@ -59,5 +58,4 @@ static const dwc2_usb_otg_fshs_config_t dwc2_usb_otg_fshs_config[] = { } #endif -#endif /* CFG_USB_OTG_FS_U5_H */ /** @} */ diff --git a/boards/common/stm32/include/cfg_usb_otg_hs_phy_fs.h b/boards/common/stm32/include/cfg_usb_otg_hs_phy_fs.h index aa3e77cfeb..bd5b351353 100644 --- a/boards/common/stm32/include/cfg_usb_otg_hs_phy_fs.h +++ b/boards/common/stm32/include/cfg_usb_otg_hs_phy_fs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_stm32 * @{ @@ -20,9 +22,6 @@ * @author Koen Zandberg */ -#ifndef CFG_USB_OTG_HS_PHY_FS_H -#define CFG_USB_OTG_HS_PHY_FS_H - #include "periph_cpu.h" #include "usbdev_synopsys_dwc2.h" @@ -61,5 +60,4 @@ static const dwc2_usb_otg_fshs_config_t dwc2_usb_otg_fshs_config[] = { } #endif -#endif /* CFG_USB_OTG_HS_PHY_FS_H */ /** @} */ diff --git a/boards/common/stm32/include/cfg_usb_otg_hs_phy_utmi.h b/boards/common/stm32/include/cfg_usb_otg_hs_phy_utmi.h index f2bb4a6e6a..324dcf80e0 100644 --- a/boards/common/stm32/include/cfg_usb_otg_hs_phy_utmi.h +++ b/boards/common/stm32/include/cfg_usb_otg_hs_phy_utmi.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_stm32 * @{ @@ -22,9 +24,6 @@ * @author Gunar Schorcht */ -#ifndef CFG_USB_OTG_HS_PHY_UTMI_H -#define CFG_USB_OTG_HS_PHY_UTMI_H - #include "periph_cpu.h" #include "usbdev_synopsys_dwc2.h" @@ -81,5 +80,4 @@ static const dwc2_usb_otg_fshs_config_t dwc2_usb_otg_fshs_config[] = { } #endif -#endif /* CFG_USB_OTG_HS_PHY_UTMI_H */ /** @} */ diff --git a/boards/common/stm32/include/stm32_leds.h b/boards/common/stm32/include/stm32_leds.h index 865f161c2b..9c7ff9b3ae 100644 --- a/boards/common/stm32/include/stm32_leds.h +++ b/boards/common/stm32/include/stm32_leds.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_stm32 * @brief Common LED macros @@ -20,9 +22,6 @@ * port of LEDs and this header provides the rest of the defines */ -#ifndef STM32_LEDS_H -#define STM32_LEDS_H - /* Using gpio_ll_arch for GPIO access. On STM32, accessing the GPIO output * buffer via GPIO LL even works when the GPIO LL feature/module is not in * use */ @@ -147,5 +146,4 @@ extern "C" { } #endif -#endif /* STM32_LEDS_H */ /** @} */ diff --git a/boards/common/weact-f4x1cx/include/board.h b/boards/common/weact-f4x1cx/include/board.h index d77f0c3c7b..93a8efe9bf 100644 --- a/boards/common/weact-f4x1cx/include/board.h +++ b/boards/common/weact-f4x1cx/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_weact-f4x1cx * @@ -18,9 +20,6 @@ * @author Benjamin Valentin */ -#ifndef BOARD_H -#define BOARD_H - #ifdef __cplusplus extern "C" { #endif @@ -82,5 +81,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/common/weact-f4x1cx/include/gpio_params.h b/boards/common/weact-f4x1cx/include/gpio_params.h index a3948f2cfd..b780a4dbcd 100644 --- a/boards/common/weact-f4x1cx/include/gpio_params.h +++ b/boards/common/weact-f4x1cx/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_weact-f4x1cx * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -49,5 +48,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/common/weact-f4x1cx/include/periph_conf.h b/boards/common/weact-f4x1cx/include/periph_conf.h index 78ab979554..536ccdc554 100644 --- a/boards/common/weact-f4x1cx/include/periph_conf.h +++ b/boards/common/weact-f4x1cx/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_common_weact-f4x1cx * @{ @@ -19,9 +21,6 @@ * @author Benjamin Valentin */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -192,5 +191,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/derfmega128/include/board.h b/boards/derfmega128/include/board.h index 925076a3ef..8928a86641 100644 --- a/boards/derfmega128/include/board.h +++ b/boards/derfmega128/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_deRFmega128 * @{ @@ -16,9 +18,6 @@ * @author Alexander Chudov */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #ifdef __cplusplus @@ -39,5 +38,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/derfmega128/include/periph_conf.h b/boards/derfmega128/include/periph_conf.h index 3603272729..e6de85a199 100644 --- a/boards/derfmega128/include/periph_conf.h +++ b/boards/derfmega128/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_deRFmega128 * @{ @@ -16,9 +18,6 @@ * @author Alexander Chudov */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_conf_atmega_common.h" #ifdef __cplusplus @@ -29,5 +28,4 @@ extern "C" { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/derfmega256/include/board.h b/boards/derfmega256/include/board.h index c965acc624..07948e83f4 100644 --- a/boards/derfmega256/include/board.h +++ b/boards/derfmega256/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_deRFmega256 * @{ @@ -16,9 +18,6 @@ * @author Alexander Chudov */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #ifdef __cplusplus @@ -39,5 +38,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/derfmega256/include/eui_provider_params.h b/boards/derfmega256/include/eui_provider_params.h index 3d1ce9d29d..ef634ac3f4 100644 --- a/boards/derfmega256/include/eui_provider_params.h +++ b/boards/derfmega256/include/eui_provider_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_deRFmega256 * @{ @@ -15,9 +17,6 @@ * * @author Alexander Chudov */ -#ifndef EUI_PROVIDER_PARAMS_H -#define EUI_PROVIDER_PARAMS_H - #include "net/eui64.h" #include "periph/eeprom.h" @@ -60,5 +59,4 @@ static inline int _eeprom_mac_get_eui64(uint8_t index, eui64_t *addr) } #endif -#endif /* EUI_PROVIDER_PARAMS_H */ /** @} */ diff --git a/boards/derfmega256/include/periph_conf.h b/boards/derfmega256/include/periph_conf.h index 3fd5bac255..815d86d2ef 100644 --- a/boards/derfmega256/include/periph_conf.h +++ b/boards/derfmega256/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_deRFmega256 * @{ @@ -16,9 +18,6 @@ * @author Alexander Chudov */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_conf_atmega_common.h" #ifdef __cplusplus @@ -29,5 +28,4 @@ extern "C" { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/dwm1001/include/board.h b/boards/dwm1001/include/board.h index 03ae755338..3e1126522f 100644 --- a/boards/dwm1001/include/board.h +++ b/boards/dwm1001/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_dwm1001 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #ifdef __cplusplus @@ -86,5 +85,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/dwm1001/include/gpio_params.h b/boards/dwm1001/include/gpio_params.h index 29d3035bce..92ca45418a 100644 --- a/boards/dwm1001/include/gpio_params.h +++ b/boards/dwm1001/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_dwm1001 * @{ @@ -16,9 +18,6 @@ * @author Gregory Holder */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -67,5 +66,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/dwm1001/include/periph_conf.h b/boards/dwm1001/include/periph_conf.h index 83413e8c42..b5f4fc91cb 100644 --- a/boards/dwm1001/include/periph_conf.h +++ b/boards/dwm1001/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_dwm1001 * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cfg_clock_32_1.h" #include "cfg_rtt_default.h" #include "cfg_timer_default.h" @@ -93,5 +92,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/e180-zg120b-tb/include/board.h b/boards/e180-zg120b-tb/include/board.h index 7c80d6abdb..1bc6d92585 100644 --- a/boards/e180-zg120b-tb/include/board.h +++ b/boards/e180-zg120b-tb/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_e180-zg120b-tb * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph/gpio.h" @@ -90,5 +89,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/e180-zg120b-tb/include/gpio_params.h b/boards/e180-zg120b-tb/include/gpio_params.h index 9a058e1160..cc3075ef74 100644 --- a/boards/e180-zg120b-tb/include/gpio_params.h +++ b/boards/e180-zg120b-tb/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_e180-zg120b-tb * @{ @@ -16,9 +18,6 @@ * @author Bas Stottelaar */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -65,5 +64,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/e180-zg120b-tb/include/periph_conf.h b/boards/e180-zg120b-tb/include/periph_conf.h index 09c9c7bd5d..9f8cf3a5cc 100644 --- a/boards/e180-zg120b-tb/include/periph_conf.h +++ b/boards/e180-zg120b-tb/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_e180-zg120b-tb * @{ @@ -18,9 +20,6 @@ * @author Bas Stottelaar */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cpu.h" #include "periph_cpu.h" #include "em_cmu.h" @@ -151,5 +150,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/ek-lm4f120xl/include/board.h b/boards/ek-lm4f120xl/include/board.h index 2863d1bac2..70aff2cec4 100644 --- a/boards/ek-lm4f120xl/include/board.h +++ b/boards/ek-lm4f120xl/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_ek-lm4f120xl * @{ @@ -16,9 +18,6 @@ * @author Rakendra Thapa */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph/uart.h" #include "periph/timer.h" @@ -81,5 +80,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/ek-lm4f120xl/include/gpio_params.h b/boards/ek-lm4f120xl/include/gpio_params.h index 071e80e740..d356300553 100644 --- a/boards/ek-lm4f120xl/include/gpio_params.h +++ b/boards/ek-lm4f120xl/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_ek-lm4f120xl * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -64,5 +63,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/ek-lm4f120xl/include/periph_conf.h b/boards/ek-lm4f120xl/include/periph_conf.h index 6b939f1302..3f75d6fcf4 100644 --- a/boards/ek-lm4f120xl/include/periph_conf.h +++ b/boards/ek-lm4f120xl/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_ek-lm4f120xl * @{ @@ -16,9 +18,6 @@ * @author Rakendra Thapa */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "macros/units.h" @@ -160,5 +159,4 @@ static const spi_conf_t spi_confs[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp32-ethernet-kit-v1_0/include/board.h b/boards/esp32-ethernet-kit-v1_0/include/board.h index b8c3771211..8c87c2bc9a 100644 --- a/boards/esp32-ethernet-kit-v1_0/include/board.h +++ b/boards/esp32-ethernet-kit-v1_0/include/board.h @@ -7,15 +7,14 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_esp-ethernet-kit * @file * @{ */ -#ifndef BOARD_H -#define BOARD_H - #include /* include common board definitions as last step */ @@ -75,5 +74,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp32-ethernet-kit-v1_0/include/gpio_params.h b/boards/esp32-ethernet-kit-v1_0/include/gpio_params.h index 8fc4f851ce..ee81cd29a2 100644 --- a/boards/esp32-ethernet-kit-v1_0/include/gpio_params.h +++ b/boards/esp32-ethernet-kit-v1_0/include/gpio_params.h @@ -7,8 +7,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp32_esp-ethernet-kit @@ -45,5 +44,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp32-ethernet-kit-v1_0/include/periph_conf.h b/boards/esp32-ethernet-kit-v1_0/include/periph_conf.h index 2053d18085..5ac7ed0757 100644 --- a/boards/esp32-ethernet-kit-v1_0/include/periph_conf.h +++ b/boards/esp32-ethernet-kit-v1_0/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_esp-ethernet-kit * @brief Peripheral MCU configuration for Espressif ESP32-Ethernet-Kit @@ -16,9 +18,6 @@ * @{ */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -131,5 +130,4 @@ /* include common board definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp32-heltec-lora32-v2/include/arduino_iomap.h b/boards/esp32-heltec-lora32-v2/include/arduino_iomap.h index 5eb8fb88ae..532c86bc53 100644 --- a/boards/esp32-heltec-lora32-v2/include/arduino_iomap.h +++ b/boards/esp32-heltec-lora32-v2/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_heltec-lora32-v2 * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -114,5 +113,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/esp32-heltec-lora32-v2/include/board.h b/boards/esp32-heltec-lora32-v2/include/board.h index 4e5a104da7..f52458945c 100644 --- a/boards/esp32-heltec-lora32-v2/include/board.h +++ b/boards/esp32-heltec-lora32-v2/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_heltec-lora32-v2 * @brief Board specific definitions for Heltec WiFi LoRa 32 V2 board @@ -27,9 +29,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_H -#define BOARD_H - #include /** @@ -105,5 +104,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp32-heltec-lora32-v2/include/gpio_params.h b/boards/esp32-heltec-lora32-v2/include/gpio_params.h index 16f76b0802..d1f0b1ebdf 100644 --- a/boards/esp32-heltec-lora32-v2/include/gpio_params.h +++ b/boards/esp32-heltec-lora32-v2/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp32_heltec-lora32-v2 @@ -47,5 +46,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp32-heltec-lora32-v2/include/periph_conf.h b/boards/esp32-heltec-lora32-v2/include/periph_conf.h index c92d9301ef..38d36c0d43 100644 --- a/boards/esp32-heltec-lora32-v2/include/periph_conf.h +++ b/boards/esp32-heltec-lora32-v2/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_heltec-lora32-v2 * @brief Peripheral MCU configuration for Heltec WiFi LoRa 32 V2 board @@ -27,9 +29,6 @@ * @author Gunar Schorcht */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -172,5 +171,4 @@ /* include common board definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp32-mh-et-live-minikit/include/arduino_iomap.h b/boards/esp32-mh-et-live-minikit/include/arduino_iomap.h index 2a74ddde49..f8f57c219f 100644 --- a/boards/esp32-mh-et-live-minikit/include/arduino_iomap.h +++ b/boards/esp32-mh-et-live-minikit/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_mh-et-live-minikit * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -119,5 +118,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/esp32-mh-et-live-minikit/include/board.h b/boards/esp32-mh-et-live-minikit/include/board.h index 135a02a345..0b5c898853 100644 --- a/boards/esp32-mh-et-live-minikit/include/board.h +++ b/boards/esp32-mh-et-live-minikit/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_mh-et-live-minikit * @brief Board specific definitions for MH-ET LIVE MiniKit for ESP32 @@ -28,9 +30,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_H -#define BOARD_H - #include /** @@ -58,5 +57,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp32-mh-et-live-minikit/include/board_modules.h b/boards/esp32-mh-et-live-minikit/include/board_modules.h index c4d2e569ae..014b463e69 100644 --- a/boards/esp32-mh-et-live-minikit/include/board_modules.h +++ b/boards/esp32-mh-et-live-minikit/include/board_modules.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef BOARD_MODULES_H -#define BOARD_MODULES_H +#pragma once /** * @ingroup boards_esp32_mh-et-live-minikit @@ -92,5 +91,3 @@ extern "C" { #endif /** @} */ - -#endif /* BOARD_MODULES_H */ diff --git a/boards/esp32-mh-et-live-minikit/include/gpio_params.h b/boards/esp32-mh-et-live-minikit/include/gpio_params.h index e721408fdb..9c877b4030 100644 --- a/boards/esp32-mh-et-live-minikit/include/gpio_params.h +++ b/boards/esp32-mh-et-live-minikit/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp32_mh-et-live-minikit @@ -41,5 +40,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp32-mh-et-live-minikit/include/periph_conf.h b/boards/esp32-mh-et-live-minikit/include/periph_conf.h index ab19f89237..b974151583 100644 --- a/boards/esp32-mh-et-live-minikit/include/periph_conf.h +++ b/boards/esp32-mh-et-live-minikit/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_mh-et-live-minikit * @brief Peripheral MCU configuration for MH-ET LIVE MiniKit for ESP32 @@ -28,9 +30,6 @@ * @author Gunar Schorcht */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -165,5 +164,4 @@ /* include common board definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp32-olimex-evb/include/arduino_iomap.h b/boards/esp32-olimex-evb/include/arduino_iomap.h index 714209f8c0..2aaf592fe8 100644 --- a/boards/esp32-olimex-evb/include/arduino_iomap.h +++ b/boards/esp32-olimex-evb/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_olimex-esp32-evb * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -101,5 +100,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/esp32-olimex-evb/include/board.h b/boards/esp32-olimex-evb/include/board.h index c8d01f7de3..c498ea90df 100644 --- a/boards/esp32-olimex-evb/include/board.h +++ b/boards/esp32-olimex-evb/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_olimex-esp32-evb * @brief Board specific definitions for Olimex ESP32-EVB (ESP32-GATEWAY) @@ -31,9 +33,6 @@ * @{ */ -#ifndef BOARD_H -#define BOARD_H - #include /** @@ -126,5 +125,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp32-olimex-evb/include/gpio_params.h b/boards/esp32-olimex-evb/include/gpio_params.h index 05770ea7b5..b92278f79f 100644 --- a/boards/esp32-olimex-evb/include/gpio_params.h +++ b/boards/esp32-olimex-evb/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp32_olimex-esp32-evb @@ -49,5 +48,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp32-olimex-evb/include/periph_conf.h b/boards/esp32-olimex-evb/include/periph_conf.h index 32e1a2b7c9..ff901a979a 100644 --- a/boards/esp32-olimex-evb/include/periph_conf.h +++ b/boards/esp32-olimex-evb/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_olimex-esp32-evb * @brief Peripheral MCU configuration for Olimex ESP32-EVB (ESP32-GATEWAY) @@ -31,9 +33,6 @@ * @file */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "periph_cpu.h" @@ -239,5 +238,4 @@ static const sdmmc_conf_t sdmmc_config[] = { /* include common peripheral definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp32-ttgo-t-beam/include/arduino_iomap.h b/boards/esp32-ttgo-t-beam/include/arduino_iomap.h index a93cf84b5e..310bbf45a2 100644 --- a/boards/esp32-ttgo-t-beam/include/arduino_iomap.h +++ b/boards/esp32-ttgo-t-beam/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_ttgo-t-beam * @{ @@ -16,9 +18,6 @@ * @author Yegor Yefremov */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -123,5 +122,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/esp32-ttgo-t-beam/include/board.h b/boards/esp32-ttgo-t-beam/include/board.h index 112fcc2fd1..96f5325046 100644 --- a/boards/esp32-ttgo-t-beam/include/board.h +++ b/boards/esp32-ttgo-t-beam/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_ttgo-t-beam * @brief Board specific definitions for TTGO T-Beam board @@ -27,9 +29,6 @@ * @author Yegor Yefremov */ -#ifndef BOARD_H -#define BOARD_H - #include /** @@ -103,5 +102,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp32-ttgo-t-beam/include/gpio_params.h b/boards/esp32-ttgo-t-beam/include/gpio_params.h index c1480b763b..901e583307 100644 --- a/boards/esp32-ttgo-t-beam/include/gpio_params.h +++ b/boards/esp32-ttgo-t-beam/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp32_ttgo-t-beam @@ -49,5 +48,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp32-ttgo-t-beam/include/periph_conf.h b/boards/esp32-ttgo-t-beam/include/periph_conf.h index b47966d9dd..39c6780122 100644 --- a/boards/esp32-ttgo-t-beam/include/periph_conf.h +++ b/boards/esp32-ttgo-t-beam/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_ttgo-t-beam * @brief Peripheral MCU configuration for TTGO T-Beam board @@ -27,9 +29,6 @@ * @author Yegor Yefremov */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -175,5 +174,4 @@ /* include common board definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp32-wemos-lolin-d32-pro/include/arduino_iomap.h b/boards/esp32-wemos-lolin-d32-pro/include/arduino_iomap.h index b4a7f45671..36971175dd 100644 --- a/boards/esp32-wemos-lolin-d32-pro/include/arduino_iomap.h +++ b/boards/esp32-wemos-lolin-d32-pro/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_wemos-lolin-d32-pro * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -114,5 +113,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/esp32-wemos-lolin-d32-pro/include/board.h b/boards/esp32-wemos-lolin-d32-pro/include/board.h index a0094dee53..86be93b64a 100644 --- a/boards/esp32-wemos-lolin-d32-pro/include/board.h +++ b/boards/esp32-wemos-lolin-d32-pro/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_wemos-lolin-d32-pro * @brief Board specific definitions for Wemos LOLIN D32 Pro @@ -39,9 +41,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_H -#define BOARD_H - #include /** @@ -80,5 +79,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp32-wemos-lolin-d32-pro/include/gpio_params.h b/boards/esp32-wemos-lolin-d32-pro/include/gpio_params.h index 25ab3cfd47..0c16771fff 100644 --- a/boards/esp32-wemos-lolin-d32-pro/include/gpio_params.h +++ b/boards/esp32-wemos-lolin-d32-pro/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp32_wemos-lolin-d32-pro @@ -41,5 +40,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp32-wemos-lolin-d32-pro/include/periph_conf.h b/boards/esp32-wemos-lolin-d32-pro/include/periph_conf.h index 9b6ec7001d..516a2f3fe3 100644 --- a/boards/esp32-wemos-lolin-d32-pro/include/periph_conf.h +++ b/boards/esp32-wemos-lolin-d32-pro/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_wemos-lolin-d32-pro * @brief Peripheral MCU configuration for Wemos LOLIN D32 Pro @@ -40,9 +42,6 @@ * @file */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -180,5 +179,4 @@ /* include common board definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp32-wroom-32/include/arduino_iomap.h b/boards/esp32-wroom-32/include/arduino_iomap.h index 26db760ed6..f1c27eb155 100644 --- a/boards/esp32-wroom-32/include/arduino_iomap.h +++ b/boards/esp32-wroom-32/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_wroom-32 * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -127,5 +126,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/esp32-wroom-32/include/board.h b/boards/esp32-wroom-32/include/board.h index 19234330f4..95037c9f7d 100644 --- a/boards/esp32-wroom-32/include/board.h +++ b/boards/esp32-wroom-32/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_wroom-32 * @brief Board specific definitions for generic ESP32-WROOM-32 boards @@ -28,9 +30,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_H -#define BOARD_H - #include /** @@ -89,5 +88,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp32-wroom-32/include/gpio_params.h b/boards/esp32-wroom-32/include/gpio_params.h index 1cf32a000b..a9b63041eb 100644 --- a/boards/esp32-wroom-32/include/gpio_params.h +++ b/boards/esp32-wroom-32/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp32_wroom-32 @@ -41,5 +40,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp32-wroom-32/include/periph_conf.h b/boards/esp32-wroom-32/include/periph_conf.h index 8a245a7e4b..9b9e981762 100644 --- a/boards/esp32-wroom-32/include/periph_conf.h +++ b/boards/esp32-wroom-32/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_wroom-32 * @brief Peripheral MCU configuration for generic ESP32-WROOM-32 boards @@ -28,9 +30,6 @@ * @author Gunar Schorcht */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -202,5 +201,4 @@ extern "C" { /* include common peripheral definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp32-wrover-kit/include/arduino_iomap.h b/boards/esp32-wrover-kit/include/arduino_iomap.h index a9ea53d414..e80dbecdc8 100644 --- a/boards/esp32-wrover-kit/include/arduino_iomap.h +++ b/boards/esp32-wrover-kit/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_esp-wrover-kit * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -109,5 +108,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/esp32-wrover-kit/include/board.h b/boards/esp32-wrover-kit/include/board.h index 2bce290922..e37381b14b 100644 --- a/boards/esp32-wrover-kit/include/board.h +++ b/boards/esp32-wrover-kit/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_esp-wrover-kit * @brief Board specific definitions for Espressif ESP-WROVER-KIT V3 @@ -42,9 +44,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_H -#define BOARD_H - #include /** @@ -137,5 +136,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp32-wrover-kit/include/gpio_params.h b/boards/esp32-wrover-kit/include/gpio_params.h index 653a09e045..d6c20b0cac 100644 --- a/boards/esp32-wrover-kit/include/gpio_params.h +++ b/boards/esp32-wrover-kit/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp32_esp-wrover-kit @@ -59,5 +58,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp32-wrover-kit/include/periph_conf.h b/boards/esp32-wrover-kit/include/periph_conf.h index 9ba9cb2d60..cf1cce9de0 100644 --- a/boards/esp32-wrover-kit/include/periph_conf.h +++ b/boards/esp32-wrover-kit/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32_esp-wrover-kit * @brief Peripheral MCU configuration for Espressif ESP-WROVER-KIT V3 @@ -42,9 +44,6 @@ * @author Gunar Schorcht */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "periph_cpu.h" @@ -240,5 +239,4 @@ static const sdmmc_conf_t sdmmc_config[] = { /* include common board definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp32c3-devkit/include/arduino_iomap.h b/boards/esp32c3-devkit/include/arduino_iomap.h index c744fdfd2c..ba8757138f 100644 --- a/boards/esp32c3-devkit/include/arduino_iomap.h +++ b/boards/esp32c3-devkit/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32c3_devkit * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -109,5 +108,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/esp32c3-devkit/include/board.h b/boards/esp32c3-devkit/include/board.h index 58a3bb3bc4..65e2c14136 100644 --- a/boards/esp32c3-devkit/include/board.h +++ b/boards/esp32c3-devkit/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32c3_devkit * @brief Board definitions for ESP32-C3-DevKit boards @@ -27,9 +29,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_H -#define BOARD_H - #include /** @@ -95,5 +94,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp32c3-devkit/include/gpio_params.h b/boards/esp32c3-devkit/include/gpio_params.h index 7f1bfc4d56..bbcb865847 100644 --- a/boards/esp32c3-devkit/include/gpio_params.h +++ b/boards/esp32c3-devkit/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp32c3_devkit @@ -41,5 +40,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp32c3-devkit/include/periph_conf.h b/boards/esp32c3-devkit/include/periph_conf.h index fc7384b00f..dfd69c7d30 100644 --- a/boards/esp32c3-devkit/include/periph_conf.h +++ b/boards/esp32c3-devkit/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32c3_devkit * @brief Peripheral configurations for ESP32-C3-DevKit boards @@ -34,9 +36,6 @@ * @author Gunar Schorcht */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -167,5 +166,4 @@ extern "C" { /* include common peripheral definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp32c3-wemos-mini/include/arduino_iomap.h b/boards/esp32c3-wemos-mini/include/arduino_iomap.h index 4aee76c2c1..c05c0c8cf9 100644 --- a/boards/esp32c3-wemos-mini/include/arduino_iomap.h +++ b/boards/esp32c3-wemos-mini/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32c3_wemos_mini * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -123,5 +122,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/esp32c3-wemos-mini/include/board.h b/boards/esp32c3-wemos-mini/include/board.h index ae0794ac8b..d37a80e644 100644 --- a/boards/esp32c3-wemos-mini/include/board.h +++ b/boards/esp32c3-wemos-mini/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32c3_wemos_mini * @brief Board definitions for the Wemos ESP32-C3 mini board @@ -15,9 +17,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_H -#define BOARD_H - #include /** @@ -94,5 +93,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp32c3-wemos-mini/include/gpio_params.h b/boards/esp32c3-wemos-mini/include/gpio_params.h index da8bdf0c49..f2140a104a 100644 --- a/boards/esp32c3-wemos-mini/include/gpio_params.h +++ b/boards/esp32c3-wemos-mini/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp32c3_wemos_mini @@ -49,5 +48,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp32c3-wemos-mini/include/periph_conf.h b/boards/esp32c3-wemos-mini/include/periph_conf.h index b3288db168..68033269e0 100644 --- a/boards/esp32c3-wemos-mini/include/periph_conf.h +++ b/boards/esp32c3-wemos-mini/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32c3_wemos_mini * @brief Peripheral configurations for the Wemos ESP32-C3 mini board @@ -36,9 +38,6 @@ * @author Gunar Schorcht */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -187,5 +186,4 @@ extern "C" { /* include common peripheral definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp32s2-devkit/include/arduino_iomap.h b/boards/esp32s2-devkit/include/arduino_iomap.h index 083b2e7976..f71acf6c06 100644 --- a/boards/esp32s2-devkit/include/arduino_iomap.h +++ b/boards/esp32s2-devkit/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s2_devkit * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -124,5 +123,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/esp32s2-devkit/include/board.h b/boards/esp32s2-devkit/include/board.h index 6c908cbb5f..c91b246589 100644 --- a/boards/esp32s2-devkit/include/board.h +++ b/boards/esp32s2-devkit/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s2_devkit * @brief Board definitions for ESP32-S2-DevKit boards @@ -29,9 +31,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_H -#define BOARD_H - #include /** @@ -101,5 +100,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp32s2-devkit/include/gpio_params.h b/boards/esp32s2-devkit/include/gpio_params.h index 7270f71953..77459b5b01 100644 --- a/boards/esp32s2-devkit/include/gpio_params.h +++ b/boards/esp32s2-devkit/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp32s2_devkit @@ -41,5 +40,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp32s2-devkit/include/periph_conf.h b/boards/esp32s2-devkit/include/periph_conf.h index 115000db97..3304027367 100644 --- a/boards/esp32s2-devkit/include/periph_conf.h +++ b/boards/esp32s2-devkit/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s2_devkit * @brief Peripheral configurations for ESP32-S2-DevKit boards @@ -34,9 +36,6 @@ * @author Gunar Schorcht */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -184,5 +183,4 @@ extern "C" { /* include common peripheral definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp32s2-lilygo-ttgo-t8/include/arduino_iomap.h b/boards/esp32s2-lilygo-ttgo-t8/include/arduino_iomap.h index 3d881063cf..9bb791e366 100644 --- a/boards/esp32s2-lilygo-ttgo-t8/include/arduino_iomap.h +++ b/boards/esp32s2-lilygo-ttgo-t8/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s2_lilygo_ttgo_t8 * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -124,5 +123,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/esp32s2-lilygo-ttgo-t8/include/board.h b/boards/esp32s2-lilygo-ttgo-t8/include/board.h index de7455f1d4..6438280682 100644 --- a/boards/esp32s2-lilygo-ttgo-t8/include/board.h +++ b/boards/esp32s2-lilygo-ttgo-t8/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s2_lilygo_ttgo_t8 * @brief Board definitions for the LILYGO TTGO T8 ESP32-S2 board @@ -23,9 +25,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_H -#define BOARD_H - #include /** @@ -125,5 +124,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp32s2-lilygo-ttgo-t8/include/gpio_params.h b/boards/esp32s2-lilygo-ttgo-t8/include/gpio_params.h index 62e5170999..10dba04ef7 100644 --- a/boards/esp32s2-lilygo-ttgo-t8/include/gpio_params.h +++ b/boards/esp32s2-lilygo-ttgo-t8/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp32s2_lilygo_ttgo_t8 @@ -41,5 +40,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp32s2-lilygo-ttgo-t8/include/periph_conf.h b/boards/esp32s2-lilygo-ttgo-t8/include/periph_conf.h index 79c06b9cd3..236d7ee866 100644 --- a/boards/esp32s2-lilygo-ttgo-t8/include/periph_conf.h +++ b/boards/esp32s2-lilygo-ttgo-t8/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s2_lilygo_ttgo_t8 * @brief Peripheral configurations for the LILYGO TTGO T8 ESP32-S2 board @@ -26,9 +28,6 @@ * @author Gunar Schorcht */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -195,5 +194,4 @@ extern "C" { /* include common peripheral definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp32s2-wemos-mini/include/board.h b/boards/esp32s2-wemos-mini/include/board.h index 4f40d008d5..f3c1e72d38 100644 --- a/boards/esp32s2-wemos-mini/include/board.h +++ b/boards/esp32s2-wemos-mini/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s2-wemos-mini * @brief Board definitions for Wemos S2 mini board @@ -17,9 +19,6 @@ * @author Benjamin Valentin */ -#ifndef BOARD_H -#define BOARD_H - #include /** @@ -76,5 +75,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp32s2-wemos-mini/include/gpio_params.h b/boards/esp32s2-wemos-mini/include/gpio_params.h index 2cfe747ea8..e63cbf8cd0 100644 --- a/boards/esp32s2-wemos-mini/include/gpio_params.h +++ b/boards/esp32s2-wemos-mini/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp32s2-wemos-mini @@ -46,5 +45,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp32s2-wemos-mini/include/periph_conf.h b/boards/esp32s2-wemos-mini/include/periph_conf.h index 5e5a5e2009..7c975d4931 100644 --- a/boards/esp32s2-wemos-mini/include/periph_conf.h +++ b/boards/esp32s2-wemos-mini/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s2-wemos-mini * @brief Peripheral configurations for Wemos S2 mini boards @@ -18,9 +20,6 @@ * @author Benjamin Valentin */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -144,5 +143,4 @@ extern "C" { /* include common peripheral definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp32s3-box/include/board.h b/boards/esp32s3-box/include/board.h index 802cba0973..73a3ca8d24 100644 --- a/boards/esp32s3-box/include/board.h +++ b/boards/esp32s3-box/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s3_box * @brief Board definitions for ESP32-S3-Box boards @@ -21,9 +23,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_H -#define BOARD_H - #include /** @@ -101,5 +100,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp32s3-box/include/gpio_params.h b/boards/esp32s3-box/include/gpio_params.h index bcd89488d1..2712e4fc56 100644 --- a/boards/esp32s3-box/include/gpio_params.h +++ b/boards/esp32s3-box/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp32s3_box @@ -41,5 +40,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp32s3-box/include/periph_conf.h b/boards/esp32s3-box/include/periph_conf.h index eb579b8f54..b5cf312e68 100644 --- a/boards/esp32s3-box/include/periph_conf.h +++ b/boards/esp32s3-box/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s3_box * @brief Peripheral configurations for ESP32-S3-Box boards @@ -29,9 +31,6 @@ * @author Gunar Schorcht */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -125,5 +124,4 @@ extern "C" { /* include common peripheral definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp32s3-devkit/include/arduino_iomap.h b/boards/esp32s3-devkit/include/arduino_iomap.h index 5c9e163087..2df61a6af7 100644 --- a/boards/esp32s3-devkit/include/arduino_iomap.h +++ b/boards/esp32s3-devkit/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s3_devkit * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -107,5 +106,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/esp32s3-devkit/include/board.h b/boards/esp32s3-devkit/include/board.h index 7bb2768f12..3bcc753787 100644 --- a/boards/esp32s3-devkit/include/board.h +++ b/boards/esp32s3-devkit/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s3_devkit * @brief Board definitions for ESP32-S3-DevKit boards @@ -29,9 +31,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_H -#define BOARD_H - #include /** @@ -99,5 +98,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp32s3-devkit/include/gpio_params.h b/boards/esp32s3-devkit/include/gpio_params.h index 32f7b49087..b1960f22b7 100644 --- a/boards/esp32s3-devkit/include/gpio_params.h +++ b/boards/esp32s3-devkit/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp32s3_devkit @@ -41,5 +40,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp32s3-devkit/include/periph_conf.h b/boards/esp32s3-devkit/include/periph_conf.h index c33064eebe..60f82b07ca 100644 --- a/boards/esp32s3-devkit/include/periph_conf.h +++ b/boards/esp32s3-devkit/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s3_devkit * @brief Peripheral configurations for ESP32-S3-DevKit boards @@ -33,9 +35,6 @@ * @author Gunar Schorcht */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -169,5 +168,4 @@ extern "C" { /* include common peripheral definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp32s3-pros3/include/arduino_iomap.h b/boards/esp32s3-pros3/include/arduino_iomap.h index accd168ee2..8d6db62697 100644 --- a/boards/esp32s3-pros3/include/arduino_iomap.h +++ b/boards/esp32s3-pros3/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s3_pros3 * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -107,5 +106,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/esp32s3-pros3/include/board.h b/boards/esp32s3-pros3/include/board.h index 041cf484f7..aefdd654bb 100644 --- a/boards/esp32s3-pros3/include/board.h +++ b/boards/esp32s3-pros3/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s3_pros3 * @brief Board definitions for ESP32 ProS3 boards @@ -21,9 +23,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_H -#define BOARD_H - #include /** @@ -88,5 +87,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp32s3-pros3/include/gpio_params.h b/boards/esp32s3-pros3/include/gpio_params.h index 8bc49dc81f..b69e464e72 100644 --- a/boards/esp32s3-pros3/include/gpio_params.h +++ b/boards/esp32s3-pros3/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp32s3_pros3 @@ -41,5 +40,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp32s3-pros3/include/periph_conf.h b/boards/esp32s3-pros3/include/periph_conf.h index c5110dc860..30a3ca08f6 100644 --- a/boards/esp32s3-pros3/include/periph_conf.h +++ b/boards/esp32s3-pros3/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s3_pros3 * @brief Peripheral configurations for ESP32 ProS3 boards @@ -29,9 +31,6 @@ * @author Gunar Schorcht */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -161,5 +160,4 @@ extern "C" { /* include common peripheral definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp32s3-usb-otg/include/board.h b/boards/esp32s3-usb-otg/include/board.h index 2a3533b49b..b4f6cfcb6a 100644 --- a/boards/esp32s3-usb-otg/include/board.h +++ b/boards/esp32s3-usb-otg/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s3_usb_otg * @brief Board definitions for the ESP32-S3-USB-OTG boards @@ -19,9 +21,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_H -#define BOARD_H - #include /** @@ -195,5 +194,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp32s3-usb-otg/include/gpio_params.h b/boards/esp32s3-usb-otg/include/gpio_params.h index e8c0723f3c..fd6d4f287d 100644 --- a/boards/esp32s3-usb-otg/include/gpio_params.h +++ b/boards/esp32s3-usb-otg/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp32s3_usb_otg @@ -71,5 +70,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp32s3-usb-otg/include/periph_conf.h b/boards/esp32s3-usb-otg/include/periph_conf.h index 24541bd17d..f753d1759a 100644 --- a/boards/esp32s3-usb-otg/include/periph_conf.h +++ b/boards/esp32s3-usb-otg/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s3_usb_otg * @brief Peripheral configurations for ESP32-S3-USB-OTG boards @@ -22,9 +24,6 @@ * @author Gunar Schorcht */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "board.h" @@ -152,5 +151,4 @@ static const sdmmc_conf_t sdmmc_config[] = { /* include common peripheral definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp32s3-wt32-sc01-plus/include/board.h b/boards/esp32s3-wt32-sc01-plus/include/board.h index 40b38be307..458d9e922a 100644 --- a/boards/esp32s3-wt32-sc01-plus/include/board.h +++ b/boards/esp32s3-wt32-sc01-plus/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s3_wt32_sc01_plus * @brief Board definitions for ESP32-S3 WT32-SC01 Plus boards @@ -21,9 +23,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_H -#define BOARD_H - #include /** @@ -151,5 +150,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp32s3-wt32-sc01-plus/include/gpio_params.h b/boards/esp32s3-wt32-sc01-plus/include/gpio_params.h index 7ac2fb5566..8a5baf637e 100644 --- a/boards/esp32s3-wt32-sc01-plus/include/gpio_params.h +++ b/boards/esp32s3-wt32-sc01-plus/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp32s3_wt32_sc01_plus @@ -41,5 +40,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp32s3-wt32-sc01-plus/include/periph_conf.h b/boards/esp32s3-wt32-sc01-plus/include/periph_conf.h index e3e9d9ce1d..5e8283e7d4 100644 --- a/boards/esp32s3-wt32-sc01-plus/include/periph_conf.h +++ b/boards/esp32s3-wt32-sc01-plus/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp32s3_wt32_sc01_plus * @brief Peripheral configurations for ESP32-S3 WT32-SC01 Plus boards @@ -29,9 +31,6 @@ * @author Gunar Schorcht */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -109,5 +108,4 @@ extern "C" { /* include common peripheral definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp8266-esp-12x/include/arduino_iomap.h b/boards/esp8266-esp-12x/include/arduino_iomap.h index 4ee7396194..4d32ab0980 100644 --- a/boards/esp8266-esp-12x/include/arduino_iomap.h +++ b/boards/esp8266-esp-12x/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp8266_esp-12x * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -66,5 +65,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/esp8266-esp-12x/include/board.h b/boards/esp8266-esp-12x/include/board.h index 260cca81f5..3d2c6e54f2 100644 --- a/boards/esp8266-esp-12x/include/board.h +++ b/boards/esp8266-esp-12x/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp8266_esp-12x * @brief Board specific definitions for ESP-12x based boards. @@ -14,9 +16,6 @@ * @{ */ -#ifndef BOARD_H -#define BOARD_H - #include #ifdef __cplusplus @@ -38,5 +37,4 @@ extern "C" { /* include common board definitions as last step */ #include "board_common.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp8266-esp-12x/include/gpio_params.h b/boards/esp8266-esp-12x/include/gpio_params.h index 1eede93590..156c9b30f9 100644 --- a/boards/esp8266-esp-12x/include/gpio_params.h +++ b/boards/esp8266-esp-12x/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp8266_esp-12x @@ -41,5 +40,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp8266-esp-12x/include/periph_conf.h b/boards/esp8266-esp-12x/include/periph_conf.h index 346d856242..f26f745342 100644 --- a/boards/esp8266-esp-12x/include/periph_conf.h +++ b/boards/esp8266-esp-12x/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp8266_esp-12x * @brief Board specific configuration of MCU periphery for ESP-12x based boards. @@ -14,9 +16,6 @@ * @{ */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -64,5 +63,4 @@ extern "C" { /* include common peripheral definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp8266-olimex-mod/include/arduino_iomap.h b/boards/esp8266-olimex-mod/include/arduino_iomap.h index bdb4a9688d..e0d9639e3c 100644 --- a/boards/esp8266-olimex-mod/include/arduino_iomap.h +++ b/boards/esp8266-olimex-mod/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp8266_olimex-mod * @brief Board specific configuration for the Arduino API @@ -14,9 +16,6 @@ * @{ */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/adc.h" #include "periph/gpio.h" @@ -65,5 +64,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/esp8266-olimex-mod/include/board.h b/boards/esp8266-olimex-mod/include/board.h index 4e62b87fb3..7b9d146387 100644 --- a/boards/esp8266-olimex-mod/include/board.h +++ b/boards/esp8266-olimex-mod/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp8266_olimex-mod * @brief Board specific definitions for @@ -15,9 +17,6 @@ * @{ */ -#ifndef BOARD_H -#define BOARD_H - #include #ifdef __cplusplus @@ -40,5 +39,4 @@ /* include common board definitions as last step */ #include "board_common.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp8266-olimex-mod/include/gpio_params.h b/boards/esp8266-olimex-mod/include/gpio_params.h index 5fd075b6f2..60dc11001e 100644 --- a/boards/esp8266-olimex-mod/include/gpio_params.h +++ b/boards/esp8266-olimex-mod/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp8266_olimex-mod @@ -41,5 +40,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp8266-olimex-mod/include/periph_conf.h b/boards/esp8266-olimex-mod/include/periph_conf.h index 1231544d00..cee9966190 100644 --- a/boards/esp8266-olimex-mod/include/periph_conf.h +++ b/boards/esp8266-olimex-mod/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp8266_olimex-mod * @brief Board specific configuration of MCU periphery for @@ -15,9 +17,6 @@ * @{ */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -64,5 +63,4 @@ /* include common peripheral definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/esp8266-sparkfun-thing/include/arduino_iomap.h b/boards/esp8266-sparkfun-thing/include/arduino_iomap.h index 88f13a8333..9761abaafe 100644 --- a/boards/esp8266-sparkfun-thing/include/arduino_iomap.h +++ b/boards/esp8266-sparkfun-thing/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp8266_sparkfun-thing * @brief Board specific configuration for the Arduino API @@ -14,9 +16,6 @@ * @{ */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/adc.h" #include "periph/gpio.h" @@ -65,5 +64,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/esp8266-sparkfun-thing/include/board.h b/boards/esp8266-sparkfun-thing/include/board.h index 4a1d35215e..5a0fc87ef6 100644 --- a/boards/esp8266-sparkfun-thing/include/board.h +++ b/boards/esp8266-sparkfun-thing/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp8266_sparkfun-thing * @brief Board specific definitions for @@ -15,9 +17,6 @@ * @{ */ -#ifndef BOARD_H -#define BOARD_H - #include #ifdef __cplusplus @@ -56,5 +55,4 @@ extern "C" { /* include common board definitions as last step */ #include "board_common.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/esp8266-sparkfun-thing/include/gpio_params.h b/boards/esp8266-sparkfun-thing/include/gpio_params.h index 8acc25c818..d587237f2e 100644 --- a/boards/esp8266-sparkfun-thing/include/gpio_params.h +++ b/boards/esp8266-sparkfun-thing/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_esp8266_sparkfun-thing @@ -41,5 +40,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/esp8266-sparkfun-thing/include/periph_conf.h b/boards/esp8266-sparkfun-thing/include/periph_conf.h index c0ebfd1ce2..ecbb5b6c6e 100644 --- a/boards/esp8266-sparkfun-thing/include/periph_conf.h +++ b/boards/esp8266-sparkfun-thing/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_esp8266_sparkfun-thing * @brief Board specific configuration of MCU periphery for @@ -15,9 +17,6 @@ * @{ */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -71,5 +70,4 @@ /* include common peripheral definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/f4vi1/include/board.h b/boards/f4vi1/include/board.h index 0409202ffa..f1aceedae4 100644 --- a/boards/f4vi1/include/board.h +++ b/boards/f4vi1/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_f4vi1 * @{ @@ -17,9 +19,6 @@ * @author Hauke Petersen */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -50,5 +49,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/f4vi1/include/periph_conf.h b/boards/f4vi1/include/periph_conf.h index 5b1dcc3a0d..b67a1ebcb7 100644 --- a/boards/f4vi1/include/periph_conf.h +++ b/boards/f4vi1/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_f4vi1 * @{ @@ -18,9 +20,6 @@ * @author Peter Kietzmann */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an HSE */ #ifndef CONFIG_BOARD_HAS_HSE #define CONFIG_BOARD_HAS_HSE 1 @@ -95,5 +94,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/feather-m0/include/arduino_iomap.h b/boards/feather-m0/include/arduino_iomap.h index 3c722a6b8b..24746ecaed 100644 --- a/boards/feather-m0/include/arduino_iomap.h +++ b/boards/feather-m0/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_feather-m0 * @{ @@ -19,9 +21,6 @@ * @author J. David Ibáñez */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -103,5 +102,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/feather-m0/include/board.h b/boards/feather-m0/include/board.h index bd410fdfb2..ed64c48bb2 100644 --- a/boards/feather-m0/include/board.h +++ b/boards/feather-m0/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_feather-m0 * @@ -17,9 +19,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph_cpu.h" @@ -75,5 +74,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/feather-m0/include/gpio_params.h b/boards/feather-m0/include/gpio_params.h index 9938463489..4cfdafce66 100644 --- a/boards/feather-m0/include/gpio_params.h +++ b/boards/feather-m0/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_feather-m0 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -42,5 +41,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/feather-m0/include/periph_conf.h b/boards/feather-m0/include/periph_conf.h index 0808bb3393..eca3595b7c 100644 --- a/boards/feather-m0/include/periph_conf.h +++ b/boards/feather-m0/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_feather-m0 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "cpu.h" @@ -275,5 +274,4 @@ static const sam0_common_usb_config_t sam_usbdev_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/feather-m0/include/sdcard_spi_params.h b/boards/feather-m0/include/sdcard_spi_params.h index 9d057fdca8..2f559415b8 100644 --- a/boards/feather-m0/include/sdcard_spi_params.h +++ b/boards/feather-m0/include/sdcard_spi_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_feather-m0 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef SDCARD_SPI_PARAMS_H -#define SDCARD_SPI_PARAMS_H - #include "board.h" #ifdef __cplusplus @@ -49,5 +48,4 @@ static const sdcard_spi_params_t sdcard_spi_params[] = { } #endif -#endif /* SDCARD_SPI_PARAMS_H */ /** @} */ diff --git a/boards/firefly/include/adc_params.h b/boards/firefly/include/adc_params.h index 678b4367c4..cf839c3a28 100644 --- a/boards/firefly/include/adc_params.h +++ b/boards/firefly/include/adc_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_firefly * @{ @@ -16,9 +18,6 @@ * @author Anon Mall */ -#ifndef ADC_PARAMS_H -#define ADC_PARAMS_H - #include "board.h" #include "saul/periph.h" #include "periph/adc.h" @@ -53,5 +52,4 @@ static const saul_adc_params_t saul_adc_params[] = } #endif -#endif /* ADC_PARAMS_H */ /** @} */ diff --git a/boards/firefly/include/board.h b/boards/firefly/include/board.h index 7173ab5dd7..63dd0cd944 100644 --- a/boards/firefly/include/board.h +++ b/boards/firefly/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_firefly * @brief Support for the Firefly board @@ -17,9 +19,6 @@ * @author Anon Mall */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" @@ -76,5 +75,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/firefly/include/gpio_params.h b/boards/firefly/include/gpio_params.h index 5fb84dfd04..ae85c6f77f 100644 --- a/boards/firefly/include/gpio_params.h +++ b/boards/firefly/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_firefly * @{ @@ -16,9 +18,6 @@ * @author Anon Mall */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -57,5 +56,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/firefly/include/periph_conf.h b/boards/firefly/include/periph_conf.h index 23a35adaef..908ba7a7cc 100644 --- a/boards/firefly/include/periph_conf.h +++ b/boards/firefly/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_firefly * @{ @@ -16,9 +18,6 @@ * @author Anon Mall */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cfg_adc_default.h" #include "cfg_clk_default.h" #include "cfg_i2c_default.h" @@ -57,5 +56,4 @@ static const spi_conf_t spi_config[] = { } /* end extern "C" */ #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/frdm-k22f/include/adc_params.h b/boards/frdm-k22f/include/adc_params.h index 3a6157a1d7..88ee38f428 100644 --- a/boards/frdm-k22f/include/adc_params.h +++ b/boards/frdm-k22f/include/adc_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_frdm-k22f * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef ADC_PARAMS_H -#define ADC_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -77,5 +76,4 @@ static const saul_adc_params_t saul_adc_params[] = } #endif -#endif /* ADC_PARAMS_H */ /** @} */ diff --git a/boards/frdm-k22f/include/board.h b/boards/frdm-k22f/include/board.h index 8557a94a1e..310db2f4e4 100644 --- a/boards/frdm-k22f/include/board.h +++ b/boards/frdm-k22f/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_frdm-k22f * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -78,5 +77,4 @@ extern "C" } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/frdm-k22f/include/gpio_params.h b/boards/frdm-k22f/include/gpio_params.h index 8a8f5d6dab..4ffd8e792c 100644 --- a/boards/frdm-k22f/include/gpio_params.h +++ b/boards/frdm-k22f/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_frdm-k22f * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -52,5 +51,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/frdm-k22f/include/periph_conf.h b/boards/frdm-k22f/include/periph_conf.h index 4eb5235e95..e298ea9b9e 100644 --- a/boards/frdm-k22f/include/periph_conf.h +++ b/boards/frdm-k22f/include/periph_conf.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_frdm-k22f * @{ @@ -18,9 +20,6 @@ * @author Hugues Larrive */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -312,5 +311,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/frdm-k64f/include/adc_params.h b/boards/frdm-k64f/include/adc_params.h index b5820f5968..c8d318413d 100644 --- a/boards/frdm-k64f/include/adc_params.h +++ b/boards/frdm-k64f/include/adc_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_frdm-k64f * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef ADC_PARAMS_H -#define ADC_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -57,5 +56,4 @@ static const saul_adc_params_t saul_adc_params[] = } #endif -#endif /* ADC_PARAMS_H */ /** @} */ diff --git a/boards/frdm-k64f/include/board.h b/boards/frdm-k64f/include/board.h index 27b8062a55..4d091c288e 100644 --- a/boards/frdm-k64f/include/board.h +++ b/boards/frdm-k64f/include/board.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_frdm-k64f * @{ @@ -17,9 +19,6 @@ * @author Johann Fischer */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -79,5 +78,4 @@ extern "C" } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/frdm-k64f/include/periph_conf.h b/boards/frdm-k64f/include/periph_conf.h index 7480d10ed1..b9875b77ee 100644 --- a/boards/frdm-k64f/include/periph_conf.h +++ b/boards/frdm-k64f/include/periph_conf.h @@ -8,6 +8,8 @@ * details. */ +#pragma once + /** * @ingroup boards_frdm-k64f * @{ @@ -19,9 +21,6 @@ * @author Hugues Larrive */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -339,5 +338,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/frdm-kl43z/include/adc_params.h b/boards/frdm-kl43z/include/adc_params.h index 6246f9b0d3..9957738c7c 100644 --- a/boards/frdm-kl43z/include/adc_params.h +++ b/boards/frdm-kl43z/include/adc_params.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_frdm-kl43z * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef ADC_PARAMS_H -#define ADC_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -57,5 +56,4 @@ static const saul_adc_params_t saul_adc_params[] = } #endif -#endif /* ADC_PARAMS_H */ /** @} */ diff --git a/boards/frdm-kl43z/include/board.h b/boards/frdm-kl43z/include/board.h index 1cef2321d7..7987707a64 100644 --- a/boards/frdm-kl43z/include/board.h +++ b/boards/frdm-kl43z/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @defgroup boards_frdm-kl43z NXP FRDM-KL43Z Board * @ingroup boards @@ -18,9 +20,6 @@ * @author Joakim Nohlgård */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -99,5 +98,4 @@ extern "C" } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/frdm-kl43z/include/gpio_params.h b/boards/frdm-kl43z/include/gpio_params.h index ff69d2ff92..6703bbd23a 100644 --- a/boards/frdm-kl43z/include/gpio_params.h +++ b/boards/frdm-kl43z/include/gpio_params.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_frdm-kl43z * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -54,5 +53,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/frdm-kl43z/include/periph_conf.h b/boards/frdm-kl43z/include/periph_conf.h index 5927093ee3..22ae9f9bba 100644 --- a/boards/frdm-kl43z/include/periph_conf.h +++ b/boards/frdm-kl43z/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_frdm-kl43z * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -173,5 +172,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/frdm-kw41z/include/adc_params.h b/boards/frdm-kw41z/include/adc_params.h index ffeae672c7..b6afbf3527 100644 --- a/boards/frdm-kw41z/include/adc_params.h +++ b/boards/frdm-kw41z/include/adc_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_frdm-kw41z * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef ADC_PARAMS_H -#define ADC_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -72,5 +71,4 @@ static const saul_adc_params_t saul_adc_params[] = } #endif -#endif /* ADC_PARAMS_H */ /** @} */ diff --git a/boards/frdm-kw41z/include/board.h b/boards/frdm-kw41z/include/board.h index 414c26f86a..39e5c60e54 100644 --- a/boards/frdm-kw41z/include/board.h +++ b/boards/frdm-kw41z/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_frdm-kw41z * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" #include "periph_conf.h" @@ -118,5 +117,4 @@ extern "C" } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/frdm-kw41z/include/gpio_params.h b/boards/frdm-kw41z/include/gpio_params.h index 7c4b024258..5466b2d527 100644 --- a/boards/frdm-kw41z/include/gpio_params.h +++ b/boards/frdm-kw41z/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_frdm-kw41z * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -78,5 +77,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/frdm-kw41z/include/periph_conf.h b/boards/frdm-kw41z/include/periph_conf.h index 2d1f26c32f..3cf67af6de 100644 --- a/boards/frdm-kw41z/include/periph_conf.h +++ b/boards/frdm-kw41z/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_frdm-kw41z * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "periph_conf_common.h" #include "cfg_i2c_default.h" @@ -110,5 +109,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/gba_cartridge/include/board.h b/boards/gba_cartridge/include/board.h index 1b96468332..88000065f6 100644 --- a/boards/gba_cartridge/include/board.h +++ b/boards/gba_cartridge/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_gba_cartridge * @{ @@ -16,9 +18,6 @@ * @author */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #ifdef __cplusplus @@ -30,5 +29,4 @@ extern "C" } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/gba_cartridge/include/periph_conf.h b/boards/gba_cartridge/include/periph_conf.h index fd48dc9781..1a850f6c04 100644 --- a/boards/gba_cartridge/include/periph_conf.h +++ b/boards/gba_cartridge/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_gba_cartridge * @{ @@ -16,9 +18,6 @@ * @author */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -30,5 +29,4 @@ extern "C" } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/gd32vf103c-start/include/arduino_iomap.h b/boards/gd32vf103c-start/include/arduino_iomap.h index 6fa89369d8..8aa96c01ba 100644 --- a/boards/gd32vf103c-start/include/arduino_iomap.h +++ b/boards/gd32vf103c-start/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_gd32vf103c_start * @{ @@ -19,9 +21,6 @@ * @author Marian Buschsieweke */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "macros/units.h" #include "periph/adc.h" #include "periph/gpio.h" @@ -146,5 +145,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/gd32vf103c-start/include/board.h b/boards/gd32vf103c-start/include/board.h index 370a0bf02a..61364e085e 100644 --- a/boards/gd32vf103c-start/include/board.h +++ b/boards/gd32vf103c-start/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_gd32vf103c_start * @{ @@ -16,9 +18,6 @@ * @author Marian Buschsieweke */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #include "periph/gpio.h" @@ -50,5 +49,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/gd32vf103c-start/include/gpio_params.h b/boards/gd32vf103c-start/include/gpio_params.h index e68938eed7..8ac21fad67 100644 --- a/boards/gd32vf103c-start/include/gpio_params.h +++ b/boards/gd32vf103c-start/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_gd32vf103c_start * @{ @@ -16,9 +18,6 @@ * @author Marian Buschsieweke */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -48,5 +47,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/gd32vf103c-start/include/periph_conf.h b/boards/gd32vf103c-start/include/periph_conf.h index 17ccc5f8e5..d098fca0a7 100644 --- a/boards/gd32vf103c-start/include/periph_conf.h +++ b/boards/gd32vf103c-start/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_gd32vf103c_start * @{ @@ -16,9 +18,6 @@ * @author Marian Buschsieweke */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "macros/units.h" #ifndef CONFIG_BOARD_HAS_HXTAL @@ -170,5 +169,4 @@ static const pwm_conf_t pwm_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/generic-cc2538-cc2592-dk/include/board.h b/boards/generic-cc2538-cc2592-dk/include/board.h index cf1667caec..ca70132b4e 100644 --- a/boards/generic-cc2538-cc2592-dk/include/board.h +++ b/boards/generic-cc2538-cc2592-dk/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_generic_cc2538_cc2592_dk * @{ @@ -16,9 +18,6 @@ * @author Marian Buschsieweke */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph/gpio.h" #include "cc2538_eui_primary.h" @@ -123,5 +122,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/generic-cc2538-cc2592-dk/include/gpio_params.h b/boards/generic-cc2538-cc2592-dk/include/gpio_params.h index d16b3b5bae..7b14d979f6 100644 --- a/boards/generic-cc2538-cc2592-dk/include/gpio_params.h +++ b/boards/generic-cc2538-cc2592-dk/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_generic_cc2538_cc2592_dk * @{ @@ -15,9 +17,6 @@ * * @author Marian Buschsieweke */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -87,5 +86,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/generic-cc2538-cc2592-dk/include/periph_conf.h b/boards/generic-cc2538-cc2592-dk/include/periph_conf.h index 7520cf9d9f..d27d672fa5 100644 --- a/boards/generic-cc2538-cc2592-dk/include/periph_conf.h +++ b/boards/generic-cc2538-cc2592-dk/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_generic_cc2538_cc2592_dk * @{ @@ -17,9 +19,6 @@ * @author Marian Buschsieweke */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cpu.h" #include "periph_cpu.h" @@ -103,5 +102,4 @@ static const adc_conf_t adc_config[] = { } /* end extern "C" */ #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/hamilton/include/board.h b/boards/hamilton/include/board.h index 619a57b540..2a3e2ad89c 100644 --- a/boards/hamilton/include/board.h +++ b/boards/hamilton/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_hamilton * @brief Support for the HamiltonIoT Hamilton board. @@ -18,9 +20,6 @@ * @author Hyung-Sin Kim */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph_cpu.h" @@ -130,5 +129,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/hamilton/include/gpio_params.h b/boards/hamilton/include/gpio_params.h index 0e73575982..00398cc47a 100644 --- a/boards/hamilton/include/gpio_params.h +++ b/boards/hamilton/include/gpio_params.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_hamilton * @{ @@ -21,9 +23,6 @@ * @author Michael Andersen */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -54,5 +53,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/hamilton/include/periph_conf.h b/boards/hamilton/include/periph_conf.h index 207f351fa7..37e1d34431 100644 --- a/boards/hamilton/include/periph_conf.h +++ b/boards/hamilton/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_hamilton * @{ @@ -21,9 +23,6 @@ * @author Hyung-Sin Kim */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "cpu.h" @@ -251,5 +250,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/hifive1/include/board.h b/boards/hifive1/include/board.h index 75a1067254..e1de7e11a5 100644 --- a/boards/hifive1/include/board.h +++ b/boards/hifive1/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_hifive1 SiFive HiFive1 RISC-V board * @ingroup boards @@ -18,9 +20,6 @@ * @author Ken Rabold */ -#ifndef BOARD_H -#define BOARD_H - #include "periph/gpio.h" #ifdef __cplusplus @@ -64,5 +63,4 @@ void board_init_clock(void); } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/hifive1/include/periph_conf.h b/boards/hifive1/include/periph_conf.h index 0315e14b02..11a4f6f965 100644 --- a/boards/hifive1/include/periph_conf.h +++ b/boards/hifive1/include/periph_conf.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_hifive1 * @{ @@ -17,9 +19,6 @@ * @author Ken Rabold */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "clk_conf.h" @@ -86,5 +85,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/hifive1b/include/arduino_iomap.h b/boards/hifive1b/include/arduino_iomap.h index 110dec3916..fa2faf6ab0 100644 --- a/boards/hifive1b/include/arduino_iomap.h +++ b/boards/hifive1b/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_hifive1b * @{ @@ -19,9 +21,6 @@ * @author Alexandre Abadie */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #ifdef __cplusplus @@ -61,5 +60,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/hifive1b/include/board.h b/boards/hifive1b/include/board.h index 8266c495fb..eeb9d01f4f 100644 --- a/boards/hifive1b/include/board.h +++ b/boards/hifive1b/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_hifive1b SiFive HiFive1b RISC-V board * @ingroup boards @@ -18,9 +20,6 @@ * @author Ken Rabold */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "arduino_pinmap.h" @@ -65,5 +64,4 @@ void board_init_clock(void); } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/hifive1b/include/periph_conf.h b/boards/hifive1b/include/periph_conf.h index c611a17f26..6e4d643586 100644 --- a/boards/hifive1b/include/periph_conf.h +++ b/boards/hifive1b/include/periph_conf.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_hifive1b * @{ @@ -18,9 +20,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "kernel_defines.h" #include "macros/units.h" #include "periph_cpu.h" @@ -105,5 +104,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/hip-badge/include/board.h b/boards/hip-badge/include/board.h index 63c0736052..7868b45efe 100644 --- a/boards/hip-badge/include/board.h +++ b/boards/hip-badge/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_hip_badge * @brief Board definitions for the HiP Badge @@ -15,9 +17,6 @@ * @author Benjamin Valentin */ -#ifndef BOARD_H -#define BOARD_H - #include /** @@ -113,5 +112,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/hip-badge/include/gpio_params.h b/boards/hip-badge/include/gpio_params.h index 75d83cd271..0b9d6084c2 100644 --- a/boards/hip-badge/include/gpio_params.h +++ b/boards/hip-badge/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_hip_badge * @brief Board specific configuration of direct mapped GPIOs @@ -14,9 +16,6 @@ * @{ */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -53,5 +52,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/hip-badge/include/periph_conf.h b/boards/hip-badge/include/periph_conf.h index 38c995a93e..888ea4032c 100644 --- a/boards/hip-badge/include/periph_conf.h +++ b/boards/hip-badge/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_hip_badge * @brief Peripheral configurations for the HiP Badge @@ -15,9 +17,6 @@ * @author Benjamin Valentin */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -70,5 +69,4 @@ extern "C" { /* include common peripheral definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/i-nucleo-lrwan1/include/board.h b/boards/i-nucleo-lrwan1/include/board.h index b411b2ee88..85a0958686 100644 --- a/boards/i-nucleo-lrwan1/include/board.h +++ b/boards/i-nucleo-lrwan1/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_i-nucleo-lrwan1 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include #include "cpu.h" @@ -51,5 +50,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/i-nucleo-lrwan1/include/periph_conf.h b/boards/i-nucleo-lrwan1/include/periph_conf.h index 7d2d40f651..da51bc1531 100644 --- a/boards/i-nucleo-lrwan1/include/periph_conf.h +++ b/boards/i-nucleo-lrwan1/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_i-nucleo-lrwan1 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -107,5 +106,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/ikea-tradfri/include/board.h b/boards/ikea-tradfri/include/board.h index 9707c502b7..18cf9cb814 100644 --- a/boards/ikea-tradfri/include/board.h +++ b/boards/ikea-tradfri/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_ikea-tradfri * @{ @@ -16,9 +18,6 @@ * @author Bas Stottelaar */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph/adc.h" @@ -105,5 +104,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/ikea-tradfri/include/gpio_params.h b/boards/ikea-tradfri/include/gpio_params.h index f5bec67fb2..b80b381565 100644 --- a/boards/ikea-tradfri/include/gpio_params.h +++ b/boards/ikea-tradfri/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_ikea-tradfri * @{ @@ -16,9 +18,6 @@ * @author Bas Stottelaar */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -47,5 +46,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/ikea-tradfri/include/periph_conf.h b/boards/ikea-tradfri/include/periph_conf.h index fe9e57d9cc..8cc8df486f 100644 --- a/boards/ikea-tradfri/include/periph_conf.h +++ b/boards/ikea-tradfri/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_ikea-tradfri * @{ @@ -16,9 +18,6 @@ * @author Bas Stottelaar */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cpu.h" #include "periph_cpu.h" #include "em_cmu.h" @@ -198,5 +197,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/im880b/include/board.h b/boards/im880b/include/board.h index 18e7c2374e..74532850fb 100644 --- a/boards/im880b/include/board.h +++ b/boards/im880b/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_im880b * @brief Support for im880b @@ -17,9 +19,6 @@ * @author Francisco Molina */ -#ifndef BOARD_H -#define BOARD_H - #include #include "cpu.h" @@ -60,5 +59,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/im880b/include/periph_conf.h b/boards/im880b/include/periph_conf.h index 31fddb1f14..0c34a45c3d 100644 --- a/boards/im880b/include/periph_conf.h +++ b/boards/im880b/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_im880b * @{ @@ -16,9 +18,6 @@ * @author Francisco Molina */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* * This board provides an LSE, so enable it before including the default clock config */ @@ -169,5 +168,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/iotlab-a8-m3/include/board.h b/boards/iotlab-a8-m3/include/board.h index d12fa491af..7990bed7c9 100644 --- a/boards/iotlab-a8-m3/include/board.h +++ b/boards/iotlab-a8-m3/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_iotlab-a8-m3 * @{ @@ -15,9 +17,6 @@ * */ -#ifndef BOARD_H -#define BOARD_H - #include #include "cpu.h" @@ -48,5 +47,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/iotlab-a8-m3/include/periph_conf.h b/boards/iotlab-a8-m3/include/periph_conf.h index 8b7c6f469a..65621fcc0d 100644 --- a/boards/iotlab-a8-m3/include/periph_conf.h +++ b/boards/iotlab-a8-m3/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_iotlab-a8-m3 * @{ @@ -17,9 +19,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "periph_conf_common.h" @@ -50,5 +49,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/iotlab-m3/include/board.h b/boards/iotlab-m3/include/board.h index c9b8f019ea..9c0a01c351 100644 --- a/boards/iotlab-m3/include/board.h +++ b/boards/iotlab-m3/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_iotlab-m3 * @{ @@ -19,9 +21,6 @@ * @author Hauke Petersen */ -#ifndef BOARD_H -#define BOARD_H - #include #include "cpu.h" @@ -76,5 +75,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/iotlab-m3/include/periph_conf.h b/boards/iotlab-m3/include/periph_conf.h index 6e6ed6b9b4..4d1b8e2621 100644 --- a/boards/iotlab-m3/include/periph_conf.h +++ b/boards/iotlab-m3/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_iotlab-m3 * @{ @@ -17,9 +19,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "periph_conf_common.h" @@ -73,5 +72,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/limifrog-v1/include/board.h b/boards/limifrog-v1/include/board.h index d16d364de6..62ecd1c698 100644 --- a/boards/limifrog-v1/include/board.h +++ b/boards/limifrog-v1/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_limifrog-v1 * @{ @@ -16,9 +18,6 @@ * @author Katja Kirstein */ -#ifndef BOARD_H -#define BOARD_H - #include #include "cpu.h" @@ -58,5 +57,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/limifrog-v1/include/periph_conf.h b/boards/limifrog-v1/include/periph_conf.h index b492bf7bae..02e3aef9a3 100644 --- a/boards/limifrog-v1/include/periph_conf.h +++ b/boards/limifrog-v1/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_limifrog-v1 * @{ @@ -16,9 +18,6 @@ * @author Katja Kirstein */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "clk_conf.h" @@ -155,5 +154,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/lobaro-lorabox/include/board.h b/boards/lobaro-lorabox/include/board.h index 0794927666..266791760e 100644 --- a/boards/lobaro-lorabox/include/board.h +++ b/boards/lobaro-lorabox/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_lobaro_lorabox * @brief Support for Lobaro LoraBox @@ -17,9 +19,6 @@ * @author Leandro Lanzieri */ -#ifndef BOARD_H -#define BOARD_H - #ifdef __cplusplus extern "C" { #endif @@ -71,5 +70,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/lobaro-lorabox/include/gpio_params.h b/boards/lobaro-lorabox/include/gpio_params.h index 22bab8ce9b..6543711347 100644 --- a/boards/lobaro-lorabox/include/gpio_params.h +++ b/boards/lobaro-lorabox/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_lobaro_lorabox * @{ @@ -16,9 +18,6 @@ * @author Leandro Lanzieri */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -42,5 +41,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/lobaro-lorabox/include/periph_conf.h b/boards/lobaro-lorabox/include/periph_conf.h index b9f06c8718..b57a16312a 100644 --- a/boards/lobaro-lorabox/include/periph_conf.h +++ b/boards/lobaro-lorabox/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_lobaro_lorabox * @brief Support for the Lobaro lorabox with stm32l151cb @@ -21,9 +23,6 @@ * @author Leandro Lanzieri */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* * This board provides an LSE, so enable it before including the default clock config */ @@ -143,5 +142,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/lora-e5-dev/include/arduino_iomap.h b/boards/lora-e5-dev/include/arduino_iomap.h index 20722bcde4..23b9f06731 100644 --- a/boards/lora-e5-dev/include/arduino_iomap.h +++ b/boards/lora-e5-dev/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_lora-e5-dev * @{ @@ -19,9 +21,6 @@ * @author J. David Ibáñez */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #ifdef __cplusplus @@ -68,5 +67,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/lora-e5-dev/include/board.h b/boards/lora-e5-dev/include/board.h index 242d80fddd..91b181b1dd 100644 --- a/boards/lora-e5-dev/include/board.h +++ b/boards/lora-e5-dev/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_lora-e5-dev * @{ @@ -17,9 +19,6 @@ * @author Francisco Molina */ -#ifndef BOARD_H -#define BOARD_H - #include "kernel_defines.h" #if IS_USED(MODULE_SX126X_STM32WL) #include "sx126x.h" @@ -98,5 +97,4 @@ extern void lora_e5_dev_sx126x_set_rf_mode(sx126x_t *dev, sx126x_rf_mode_t rf_mo #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/lora-e5-dev/include/gpio_params.h b/boards/lora-e5-dev/include/gpio_params.h index de7ff3b933..1c34b07d23 100644 --- a/boards/lora-e5-dev/include/gpio_params.h +++ b/boards/lora-e5-dev/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_lora-e5-dev * @{ @@ -17,9 +19,6 @@ * */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -55,5 +54,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/lora-e5-dev/include/periph_conf.h b/boards/lora-e5-dev/include/periph_conf.h index 7810bd1266..6a5181f269 100644 --- a/boards/lora-e5-dev/include/periph_conf.h +++ b/boards/lora-e5-dev/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_lora-e5-dev * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -173,5 +172,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/lsn50/include/board.h b/boards/lsn50/include/board.h index 27f0e32b20..19d99a5fc8 100644 --- a/boards/lsn50/include/board.h +++ b/boards/lsn50/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_lsn50 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include #include "cpu.h" @@ -55,5 +54,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/lsn50/include/periph_conf.h b/boards/lsn50/include/periph_conf.h index 7995000a7b..7e3ffdf52f 100644 --- a/boards/lsn50/include/periph_conf.h +++ b/boards/lsn50/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_lsn50 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -154,5 +153,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/maple-mini/include/board.h b/boards/maple-mini/include/board.h index bfd50236b2..9359d20666 100644 --- a/boards/maple-mini/include/board.h +++ b/boards/maple-mini/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_maple-mini * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #ifdef __cplusplus extern "C" { #endif @@ -60,5 +59,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/maple-mini/include/gpio_params.h b/boards/maple-mini/include/gpio_params.h index 716a6c17c1..7bede79c20 100644 --- a/boards/maple-mini/include/gpio_params.h +++ b/boards/maple-mini/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_maple-mini * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -48,5 +47,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/maple-mini/include/periph_conf.h b/boards/maple-mini/include/periph_conf.h index dc533d3e60..168e2b3d48 100644 --- a/boards/maple-mini/include/periph_conf.h +++ b/boards/maple-mini/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_maple-mini * @{ @@ -16,9 +18,6 @@ * @author Frits Kuipers */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "clk_conf.h" @@ -156,5 +155,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/mbed_lpc1768/include/board.h b/boards/mbed_lpc1768/include/board.h index 5333560202..60ecd92efe 100644 --- a/boards/mbed_lpc1768/include/board.h +++ b/boards/mbed_lpc1768/include/board.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_mbed_lpc1768 * @{ @@ -18,9 +20,6 @@ * @author Hauke Petersen */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph/gpio.h" @@ -56,5 +55,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/mbed_lpc1768/include/gpio_params.h b/boards/mbed_lpc1768/include/gpio_params.h index 8f12cc7f52..15dfd1814c 100644 --- a/boards/mbed_lpc1768/include/gpio_params.h +++ b/boards/mbed_lpc1768/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_mbed_lpc1768 * @{ @@ -16,9 +18,6 @@ * @author Bas Stottelaar */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -57,5 +56,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/mbed_lpc1768/include/periph_conf.h b/boards/mbed_lpc1768/include/periph_conf.h index fc93cccddc..f8d4e93a41 100644 --- a/boards/mbed_lpc1768/include/periph_conf.h +++ b/boards/mbed_lpc1768/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_mbed_lpc1768 * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "vendor/conf.h" @@ -80,5 +79,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/mcb2388/include/adc_params.h b/boards/mcb2388/include/adc_params.h index 65fdae41d6..831211c0f5 100644 --- a/boards/mcb2388/include/adc_params.h +++ b/boards/mcb2388/include/adc_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_mcb2388 * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef ADC_PARAMS_H -#define ADC_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -42,5 +41,4 @@ static const saul_adc_params_t saul_adc_params[] = } #endif -#endif /* ADC_PARAMS_H */ /** @} */ diff --git a/boards/mcb2388/include/board.h b/boards/mcb2388/include/board.h index 5fa08c79a6..08e3a62c1c 100644 --- a/boards/mcb2388/include/board.h +++ b/boards/mcb2388/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_mcb2388 * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef BOARD_H -#define BOARD_H - #include "lpc23xx.h" #ifdef __cplusplus @@ -117,5 +116,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/mcb2388/include/gpio_params.h b/boards/mcb2388/include/gpio_params.h index a8532fa9cf..04da954043 100644 --- a/boards/mcb2388/include/gpio_params.h +++ b/boards/mcb2388/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_mcb2388 * @{ @@ -17,9 +19,6 @@ * */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -84,5 +83,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/mcb2388/include/periph_conf.h b/boards/mcb2388/include/periph_conf.h index b4adf854fc..460688e342 100644 --- a/boards/mcb2388/include/periph_conf.h +++ b/boards/mcb2388/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_mcb2388 * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "kernel_defines.h" @@ -145,5 +144,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/mega-xplained/include/adc_params.h b/boards/mega-xplained/include/adc_params.h index eede5f45ce..b1c97c2b37 100644 --- a/boards/mega-xplained/include/adc_params.h +++ b/boards/mega-xplained/include/adc_params.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_mega-xplained * @{ @@ -18,9 +20,6 @@ * @author Matthew Blue */ -#ifndef ADC_PARAMS_H -#define ADC_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -54,5 +53,4 @@ static const saul_adc_params_t saul_adc_params[] = } #endif -#endif /* ADC_PARAMS_H */ /** @} */ diff --git a/boards/mega-xplained/include/board.h b/boards/mega-xplained/include/board.h index 4c21f048c3..f1c69482e6 100644 --- a/boards/mega-xplained/include/board.h +++ b/boards/mega-xplained/include/board.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /* * @ingroup boards_mega-xplained * @brief Support for the Mega Xplained board. @@ -21,9 +23,6 @@ * @author Matthew Blue */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_cpu.h" #include "mega-xplained_pinmap.h" @@ -129,5 +128,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/mega-xplained/include/gpio_params.h b/boards/mega-xplained/include/gpio_params.h index a0fc7fe3e7..878959c138 100644 --- a/boards/mega-xplained/include/gpio_params.h +++ b/boards/mega-xplained/include/gpio_params.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_mega-xplained * @{ @@ -18,9 +20,6 @@ * @author Matthew Blue */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -64,5 +63,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/mega-xplained/include/mega-xplained_pinmap.h b/boards/mega-xplained/include/mega-xplained_pinmap.h index 0fdfd28400..819daf756e 100644 --- a/boards/mega-xplained/include/mega-xplained_pinmap.h +++ b/boards/mega-xplained/include/mega-xplained_pinmap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_mega-xplained * @{ @@ -19,9 +21,6 @@ * @author Matthew Blue */ -#ifndef MEGA_XPLAINED_PINMAP_H -#define MEGA_XPLAINED_PINMAP_H - #ifdef __cplusplus extern "C" { #endif @@ -74,5 +73,4 @@ extern "C" { } #endif -#endif /* MEGA_XPLAINED_PINMAP_H */ /** @} */ diff --git a/boards/mega-xplained/include/periph_conf.h b/boards/mega-xplained/include/periph_conf.h index 69049caccc..9237a7f257 100644 --- a/boards/mega-xplained/include/periph_conf.h +++ b/boards/mega-xplained/include/periph_conf.h @@ -10,6 +10,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_mega-xplained * @{ @@ -25,9 +27,6 @@ * @author Marian Buschsieweke */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #ifdef __cplusplus extern "C" { #endif @@ -48,5 +47,4 @@ extern "C" { #include "periph_conf_atmega_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/microbit-v2/include/board.h b/boards/microbit-v2/include/board.h index 7c76098769..943c419a85 100644 --- a/boards/microbit-v2/include/board.h +++ b/boards/microbit-v2/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_microbit_v2 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #ifdef __cplusplus @@ -90,5 +89,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/microbit-v2/include/gpio_params.h b/boards/microbit-v2/include/gpio_params.h index c7fe010226..0682d415ac 100644 --- a/boards/microbit-v2/include/gpio_params.h +++ b/boards/microbit-v2/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_microbit_v2 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -73,5 +72,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/microbit-v2/include/periph_conf.h b/boards/microbit-v2/include/periph_conf.h index 4644775133..7f503088d6 100644 --- a/boards/microbit-v2/include/periph_conf.h +++ b/boards/microbit-v2/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_microbit_v2 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "board.h" #include "periph_cpu.h" #include "cfg_clock_32_0.h" @@ -113,5 +112,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/microbit/include/board.h b/boards/microbit/include/board.h index b7927d85be..048b8d8031 100644 --- a/boards/microbit/include/board.h +++ b/boards/microbit/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_microbit * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #ifdef __cplusplus @@ -74,5 +73,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/microbit/include/gpio_params.h b/boards/microbit/include/gpio_params.h index 943da56995..cd264a5cc2 100644 --- a/boards/microbit/include/gpio_params.h +++ b/boards/microbit/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_microbit * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -50,5 +49,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/microbit/include/periph_conf.h b/boards/microbit/include/periph_conf.h index 90c5af1c6f..d58a05644a 100644 --- a/boards/microbit/include/periph_conf.h +++ b/boards/microbit/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_microbit * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_16_0.h" #include "cfg_timer_012.h" @@ -70,5 +69,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/microduino-corerf/include/board.h b/boards/microduino-corerf/include/board.h index 8d8b47adda..843a397f7f 100644 --- a/boards/microduino-corerf/include/board.h +++ b/boards/microduino-corerf/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_microduino-corerf * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #ifdef __cplusplus @@ -48,5 +47,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/microduino-corerf/include/periph_conf.h b/boards/microduino-corerf/include/periph_conf.h index 3891b44078..c036f1beab 100644 --- a/boards/microduino-corerf/include/periph_conf.h +++ b/boards/microduino-corerf/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_microduino-corerf * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_conf_atmega_common.h" #ifdef __cplusplus @@ -26,5 +25,4 @@ extern "C" { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/msb-430/include/board.h b/boards/msb-430/include/board.h index 45282bcb61..240687e03b 100644 --- a/boards/msb-430/include/board.h +++ b/boards/msb-430/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_msb430 * @@ -29,9 +31,6 @@ * @author Freie Universität Berlin, Computer Systems & Telematics, FeuerWhere project */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #ifdef __cplusplus @@ -58,4 +57,3 @@ extern "C" { #endif /** @} */ -#endif /* BOARD_H */ diff --git a/boards/msb-430/include/periph_conf.h b/boards/msb-430/include/periph_conf.h index 40d7839379..a37cb7a56b 100644 --- a/boards/msb-430/include/periph_conf.h +++ b/boards/msb-430/include/periph_conf.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_msb430 * @{ @@ -18,9 +20,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "macros/units.h" #include "cfg_timer_a_smclk_b_aclk.h" @@ -79,5 +78,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/msb-430h/include/board.h b/boards/msb-430h/include/board.h index 5ce122c99f..58967b1aec 100644 --- a/boards/msb-430h/include/board.h +++ b/boards/msb-430h/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_msb430h * @{ @@ -17,9 +19,6 @@ * @author Hauke Petersen */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #ifdef __cplusplus @@ -46,4 +45,3 @@ extern "C" { #endif /** @} */ -#endif /* BOARD_H */ diff --git a/boards/msb-430h/include/periph_conf.h b/boards/msb-430h/include/periph_conf.h index 8596b681c7..3ac30532f4 100644 --- a/boards/msb-430h/include/periph_conf.h +++ b/boards/msb-430h/include/periph_conf.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_msb430h * @{ @@ -18,9 +20,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_timer_a_smclk_b_aclk.h" @@ -77,5 +76,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/msba2/include/board.h b/boards/msba2/include/board.h index a839853b8e..a79a55a12a 100644 --- a/boards/msba2/include/board.h +++ b/boards/msba2/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_msba2 * @{ @@ -16,9 +18,6 @@ * @author unknown */ -#ifndef BOARD_H -#define BOARD_H - #include "lpc23xx.h" #include "bitarithm.h" @@ -58,5 +57,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/msba2/include/periph_conf.h b/boards/msba2/include/periph_conf.h index 6e4dbb05b7..1ff74351f8 100644 --- a/boards/msba2/include/periph_conf.h +++ b/boards/msba2/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_msba2 * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "kernel_defines.h" @@ -179,5 +178,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/msbiot/include/board.h b/boards/msbiot/include/board.h index 93ff8a5091..c55bbdcd52 100644 --- a/boards/msbiot/include/board.h +++ b/boards/msbiot/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_msbiot * @{ @@ -16,9 +18,6 @@ * @author Fabian Nack */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -75,5 +74,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/msbiot/include/gpio_params.h b/boards/msbiot/include/gpio_params.h index 6694f7cd22..8008e204d0 100644 --- a/boards/msbiot/include/gpio_params.h +++ b/boards/msbiot/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_msbiot * @{ @@ -16,9 +18,6 @@ * @author Marian Buschsieweke */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -67,5 +66,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/msbiot/include/periph_conf.h b/boards/msbiot/include/periph_conf.h index ddce99602f..8d10cd09df 100644 --- a/boards/msbiot/include/periph_conf.h +++ b/boards/msbiot/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_msbiot * @{ @@ -16,9 +18,6 @@ * @author Fabian Nack */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an HSE */ #ifndef CONFIG_BOARD_HAS_HSE #define CONFIG_BOARD_HAS_HSE 1 @@ -242,5 +241,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/mulle/include/adc_params.h b/boards/mulle/include/adc_params.h index 36f6842cca..2e3c11e0e1 100644 --- a/boards/mulle/include/adc_params.h +++ b/boards/mulle/include/adc_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_mulle * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef ADC_PARAMS_H -#define ADC_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -122,5 +121,4 @@ static const saul_adc_params_t saul_adc_params[] = } #endif -#endif /* ADC_PARAMS_H */ /** @} */ diff --git a/boards/mulle/include/board.h b/boards/mulle/include/board.h index d890a25ac9..198a7c7465 100644 --- a/boards/mulle/include/board.h +++ b/boards/mulle/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_mulle * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "mulle-nvram.h" @@ -159,5 +158,4 @@ extern "C" { #define MULLE_VBAT_ADC_LINE ADC_LINE(6) #define MULLE_VCHR_ADC_LINE ADC_LINE(7) /** @} */ -#endif /* BOARD_H */ /** @} */ diff --git a/boards/mulle/include/gpio_params.h b/boards/mulle/include/gpio_params.h index 182e5a68b3..0ff4f9db0e 100644 --- a/boards/mulle/include/gpio_params.h +++ b/boards/mulle/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_mulle * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -52,5 +51,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/mulle/include/mulle-nvram.h b/boards/mulle/include/mulle-nvram.h index 3a3e543869..73c1b96dbf 100644 --- a/boards/mulle/include/mulle-nvram.h +++ b/boards/mulle/include/mulle-nvram.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_mulle * @{ @@ -16,9 +18,6 @@ * @author Joakim Gebart */ -#ifndef MULLE_NVRAM_H -#define MULLE_NVRAM_H - #include "nvram.h" #ifdef __cplusplus @@ -40,5 +39,4 @@ extern nvram_t *mulle_nvram; } #endif -#endif /* MULLE_NVRAM_H */ /** @} */ diff --git a/boards/mulle/include/periph_conf.h b/boards/mulle/include/periph_conf.h index 220ea1de7e..6fe51c15fc 100644 --- a/boards/mulle/include/periph_conf.h +++ b/boards/mulle/include/periph_conf.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_mulle * @{ @@ -18,9 +20,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -362,5 +361,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nrf51dk/include/arduino_iomap.h b/boards/nrf51dk/include/arduino_iomap.h index 3d6f5c60f9..b423a151e9 100644 --- a/boards/nrf51dk/include/arduino_iomap.h +++ b/boards/nrf51dk/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf51dk * @{ @@ -19,9 +21,6 @@ * @author Marian Buschsieweke */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -119,5 +118,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/nrf51dk/include/board.h b/boards/nrf51dk/include/board.h index 6e14b6de3f..9c2048b52e 100644 --- a/boards/nrf51dk/include/board.h +++ b/boards/nrf51dk/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf51dk * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #ifdef __cplusplus @@ -74,5 +73,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/nrf51dk/include/gpio_params.h b/boards/nrf51dk/include/gpio_params.h index 44210728a2..94d625cd05 100644 --- a/boards/nrf51dk/include/gpio_params.h +++ b/boards/nrf51dk/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf51dk * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -85,5 +84,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/nrf51dk/include/periph_conf.h b/boards/nrf51dk/include/periph_conf.h index 1a90e196bb..0aefc0a0db 100644 --- a/boards/nrf51dk/include/periph_conf.h +++ b/boards/nrf51dk/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf51dk * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_16_1.h" #include "cfg_timer_012.h" @@ -110,5 +109,4 @@ static const adc_conf_t adc_config[] = {2, 3, 4, 5, 6, 7}; } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nrf51dongle/include/board.h b/boards/nrf51dongle/include/board.h index b6392359f5..feef3e1bd5 100644 --- a/boards/nrf51dongle/include/board.h +++ b/boards/nrf51dongle/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf51dongle * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #ifdef __cplusplus @@ -54,5 +53,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/nrf51dongle/include/periph_conf.h b/boards/nrf51dongle/include/periph_conf.h index e8568cc0ff..63275a4d85 100644 --- a/boards/nrf51dongle/include/periph_conf.h +++ b/boards/nrf51dongle/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf51dongle * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_16_1.h" #include "cfg_timer_012.h" @@ -53,5 +52,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nrf52832-mdk/include/board.h b/boards/nrf52832-mdk/include/board.h index 6ba9e2fb1e..94b9dc37d9 100644 --- a/boards/nrf52832-mdk/include/board.h +++ b/boards/nrf52832-mdk/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52832-mdk * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" @@ -57,5 +56,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/nrf52832-mdk/include/gpio_params.h b/boards/nrf52832-mdk/include/gpio_params.h index 7ab269729a..918cd2b6f3 100644 --- a/boards/nrf52832-mdk/include/gpio_params.h +++ b/boards/nrf52832-mdk/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52832-mdk * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -55,5 +54,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/nrf52832-mdk/include/periph_conf.h b/boards/nrf52832-mdk/include/periph_conf.h index 4d95927b1d..7f956e03e0 100644 --- a/boards/nrf52832-mdk/include/periph_conf.h +++ b/boards/nrf52832-mdk/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52832-mdk * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_32_1.h" #include "cfg_i2c_default.h" @@ -56,5 +55,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nrf52840-mdk-dongle/include/board.h b/boards/nrf52840-mdk-dongle/include/board.h index fecaa30af5..bd59a9531a 100644 --- a/boards/nrf52840-mdk-dongle/include/board.h +++ b/boards/nrf52840-mdk-dongle/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52840-mdk-dongle * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" #include "periph/gpio.h" @@ -90,5 +89,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/nrf52840-mdk-dongle/include/gpio_params.h b/boards/nrf52840-mdk-dongle/include/gpio_params.h index d54984fe06..e28199d893 100644 --- a/boards/nrf52840-mdk-dongle/include/gpio_params.h +++ b/boards/nrf52840-mdk-dongle/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52840-mdk-dongle * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -63,5 +62,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/nrf52840-mdk-dongle/include/periph_conf.h b/boards/nrf52840-mdk-dongle/include/periph_conf.h index d2916a0273..de8dbe4284 100644 --- a/boards/nrf52840-mdk-dongle/include/periph_conf.h +++ b/boards/nrf52840-mdk-dongle/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52840-mdk-dongle * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_32_1.h" #include "cfg_rtt_default.h" @@ -73,5 +72,4 @@ static const pwm_conf_t pwm_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nrf52840-mdk-dongle/include/pwm_params.h b/boards/nrf52840-mdk-dongle/include/pwm_params.h index 2d464d8dd0..909a04632b 100644 --- a/boards/nrf52840-mdk-dongle/include/pwm_params.h +++ b/boards/nrf52840-mdk-dongle/include/pwm_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52840-mdk-dongle * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef PWM_PARAMS_H -#define PWM_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -50,5 +49,4 @@ static const saul_pwm_rgb_params_t saul_pwm_rgb_params[] = } #endif -#endif /* PWM_PARAMS_H */ /** @} */ diff --git a/boards/nrf52840-mdk/include/board.h b/boards/nrf52840-mdk/include/board.h index 34a773eba7..236bf5dbdb 100644 --- a/boards/nrf52840-mdk/include/board.h +++ b/boards/nrf52840-mdk/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52840-mdk * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" @@ -65,5 +64,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/nrf52840-mdk/include/gpio_params.h b/boards/nrf52840-mdk/include/gpio_params.h index 980050ee93..d2c03d5f0a 100644 --- a/boards/nrf52840-mdk/include/gpio_params.h +++ b/boards/nrf52840-mdk/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52840-mdk * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -61,5 +60,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/nrf52840-mdk/include/periph_conf.h b/boards/nrf52840-mdk/include/periph_conf.h index 67b75341b8..46f67dc26b 100644 --- a/boards/nrf52840-mdk/include/periph_conf.h +++ b/boards/nrf52840-mdk/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52840-mdk * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_32_1.h" #include "cfg_i2c_default.h" @@ -57,5 +56,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nrf52840dk/include/arduino_iomap.h b/boards/nrf52840dk/include/arduino_iomap.h index 2bcda63454..cda027363c 100644 --- a/boards/nrf52840dk/include/arduino_iomap.h +++ b/boards/nrf52840dk/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52840dk * @{ @@ -19,9 +21,6 @@ * @author Marian Buschsieweke */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -183,5 +182,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/nrf52840dk/include/board.h b/boards/nrf52840dk/include/board.h index 0cff00bcd5..b5718f6de4 100644 --- a/boards/nrf52840dk/include/board.h +++ b/boards/nrf52840dk/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52840dk * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #ifdef __cplusplus @@ -96,5 +95,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/nrf52840dk/include/periph_conf.h b/boards/nrf52840dk/include/periph_conf.h index 9e06924ab5..71cf0c1339 100644 --- a/boards/nrf52840dk/include/periph_conf.h +++ b/boards/nrf52840dk/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52840dk * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "kernel_defines.h" #include "periph_conf_common.h" @@ -85,5 +84,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nrf52840dongle/include/board.h b/boards/nrf52840dongle/include/board.h index d5498ac0c0..d9c152b1ee 100644 --- a/boards/nrf52840dongle/include/board.h +++ b/boards/nrf52840dongle/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52840dongle * @{ @@ -16,9 +18,6 @@ * @author Christian Amsüss */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" #include "periph/gpio.h" @@ -92,5 +91,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/nrf52840dongle/include/gpio_params.h b/boards/nrf52840dongle/include/gpio_params.h index db28892220..f12cfaee2d 100644 --- a/boards/nrf52840dongle/include/gpio_params.h +++ b/boards/nrf52840dongle/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52840dongle * @{ @@ -16,9 +18,6 @@ * @author Christian Amsüss */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -43,5 +42,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/nrf52840dongle/include/periph_conf.h b/boards/nrf52840dongle/include/periph_conf.h index 15f1015871..157b6ae2ab 100644 --- a/boards/nrf52840dongle/include/periph_conf.h +++ b/boards/nrf52840dongle/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52840dongle * @{ @@ -19,9 +21,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_32_1.h" #include "cfg_rtt_default.h" @@ -116,5 +115,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nrf52840dongle/include/pwm_params.h b/boards/nrf52840dongle/include/pwm_params.h index cc1890c6f4..5e047d4d3a 100644 --- a/boards/nrf52840dongle/include/pwm_params.h +++ b/boards/nrf52840dongle/include/pwm_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52840dongle * @{ @@ -16,9 +18,6 @@ * @author Christian Amsüss */ -#ifndef PWM_PARAMS_H -#define PWM_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -53,5 +52,4 @@ static const saul_pwm_rgb_params_t saul_pwm_rgb_params[] = } #endif -#endif /* PWM_PARAMS_H */ /** @} */ diff --git a/boards/nrf52dk/include/arduino_iomap.h b/boards/nrf52dk/include/arduino_iomap.h index 432117d000..e3085def37 100644 --- a/boards/nrf52dk/include/arduino_iomap.h +++ b/boards/nrf52dk/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52dk * @{ @@ -17,9 +19,6 @@ * */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -110,5 +109,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/nrf52dk/include/board.h b/boards/nrf52dk/include/board.h index a5aaa64e6c..581d2ab58c 100644 --- a/boards/nrf52dk/include/board.h +++ b/boards/nrf52dk/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52dk * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #ifdef __cplusplus @@ -77,5 +76,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/nrf52dk/include/periph_conf.h b/boards/nrf52dk/include/periph_conf.h index 4bfe6e9ff2..af289d3939 100644 --- a/boards/nrf52dk/include/periph_conf.h +++ b/boards/nrf52dk/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52dk * @{ @@ -19,9 +21,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_conf_common.h" #ifdef __cplusplus @@ -69,5 +68,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nrf5340dk-app/include/board.h b/boards/nrf5340dk-app/include/board.h index d77640825a..e3061d20d4 100644 --- a/boards/nrf5340dk-app/include/board.h +++ b/boards/nrf5340dk-app/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf5340dk-app * @{ @@ -16,9 +18,6 @@ * @author Dylan Laduranty */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #ifdef __cplusplus @@ -110,5 +109,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/nrf5340dk-app/include/periph_conf.h b/boards/nrf5340dk-app/include/periph_conf.h index a4810e10f3..e864d9b46a 100644 --- a/boards/nrf5340dk-app/include/periph_conf.h +++ b/boards/nrf5340dk-app/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf5340dk-app * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "board.h" @@ -145,5 +144,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nrf9160dk/include/board.h b/boards/nrf9160dk/include/board.h index a9e9fae02a..5aed4bbb23 100644 --- a/boards/nrf9160dk/include/board.h +++ b/boards/nrf9160dk/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf9160dk * @{ @@ -16,9 +18,6 @@ * @author Dylan Laduranty */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #ifdef __cplusplus @@ -99,5 +98,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/nrf9160dk/include/periph_conf.h b/boards/nrf9160dk/include/periph_conf.h index b157bf368b..4609400b75 100644 --- a/boards/nrf9160dk/include/periph_conf.h +++ b/boards/nrf9160dk/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf9160dk * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "board.h" @@ -162,5 +161,4 @@ static const pwm_conf_t pwm_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-c031c6/include/periph_conf.h b/boards/nucleo-c031c6/include/periph_conf.h index aa14360238..296f9720e7 100644 --- a/boards/nucleo-c031c6/include/periph_conf.h +++ b/boards/nucleo-c031c6/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-c031c6 * @{ @@ -16,9 +18,6 @@ * @author Jason Parker */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -178,5 +177,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f030r8/include/periph_conf.h b/boards/nucleo-f030r8/include/periph_conf.h index 126aa925b6..243a483e89 100644 --- a/boards/nucleo-f030r8/include/periph_conf.h +++ b/boards/nucleo-f030r8/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f030r8 * @{ @@ -18,9 +20,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -177,5 +176,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f031k6/include/periph_conf.h b/boards/nucleo-f031k6/include/periph_conf.h index 2ee35b7ce2..cf8a7c3dc8 100644 --- a/boards/nucleo-f031k6/include/periph_conf.h +++ b/boards/nucleo-f031k6/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f031k6 * @{ @@ -17,9 +19,6 @@ * @author Vincent Dupont */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "clk_conf.h" #include "cfg_timer_tim2.h" @@ -134,5 +133,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f042k6/include/periph_conf.h b/boards/nucleo-f042k6/include/periph_conf.h index 79853d068e..8c78ff4b46 100644 --- a/boards/nucleo-f042k6/include/periph_conf.h +++ b/boards/nucleo-f042k6/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f042k6 * @{ @@ -16,9 +18,6 @@ * @author Vincent Dupont */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "clk_conf.h" #include "cfg_timer_tim2.h" @@ -144,5 +143,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f070rb/include/periph_conf.h b/boards/nucleo-f070rb/include/periph_conf.h index 9a0e907ab8..c68448d7e6 100644 --- a/boards/nucleo-f070rb/include/periph_conf.h +++ b/boards/nucleo-f070rb/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f070rb * @{ @@ -18,9 +20,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* HSE available on this board */ #ifndef CONFIG_BOARD_HAS_HSE #define CONFIG_BOARD_HAS_HSE 1 @@ -203,5 +202,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f072rb/include/periph_conf.h b/boards/nucleo-f072rb/include/periph_conf.h index bd07bfb7cc..589453c927 100644 --- a/boards/nucleo-f072rb/include/periph_conf.h +++ b/boards/nucleo-f072rb/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f072rb * @{ @@ -17,9 +19,6 @@ * @author José Ignacio Alamos */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* HSE available on this board */ #ifndef CONFIG_BOARD_HAS_HSE #define CONFIG_BOARD_HAS_HSE 1 @@ -199,5 +198,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f091rc/include/periph_conf.h b/boards/nucleo-f091rc/include/periph_conf.h index c39216248a..5aadfc9249 100644 --- a/boards/nucleo-f091rc/include/periph_conf.h +++ b/boards/nucleo-f091rc/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f091rc * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* HSE available on this board */ #ifndef CONFIG_BOARD_HAS_HSE #define CONFIG_BOARD_HAS_HSE 1 @@ -208,5 +207,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f103rb/include/periph_conf.h b/boards/nucleo-f103rb/include/periph_conf.h index 98eb0430b6..7c2eae6e9c 100644 --- a/boards/nucleo-f103rb/include/periph_conf.h +++ b/boards/nucleo-f103rb/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f103rb * @{ @@ -16,9 +18,6 @@ * @author Víctor Ariño */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -192,5 +191,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f207zg/include/periph_conf.h b/boards/nucleo-f207zg/include/periph_conf.h index a61be611e2..e8650603ec 100644 --- a/boards/nucleo-f207zg/include/periph_conf.h +++ b/boards/nucleo-f207zg/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f207zg * @{ @@ -18,9 +20,6 @@ * @author Toon Stegen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -301,5 +300,4 @@ static const eth_conf_t eth_config = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f302r8/include/periph_conf.h b/boards/nucleo-f302r8/include/periph_conf.h index f9c0592220..6cfd539d7c 100644 --- a/boards/nucleo-f302r8/include/periph_conf.h +++ b/boards/nucleo-f302r8/include/periph_conf.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f302r8 * @{ @@ -20,9 +22,6 @@ * @author Katja Kirstein */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -193,5 +192,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f303k8/include/periph_conf.h b/boards/nucleo-f303k8/include/periph_conf.h index 70be4a9553..7ad8be578c 100644 --- a/boards/nucleo-f303k8/include/periph_conf.h +++ b/boards/nucleo-f303k8/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f303k8 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "clk_conf.h" #include "cfg_timer_tim2.h" @@ -173,5 +172,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f303re/include/periph_conf.h b/boards/nucleo-f303re/include/periph_conf.h index 53d00b210e..1dfa690f6d 100644 --- a/boards/nucleo-f303re/include/periph_conf.h +++ b/boards/nucleo-f303re/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f303re * @{ @@ -18,9 +20,6 @@ * @author Katja Kirstein */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -217,5 +216,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f303ze/include/periph_conf.h b/boards/nucleo-f303ze/include/periph_conf.h index 0ed481ba99..3b25e81853 100644 --- a/boards/nucleo-f303ze/include/periph_conf.h +++ b/boards/nucleo-f303ze/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f303ze * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -203,5 +202,4 @@ static const stm32_usbdev_fs_config_t stm32_usbdev_fs_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f334r8/include/periph_conf.h b/boards/nucleo-f334r8/include/periph_conf.h index a259fb4475..68b9809fa4 100644 --- a/boards/nucleo-f334r8/include/periph_conf.h +++ b/boards/nucleo-f334r8/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f334r8 * @{ @@ -17,9 +19,6 @@ * @author Kaspar Schleiser */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -193,5 +192,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f401re/include/periph_conf.h b/boards/nucleo-f401re/include/periph_conf.h index f7988faea2..92fe613fef 100644 --- a/boards/nucleo-f401re/include/periph_conf.h +++ b/boards/nucleo-f401re/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f401re * @{ @@ -16,9 +18,6 @@ * @author Lari Lehtomäki */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -265,5 +264,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f410rb/include/periph_conf.h b/boards/nucleo-f410rb/include/periph_conf.h index c1e33d8591..150a86aba1 100644 --- a/boards/nucleo-f410rb/include/periph_conf.h +++ b/boards/nucleo-f410rb/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f410rb * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -168,5 +167,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f411re/include/periph_conf.h b/boards/nucleo-f411re/include/periph_conf.h index d19cee5ee3..4f3aea9c35 100644 --- a/boards/nucleo-f411re/include/periph_conf.h +++ b/boards/nucleo-f411re/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f411re * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -197,5 +196,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f412zg/include/periph_conf.h b/boards/nucleo-f412zg/include/periph_conf.h index 24ef5ccc1d..69d01f85de 100644 --- a/boards/nucleo-f412zg/include/periph_conf.h +++ b/boards/nucleo-f412zg/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f412zg * @{ @@ -18,9 +20,6 @@ * @author Vincent Dupont */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -199,5 +198,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f413zh/include/periph_conf.h b/boards/nucleo-f413zh/include/periph_conf.h index 65b1606264..a57d11a995 100644 --- a/boards/nucleo-f413zh/include/periph_conf.h +++ b/boards/nucleo-f413zh/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f413zh * @{ @@ -18,9 +20,6 @@ * @author Vincent Dupont */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -215,5 +214,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f429zi/include/periph_conf.h b/boards/nucleo-f429zi/include/periph_conf.h index 3aed6f9b76..93ce828dbd 100644 --- a/boards/nucleo-f429zi/include/periph_conf.h +++ b/boards/nucleo-f429zi/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f429zi * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -226,5 +225,4 @@ static const eth_conf_t eth_config = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f439zi/include/periph_conf.h b/boards/nucleo-f439zi/include/periph_conf.h index 588d3aee9b..be25b1974f 100644 --- a/boards/nucleo-f439zi/include/periph_conf.h +++ b/boards/nucleo-f439zi/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f439zi * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -240,5 +239,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f446re/include/periph_conf.h b/boards/nucleo-f446re/include/periph_conf.h index 0c5dc8dffd..8ca842ff23 100644 --- a/boards/nucleo-f446re/include/periph_conf.h +++ b/boards/nucleo-f446re/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f446re * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -275,5 +274,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f446ze/include/periph_conf.h b/boards/nucleo-f446ze/include/periph_conf.h index 0946b5c172..578bded799 100644 --- a/boards/nucleo-f446ze/include/periph_conf.h +++ b/boards/nucleo-f446ze/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f446ze * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -213,5 +212,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f722ze/include/periph_conf.h b/boards/nucleo-f722ze/include/periph_conf.h index 09a706d94f..29a8d8bf20 100644 --- a/boards/nucleo-f722ze/include/periph_conf.h +++ b/boards/nucleo-f722ze/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f722ze * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -119,5 +118,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f746zg/include/periph_conf.h b/boards/nucleo-f746zg/include/periph_conf.h index 134c10a42d..5999d7a88c 100644 --- a/boards/nucleo-f746zg/include/periph_conf.h +++ b/boards/nucleo-f746zg/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f746zg * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -244,5 +243,4 @@ static const eth_conf_t eth_config = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-f767zi/include/periph_conf.h b/boards/nucleo-f767zi/include/periph_conf.h index 8fc36657fa..db02f6b96d 100644 --- a/boards/nucleo-f767zi/include/periph_conf.h +++ b/boards/nucleo-f767zi/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-f767zi * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -252,5 +251,4 @@ static const pwm_conf_t pwm_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-g070rb/include/periph_conf.h b/boards/nucleo-g070rb/include/periph_conf.h index 094ebca5c1..9e84ac678b 100644 --- a/boards/nucleo-g070rb/include/periph_conf.h +++ b/boards/nucleo-g070rb/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-g070rb * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" /* Add specific clock configuration (HSE, LSE) for this board here */ @@ -154,5 +153,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-g071rb/include/periph_conf.h b/boards/nucleo-g071rb/include/periph_conf.h index 8e4854a388..469ce12cde 100644 --- a/boards/nucleo-g071rb/include/periph_conf.h +++ b/boards/nucleo-g071rb/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-g071rb * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -153,5 +152,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-g431rb/include/periph_conf.h b/boards/nucleo-g431rb/include/periph_conf.h index 3981c2ced3..95adfa5f0c 100644 --- a/boards/nucleo-g431rb/include/periph_conf.h +++ b/boards/nucleo-g431rb/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-g431rb * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -126,5 +125,4 @@ static const pwm_conf_t pwm_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-g474re/include/periph_conf.h b/boards/nucleo-g474re/include/periph_conf.h index 6da93ad141..7fc17c9a87 100644 --- a/boards/nucleo-g474re/include/periph_conf.h +++ b/boards/nucleo-g474re/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-g474re * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -106,5 +105,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-l011k4/include/periph_conf.h b/boards/nucleo-l011k4/include/periph_conf.h index daee04d74f..894550ac48 100644 --- a/boards/nucleo-l011k4/include/periph_conf.h +++ b/boards/nucleo-l011k4/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-l011k4 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Aabdie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -102,5 +101,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-l031k6/include/periph_conf.h b/boards/nucleo-l031k6/include/periph_conf.h index cbab34377b..49500da75c 100644 --- a/boards/nucleo-l031k6/include/periph_conf.h +++ b/boards/nucleo-l031k6/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-l031k6 * @{ @@ -18,9 +20,6 @@ * @author Alexandre Aabdie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -124,5 +123,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-l053r8/include/periph_conf.h b/boards/nucleo-l053r8/include/periph_conf.h index a9cbce20f7..ad6526597c 100644 --- a/boards/nucleo-l053r8/include/periph_conf.h +++ b/boards/nucleo-l053r8/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-l053r8 * @{ @@ -18,9 +20,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -119,5 +118,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-l073rz/include/periph_conf.h b/boards/nucleo-l073rz/include/periph_conf.h index da052fa06e..2c90a96bb1 100644 --- a/boards/nucleo-l073rz/include/periph_conf.h +++ b/boards/nucleo-l073rz/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-l073rz * @{ @@ -18,9 +20,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -188,5 +187,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-l152re/include/periph_conf.h b/boards/nucleo-l152re/include/periph_conf.h index a76be9c581..1d8c5c13ae 100644 --- a/boards/nucleo-l152re/include/periph_conf.h +++ b/boards/nucleo-l152re/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-l152re * @{ @@ -17,9 +19,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "clk_conf.h" #include "cfg_timer_tim5.h" @@ -231,5 +230,4 @@ static const dac_conf_t dac_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-l412kb/include/periph_conf.h b/boards/nucleo-l412kb/include/periph_conf.h index 1323e43a42..1e0095cb51 100644 --- a/boards/nucleo-l412kb/include/periph_conf.h +++ b/boards/nucleo-l412kb/include/periph_conf.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-l412kb * @{ @@ -20,9 +22,6 @@ * @author Vincent Dupont */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -122,5 +121,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-l432kc/include/periph_conf.h b/boards/nucleo-l432kc/include/periph_conf.h index af45e7ac4a..ba841b9876 100644 --- a/boards/nucleo-l432kc/include/periph_conf.h +++ b/boards/nucleo-l432kc/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-l432kc * @{ @@ -18,9 +20,6 @@ * @author Vincent Dupont */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -120,5 +119,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-l433rc/include/periph_conf.h b/boards/nucleo-l433rc/include/periph_conf.h index c704ba14af..118859fadf 100644 --- a/boards/nucleo-l433rc/include/periph_conf.h +++ b/boards/nucleo-l433rc/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-l433rc * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -145,5 +144,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-l452re/include/periph_conf.h b/boards/nucleo-l452re/include/periph_conf.h index a489c45674..8da4289188 100644 --- a/boards/nucleo-l452re/include/periph_conf.h +++ b/boards/nucleo-l452re/include/periph_conf.h @@ -9,6 +9,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-l452re * @{ @@ -22,9 +24,6 @@ * @author Francisco Molina */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -175,5 +174,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-l476rg/include/periph_conf.h b/boards/nucleo-l476rg/include/periph_conf.h index fb13b69d94..ff798d70f0 100644 --- a/boards/nucleo-l476rg/include/periph_conf.h +++ b/boards/nucleo-l476rg/include/periph_conf.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-l476rg * @{ @@ -20,9 +22,6 @@ * @author Michel Rottleuthner */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -252,5 +251,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-l496zg/include/periph_conf.h b/boards/nucleo-l496zg/include/periph_conf.h index f99762e3f3..14b79cc1fa 100644 --- a/boards/nucleo-l496zg/include/periph_conf.h +++ b/boards/nucleo-l496zg/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-l496zg * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -210,5 +209,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-l4r5zi/include/periph_conf.h b/boards/nucleo-l4r5zi/include/periph_conf.h index efb5021070..323f9bbcc5 100644 --- a/boards/nucleo-l4r5zi/include/periph_conf.h +++ b/boards/nucleo-l4r5zi/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo144-l4r5 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -215,5 +214,4 @@ static const pwm_conf_t pwm_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-l552ze-q/include/periph_conf.h b/boards/nucleo-l552ze-q/include/periph_conf.h index d98e2138fa..abebd8c2e6 100644 --- a/boards/nucleo-l552ze-q/include/periph_conf.h +++ b/boards/nucleo-l552ze-q/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-l552ze-q * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -150,5 +149,4 @@ static const pwm_conf_t pwm_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-u575zi-q/include/periph_conf.h b/boards/nucleo-u575zi-q/include/periph_conf.h index f0b4394877..57eb763bd9 100644 --- a/boards/nucleo-u575zi-q/include/periph_conf.h +++ b/boards/nucleo-u575zi-q/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-u575zi-q * @{ @@ -16,9 +18,6 @@ * @author Nils Ollrogge */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -179,5 +178,4 @@ static const pwm_conf_t pwm_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nucleo-wl55jc/include/arduino_iomap.h b/boards/nucleo-wl55jc/include/arduino_iomap.h index 754c4687cc..d05cb4b5e2 100644 --- a/boards/nucleo-wl55jc/include/arduino_iomap.h +++ b/boards/nucleo-wl55jc/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-wl55jc * @{ @@ -20,9 +22,6 @@ * */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -102,5 +101,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/nucleo-wl55jc/include/board.h b/boards/nucleo-wl55jc/include/board.h index 2bf5f4b93d..6b8f4c9d98 100644 --- a/boards/nucleo-wl55jc/include/board.h +++ b/boards/nucleo-wl55jc/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-wl55jc * @{ @@ -17,9 +19,6 @@ * @author Hauke Petersen */ -#ifndef BOARD_H -#define BOARD_H - #include "board_nucleo.h" /* Required for `nucleo_wl55jc_sx126x_set_rf_mode` */ @@ -90,5 +89,4 @@ extern void nucleo_wl55jc_sx126x_set_rf_mode(sx126x_t *dev, sx126x_rf_mode_t rf_ #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/nucleo-wl55jc/include/gpio_params.h b/boards/nucleo-wl55jc/include/gpio_params.h index dd2c080b9a..3139e5aafa 100644 --- a/boards/nucleo-wl55jc/include/gpio_params.h +++ b/boards/nucleo-wl55jc/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-wl55jc * @{ @@ -18,9 +20,6 @@ * */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -72,5 +71,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/nucleo-wl55jc/include/periph_conf.h b/boards/nucleo-wl55jc/include/periph_conf.h index 549e60ec84..6762591744 100644 --- a/boards/nucleo-wl55jc/include/periph_conf.h +++ b/boards/nucleo-wl55jc/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nucleo-wl55jc * @{ @@ -18,9 +20,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -193,5 +192,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nz32-sc151/include/board.h b/boards/nz32-sc151/include/board.h index b47be64ee6..d3bf5f73ca 100644 --- a/boards/nz32-sc151/include/board.h +++ b/boards/nz32-sc151/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_nz32-sc151 * @{ @@ -16,9 +18,6 @@ * @author Francisco Molina */ -#ifndef BOARD_H -#define BOARD_H - #include #include "cpu.h" @@ -43,5 +42,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/nz32-sc151/include/gpio_params.h b/boards/nz32-sc151/include/gpio_params.h index 2d5f53b62a..a3c237cfb0 100644 --- a/boards/nz32-sc151/include/gpio_params.h +++ b/boards/nz32-sc151/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nz32-sc151 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -42,5 +41,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/nz32-sc151/include/periph_conf.h b/boards/nz32-sc151/include/periph_conf.h index d8a2b1a69d..cbf936e494 100644 --- a/boards/nz32-sc151/include/periph_conf.h +++ b/boards/nz32-sc151/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_nz32-sc151 * @{ @@ -16,9 +18,6 @@ * @author Francisco Molina */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "clk_conf.h" #include "cfg_timer_tim5.h" @@ -197,5 +196,4 @@ static const dac_conf_t dac_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/nz32-sc151/include/sx127x_params.h b/boards/nz32-sc151/include/sx127x_params.h index 2e4a9543fd..57747a4e89 100644 --- a/boards/nz32-sc151/include/sx127x_params.h +++ b/boards/nz32-sc151/include/sx127x_params.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_nz32-sc151 * @{ @@ -16,9 +18,6 @@ * @author Francisco Molina */ -#ifndef SX127X_PARAMS_H -#define SX127X_PARAMS_H - #include "sx127x.h" #ifdef __cplusplus @@ -45,5 +44,4 @@ static const sx127x_params_t sx127x_params[] = } #endif -#endif /* SX127X_PARAMS_H */ /** @} */ diff --git a/boards/olimex-msp430-h1611/include/board.h b/boards/olimex-msp430-h1611/include/board.h index aef1dffefa..f8b4d342ae 100644 --- a/boards/olimex-msp430-h1611/include/board.h +++ b/boards/olimex-msp430-h1611/include/board.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_olimex_msp430_h1611 * @@ -19,9 +21,6 @@ * @author Hauke Petersen */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #ifdef __cplusplus @@ -68,4 +67,3 @@ extern "C" { #endif /** @} */ -#endif /* BOARD_H */ diff --git a/boards/olimex-msp430-h1611/include/periph_conf.h b/boards/olimex-msp430-h1611/include/periph_conf.h index 46875eac80..45dd480b8f 100644 --- a/boards/olimex-msp430-h1611/include/periph_conf.h +++ b/boards/olimex-msp430-h1611/include/periph_conf.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_olimex_msp430_h1611 * @{ @@ -18,9 +20,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "macros/units.h" #include "cfg_timer_a_smclk_b_aclk.h" @@ -81,5 +80,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/olimex-msp430-h2618/include/board.h b/boards/olimex-msp430-h2618/include/board.h index b918b1ca16..b14048b55a 100644 --- a/boards/olimex-msp430-h2618/include/board.h +++ b/boards/olimex-msp430-h2618/include/board.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_olimex_msp430_h2618 * @@ -18,9 +20,6 @@ * @author Marian Buschsieweke */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "macros/units.h" @@ -49,4 +48,3 @@ extern "C" { #endif /** @} */ -#endif /* BOARD_H */ diff --git a/boards/olimex-msp430-h2618/include/periph_conf.h b/boards/olimex-msp430-h2618/include/periph_conf.h index 23d223a40b..96863d886a 100644 --- a/boards/olimex-msp430-h2618/include/periph_conf.h +++ b/boards/olimex-msp430-h2618/include/periph_conf.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_olimex_msp430_h2618 * @{ @@ -17,9 +19,6 @@ * @author Marian Buschsieweke */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "macros/units.h" #include "cfg_timer_a_smclk_b_aclk.h" @@ -78,5 +77,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/olimexino-stm32/include/board.h b/boards/olimexino-stm32/include/board.h index 09fbf2f431..2c9638ec8a 100644 --- a/boards/olimexino-stm32/include/board.h +++ b/boards/olimexino-stm32/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_olimexino-stm32 * @{ @@ -16,9 +18,6 @@ * @author Corentin Vigourt */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -63,5 +62,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/olimexino-stm32/include/gpio_params.h b/boards/olimexino-stm32/include/gpio_params.h index 559b37b860..72933fa05d 100644 --- a/boards/olimexino-stm32/include/gpio_params.h +++ b/boards/olimexino-stm32/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_olimexino-stm32 * @{ @@ -16,9 +18,6 @@ * @author Corentin Vigourt */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -52,5 +51,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/olimexino-stm32/include/periph_conf.h b/boards/olimexino-stm32/include/periph_conf.h index 46688775d0..331ee3a190 100644 --- a/boards/olimexino-stm32/include/periph_conf.h +++ b/boards/olimexino-stm32/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_olimexino-stm32 * @{ @@ -16,9 +18,6 @@ * @author Corentin Vigourt */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -251,5 +250,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/omote/include/adc_params.h b/boards/omote/include/adc_params.h index 7b7b5ebd1b..1e87024a39 100644 --- a/boards/omote/include/adc_params.h +++ b/boards/omote/include/adc_params.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_omote * @{ @@ -16,9 +18,6 @@ * */ -#ifndef ADC_PARAMS_H -#define ADC_PARAMS_H - #include "board.h" #include "saul/periph.h" #include "periph/adc.h" @@ -53,5 +52,4 @@ static const saul_adc_params_t saul_adc_params[] = } #endif -#endif /* ADC_PARAMS_H */ /** @} */ diff --git a/boards/omote/include/board.h b/boards/omote/include/board.h index 9071862ad0..47eaf98eb8 100644 --- a/boards/omote/include/board.h +++ b/boards/omote/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_omote * @{ @@ -14,9 +16,6 @@ * @brief Board specific definitions for the omote board */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph/gpio.h" #include "periph/spi.h" @@ -93,5 +92,4 @@ } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/omote/include/gpio_params.h b/boards/omote/include/gpio_params.h index ea9825370c..51721fe05b 100644 --- a/boards/omote/include/gpio_params.h +++ b/boards/omote/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_omote * @{ @@ -15,9 +17,6 @@ * */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -54,5 +53,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/omote/include/periph_conf.h b/boards/omote/include/periph_conf.h index ef6afd268c..ee88996447 100644 --- a/boards/omote/include/periph_conf.h +++ b/boards/omote/include/periph_conf.h @@ -8,6 +8,8 @@ * details. */ +#pragma once + /** * @ingroup boards_omote * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cc2538_gpio.h" #include "periph_cpu.h" @@ -115,5 +114,4 @@ static const uart_conf_t uart_config[] = { } /* end extern "C" */ #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/opencm904/include/board.h b/boards/opencm904/include/board.h index 364de01db8..6e2c104112 100644 --- a/boards/opencm904/include/board.h +++ b/boards/opencm904/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_opencm904 * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #ifdef __cplusplus extern "C" { #endif @@ -78,5 +77,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/opencm904/include/periph_conf.h b/boards/opencm904/include/periph_conf.h index 41430e528a..173ceb0f44 100644 --- a/boards/opencm904/include/periph_conf.h +++ b/boards/opencm904/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_opencm904 * @{ @@ -16,9 +18,6 @@ * @author Loïc Dauphin */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an HSE */ #ifndef CONFIG_BOARD_HAS_HSE #define CONFIG_BOARD_HAS_HSE 1 @@ -100,5 +99,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/openlabs-kw41z-mini/include/adc_params.h b/boards/openlabs-kw41z-mini/include/adc_params.h index 658b05c49f..c5e387cc03 100644 --- a/boards/openlabs-kw41z-mini/include/adc_params.h +++ b/boards/openlabs-kw41z-mini/include/adc_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_openlabs-kw41z-mini * @{ @@ -17,9 +19,6 @@ * @author Thomas Stilwell */ -#ifndef ADC_PARAMS_H -#define ADC_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -73,5 +72,4 @@ static const saul_adc_params_t saul_adc_params[] = } #endif -#endif /* ADC_PARAMS_H */ /** @} */ diff --git a/boards/openlabs-kw41z-mini/include/board.h b/boards/openlabs-kw41z-mini/include/board.h index f3b79cdd9b..47ec37d09c 100644 --- a/boards/openlabs-kw41z-mini/include/board.h +++ b/boards/openlabs-kw41z-mini/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_openlabs-kw41z-mini * @{ @@ -17,9 +19,6 @@ * @author Thomas Stilwell */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -89,5 +88,4 @@ extern "C" } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/openlabs-kw41z-mini/include/gpio_params.h b/boards/openlabs-kw41z-mini/include/gpio_params.h index 33183304d7..9fdad35cda 100644 --- a/boards/openlabs-kw41z-mini/include/gpio_params.h +++ b/boards/openlabs-kw41z-mini/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_openlabs-kw41z-mini * @{ @@ -16,9 +18,6 @@ * @author Thomas Stilwell */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -43,5 +42,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/openlabs-kw41z-mini/include/periph_conf.h b/boards/openlabs-kw41z-mini/include/periph_conf.h index 062a193d08..0cbc6ec7c0 100644 --- a/boards/openlabs-kw41z-mini/include/periph_conf.h +++ b/boards/openlabs-kw41z-mini/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_openlabs-kw41z-mini * @{ @@ -17,9 +19,6 @@ * @author Thomas Stilwell */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -360,5 +359,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/openmote-b/include/board.h b/boards/openmote-b/include/board.h index c4cfe767f9..7df3b75e4b 100644 --- a/boards/openmote-b/include/board.h +++ b/boards/openmote-b/include/board.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_openmote-b * @{ @@ -18,9 +20,6 @@ * @author Kevin Weiss */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph/gpio.h" #include "cc2538_eui_primary.h" @@ -158,5 +157,4 @@ } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/openmote-b/include/gpio_params.h b/boards/openmote-b/include/gpio_params.h index 3d3dd24c02..c44d933168 100644 --- a/boards/openmote-b/include/gpio_params.h +++ b/boards/openmote-b/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_openmote-b * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -67,5 +66,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/openmote-b/include/periph_conf.h b/boards/openmote-b/include/periph_conf.h index a90ef4f78f..4d9013c358 100644 --- a/boards/openmote-b/include/periph_conf.h +++ b/boards/openmote-b/include/periph_conf.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_openmote-b * @{ @@ -19,9 +21,6 @@ * @author Kevin Weiss */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cc2538_gpio.h" #include "periph_cpu.h" @@ -112,5 +111,4 @@ static const spi_conf_t spi_config[] = { } /* end extern "C" */ #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/openmote-cc2538/include/board.h b/boards/openmote-cc2538/include/board.h index a0fc71c656..150f1d502a 100644 --- a/boards/openmote-cc2538/include/board.h +++ b/boards/openmote-cc2538/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_openmote-cc2538 * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph/gpio.h" #include "cc2538_eui_primary.h" @@ -94,5 +93,4 @@ } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/openmote-cc2538/include/periph_conf.h b/boards/openmote-cc2538/include/periph_conf.h index db72fb76b6..c2de3d8096 100644 --- a/boards/openmote-cc2538/include/periph_conf.h +++ b/boards/openmote-cc2538/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_openmote-cc2538 * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cc2538_gpio.h" #include "periph_cpu.h" @@ -108,5 +107,4 @@ static const spi_conf_t spi_config[] = { } /* end extern "C" */ #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/p-l496g-cell02/include/board.h b/boards/p-l496g-cell02/include/board.h index 33ff4df284..60876f8986 100644 --- a/boards/p-l496g-cell02/include/board.h +++ b/boards/p-l496g-cell02/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_p-l496g-cell02 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include #include "cpu.h" @@ -66,5 +65,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/p-l496g-cell02/include/gpio_params.h b/boards/p-l496g-cell02/include/gpio_params.h index 6593f0cd08..0295b3d8aa 100644 --- a/boards/p-l496g-cell02/include/gpio_params.h +++ b/boards/p-l496g-cell02/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_p-l496g-cell02 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -73,5 +72,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/p-l496g-cell02/include/periph_conf.h b/boards/p-l496g-cell02/include/periph_conf.h index 5195fdcd74..df3f0661ac 100644 --- a/boards/p-l496g-cell02/include/periph_conf.h +++ b/boards/p-l496g-cell02/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_p-l496g-cell02 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -153,5 +152,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/p-nucleo-wb55/include/arduino_iomap.h b/boards/p-nucleo-wb55/include/arduino_iomap.h index edfe3d8b20..c517773c49 100644 --- a/boards/p-nucleo-wb55/include/arduino_iomap.h +++ b/boards/p-nucleo-wb55/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_p-nucleo-wb55 * @{ @@ -21,9 +23,6 @@ * */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -119,5 +118,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/p-nucleo-wb55/include/board.h b/boards/p-nucleo-wb55/include/board.h index f82c92ed75..8120562eef 100644 --- a/boards/p-nucleo-wb55/include/board.h +++ b/boards/p-nucleo-wb55/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_p-nucleo-wb55 * @{ @@ -16,9 +18,6 @@ * @author Francisco Molina */ -#ifndef BOARD_H -#define BOARD_H - #include "board_nucleo.h" #ifdef __cplusplus @@ -60,5 +59,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/p-nucleo-wb55/include/gpio_params.h b/boards/p-nucleo-wb55/include/gpio_params.h index b020a880ad..3e752cd49b 100644 --- a/boards/p-nucleo-wb55/include/gpio_params.h +++ b/boards/p-nucleo-wb55/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_p-nucleo-wb55 * @{ @@ -18,9 +20,6 @@ * */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -72,5 +71,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/p-nucleo-wb55/include/periph_conf.h b/boards/p-nucleo-wb55/include/periph_conf.h index 23ef8fc370..58a0762085 100644 --- a/boards/p-nucleo-wb55/include/periph_conf.h +++ b/boards/p-nucleo-wb55/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_p-nucleo-wb55 * @{ @@ -16,9 +18,6 @@ * @author Francisco Molina */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -210,5 +209,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/particle-argon/include/periph_conf.h b/boards/particle-argon/include/periph_conf.h index 1b90aa51a8..1a2a20f4a6 100644 --- a/boards/particle-argon/include/periph_conf.h +++ b/boards/particle-argon/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_particle-argon * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "periph_conf_common.h" @@ -64,5 +63,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/particle-boron/include/periph_conf.h b/boards/particle-boron/include/periph_conf.h index 44394cb069..ef418ad680 100644 --- a/boards/particle-boron/include/periph_conf.h +++ b/boards/particle-boron/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_particle-boron * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "periph_conf_common.h" @@ -64,5 +63,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/particle-xenon/include/periph_conf.h b/boards/particle-xenon/include/periph_conf.h index fddd037f4e..183156401e 100644 --- a/boards/particle-xenon/include/periph_conf.h +++ b/boards/particle-xenon/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_particle-xenon * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "periph_conf_common.h" @@ -64,5 +63,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/pba-d-01-kw2x/include/board.h b/boards/pba-d-01-kw2x/include/board.h index c0a0514328..723a919f6c 100644 --- a/boards/pba-d-01-kw2x/include/board.h +++ b/boards/pba-d-01-kw2x/include/board.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_pba-d-01-kw2x * @{ @@ -18,9 +20,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -97,5 +96,4 @@ extern "C" } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/pba-d-01-kw2x/include/gpio_params.h b/boards/pba-d-01-kw2x/include/gpio_params.h index 7c8d635b95..7fa6898f02 100644 --- a/boards/pba-d-01-kw2x/include/gpio_params.h +++ b/boards/pba-d-01-kw2x/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_pba-d-01-kw2x * @{ @@ -16,9 +18,6 @@ * @author Sebastian Meiling */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -67,5 +66,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/pba-d-01-kw2x/include/periph_conf.h b/boards/pba-d-01-kw2x/include/periph_conf.h index 0bf510be48..1c044aecd6 100644 --- a/boards/pba-d-01-kw2x/include/periph_conf.h +++ b/boards/pba-d-01-kw2x/include/periph_conf.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_pba-d-01-kw2x * @{ @@ -19,9 +21,6 @@ * @author Jonas Remmert */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -275,5 +274,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/phynode-kw41z/include/adc_params.h b/boards/phynode-kw41z/include/adc_params.h index 925e38bb73..c13bf69071 100644 --- a/boards/phynode-kw41z/include/adc_params.h +++ b/boards/phynode-kw41z/include/adc_params.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_phynode-kw41z * @{ @@ -18,9 +20,6 @@ * @author José Alamos */ -#ifndef ADC_PARAMS_H -#define ADC_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -54,5 +53,4 @@ static const saul_adc_params_t saul_adc_params[] = } #endif -#endif /* ADC_PARAMS_H */ /** @} */ diff --git a/boards/phynode-kw41z/include/board.h b/boards/phynode-kw41z/include/board.h index d9f69b90cc..fe1ab04bf8 100644 --- a/boards/phynode-kw41z/include/board.h +++ b/boards/phynode-kw41z/include/board.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_phynode-kw41z * @{ @@ -18,9 +20,6 @@ * @author José Alamos */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -144,5 +143,4 @@ extern "C" } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/phynode-kw41z/include/gpio_params.h b/boards/phynode-kw41z/include/gpio_params.h index 6fd7e38d08..e4644666ae 100644 --- a/boards/phynode-kw41z/include/gpio_params.h +++ b/boards/phynode-kw41z/include/gpio_params.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_phynode-kw41z * @{ @@ -18,9 +20,6 @@ * @author José Alamos */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -79,5 +78,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/phynode-kw41z/include/periph_conf.h b/boards/phynode-kw41z/include/periph_conf.h index 808f0623a6..3a0bae6e45 100644 --- a/boards/phynode-kw41z/include/periph_conf.h +++ b/boards/phynode-kw41z/include/periph_conf.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_phynode-kw41z * @{ @@ -18,9 +20,6 @@ * @author José Alamos */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "periph_conf_common.h" #include "cfg_i2c_default.h" @@ -89,5 +88,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/pinetime/include/board.h b/boards/pinetime/include/board.h index 1be876807f..b74c179de9 100644 --- a/boards/pinetime/include/board.h +++ b/boards/pinetime/include/board.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_pinetime * @{ @@ -18,9 +20,6 @@ * @author Kaspar Schleiser */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" @@ -114,5 +113,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/pinetime/include/periph_conf.h b/boards/pinetime/include/periph_conf.h index 7455df2042..d7a6e1b9ad 100644 --- a/boards/pinetime/include/periph_conf.h +++ b/boards/pinetime/include/periph_conf.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_pinetime * @{ @@ -19,9 +21,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_32_1.h" #include "cfg_rtt_default.h" @@ -68,5 +67,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/pyboard/include/board.h b/boards/pyboard/include/board.h index 115b826e1b..5e7eb3f690 100644 --- a/boards/pyboard/include/board.h +++ b/boards/pyboard/include/board.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_pyboard * @{ @@ -18,9 +20,6 @@ * @author Kaspar Schleiser */ -#ifndef BOARD_H -#define BOARD_H - #include #include "cpu.h" @@ -52,5 +51,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/pyboard/include/gpio_params.h b/boards/pyboard/include/gpio_params.h index 3410f302f1..3c3e53d7e7 100644 --- a/boards/pyboard/include/gpio_params.h +++ b/boards/pyboard/include/gpio_params.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_pyboard * @{ @@ -18,9 +20,6 @@ * @author Kaspar Schleiser */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -50,5 +49,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/pyboard/include/periph_conf.h b/boards/pyboard/include/periph_conf.h index 16c3a37bf7..586af10b46 100644 --- a/boards/pyboard/include/periph_conf.h +++ b/boards/pyboard/include/periph_conf.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_pyboard * @{ @@ -18,9 +20,6 @@ * @author Kaspar Schleiser */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -161,5 +160,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/qn9080dk/include/board.h b/boards/qn9080dk/include/board.h index f41f273230..28ae4cd668 100644 --- a/boards/qn9080dk/include/board.h +++ b/boards/qn9080dk/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_qn9080dk * @{ @@ -16,9 +18,6 @@ * @author iosabi */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph_cpu.h" @@ -69,5 +68,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/qn9080dk/include/gpio_params.h b/boards/qn9080dk/include/gpio_params.h index 365a33d8d5..4f6a176f70 100644 --- a/boards/qn9080dk/include/gpio_params.h +++ b/boards/qn9080dk/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_qn9080dk * @{ @@ -16,9 +18,6 @@ * @author iosabi */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -67,5 +66,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/qn9080dk/include/periph_conf.h b/boards/qn9080dk/include/periph_conf.h index c4896b7dcc..caf7155e5d 100644 --- a/boards/qn9080dk/include/periph_conf.h +++ b/boards/qn9080dk/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_qn9080dk * @{ @@ -16,9 +18,6 @@ * @author iosabi */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "macros/units.h" @@ -135,5 +134,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/reel/include/board.h b/boards/reel/include/board.h index 0d8a41b5ae..70a753a6ae 100644 --- a/boards/reel/include/board.h +++ b/boards/reel/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_reel * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #ifdef __cplusplus @@ -109,5 +108,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/reel/include/gpio_params.h b/boards/reel/include/gpio_params.h index 26d78c9909..3cca666cd4 100644 --- a/boards/reel/include/gpio_params.h +++ b/boards/reel/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_reel * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -67,5 +66,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/reel/include/periph_conf.h b/boards/reel/include/periph_conf.h index a35a030b71..766b1dad64 100644 --- a/boards/reel/include/periph_conf.h +++ b/boards/reel/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_reel * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_32_1.h" #include "cfg_i2c_default.h" @@ -72,5 +71,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/remote-pa/include/adc_params.h b/boards/remote-pa/include/adc_params.h index 48def875b1..51510ded9c 100644 --- a/boards/remote-pa/include/adc_params.h +++ b/boards/remote-pa/include/adc_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_remote-pa * @{ @@ -17,9 +19,6 @@ * @author Antonio Lignan */ -#ifndef ADC_PARAMS_H -#define ADC_PARAMS_H - #include "board.h" #include "saul/periph.h" #include "periph/adc.h" @@ -49,5 +48,4 @@ static const saul_adc_params_t saul_adc_params[] = } #endif -#endif /* ADC_PARAMS_H */ /** @} */ diff --git a/boards/remote-pa/include/board.h b/boards/remote-pa/include/board.h index df53a0b950..62e29ecdb8 100644 --- a/boards/remote-pa/include/board.h +++ b/boards/remote-pa/include/board.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_remote-pa * @{ @@ -19,9 +21,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" @@ -77,5 +76,4 @@ #ifdef __cplusplus } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/remote-pa/include/gpio_params.h b/boards/remote-pa/include/gpio_params.h index 1effe5c9d7..b9b731a51b 100644 --- a/boards/remote-pa/include/gpio_params.h +++ b/boards/remote-pa/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_remote-pa * @{ @@ -16,9 +18,6 @@ * @author Sebastian Meiling */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -61,5 +60,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/remote-pa/include/periph_conf.h b/boards/remote-pa/include/periph_conf.h index f352349840..9e5f9da346 100644 --- a/boards/remote-pa/include/periph_conf.h +++ b/boards/remote-pa/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_remote-pa * @{ @@ -19,9 +21,6 @@ * @author Sebastian Meiling */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clk_default.h" #include "cfg_timer_default.h" @@ -90,5 +89,4 @@ static const adc_conf_t adc_config[] = { } /* end extern "C" */ #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/remote-reva/include/adc_params.h b/boards/remote-reva/include/adc_params.h index 6b27477acc..7b6a011c27 100644 --- a/boards/remote-reva/include/adc_params.h +++ b/boards/remote-reva/include/adc_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_remote-reva * @{ @@ -17,9 +19,6 @@ * @author Antonio Lignan */ -#ifndef ADC_PARAMS_H -#define ADC_PARAMS_H - #include "board.h" #include "saul/periph.h" #include "periph/adc.h" @@ -54,5 +53,4 @@ static const saul_adc_params_t saul_adc_params[] = } #endif -#endif /* ADC_PARAMS_H */ /** @} */ diff --git a/boards/remote-reva/include/board.h b/boards/remote-reva/include/board.h index 9da20ed4d8..fb484c1725 100644 --- a/boards/remote-reva/include/board.h +++ b/boards/remote-reva/include/board.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_remote-reva * @{ @@ -19,9 +21,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" @@ -113,5 +112,4 @@ #ifdef __cplusplus } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/remote-reva/include/gpio_params.h b/boards/remote-reva/include/gpio_params.h index 850033b566..428d9afc0d 100644 --- a/boards/remote-reva/include/gpio_params.h +++ b/boards/remote-reva/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_remote-reva * @{ @@ -16,9 +18,6 @@ * @author Sebastian Meiling */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -61,5 +60,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/remote-reva/include/periph_conf.h b/boards/remote-reva/include/periph_conf.h index b409b3b3f7..1283249298 100644 --- a/boards/remote-reva/include/periph_conf.h +++ b/boards/remote-reva/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_remote-reva * @{ @@ -19,9 +21,6 @@ * @author Sebastian Meiling */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cfg_adc_default.h" #include "cfg_clk_default.h" #include "cfg_i2c_default.h" @@ -37,5 +36,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/remote-revb/include/adc_params.h b/boards/remote-revb/include/adc_params.h index 28a46a3f5b..57d1f1f5e6 100644 --- a/boards/remote-revb/include/adc_params.h +++ b/boards/remote-revb/include/adc_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_remote-revb * @{ @@ -17,9 +19,6 @@ * @author Antonio Lignan */ -#ifndef ADC_PARAMS_H -#define ADC_PARAMS_H - #include "board.h" #include "saul/periph.h" #include "periph/adc.h" @@ -54,5 +53,4 @@ static const saul_adc_params_t saul_adc_params[] = } #endif -#endif /* ADC_PARAMS_H */ /** @} */ diff --git a/boards/remote-revb/include/arduino_iomap.h b/boards/remote-revb/include/arduino_iomap.h index 7d388eb53c..012991e886 100644 --- a/boards/remote-revb/include/arduino_iomap.h +++ b/boards/remote-revb/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_remote-revb * @{ @@ -19,9 +21,6 @@ * @author J. David Ibáñez */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -86,5 +85,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/remote-revb/include/board.h b/boards/remote-revb/include/board.h index 604b62baa9..3c9915a2b7 100644 --- a/boards/remote-revb/include/board.h +++ b/boards/remote-revb/include/board.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_remote-revb * @{ @@ -19,9 +21,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" @@ -128,5 +127,4 @@ #ifdef __cplusplus } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/remote-revb/include/gpio_params.h b/boards/remote-revb/include/gpio_params.h index 50294c035c..c39871834f 100644 --- a/boards/remote-revb/include/gpio_params.h +++ b/boards/remote-revb/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_remote-revb * @{ @@ -16,9 +18,6 @@ * @author Sebastian Meiling */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -61,5 +60,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/remote-revb/include/periph_conf.h b/boards/remote-revb/include/periph_conf.h index 64ae9c7bc5..0f23f392e4 100644 --- a/boards/remote-revb/include/periph_conf.h +++ b/boards/remote-revb/include/periph_conf.h @@ -8,6 +8,8 @@ * details. */ +#pragma once + /** * @ingroup boards_remote-revb * @{ @@ -20,9 +22,6 @@ * @author Sebastian Meiling */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cfg_adc_default.h" #include "cfg_clk_default.h" #include "cfg_i2c_default.h" @@ -38,5 +37,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/rpi-pico/include/board.h b/boards/rpi-pico/include/board.h index a2018c7eaf..516cd6db8f 100644 --- a/boards/rpi-pico/include/board.h +++ b/boards/rpi-pico/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_rpi_pico * @ingroup boards_rpi_pico_w @@ -17,9 +19,6 @@ * @author Marian Buschsieweke */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph_cpu.h" @@ -47,5 +46,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/rpi-pico/include/gpio_params.h b/boards/rpi-pico/include/gpio_params.h index f4f9bea9d4..0a3d26d4c0 100644 --- a/boards/rpi-pico/include/gpio_params.h +++ b/boards/rpi-pico/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_rpi_pico * @ingroup boards_rpi_pico_w @@ -19,9 +21,6 @@ * @author Nick Weiler */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -58,5 +57,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/rpi-pico/include/periph_conf.h b/boards/rpi-pico/include/periph_conf.h index 714d75a944..5c2308cc7f 100644 --- a/boards/rpi-pico/include/periph_conf.h +++ b/boards/rpi-pico/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_rpi_pico * @ingroup boards_rpi_pico_w @@ -16,9 +18,6 @@ * @author Marian Buschsieweke */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "kernel_defines.h" @@ -198,5 +197,4 @@ static const pwm_conf_t pwm_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/ruuvitag/include/board.h b/boards/ruuvitag/include/board.h index b2ca163676..007c96d8b6 100644 --- a/boards/ruuvitag/include/board.h +++ b/boards/ruuvitag/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_ruuvitag * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #ifdef __cplusplus @@ -82,5 +81,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/ruuvitag/include/periph_conf.h b/boards/ruuvitag/include/periph_conf.h index 9ec026a58d..ab8aa65a2c 100644 --- a/boards/ruuvitag/include/periph_conf.h +++ b/boards/ruuvitag/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_ruuvitag * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_32_1.h" #include "cfg_rtt_default.h" @@ -71,5 +70,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/sam4s-xpro/include/board.h b/boards/sam4s-xpro/include/board.h index 03876978dd..8c33b09ca0 100644 --- a/boards/sam4s-xpro/include/board.h +++ b/boards/sam4s-xpro/include/board.h @@ -5,6 +5,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sam4s-xpro * @{ @@ -16,9 +18,6 @@ * @author Dylan Laduranty */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph_cpu.h" @@ -58,5 +57,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/sam4s-xpro/include/periph_conf.h b/boards/sam4s-xpro/include/periph_conf.h index 6946fca7b1..772cc68628 100644 --- a/boards/sam4s-xpro/include/periph_conf.h +++ b/boards/sam4s-xpro/include/periph_conf.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (C) 2025 Mesotic SAS * @@ -16,9 +18,6 @@ * @author Dylan Laduranty */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -90,5 +89,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/samd10-xmini/include/board.h b/boards/samd10-xmini/include/board.h index 4e9dabdee0..d408b9f4d3 100644 --- a/boards/samd10-xmini/include/board.h +++ b/boards/samd10-xmini/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_samd10-xmini * @{ @@ -17,9 +19,6 @@ * @author Benjamin Valentin */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph_cpu.h" @@ -65,5 +64,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/samd10-xmini/include/gpio_params.h b/boards/samd10-xmini/include/gpio_params.h index 14e4c18db1..d67609eb49 100644 --- a/boards/samd10-xmini/include/gpio_params.h +++ b/boards/samd10-xmini/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_samd10-xmini * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -48,5 +47,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/samd10-xmini/include/periph_conf.h b/boards/samd10-xmini/include/periph_conf.h index 73ae58cc57..4d4eeda25c 100644 --- a/boards/samd10-xmini/include/periph_conf.h +++ b/boards/samd10-xmini/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_samd10-xmini * @{ @@ -17,9 +19,6 @@ * @author Benjamin Valentin */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "cpu.h" @@ -260,5 +259,4 @@ static const adc_conf_chan_t adc_channels[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/samd20-xpro/include/board.h b/boards/samd20-xpro/include/board.h index 7fa342ed20..138835ebbe 100644 --- a/boards/samd20-xpro/include/board.h +++ b/boards/samd20-xpro/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_samd20-xpro * @{ @@ -17,9 +19,6 @@ * @author Benjamin Valentin */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph_cpu.h" @@ -63,5 +62,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/samd20-xpro/include/gpio_params.h b/boards/samd20-xpro/include/gpio_params.h index 17f10be634..940946c00c 100644 --- a/boards/samd20-xpro/include/gpio_params.h +++ b/boards/samd20-xpro/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_samd20-xpro * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -49,5 +48,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/samd20-xpro/include/periph_conf.h b/boards/samd20-xpro/include/periph_conf.h index 560e705fe2..68161d073e 100644 --- a/boards/samd20-xpro/include/periph_conf.h +++ b/boards/samd20-xpro/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_samd20-xpro * @{ @@ -19,9 +21,6 @@ * @author Benjamin Valentin */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "cpu.h" @@ -328,5 +327,4 @@ static const adc_conf_chan_t adc_channels[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/samd21-xpro/include/board.h b/boards/samd21-xpro/include/board.h index 4f64a4da93..b37a6416b6 100644 --- a/boards/samd21-xpro/include/board.h +++ b/boards/samd21-xpro/include/board.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_samd21-xpro * @{ @@ -20,9 +22,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph_cpu.h" @@ -66,5 +65,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/samd21-xpro/include/gpio_params.h b/boards/samd21-xpro/include/gpio_params.h index c23fae9b71..8acf23ecc5 100644 --- a/boards/samd21-xpro/include/gpio_params.h +++ b/boards/samd21-xpro/include/gpio_params.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_samd21-xpro * @{ @@ -19,9 +21,6 @@ * @author Sebastian Meiling */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -50,5 +49,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/samd21-xpro/include/periph_conf.h b/boards/samd21-xpro/include/periph_conf.h index b3e7c49445..3a3d41cab5 100644 --- a/boards/samd21-xpro/include/periph_conf.h +++ b/boards/samd21-xpro/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_samd21-xpro * @{ @@ -19,9 +21,6 @@ * @author Dan Evans */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "cpu.h" @@ -394,5 +393,4 @@ static const sam0_common_usb_config_t sam_usbdev_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/same51-curiosity-nano/include/board.h b/boards/same51-curiosity-nano/include/board.h index 40829c1033..ddd4eab28c 100644 --- a/boards/same51-curiosity-nano/include/board.h +++ b/boards/same51-curiosity-nano/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_same51-curiosity-nano * @{ @@ -17,9 +19,6 @@ * @author Benjamin Valentin */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph/gpio.h" @@ -53,5 +52,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/same51-curiosity-nano/include/gpio_params.h b/boards/same51-curiosity-nano/include/gpio_params.h index 2f456bae1c..0d04b4b420 100644 --- a/boards/same51-curiosity-nano/include/gpio_params.h +++ b/boards/same51-curiosity-nano/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_same51-curiosity-nano * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -49,5 +48,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/same51-curiosity-nano/include/periph_conf.h b/boards/same51-curiosity-nano/include/periph_conf.h index 892750c2d3..aa45884afc 100644 --- a/boards/same51-curiosity-nano/include/periph_conf.h +++ b/boards/same51-curiosity-nano/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_same51-curiosity-nano * @{ @@ -17,9 +19,6 @@ * @author Benjamin Valentin */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -345,5 +344,4 @@ static const adc_conf_chan_t adc_channels[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/same54-xpro/include/board.h b/boards/same54-xpro/include/board.h index 6998ca486a..9232a02483 100644 --- a/boards/same54-xpro/include/board.h +++ b/boards/same54-xpro/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_same54-xpro * @{ @@ -17,9 +19,6 @@ * @author Benjamin Valentin */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph/gpio.h" @@ -99,5 +98,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/same54-xpro/include/eui_provider_params.h b/boards/same54-xpro/include/eui_provider_params.h index fe28dd4882..67abb74c18 100644 --- a/boards/same54-xpro/include/eui_provider_params.h +++ b/boards/same54-xpro/include/eui_provider_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_same54-xpro * @{ @@ -15,9 +17,6 @@ * * @author Benjamin Valentin */ -#ifndef EUI_PROVIDER_PARAMS_H -#define EUI_PROVIDER_PARAMS_H - #include "at24mac.h" #ifdef __cplusplus @@ -47,5 +46,4 @@ static inline int _at24mac_get_eui48(uint8_t index, eui48_t *addr) } #endif -#endif /* EUI_PROVIDER_PARAMS_H */ /** @} */ diff --git a/boards/same54-xpro/include/gpio_params.h b/boards/same54-xpro/include/gpio_params.h index 22cddefaaa..8d263f7ebc 100644 --- a/boards/same54-xpro/include/gpio_params.h +++ b/boards/same54-xpro/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_same54-xpro * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -55,5 +54,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/same54-xpro/include/periph_conf.h b/boards/same54-xpro/include/periph_conf.h index 17a4f0fea8..bde054d943 100644 --- a/boards/same54-xpro/include/periph_conf.h +++ b/boards/same54-xpro/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_same54-xpro * @{ @@ -17,9 +19,6 @@ * @author Benjamin Valentin */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -446,5 +445,4 @@ static const freqm_config_t freqm_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/saml21-xpro/include/arduino_iomap.h b/boards/saml21-xpro/include/arduino_iomap.h index 39c52691a5..39c20b1956 100644 --- a/boards/saml21-xpro/include/arduino_iomap.h +++ b/boards/saml21-xpro/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_saml21-xpro * @brief Mapping from board pins to Arduino pins @@ -14,9 +16,6 @@ * @{ */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "board.h" #include "periph/adc.h" #include "periph/uart.h" @@ -58,5 +57,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/saml21-xpro/include/board.h b/boards/saml21-xpro/include/board.h index 65643c8d2b..8b5f8dfe01 100644 --- a/boards/saml21-xpro/include/board.h +++ b/boards/saml21-xpro/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_saml21-xpro * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph/gpio.h" @@ -53,5 +52,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/saml21-xpro/include/gpio_params.h b/boards/saml21-xpro/include/gpio_params.h index 33275ff1fc..de6cc38f20 100644 --- a/boards/saml21-xpro/include/gpio_params.h +++ b/boards/saml21-xpro/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_saml21-xpro * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -49,5 +48,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/saml21-xpro/include/periph_conf.h b/boards/saml21-xpro/include/periph_conf.h index 4df7218731..98c93a79b7 100644 --- a/boards/saml21-xpro/include/periph_conf.h +++ b/boards/saml21-xpro/include/periph_conf.h @@ -8,6 +8,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_saml21-xpro * @{ @@ -20,9 +22,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -277,5 +276,4 @@ static const sam0_common_usb_config_t sam_usbdev_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/samr21-xpro/include/board.h b/boards/samr21-xpro/include/board.h index 617441a554..5c426059b5 100644 --- a/boards/samr21-xpro/include/board.h +++ b/boards/samr21-xpro/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_samr21-xpro * @{ @@ -18,9 +20,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph_cpu.h" @@ -113,5 +112,4 @@ void board_antenna_config(uint8_t antenna); } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/samr21-xpro/include/eui_provider_params.h b/boards/samr21-xpro/include/eui_provider_params.h index 3ffdc9fdd6..f45726cc35 100644 --- a/boards/samr21-xpro/include/eui_provider_params.h +++ b/boards/samr21-xpro/include/eui_provider_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_samr21-xpro * @{ @@ -15,9 +17,6 @@ * * @author Benjamin Valentin */ -#ifndef EUI_PROVIDER_PARAMS_H -#define EUI_PROVIDER_PARAMS_H - #include "edbg_eui.h" #ifdef __cplusplus @@ -51,5 +50,4 @@ static inline int _edbg_get_eui64(uint8_t index, eui64_t *addr) } #endif -#endif /* EUI_PROVIDER_PARAMS_H */ /** @} */ diff --git a/boards/samr21-xpro/include/gpio_params.h b/boards/samr21-xpro/include/gpio_params.h index e1a36f35cc..a808244d1a 100644 --- a/boards/samr21-xpro/include/gpio_params.h +++ b/boards/samr21-xpro/include/gpio_params.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_samr21-xpro * @{ @@ -19,9 +21,6 @@ * @author Sebastian Meiling */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -52,5 +51,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/samr21-xpro/include/openwsn_defs.h b/boards/samr21-xpro/include/openwsn_defs.h index 84450e2d5c..ebeba64c84 100644 --- a/boards/samr21-xpro/include/openwsn_defs.h +++ b/boards/samr21-xpro/include/openwsn_defs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_samr21-xpro * @{ @@ -16,9 +18,6 @@ * @author Francisco Molina */ -#ifndef OPENWSN_DEFS_H -#define OPENWSN_DEFS_H - #ifdef __cplusplus extern "C" { #endif @@ -44,5 +43,4 @@ extern "C" { } #endif -#endif /* OPENWSN_DEFS_H */ /** @} */ diff --git a/boards/samr21-xpro/include/periph_conf.h b/boards/samr21-xpro/include/periph_conf.h index 72be389a05..5d42db4e31 100644 --- a/boards/samr21-xpro/include/periph_conf.h +++ b/boards/samr21-xpro/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_samr21-xpro * @{ @@ -19,9 +21,6 @@ * @author Peter Kietzmann */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "cpu.h" @@ -341,5 +340,4 @@ static const sam0_common_usb_config_t sam_usbdev_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/samr30-xpro/include/board.h b/boards/samr30-xpro/include/board.h index 25a62607cf..108d1883a3 100644 --- a/boards/samr30-xpro/include/board.h +++ b/boards/samr30-xpro/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_samr30-xpro Atmel SAM R30 Xplained Pro * @ingroup boards @@ -18,9 +20,6 @@ * @author Baptiste Clenet */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph/gpio.h" @@ -101,5 +100,4 @@ void board_antenna_config(uint8_t antenna); } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/samr30-xpro/include/gpio_params.h b/boards/samr30-xpro/include/gpio_params.h index b4c9fad550..f49f818c19 100644 --- a/boards/samr30-xpro/include/gpio_params.h +++ b/boards/samr30-xpro/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_samr30-xpro * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -55,5 +54,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/samr30-xpro/include/periph_conf.h b/boards/samr30-xpro/include/periph_conf.h index e27ce06067..5a8d336dda 100644 --- a/boards/samr30-xpro/include/periph_conf.h +++ b/boards/samr30-xpro/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_samr30-xpro * @{ @@ -16,9 +18,6 @@ * @author Baptiste Clenet */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -200,5 +199,4 @@ static const sam0_common_usb_config_t sam_usbdev_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/samr34-xpro/include/board.h b/boards/samr34-xpro/include/board.h index 87a6337d41..81c32ee172 100644 --- a/boards/samr34-xpro/include/board.h +++ b/boards/samr34-xpro/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_samr34-xpro * @{ @@ -17,9 +19,6 @@ * @author Dylan Laduranty */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph/gpio.h" @@ -87,5 +86,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/samr34-xpro/include/gpio_params.h b/boards/samr34-xpro/include/gpio_params.h index dd69c28ecf..149dd05d18 100644 --- a/boards/samr34-xpro/include/gpio_params.h +++ b/boards/samr34-xpro/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_samr34-xpro * @{ @@ -16,9 +18,6 @@ * @author Dylan Laduranty */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -55,5 +54,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/samr34-xpro/include/periph_conf.h b/boards/samr34-xpro/include/periph_conf.h index 052d281873..7dbe675928 100644 --- a/boards/samr34-xpro/include/periph_conf.h +++ b/boards/samr34-xpro/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_samr34-xpro * @{ @@ -17,9 +19,6 @@ * @author Dylan Laduranty */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "macros/units.h" @@ -230,5 +229,4 @@ static const sam0_common_usb_config_t sam_usbdev_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/seeedstudio-gd32/include/board.h b/boards/seeedstudio-gd32/include/board.h index ec05c3edf7..542388e22c 100644 --- a/boards/seeedstudio-gd32/include/board.h +++ b/boards/seeedstudio-gd32/include/board.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_seeedstudio-gd32 * @{ @@ -18,9 +20,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #include "periph/gpio.h" @@ -90,5 +89,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/seeedstudio-gd32/include/gpio_params.h b/boards/seeedstudio-gd32/include/gpio_params.h index 4d4d38c208..96048ce0c9 100644 --- a/boards/seeedstudio-gd32/include/gpio_params.h +++ b/boards/seeedstudio-gd32/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_seeedstudio-gd32 * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -66,5 +65,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/seeedstudio-gd32/include/periph_conf.h b/boards/seeedstudio-gd32/include/periph_conf.h index 5dbb03ad13..ecd6f2d676 100644 --- a/boards/seeedstudio-gd32/include/periph_conf.h +++ b/boards/seeedstudio-gd32/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_seeedstudio-gd32 * @{ @@ -18,9 +20,6 @@ * @author Gunar Schorcht */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "macros/units.h" #ifndef CONFIG_BOARD_HAS_HXTAL @@ -121,5 +120,4 @@ static const pwm_conf_t pwm_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/seeedstudio-xiao-esp32c3/include/arduino_iomap.h b/boards/seeedstudio-xiao-esp32c3/include/arduino_iomap.h index ed4035dc4f..5a6a92c850 100644 --- a/boards/seeedstudio-xiao-esp32c3/include/arduino_iomap.h +++ b/boards/seeedstudio-xiao-esp32c3/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_seeedstudio-xiao-esp32c3 * @{ @@ -16,9 +18,6 @@ * @author David Picard */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -60,5 +59,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/seeedstudio-xiao-esp32c3/include/board.h b/boards/seeedstudio-xiao-esp32c3/include/board.h index 488694ae73..900bd16155 100644 --- a/boards/seeedstudio-xiao-esp32c3/include/board.h +++ b/boards/seeedstudio-xiao-esp32c3/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_seeedstudio-xiao-esp32c3 * @brief Board definitions for the Seeed Studio Xiao ESP32-C3 board @@ -15,9 +17,6 @@ * @author David Picard */ -#ifndef BOARD_H -#define BOARD_H - #include #if MODULE_PERIPH_INIT_BUTTONS || DOXYGEN @@ -76,5 +75,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/seeedstudio-xiao-esp32c3/include/gpio_params.h b/boards/seeedstudio-xiao-esp32c3/include/gpio_params.h index b01479becc..86e38c4d10 100644 --- a/boards/seeedstudio-xiao-esp32c3/include/gpio_params.h +++ b/boards/seeedstudio-xiao-esp32c3/include/gpio_params.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once /** * @ingroup boards_seeedstudio-xiao-esp32c3 @@ -43,5 +42,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/seeedstudio-xiao-esp32c3/include/periph_conf.h b/boards/seeedstudio-xiao-esp32c3/include/periph_conf.h index e0b45ec112..334db9539b 100644 --- a/boards/seeedstudio-xiao-esp32c3/include/periph_conf.h +++ b/boards/seeedstudio-xiao-esp32c3/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_seeedstudio-xiao-esp32c3 * @brief Peripheral configurations for the Seeed Studio ESP32-C3 Xiao board @@ -27,9 +29,6 @@ * @author David Picard */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #ifdef __cplusplus @@ -154,5 +153,4 @@ extern "C" { /* include common peripheral definitions as last step */ #include "periph_conf_common.h" -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/seeeduino_arch-pro/include/board.h b/boards/seeeduino_arch-pro/include/board.h index 0a01e8e2b8..bf44c1bbb9 100644 --- a/boards/seeeduino_arch-pro/include/board.h +++ b/boards/seeeduino_arch-pro/include/board.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_seeduino_arch-pro * @{ @@ -19,9 +21,6 @@ * @author Bas Stottelaar */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph/gpio.h" @@ -57,5 +56,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/seeeduino_arch-pro/include/gpio_params.h b/boards/seeeduino_arch-pro/include/gpio_params.h index d599c7203f..5a59e25bf4 100644 --- a/boards/seeeduino_arch-pro/include/gpio_params.h +++ b/boards/seeeduino_arch-pro/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_seeduino_arch-pro * @{ @@ -16,9 +18,6 @@ * @author Bas Stottelaar */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -61,5 +60,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/seeeduino_arch-pro/include/periph_conf.h b/boards/seeeduino_arch-pro/include/periph_conf.h index 37ced10523..9be9327e8c 100644 --- a/boards/seeeduino_arch-pro/include/periph_conf.h +++ b/boards/seeeduino_arch-pro/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_seeduino_arch-pro * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "vendor/conf.h" @@ -82,5 +81,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/seeeduino_xiao/include/board.h b/boards/seeeduino_xiao/include/board.h index 5eaf74540c..13d7d3d6ca 100644 --- a/boards/seeeduino_xiao/include/board.h +++ b/boards/seeeduino_xiao/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_seeeduino_xiao * @brief Support for the Seeeduino XIAO board. @@ -19,9 +21,6 @@ * @author Nick Weiler */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph/gpio.h" @@ -73,5 +72,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/seeeduino_xiao/include/gpio_params.h b/boards/seeeduino_xiao/include/gpio_params.h index 0ca6a57546..d3915dccea 100644 --- a/boards/seeeduino_xiao/include/gpio_params.h +++ b/boards/seeeduino_xiao/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_seeeduino_xiao * @{ @@ -18,9 +20,6 @@ * @author Nick Weiler */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -57,5 +56,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/seeeduino_xiao/include/periph_conf.h b/boards/seeeduino_xiao/include/periph_conf.h index 7d0ac748fc..c6951d5f09 100644 --- a/boards/seeeduino_xiao/include/periph_conf.h +++ b/boards/seeeduino_xiao/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_seeeduino_xiao * @{ @@ -18,9 +20,6 @@ * @author Nick Weiler */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "cpu.h" @@ -237,5 +236,4 @@ static const sam0_common_usb_config_t sam_usbdev_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/sensebox_samd21/include/board.h b/boards/sensebox_samd21/include/board.h index 2d28c0e678..95f6a2fcaa 100644 --- a/boards/sensebox_samd21/include/board.h +++ b/boards/sensebox_samd21/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sensebox_samd21 * @brief Support for the SenseBox MCU with SAMD21 board. @@ -19,9 +21,6 @@ * @author Leandro Lanzieri */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph_cpu.h" @@ -175,5 +174,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/sensebox_samd21/include/gpio_params.h b/boards/sensebox_samd21/include/gpio_params.h index 50b2afcd7c..acd997146a 100644 --- a/boards/sensebox_samd21/include/gpio_params.h +++ b/boards/sensebox_samd21/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sensebox_samd21 * @{ @@ -16,9 +18,6 @@ * @author Leandro Lanzieri */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -52,5 +51,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/sensebox_samd21/include/periph_conf.h b/boards/sensebox_samd21/include/periph_conf.h index a21d572b52..67826d481f 100644 --- a/boards/sensebox_samd21/include/periph_conf.h +++ b/boards/sensebox_samd21/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sensebox_samd21 * @{ @@ -17,9 +19,6 @@ * @author Leandro Lanzieri */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "cpu.h" @@ -265,5 +264,4 @@ static const sam0_common_usb_config_t sam_usbdev_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/sensebox_samd21/include/sdcard_spi_params.h b/boards/sensebox_samd21/include/sdcard_spi_params.h index 9de34e8cd3..44a6a0e7de 100644 --- a/boards/sensebox_samd21/include/sdcard_spi_params.h +++ b/boards/sensebox_samd21/include/sdcard_spi_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sensebox_samd21 * @{ @@ -18,9 +20,6 @@ * @author Leandro Lanzieri */ -#ifndef SDCARD_SPI_PARAMS_H -#define SDCARD_SPI_PARAMS_H - #include "board.h" #ifdef __cplusplus @@ -51,5 +50,4 @@ static const sdcard_spi_params_t sdcard_spi_params[] = { } #endif -#endif /* SDCARD_SPI_PARAMS_H */ /** @} */ diff --git a/boards/serpente/include/board.h b/boards/serpente/include/board.h index 09cd52d730..c04a271852 100644 --- a/boards/serpente/include/board.h +++ b/boards/serpente/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_serpente * @brief Support for the Serpente board. @@ -18,9 +20,6 @@ * @author Benjamin Valentin */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph/gpio.h" @@ -93,5 +92,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/serpente/include/periph_conf.h b/boards/serpente/include/periph_conf.h index 289a1c9687..65ab5cb999 100644 --- a/boards/serpente/include/periph_conf.h +++ b/boards/serpente/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_serpente * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "cpu.h" @@ -300,5 +299,4 @@ static const sam0_common_usb_config_t sam_usbdev_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/serpente/include/pwm_params.h b/boards/serpente/include/pwm_params.h index d2237849b1..441c888b0d 100644 --- a/boards/serpente/include/pwm_params.h +++ b/boards/serpente/include/pwm_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_serpente * @{ @@ -16,9 +18,6 @@ * @author Marian Buschsieweke */ -#ifndef PWM_PARAMS_H -#define PWM_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -44,5 +43,4 @@ static const saul_pwm_rgb_params_t saul_pwm_rgb_params[] = } #endif -#endif /* PWM_PARAMS_H */ /** @} */ diff --git a/boards/sipeed-longan-nano/include/board.h b/boards/sipeed-longan-nano/include/board.h index 9fd6341aab..7a3f6beb8a 100644 --- a/boards/sipeed-longan-nano/include/board.h +++ b/boards/sipeed-longan-nano/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sipeed_longan_nano * @{ @@ -17,9 +19,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #include "periph/gpio.h" @@ -100,5 +99,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/sipeed-longan-nano/include/gpio_params.h b/boards/sipeed-longan-nano/include/gpio_params.h index 5b88d09c00..5e757133cf 100644 --- a/boards/sipeed-longan-nano/include/gpio_params.h +++ b/boards/sipeed-longan-nano/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sipeed_longan_nano * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -60,5 +59,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/sipeed-longan-nano/include/periph_conf.h b/boards/sipeed-longan-nano/include/periph_conf.h index 496d8c62e3..98c1489b1a 100644 --- a/boards/sipeed-longan-nano/include/periph_conf.h +++ b/boards/sipeed-longan-nano/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sipeed_longan_nano * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "macros/units.h" #ifndef CONFIG_BOARD_HAS_HXTAL @@ -148,5 +147,4 @@ static const pwm_conf_t pwm_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/slstk3400a/include/board.h b/boards/slstk3400a/include/board.h index b27d0b80ec..60784d36c3 100644 --- a/boards/slstk3400a/include/board.h +++ b/boards/slstk3400a/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_slstk3400a * @{ @@ -18,9 +20,6 @@ * @author Akshai M */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph/gpio.h" @@ -117,5 +116,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/slstk3400a/include/gpio_params.h b/boards/slstk3400a/include/gpio_params.h index 9299c4b100..7f397ce400 100644 --- a/boards/slstk3400a/include/gpio_params.h +++ b/boards/slstk3400a/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_slstk3400a * @{ @@ -16,9 +18,6 @@ * @author Bas Stottelaar */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -59,5 +58,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/slstk3400a/include/periph_conf.h b/boards/slstk3400a/include/periph_conf.h index cedc320c3f..ea8e23bf79 100644 --- a/boards/slstk3400a/include/periph_conf.h +++ b/boards/slstk3400a/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_slstk3400a * @{ @@ -18,9 +20,6 @@ * @author Akshai M */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cpu.h" #include "periph_cpu.h" #include "em_cmu.h" @@ -182,5 +181,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/slstk3401a/include/board.h b/boards/slstk3401a/include/board.h index 20029e413d..37549aa66f 100644 --- a/boards/slstk3401a/include/board.h +++ b/boards/slstk3401a/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_slstk3401a * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph/adc.h" @@ -124,5 +123,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/slstk3401a/include/gpio_params.h b/boards/slstk3401a/include/gpio_params.h index 76a0ae03f2..c539885d73 100644 --- a/boards/slstk3401a/include/gpio_params.h +++ b/boards/slstk3401a/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_slstk3401a * @{ @@ -16,9 +18,6 @@ * @author Bas Stottelaar */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -59,5 +58,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/slstk3401a/include/periph_conf.h b/boards/slstk3401a/include/periph_conf.h index c6541c9535..6b420afbd4 100644 --- a/boards/slstk3401a/include/periph_conf.h +++ b/boards/slstk3401a/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_slstk3401a * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cpu.h" #include "periph_cpu.h" #include "em_cmu.h" @@ -211,5 +210,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/slstk3402a/include/board.h b/boards/slstk3402a/include/board.h index 19e3658969..bdf912d92f 100644 --- a/boards/slstk3402a/include/board.h +++ b/boards/slstk3402a/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_slstk3402a * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph/adc.h" @@ -124,5 +123,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/slstk3402a/include/gpio_params.h b/boards/slstk3402a/include/gpio_params.h index 8e6ad91866..d7ff165dad 100644 --- a/boards/slstk3402a/include/gpio_params.h +++ b/boards/slstk3402a/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_slstk3402a * @{ @@ -16,9 +18,6 @@ * @author Bas Stottelaar */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -59,5 +58,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/slstk3402a/include/periph_conf.h b/boards/slstk3402a/include/periph_conf.h index b69cd8773a..a20118311e 100644 --- a/boards/slstk3402a/include/periph_conf.h +++ b/boards/slstk3402a/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_slstk3402a * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cpu.h" #include "periph_cpu.h" #include "em_cmu.h" @@ -215,5 +214,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/slstk3701a/include/board.h b/boards/slstk3701a/include/board.h index 6eff534c58..3db6ab2aff 100644 --- a/boards/slstk3701a/include/board.h +++ b/boards/slstk3701a/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_slstk3701a * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph/gpio.h" @@ -134,5 +133,4 @@ void board_init(void); } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/slstk3701a/include/gpio_params.h b/boards/slstk3701a/include/gpio_params.h index 699df52cc3..d35b5c6d8d 100644 --- a/boards/slstk3701a/include/gpio_params.h +++ b/boards/slstk3701a/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_slstk3701a * @{ @@ -16,9 +18,6 @@ * @author Bas Stottelaar */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -59,5 +58,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/slstk3701a/include/periph_conf.h b/boards/slstk3701a/include/periph_conf.h index a188846d49..7240382372 100644 --- a/boards/slstk3701a/include/periph_conf.h +++ b/boards/slstk3701a/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_slstk3701a * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cpu.h" #include "periph_cpu.h" #include "em_cmu.h" @@ -261,5 +260,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/sltb001a/include/board.h b/boards/sltb001a/include/board.h index 835fe183b6..6fa4d270f7 100644 --- a/boards/sltb001a/include/board.h +++ b/boards/sltb001a/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sltb001a * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph/adc.h" @@ -213,5 +212,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/sltb001a/include/gpio_params.h b/boards/sltb001a/include/gpio_params.h index d9fd683c14..13daa55865 100644 --- a/boards/sltb001a/include/gpio_params.h +++ b/boards/sltb001a/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sltb001a * @{ @@ -16,9 +18,6 @@ * @author Bas Stottelaar */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -59,5 +58,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/sltb001a/include/periph_conf.h b/boards/sltb001a/include/periph_conf.h index 42760a8240..d537f36d13 100644 --- a/boards/sltb001a/include/periph_conf.h +++ b/boards/sltb001a/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sltb001a * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cpu.h" #include "periph_cpu.h" #include "em_cmu.h" @@ -211,5 +210,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/sltb009a/include/board.h b/boards/sltb009a/include/board.h index 6d9ca35209..57fb30ac4f 100644 --- a/boards/sltb009a/include/board.h +++ b/boards/sltb009a/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sltb009a * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph/gpio.h" @@ -102,5 +101,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/sltb009a/include/gpio_params.h b/boards/sltb009a/include/gpio_params.h index 31de8879dd..71b7e6fe41 100644 --- a/boards/sltb009a/include/gpio_params.h +++ b/boards/sltb009a/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sltb009a * @{ @@ -16,9 +18,6 @@ * @author Bas Stottelaar */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -59,5 +58,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/sltb009a/include/periph_conf.h b/boards/sltb009a/include/periph_conf.h index 2823654e35..6a8ced4419 100644 --- a/boards/sltb009a/include/periph_conf.h +++ b/boards/sltb009a/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sltb009a * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cpu.h" #include "periph_cpu.h" #include "em_cmu.h" @@ -226,5 +225,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/slwstk6220a/include/board.h b/boards/slwstk6220a/include/board.h index 1e6be82c7c..c8faba9efc 100644 --- a/boards/slwstk6220a/include/board.h +++ b/boards/slwstk6220a/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_slwstk6220a * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph/adc.h" @@ -125,5 +124,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/slwstk6220a/include/gpio_params.h b/boards/slwstk6220a/include/gpio_params.h index fa33889e19..1cbb55bf6f 100644 --- a/boards/slwstk6220a/include/gpio_params.h +++ b/boards/slwstk6220a/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_slwstk6220a * @{ @@ -16,9 +18,6 @@ * @author Bas Stottelaar */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -59,5 +58,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/slwstk6220a/include/periph_conf.h b/boards/slwstk6220a/include/periph_conf.h index b9ec74f81f..181702e0aa 100644 --- a/boards/slwstk6220a/include/periph_conf.h +++ b/boards/slwstk6220a/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_slwstk6220a * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cpu.h" #include "periph_cpu.h" #include "em_cmu.h" @@ -248,5 +247,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/sodaq-autonomo/include/arduino_iomap.h b/boards/sodaq-autonomo/include/arduino_iomap.h index dfd298aa3f..e4704b1820 100644 --- a/boards/sodaq-autonomo/include/arduino_iomap.h +++ b/boards/sodaq-autonomo/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-autonomo * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/adc.h" #include "periph/gpio.h" @@ -193,5 +192,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/sodaq-autonomo/include/board.h b/boards/sodaq-autonomo/include/board.h index fe1350bedd..22aeab50f3 100644 --- a/boards/sodaq-autonomo/include/board.h +++ b/boards/sodaq-autonomo/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-autonomo * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" #include "periph/gpio.h" @@ -45,5 +44,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/sodaq-autonomo/include/gpio_params.h b/boards/sodaq-autonomo/include/gpio_params.h index 13edfc09c0..43a161684d 100644 --- a/boards/sodaq-autonomo/include/gpio_params.h +++ b/boards/sodaq-autonomo/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-autonomo * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -42,5 +41,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/sodaq-autonomo/include/periph_conf.h b/boards/sodaq-autonomo/include/periph_conf.h index 66127f3f73..eec722df8a 100644 --- a/boards/sodaq-autonomo/include/periph_conf.h +++ b/boards/sodaq-autonomo/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-autonomo * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "cpu.h" @@ -204,5 +203,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/sodaq-explorer/include/arduino_iomap.h b/boards/sodaq-explorer/include/arduino_iomap.h index 2841c19c55..d429aa1434 100644 --- a/boards/sodaq-explorer/include/arduino_iomap.h +++ b/boards/sodaq-explorer/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-explorer * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/adc.h" #include "periph/gpio.h" @@ -155,5 +154,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/sodaq-explorer/include/board.h b/boards/sodaq-explorer/include/board.h index 6c98e9d231..5e4588461b 100644 --- a/boards/sodaq-explorer/include/board.h +++ b/boards/sodaq-explorer/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-explorer * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" #include "periph/gpio.h" @@ -61,5 +60,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/sodaq-explorer/include/gpio_params.h b/boards/sodaq-explorer/include/gpio_params.h index ccf5a573dd..5820a2da3e 100644 --- a/boards/sodaq-explorer/include/gpio_params.h +++ b/boards/sodaq-explorer/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-explorer * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -48,5 +47,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/sodaq-explorer/include/periph_conf.h b/boards/sodaq-explorer/include/periph_conf.h index 117532fa08..0740526c86 100644 --- a/boards/sodaq-explorer/include/periph_conf.h +++ b/boards/sodaq-explorer/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-explorer * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_default.h" #include "cfg_rtc_default.h" @@ -148,5 +147,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/sodaq-one/include/arduino_iomap.h b/boards/sodaq-one/include/arduino_iomap.h index 32e72f0981..e28e384c86 100644 --- a/boards/sodaq-one/include/arduino_iomap.h +++ b/boards/sodaq-one/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-one * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/adc.h" #include "periph/gpio.h" @@ -138,5 +137,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/sodaq-one/include/board.h b/boards/sodaq-one/include/board.h index 2823680382..c5a3526ce8 100644 --- a/boards/sodaq-one/include/board.h +++ b/boards/sodaq-one/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-one * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" #include "periph/gpio.h" @@ -106,5 +105,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/sodaq-one/include/gpio_params.h b/boards/sodaq-one/include/gpio_params.h index e742b0d66b..39926689cf 100644 --- a/boards/sodaq-one/include/gpio_params.h +++ b/boards/sodaq-one/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-one * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -58,5 +57,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/sodaq-one/include/periph_conf.h b/boards/sodaq-one/include/periph_conf.h index e9af038fd5..877fda8fd3 100644 --- a/boards/sodaq-one/include/periph_conf.h +++ b/boards/sodaq-one/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-one * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "cpu.h" @@ -160,5 +159,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/sodaq-sara-aff/include/arduino_iomap.h b/boards/sodaq-sara-aff/include/arduino_iomap.h index 63c2b1644e..dedf7ae435 100644 --- a/boards/sodaq-sara-aff/include/arduino_iomap.h +++ b/boards/sodaq-sara-aff/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-sara-aff * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/adc.h" #include "periph/gpio.h" @@ -154,5 +153,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/sodaq-sara-aff/include/board.h b/boards/sodaq-sara-aff/include/board.h index 2008676a53..0a3ed8a0f9 100644 --- a/boards/sodaq-sara-aff/include/board.h +++ b/boards/sodaq-sara-aff/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-sara-aff * @{ @@ -16,9 +18,6 @@ * @author Leandro Lanzieri */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" #include "periph/gpio.h" @@ -153,5 +152,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/sodaq-sara-aff/include/gpio_params.h b/boards/sodaq-sara-aff/include/gpio_params.h index 6bf5328189..4fe8587192 100644 --- a/boards/sodaq-sara-aff/include/gpio_params.h +++ b/boards/sodaq-sara-aff/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-sara-aff * @{ @@ -16,9 +18,6 @@ * @author Leandro Lanzieri */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -60,5 +59,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/sodaq-sara-aff/include/periph_conf.h b/boards/sodaq-sara-aff/include/periph_conf.h index f53eccc048..403a2ff24e 100644 --- a/boards/sodaq-sara-aff/include/periph_conf.h +++ b/boards/sodaq-sara-aff/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-sara-aff * @{ @@ -18,9 +20,6 @@ * @author Leandro Lanzieri */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "cpu.h" @@ -131,5 +130,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/sodaq-sara-sff/include/arduino_iomap.h b/boards/sodaq-sara-sff/include/arduino_iomap.h index e61852126c..1e48d74a87 100644 --- a/boards/sodaq-sara-sff/include/arduino_iomap.h +++ b/boards/sodaq-sara-sff/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-sara-sff * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/adc.h" #include "periph/gpio.h" @@ -141,5 +140,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/sodaq-sara-sff/include/board.h b/boards/sodaq-sara-sff/include/board.h index 25503fd61b..79763cd246 100644 --- a/boards/sodaq-sara-sff/include/board.h +++ b/boards/sodaq-sara-sff/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-sara-sff * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" #include "periph/gpio.h" @@ -183,5 +182,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/sodaq-sara-sff/include/gpio_params.h b/boards/sodaq-sara-sff/include/gpio_params.h index be20a1f72b..17098eb9ad 100644 --- a/boards/sodaq-sara-sff/include/gpio_params.h +++ b/boards/sodaq-sara-sff/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-sara-sff * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -61,5 +60,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/sodaq-sara-sff/include/periph_conf.h b/boards/sodaq-sara-sff/include/periph_conf.h index 0b3216aef0..0406571df5 100644 --- a/boards/sodaq-sara-sff/include/periph_conf.h +++ b/boards/sodaq-sara-sff/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_sodaq-sara-sff * @{ @@ -16,9 +18,6 @@ * @author Kees Bakker */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "cpu.h" @@ -159,5 +158,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/spark-core/include/board.h b/boards/spark-core/include/board.h index 0dc6e1864c..eabc93afa6 100644 --- a/boards/spark-core/include/board.h +++ b/boards/spark-core/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_spark-core * @{ @@ -16,9 +18,6 @@ * @author Christian Mehlis */ -#ifndef BOARD_H -#define BOARD_H - #include #include "cpu.h" @@ -85,5 +84,4 @@ #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/spark-core/include/periph_conf.h b/boards/spark-core/include/periph_conf.h index 5e14320191..7a000ecb20 100644 --- a/boards/spark-core/include/periph_conf.h +++ b/boards/spark-core/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_spark-core * @{ @@ -16,9 +18,6 @@ * @author Christian Mehlis */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "clk_conf.h" @@ -96,5 +95,4 @@ static const spi_conf_t spi_config[] = { } /* end extern "C" */ #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/stk3200/include/board.h b/boards/stk3200/include/board.h index d507e17cb6..4ddc321c42 100644 --- a/boards/stk3200/include/board.h +++ b/boards/stk3200/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stk3200 * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph/adc.h" @@ -106,5 +105,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/stk3200/include/gpio_params.h b/boards/stk3200/include/gpio_params.h index b4d981dbe2..a632cd0c61 100644 --- a/boards/stk3200/include/gpio_params.h +++ b/boards/stk3200/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stk3200 * @{ @@ -16,9 +18,6 @@ * @author Bas Stottelaar */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -59,5 +58,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/stk3200/include/periph_conf.h b/boards/stk3200/include/periph_conf.h index aec7d80889..fabb168e2c 100644 --- a/boards/stk3200/include/periph_conf.h +++ b/boards/stk3200/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stk3200 * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cpu.h" #include "periph_cpu.h" #include "em_cmu.h" @@ -174,5 +173,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/stk3600/include/board.h b/boards/stk3600/include/board.h index f99de30690..784194834c 100644 --- a/boards/stk3600/include/board.h +++ b/boards/stk3600/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stk3600 * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph/adc.h" @@ -100,5 +99,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/stk3600/include/gpio_params.h b/boards/stk3600/include/gpio_params.h index b64fe95b22..1b86ebf31a 100644 --- a/boards/stk3600/include/gpio_params.h +++ b/boards/stk3600/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stk3600 * @{ @@ -16,9 +18,6 @@ * @author Bas Stottelaar */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -59,5 +58,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/stk3600/include/periph_conf.h b/boards/stk3600/include/periph_conf.h index 021663b7e0..61fb4809a1 100644 --- a/boards/stk3600/include/periph_conf.h +++ b/boards/stk3600/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stk3600 * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cpu.h" #include "periph_cpu.h" #include "em_cmu.h" @@ -263,5 +262,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/stk3700/include/board.h b/boards/stk3700/include/board.h index 7b398c5908..110686a14e 100644 --- a/boards/stk3700/include/board.h +++ b/boards/stk3700/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stk3700 * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph/adc.h" @@ -100,5 +99,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/stk3700/include/gpio_params.h b/boards/stk3700/include/gpio_params.h index 40cc181381..9d0bd0f6a6 100644 --- a/boards/stk3700/include/gpio_params.h +++ b/boards/stk3700/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stk3700 * @{ @@ -16,9 +18,6 @@ * @author Bas Stottelaar */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -59,5 +58,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/stk3700/include/periph_conf.h b/boards/stk3700/include/periph_conf.h index 2b2e51bd00..d34ab82f3c 100644 --- a/boards/stk3700/include/periph_conf.h +++ b/boards/stk3700/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stk3700 * @{ @@ -17,9 +19,6 @@ * @author Bas Stottelaar */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "cpu.h" #include "periph_cpu.h" #include "em_cmu.h" @@ -263,5 +262,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/stm32f030f4-demo/include/board.h b/boards/stm32f030f4-demo/include/board.h index 5326617568..dce6ec7802 100644 --- a/boards/stm32f030f4-demo/include/board.h +++ b/boards/stm32f030f4-demo/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32f030f4-demo * @@ -21,9 +23,6 @@ * @author Benjamin Valentin */ -#ifndef BOARD_H -#define BOARD_H - #ifdef __cplusplus extern "C" { #endif @@ -51,5 +50,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/stm32f030f4-demo/include/periph_conf.h b/boards/stm32f030f4-demo/include/periph_conf.h index 5ec1c429aa..319ead9354 100644 --- a/boards/stm32f030f4-demo/include/periph_conf.h +++ b/boards/stm32f030f4-demo/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32f030f4-demo * @{ @@ -19,9 +21,6 @@ * @author Benjamin Valentin */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an HSE */ #ifndef CONFIG_BOARD_HAS_HSE #define CONFIG_BOARD_HAS_HSE 1 @@ -146,5 +145,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/stm32f0discovery/include/board.h b/boards/stm32f0discovery/include/board.h index 5e7eb49a86..9efb4d7f02 100644 --- a/boards/stm32f0discovery/include/board.h +++ b/boards/stm32f0discovery/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_stm32f0discovery * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #ifdef __cplusplus @@ -53,5 +52,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/stm32f0discovery/include/gpio_params.h b/boards/stm32f0discovery/include/gpio_params.h index 4000d384bd..293bfabf13 100644 --- a/boards/stm32f0discovery/include/gpio_params.h +++ b/boards/stm32f0discovery/include/gpio_params.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32f0discovery * @{ @@ -19,9 +21,6 @@ * @author Sebastian Meiling */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -55,5 +54,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/stm32f0discovery/include/periph_conf.h b/boards/stm32f0discovery/include/periph_conf.h index 4356640c99..56947cf49c 100644 --- a/boards/stm32f0discovery/include/periph_conf.h +++ b/boards/stm32f0discovery/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_stm32f0discovery * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an HSE */ #ifndef CONFIG_BOARD_HAS_HSE #define CONFIG_BOARD_HAS_HSE 1 @@ -144,5 +143,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/stm32f3discovery/include/board.h b/boards/stm32f3discovery/include/board.h index b9ec254d49..06ca476351 100644 --- a/boards/stm32f3discovery/include/board.h +++ b/boards/stm32f3discovery/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_stm32f3discovery * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #ifdef __cplusplus @@ -94,5 +93,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/stm32f3discovery/include/gpio_params.h b/boards/stm32f3discovery/include/gpio_params.h index 72d1296ff4..2b359d16bf 100644 --- a/boards/stm32f3discovery/include/gpio_params.h +++ b/boards/stm32f3discovery/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32f3discovery * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -83,5 +82,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/stm32f3discovery/include/periph_conf.h b/boards/stm32f3discovery/include/periph_conf.h index 437116f9d9..8343ad4a99 100644 --- a/boards/stm32f3discovery/include/periph_conf.h +++ b/boards/stm32f3discovery/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32f3discovery * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an HSE */ #ifndef CONFIG_BOARD_HAS_HSE #define CONFIG_BOARD_HAS_HSE 1 @@ -212,5 +211,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/stm32f429i-disc1/include/board.h b/boards/stm32f429i-disc1/include/board.h index 3f24d7f6e7..a4c429d8e9 100644 --- a/boards/stm32f429i-disc1/include/board.h +++ b/boards/stm32f429i-disc1/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_stm32f429i-disc1 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -70,5 +69,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/stm32f429i-disc1/include/gpio_params.h b/boards/stm32f429i-disc1/include/gpio_params.h index 94e31e8d09..efa9aafda1 100644 --- a/boards/stm32f429i-disc1/include/gpio_params.h +++ b/boards/stm32f429i-disc1/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32f429i-disc1 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -52,5 +51,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/stm32f429i-disc1/include/periph_conf.h b/boards/stm32f429i-disc1/include/periph_conf.h index 2857f3d058..710f76fd25 100644 --- a/boards/stm32f429i-disc1/include/periph_conf.h +++ b/boards/stm32f429i-disc1/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32f429i-disc1 * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -241,5 +240,4 @@ static const fmc_bank_conf_t fmc_bank_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/stm32f469i-disco/include/board.h b/boards/stm32f469i-disco/include/board.h index 6e319ce314..9b06f7f13d 100644 --- a/boards/stm32f469i-disco/include/board.h +++ b/boards/stm32f469i-disco/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_stm32f469i-disco * @{ @@ -15,9 +17,6 @@ * * @author Luis A. Ruiz */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -65,5 +64,4 @@ extern "C" #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/stm32f469i-disco/include/gpio_params.h b/boards/stm32f469i-disco/include/gpio_params.h index 33212adb55..4aa511100d 100644 --- a/boards/stm32f469i-disco/include/gpio_params.h +++ b/boards/stm32f469i-disco/include/gpio_params.h @@ -1,5 +1,4 @@ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H +#pragma once #include "board.h" #include "saul/periph.h" @@ -50,5 +49,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/stm32f469i-disco/include/periph_conf.h b/boards/stm32f469i-disco/include/periph_conf.h index 0a017aab85..857249af27 100644 --- a/boards/stm32f469i-disco/include/periph_conf.h +++ b/boards/stm32f469i-disco/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_stm32f469i-disco * @{ @@ -14,9 +16,6 @@ * @author Luis A. Ruiz */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides a LSE, marked as X3 on the board */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -390,5 +389,4 @@ static const fmc_bank_conf_t fmc_bank_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/stm32f4discovery/include/arduino_iomap.h b/boards/stm32f4discovery/include/arduino_iomap.h index 45135f676d..60a9b5adf4 100644 --- a/boards/stm32f4discovery/include/arduino_iomap.h +++ b/boards/stm32f4discovery/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32f4discovery * @{ @@ -19,9 +21,6 @@ * @author Sebastian Meiling */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -61,5 +60,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/stm32f4discovery/include/board.h b/boards/stm32f4discovery/include/board.h index 5c9dfe0a51..4bf78de81e 100644 --- a/boards/stm32f4discovery/include/board.h +++ b/boards/stm32f4discovery/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_stm32f4discovery * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -69,5 +68,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/stm32f4discovery/include/gpio_params.h b/boards/stm32f4discovery/include/gpio_params.h index 54149f2ec7..890d2da1cd 100644 --- a/boards/stm32f4discovery/include/gpio_params.h +++ b/boards/stm32f4discovery/include/gpio_params.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32f4discovery * @{ @@ -19,9 +21,6 @@ * @author Sebastian Meiling */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -65,5 +64,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/stm32f4discovery/include/periph_conf.h b/boards/stm32f4discovery/include/periph_conf.h index d2cd062f9c..5d6a962bea 100644 --- a/boards/stm32f4discovery/include/periph_conf.h +++ b/boards/stm32f4discovery/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32f4discovery * @{ @@ -17,9 +19,6 @@ * @author Peter Kietzmann */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an HSE */ #ifndef CONFIG_BOARD_HAS_HSE #define CONFIG_BOARD_HAS_HSE 1 @@ -257,5 +256,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/stm32f723e-disco/include/board.h b/boards/stm32f723e-disco/include/board.h index b5c18482f9..ef8ec2eb3e 100644 --- a/boards/stm32f723e-disco/include/board.h +++ b/boards/stm32f723e-disco/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32f723e-disco * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -155,5 +154,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/stm32f723e-disco/include/gpio_params.h b/boards/stm32f723e-disco/include/gpio_params.h index 8756099080..5a705451c1 100644 --- a/boards/stm32f723e-disco/include/gpio_params.h +++ b/boards/stm32f723e-disco/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32f723e-disco * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -59,5 +58,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/stm32f723e-disco/include/periph_conf.h b/boards/stm32f723e-disco/include/periph_conf.h index 91d6c893ff..849c0303f7 100644 --- a/boards/stm32f723e-disco/include/periph_conf.h +++ b/boards/stm32f723e-disco/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32f723e-disco * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -380,5 +379,4 @@ static const lcd_fmc_desc_t lcd_fmc_desc[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/stm32f746g-disco/include/board.h b/boards/stm32f746g-disco/include/board.h index f7294fff94..66306c7b4f 100644 --- a/boards/stm32f746g-disco/include/board.h +++ b/boards/stm32f746g-disco/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32f746g-disco * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph_cpu.h" @@ -92,5 +91,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/stm32f746g-disco/include/gpio_params.h b/boards/stm32f746g-disco/include/gpio_params.h index bded0f1944..cfdedaa3a6 100644 --- a/boards/stm32f746g-disco/include/gpio_params.h +++ b/boards/stm32f746g-disco/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32f746g-disco * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -47,5 +46,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/stm32f746g-disco/include/periph_conf.h b/boards/stm32f746g-disco/include/periph_conf.h index a1ecb2267b..a833ddcd95 100644 --- a/boards/stm32f746g-disco/include/periph_conf.h +++ b/boards/stm32f746g-disco/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32f746g-disco * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -472,5 +471,4 @@ static const sdmmc_conf_t sdmmc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/stm32f769i-disco/include/board.h b/boards/stm32f769i-disco/include/board.h index 7236966313..b477123331 100644 --- a/boards/stm32f769i-disco/include/board.h +++ b/boards/stm32f769i-disco/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32f769i-disco * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -62,5 +61,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/stm32f769i-disco/include/gpio_params.h b/boards/stm32f769i-disco/include/gpio_params.h index 169f83ad0b..f6fe7f9ce9 100644 --- a/boards/stm32f769i-disco/include/gpio_params.h +++ b/boards/stm32f769i-disco/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32f769i-disco * @{ @@ -17,9 +19,6 @@ * @author Sebastian Meiling */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -63,5 +62,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/stm32f769i-disco/include/periph_conf.h b/boards/stm32f769i-disco/include/periph_conf.h index ca62f41ccf..eedce9e4d9 100644 --- a/boards/stm32f769i-disco/include/periph_conf.h +++ b/boards/stm32f769i-disco/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32f769i-disco * @{ @@ -16,9 +18,6 @@ * @author Vincent Dupont */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -193,5 +192,4 @@ static const fmc_bank_conf_t fmc_bank_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/stm32g0316-disco/include/board.h b/boards/stm32g0316-disco/include/board.h index 1a55f6c000..1779d1d1f6 100644 --- a/boards/stm32g0316-disco/include/board.h +++ b/boards/stm32g0316-disco/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32g0316-disco * @{ @@ -16,9 +18,6 @@ * @author Dave VanKampen */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph_cpu.h" @@ -40,5 +39,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/stm32g0316-disco/include/periph_conf.h b/boards/stm32g0316-disco/include/periph_conf.h index e38c33265e..57b56dbb54 100644 --- a/boards/stm32g0316-disco/include/periph_conf.h +++ b/boards/stm32g0316-disco/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32g0316-disco * @{ @@ -16,9 +18,6 @@ * @author Dave VanKampen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "cpu.h" @@ -76,5 +75,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/stm32l0538-disco/include/board.h b/boards/stm32l0538-disco/include/board.h index c15b526293..ae6c901ffd 100644 --- a/boards/stm32l0538-disco/include/board.h +++ b/boards/stm32l0538-disco/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_stm32l0538-disco * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #ifdef __cplusplus @@ -59,5 +58,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/stm32l0538-disco/include/gpio_params.h b/boards/stm32l0538-disco/include/gpio_params.h index eab348e274..4bf768f8c0 100644 --- a/boards/stm32l0538-disco/include/gpio_params.h +++ b/boards/stm32l0538-disco/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32l0538-disco * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -52,5 +51,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/stm32l0538-disco/include/periph_conf.h b/boards/stm32l0538-disco/include/periph_conf.h index a63579aec9..9565875518 100644 --- a/boards/stm32l0538-disco/include/periph_conf.h +++ b/boards/stm32l0538-disco/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_stm32l0538-disco * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "clk_conf.h" @@ -109,5 +108,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/stm32l476g-disco/include/board.h b/boards/stm32l476g-disco/include/board.h index 910cccaf77..1c3b05355d 100644 --- a/boards/stm32l476g-disco/include/board.h +++ b/boards/stm32l476g-disco/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32l476g-disco * @brief Support for the STM32L476G-DISCO board @@ -17,9 +19,6 @@ * @author Alexandre Abadie */ -#ifndef BOARD_H -#define BOARD_H - #include #include "cpu.h" @@ -67,5 +66,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/stm32l476g-disco/include/gpio_params.h b/boards/stm32l476g-disco/include/gpio_params.h index 75fcb679be..8556058403 100644 --- a/boards/stm32l476g-disco/include/gpio_params.h +++ b/boards/stm32l476g-disco/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32l476g-disco * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -72,5 +71,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/stm32l476g-disco/include/periph_conf.h b/boards/stm32l476g-disco/include/periph_conf.h index 311541992b..376e741347 100644 --- a/boards/stm32l476g-disco/include/periph_conf.h +++ b/boards/stm32l476g-disco/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32l476g-disco * @{ @@ -16,9 +18,6 @@ * @author Alexandre Abadie */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -177,5 +176,4 @@ static const pwm_conf_t pwm_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/stm32l496g-disco/include/arduino_iomap.h b/boards/stm32l496g-disco/include/arduino_iomap.h index 043d86c560..bacf786238 100644 --- a/boards/stm32l496g-disco/include/arduino_iomap.h +++ b/boards/stm32l496g-disco/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32l496g-disco * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -88,5 +87,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/stm32l496g-disco/include/board.h b/boards/stm32l496g-disco/include/board.h index 55a9dbfa0f..72fd9b9e69 100644 --- a/boards/stm32l496g-disco/include/board.h +++ b/boards/stm32l496g-disco/include/board.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32l496g-disco * @{ @@ -18,9 +20,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_H -#define BOARD_H - #include #include "cpu.h" @@ -186,5 +185,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/stm32l496g-disco/include/gpio_params.h b/boards/stm32l496g-disco/include/gpio_params.h index d1cfbddf9c..023cd237bd 100644 --- a/boards/stm32l496g-disco/include/gpio_params.h +++ b/boards/stm32l496g-disco/include/gpio_params.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32l496g-disco * @{ @@ -18,9 +20,6 @@ * @author Gunar Schorcht */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -76,5 +75,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/stm32l496g-disco/include/periph_conf.h b/boards/stm32l496g-disco/include/periph_conf.h index 176bd0f396..c459022016 100644 --- a/boards/stm32l496g-disco/include/periph_conf.h +++ b/boards/stm32l496g-disco/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_stm32l496g-disco * @{ @@ -18,9 +20,6 @@ * @author Gunar Schorcht */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* Add specific clock configuration (HSE, LSE) for this board here */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -607,5 +606,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/stm32mp157c-dk2/include/board.h b/boards/stm32mp157c-dk2/include/board.h index b2faeb9430..199cc24bfe 100644 --- a/boards/stm32mp157c-dk2/include/board.h +++ b/boards/stm32mp157c-dk2/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_stm32mp157c-dk2 * @{ @@ -16,9 +18,6 @@ * @author Gilles DOFFE */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -30,5 +29,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/stm32mp157c-dk2/include/periph_conf.h b/boards/stm32mp157c-dk2/include/periph_conf.h index 567e4a25e5..150a691964 100644 --- a/boards/stm32mp157c-dk2/include/periph_conf.h +++ b/boards/stm32mp157c-dk2/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_stm32mp157c-dk2 * @{ @@ -16,9 +18,6 @@ * @author Gilles DOFFE */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -74,5 +73,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/teensy31/include/board.h b/boards/teensy31/include/board.h index 293a1822d6..386aaeed25 100644 --- a/boards/teensy31/include/board.h +++ b/boards/teensy31/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_teensy31 * @{ @@ -16,9 +18,6 @@ * @author Loïc Dauphin */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" @@ -62,5 +61,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/teensy31/include/periph_conf.h b/boards/teensy31/include/periph_conf.h index 67c55d7fc1..f21d336fe3 100644 --- a/boards/teensy31/include/periph_conf.h +++ b/boards/teensy31/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_teensy31 * @{ @@ -16,9 +18,6 @@ * @author Loïc Dauphin */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -171,5 +170,4 @@ static const pwm_conf_t pwm_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/telosb/include/board.h b/boards/telosb/include/board.h index 42889ffdc0..c4662be0db 100644 --- a/boards/telosb/include/board.h +++ b/boards/telosb/include/board.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_telosb * @@ -23,9 +25,6 @@ * @author Hauke Petersen */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #ifdef __cplusplus @@ -121,4 +120,3 @@ extern "C" { #endif /** @} */ -#endif /* BOARD_H */ diff --git a/boards/telosb/include/periph_conf.h b/boards/telosb/include/periph_conf.h index 4a367cd722..e0a697a82e 100644 --- a/boards/telosb/include/periph_conf.h +++ b/boards/telosb/include/periph_conf.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_telosb * @{ @@ -18,9 +20,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "macros/units.h" #include "periph_cpu.h" #include "cfg_timer_a_smclk_b_aclk.h" @@ -77,5 +76,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/thingy52/include/board.h b/boards/thingy52/include/board.h index c976244168..5e81394d03 100644 --- a/boards/thingy52/include/board.h +++ b/boards/thingy52/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_thingy52 * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #ifdef __cplusplus @@ -59,5 +58,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/thingy52/include/periph_conf.h b/boards/thingy52/include/periph_conf.h index 559afac802..6816a8d276 100644 --- a/boards/thingy52/include/periph_conf.h +++ b/boards/thingy52/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_thingy52 * @{ @@ -17,9 +19,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_32_1.h" #include "cfg_rtt_default.h" @@ -78,5 +77,4 @@ static const i2c_conf_t i2c_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/ublox-c030-u201/include/arduino_iomap.h b/boards/ublox-c030-u201/include/arduino_iomap.h index bfaf0c8c0f..5de6acc674 100644 --- a/boards/ublox-c030-u201/include/arduino_iomap.h +++ b/boards/ublox-c030-u201/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_ublox-c030-u201 * @{ @@ -19,9 +21,6 @@ * @author Vincent Dupont */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -93,5 +92,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/ublox-c030-u201/include/board.h b/boards/ublox-c030-u201/include/board.h index 2c25639a57..899e76c196 100644 --- a/boards/ublox-c030-u201/include/board.h +++ b/boards/ublox-c030-u201/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup boards_ublox-c030-u201 Ublox C030-U201 * @ingroup boards @@ -18,9 +20,6 @@ * @author Vincent Dupont */ -#ifndef BOARD_H -#define BOARD_H - #include #include "cpu.h" @@ -92,5 +91,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/ublox-c030-u201/include/gpio_params.h b/boards/ublox-c030-u201/include/gpio_params.h index 1b7f969712..e2b3f3cfd1 100644 --- a/boards/ublox-c030-u201/include/gpio_params.h +++ b/boards/ublox-c030-u201/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_ublox-c030-u201 * @{ @@ -16,9 +18,6 @@ * @author Vincent Dupont */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -60,5 +59,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/ublox-c030-u201/include/periph_conf.h b/boards/ublox-c030-u201/include/periph_conf.h index 1f98b1a4af..7a93a65ae7 100644 --- a/boards/ublox-c030-u201/include/periph_conf.h +++ b/boards/ublox-c030-u201/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_ublox-c030-u201 * @{ @@ -16,9 +18,6 @@ * @author Vincent Dupont */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - /* This board provides an LSE */ #ifndef CONFIG_BOARD_HAS_LSE #define CONFIG_BOARD_HAS_LSE 1 @@ -246,5 +245,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/usb-kw41z/include/adc_params.h b/boards/usb-kw41z/include/adc_params.h index aedccac00d..bbc2f4e683 100644 --- a/boards/usb-kw41z/include/adc_params.h +++ b/boards/usb-kw41z/include/adc_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_usb-kw41z * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef ADC_PARAMS_H -#define ADC_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -52,5 +51,4 @@ static const saul_adc_params_t saul_adc_params[] = } #endif -#endif /* ADC_PARAMS_H */ /** @} */ diff --git a/boards/usb-kw41z/include/board.h b/boards/usb-kw41z/include/board.h index 0b334c6c43..dd4ef70c6d 100644 --- a/boards/usb-kw41z/include/board.h +++ b/boards/usb-kw41z/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_usb-kw41z * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "board_common.h" #include "periph_conf.h" @@ -114,5 +113,4 @@ extern "C" } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/usb-kw41z/include/gpio_params.h b/boards/usb-kw41z/include/gpio_params.h index 8dbb63a623..1bb61539af 100644 --- a/boards/usb-kw41z/include/gpio_params.h +++ b/boards/usb-kw41z/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_usb-kw41z * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -62,5 +61,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/usb-kw41z/include/periph_conf.h b/boards/usb-kw41z/include/periph_conf.h index 46b09271e6..67f4b0ac49 100644 --- a/boards/usb-kw41z/include/periph_conf.h +++ b/boards/usb-kw41z/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_usb-kw41z * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "periph_conf_common.h" @@ -86,5 +85,4 @@ static const adc_conf_t adc_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/waveshare-nrf52840-eval-kit/include/arduino_iomap.h b/boards/waveshare-nrf52840-eval-kit/include/arduino_iomap.h index c4f8cae325..c449f91d55 100644 --- a/boards/waveshare-nrf52840-eval-kit/include/arduino_iomap.h +++ b/boards/waveshare-nrf52840-eval-kit/include/arduino_iomap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_waveshare_nrf52840_eval_kit * @{ @@ -19,9 +21,6 @@ * @author Gunar Schorcht */ -#ifndef ARDUINO_IOMAP_H -#define ARDUINO_IOMAP_H - #include "periph/gpio.h" #include "periph/adc.h" @@ -125,5 +124,4 @@ extern "C" { } #endif -#endif /* ARDUINO_IOMAP_H */ /** @} */ diff --git a/boards/waveshare-nrf52840-eval-kit/include/board.h b/boards/waveshare-nrf52840-eval-kit/include/board.h index 210d758a04..7e8ac508c2 100644 --- a/boards/waveshare-nrf52840-eval-kit/include/board.h +++ b/boards/waveshare-nrf52840-eval-kit/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_waveshare_nrf52840_eval_kit * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #ifdef __cplusplus @@ -93,5 +92,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/waveshare-nrf52840-eval-kit/include/gpio_params.h b/boards/waveshare-nrf52840-eval-kit/include/gpio_params.h index 97d2607dd8..3bdc087bae 100644 --- a/boards/waveshare-nrf52840-eval-kit/include/gpio_params.h +++ b/boards/waveshare-nrf52840-eval-kit/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_waveshare_nrf52840_eval_kit * @{ @@ -16,9 +18,6 @@ * @author Gunar Schorcht */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -73,5 +72,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/waveshare-nrf52840-eval-kit/include/periph_conf.h b/boards/waveshare-nrf52840-eval-kit/include/periph_conf.h index 136d250041..45c46995b5 100644 --- a/boards/waveshare-nrf52840-eval-kit/include/periph_conf.h +++ b/boards/waveshare-nrf52840-eval-kit/include/periph_conf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_waveshare_nrf52840_eval_kit * @{ @@ -19,9 +21,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_32_1.h" #include "cfg_rtt_default.h" @@ -153,5 +152,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/weact-g030f6/include/board.h b/boards/weact-g030f6/include/board.h index 19e4388730..52103706e3 100644 --- a/boards/weact-g030f6/include/board.h +++ b/boards/weact-g030f6/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_weact-g030f6 * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph_cpu.h" @@ -40,5 +39,4 @@ extern "C" { #include "stm32_leds.h" -#endif /* BOARD_H */ /** @} */ diff --git a/boards/weact-g030f6/include/gpio_params.h b/boards/weact-g030f6/include/gpio_params.h index 8ca29cca67..2f00415437 100644 --- a/boards/weact-g030f6/include/gpio_params.h +++ b/boards/weact-g030f6/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_weact-g030f6 * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -48,5 +47,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/weact-g030f6/include/periph_conf.h b/boards/weact-g030f6/include/periph_conf.h index e3077ba77c..62847cea6b 100644 --- a/boards/weact-g030f6/include/periph_conf.h +++ b/boards/weact-g030f6/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_weact-g030f6 * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "cpu.h" @@ -75,5 +74,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/xg23-pk6068a/include/board.h b/boards/xg23-pk6068a/include/board.h index 7b0cafa4a9..5bd9d670f1 100644 --- a/boards/xg23-pk6068a/include/board.h +++ b/boards/xg23-pk6068a/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_xg23-pk6068a * @{ @@ -16,9 +18,6 @@ * @author Juergen Fitschen */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #include "periph_conf.h" #include "periph_cpu.h" @@ -132,5 +131,4 @@ void board_init(void); } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/xg23-pk6068a/include/gpio_params.h b/boards/xg23-pk6068a/include/gpio_params.h index 4e1787d3b5..c2283ad9e8 100644 --- a/boards/xg23-pk6068a/include/gpio_params.h +++ b/boards/xg23-pk6068a/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_xg23-pk6068a * @{ @@ -16,9 +18,6 @@ * @author Juergen Fitschen */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -59,5 +58,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/xg23-pk6068a/include/periph_conf.h b/boards/xg23-pk6068a/include/periph_conf.h index 58f7173f04..fd706839c5 100644 --- a/boards/xg23-pk6068a/include/periph_conf.h +++ b/boards/xg23-pk6068a/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_xg23-pk6068a * @{ @@ -16,9 +18,6 @@ * @author Juergen Fitschen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include #include "cpu.h" @@ -175,5 +174,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/yarm/include/board.h b/boards/yarm/include/board.h index 3ae2b3c496..ea3ed2d6b4 100644 --- a/boards/yarm/include/board.h +++ b/boards/yarm/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_yarm * @brief Support for the Acmesystems YARM board. @@ -18,9 +20,6 @@ * @author Antonio Galea */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #ifdef __cplusplus @@ -31,5 +30,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/yarm/include/periph_conf.h b/boards/yarm/include/periph_conf.h index aee2428f65..2059a2f5db 100644 --- a/boards/yarm/include/periph_conf.h +++ b/boards/yarm/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_yarm * @{ @@ -17,9 +19,6 @@ * @author Antonio Galea */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #ifdef __cplusplus @@ -191,5 +190,4 @@ static const sam0_common_usb_config_t sam_usbdev_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/yunjia-nrf51822/include/board.h b/boards/yunjia-nrf51822/include/board.h index 5d4a51e420..331ec7b4d9 100644 --- a/boards/yunjia-nrf51822/include/board.h +++ b/boards/yunjia-nrf51822/include/board.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_yunjia-nrf51822 * @{ @@ -16,14 +18,10 @@ * @author Hauke Petersen */ -#ifndef BOARD_H -#define BOARD_H - #include "board_common.h" #ifdef __cplusplus extern "C" {} #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/yunjia-nrf51822/include/periph_conf.h b/boards/yunjia-nrf51822/include/periph_conf.h index 4da79573e8..af328013e9 100644 --- a/boards/yunjia-nrf51822/include/periph_conf.h +++ b/boards/yunjia-nrf51822/include/periph_conf.h @@ -6,6 +6,8 @@ * details. */ +#pragma once + /** * @ingroup boards_yunjia-nrf51822 * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_cpu.h" #include "cfg_clock_16_0.h" #include "cfg_timer_012.h" @@ -103,5 +102,4 @@ static const adc_conf_t adc_config[] = {4, 5, 6, 7}; } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/z1/include/board.h b/boards/z1/include/board.h index 597d1a7587..1a602bee99 100644 --- a/boards/z1/include/board.h +++ b/boards/z1/include/board.h @@ -7,8 +7,7 @@ * directory for more details. */ -#ifndef BOARD_H -#define BOARD_H +#pragma once /** * @ingroup boards_z1 @@ -114,4 +113,3 @@ extern "C" { #endif /** @} */ -#endif /* BOARD_H */ diff --git a/boards/z1/include/periph_conf.h b/boards/z1/include/periph_conf.h index e10d0c9795..31fbb3a2c5 100644 --- a/boards/z1/include/periph_conf.h +++ b/boards/z1/include/periph_conf.h @@ -7,6 +7,8 @@ * details. */ +#pragma once + /** * @ingroup boards_z1 * @{ @@ -18,9 +20,6 @@ * @author Hauke Petersen */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "macros/units.h" #include "periph_cpu.h" #include "cfg_timer_a_smclk_b_aclk.h" @@ -76,5 +75,4 @@ static const spi_conf_t spi_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/boards/zigduino/include/adc_params.h b/boards/zigduino/include/adc_params.h index 60733afca2..f583545df5 100644 --- a/boards/zigduino/include/adc_params.h +++ b/boards/zigduino/include/adc_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_zigduino * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef ADC_PARAMS_H -#define ADC_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -52,5 +51,4 @@ static const saul_adc_params_t saul_adc_params[] = } #endif -#endif /* ADC_PARAMS_H */ /** @} */ diff --git a/boards/zigduino/include/board.h b/boards/zigduino/include/board.h index d3cd383ac8..be32ed408b 100644 --- a/boards/zigduino/include/board.h +++ b/boards/zigduino/include/board.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_zigduino * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef BOARD_H -#define BOARD_H - #include "cpu.h" #ifdef __cplusplus @@ -56,5 +55,4 @@ extern "C" { } #endif -#endif /* BOARD_H */ /** @} */ diff --git a/boards/zigduino/include/gpio_params.h b/boards/zigduino/include/gpio_params.h index 0489cc0f6b..8992a16546 100644 --- a/boards/zigduino/include/gpio_params.h +++ b/boards/zigduino/include/gpio_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_zigduino * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef GPIO_PARAMS_H -#define GPIO_PARAMS_H - #include "board.h" #include "saul/periph.h" @@ -42,5 +41,4 @@ static const saul_gpio_params_t saul_gpio_params[] = } #endif -#endif /* GPIO_PARAMS_H */ /** @} */ diff --git a/boards/zigduino/include/periph_conf.h b/boards/zigduino/include/periph_conf.h index 209e20eea8..52d47e9a4a 100644 --- a/boards/zigduino/include/periph_conf.h +++ b/boards/zigduino/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_zigduino * @{ @@ -16,9 +18,6 @@ * @author Benjamin Valentin */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "periph_conf_atmega_common.h" #ifdef __cplusplus @@ -26,5 +25,4 @@ extern "C" { } #endif -#endif /* PERIPH_CONF_H */ /** @} */