1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-14 17:13:50 +01:00

tree-wide: replace multiple empty lines with one

For each C source/header `$file`: `sed -e '/^$/N;/^\n$/D' -i $file`.
This commit is contained in:
Marian Buschsieweke 2025-05-21 22:51:04 +02:00
parent 9156357aba
commit cac44edec7
No known key found for this signature in database
GPG Key ID: 758BD52517F79C41
1013 changed files with 0 additions and 1149 deletions

View File

@ -19,7 +19,6 @@
#ifndef BOARD_H
#define BOARD_H
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -24,7 +24,6 @@
#include "cfg_rtt_default.h"
#include "cfg_timer_default.h"
#ifdef __cplusplus
extern "C"
{

View File

@ -58,7 +58,6 @@
(x==PIN_SPI1_SS3 ? 3 : \
-1)))))
// These buttons are present only on the Freedom E300 Arty Dev Kit.
#ifdef HAS_BOARD_BUTTONS
#define BUTTON_0_OFFSET 15
@ -74,5 +73,4 @@
#define HAS_HFXOSC 1
#define HAS_LFROSC_BYPASS 1
#endif /* _SIFIVE_HIFIVE1_H */

View File

@ -64,7 +64,6 @@ extern "C" {
#define ARDUINO_PIN_LAST 28
/** @} */
#ifdef __cplusplus
}
#endif

View File

@ -155,7 +155,6 @@ static const i2c_conf_t i2c_config[] = {
#define I2C_NUMOF ARRAY_SIZE(i2c_config)
/** @} */
/**
* @name ADC configuration
* @{
@ -170,7 +169,6 @@ static const adc_conf_t adc_config[] = {
#define ADC_NUMOF ARRAY_SIZE(adc_config)
/** @} */
#ifdef __cplusplus
}
#endif

View File

@ -94,7 +94,6 @@ static const spi_conf_t spi_config[] = {
#define SPI_NUMOF ARRAY_SIZE(spi_config)
/** @} */
/**
* @name PWM configuration
*

View File

@ -27,7 +27,6 @@
extern "C" {
#endif
#define LED0_PIN_NUM 12
#define LED0_PORT GPIO_PORT_A /**< GPIO port of LED 0 */
#define LED0_PORT_NUM PORT_A

View File

@ -19,7 +19,6 @@
*
*/
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -18,7 +18,6 @@
* @author Heiko Will <hwill@inf.fu-berlin.de>
*/
#include "VIC.h"
#include <stdbool.h>

View File

@ -18,7 +18,6 @@
* @author Bennet Blischke
*/
#include <stdint.h>
#ifdef __cplusplus

View File

@ -1,6 +1,5 @@
#pragma once
#ifdef __cplusplus
extern "C"
{

View File

@ -1,6 +1,5 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -22,7 +22,6 @@
* @author Francisco Acosta <francisco.acosta@inria.fr>
*/
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -22,7 +22,6 @@
* @author Francisco Acosta <francisco.acosta@inria.fr>
*/
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -1,6 +1,5 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -18,7 +18,6 @@
* @author Marian Buschsieweke <marian.buschsieweke@ovgu.de>
*/
#include "periph_cpu_common.h"
#include "periph_conf.h" /* <- Allow overwriting timer config from board */

View File

@ -22,7 +22,6 @@
* @author Matthew Blue <matthew.blue.neuro@gmail.com>
*/
#include "periph_cpu_common.h"
#ifdef __cplusplus

View File

@ -1,6 +1,5 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -19,7 +19,6 @@
* @author Steffen Robertz <steffen.robertz@rwth-aachen.de>
*/
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -19,7 +19,6 @@
* @author Steffen Robertz <steffen.robertz@rwth-aachen.de>
*/
#include "periph_cpu_common.h"
#include "atmega_regs_common.h"

View File

@ -1,6 +1,5 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -22,7 +22,6 @@
* @author Francisco Acosta <francisco.acosta@inria.fr>
*/
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -20,7 +20,6 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#include "periph_cpu_common.h"
#ifdef __cplusplus

View File

@ -1,6 +1,5 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -19,7 +19,6 @@
* @author Steffen Robertz <steffen.robertz@rwth-aachen.de>
*/
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -19,7 +19,6 @@
* @author Steffen Robertz <steffen.robertz@rwth-aachen.de>
*/
#include "periph_cpu_common.h"
#include "atmega_regs_common.h"

View File

@ -1,6 +1,5 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -20,7 +20,6 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -20,7 +20,6 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#include "periph_cpu_common.h"
#ifdef __cplusplus

View File

@ -1,6 +1,5 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -19,7 +19,6 @@
*
*/
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -19,7 +19,6 @@
*
*/
#include "periph_cpu_common.h"
#ifdef __cplusplus

View File

@ -26,7 +26,6 @@
* @author Hugues Larrive <hugues.larrive@pm.me>
*/
#include "atmega_regs_common.h"
#ifdef __cplusplus

View File

@ -22,7 +22,6 @@
* @author Hugues Larrive <hugues.larrive@pm.me>
*/
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -22,7 +22,6 @@
* @author Hugues Larrive <hugues.larrive@pm.me>
*/
#include "periph_cpu_common.h"
#ifdef __cplusplus

View File

@ -25,7 +25,6 @@
*
*/
#include <avr/io.h>
#include <avr/power.h>

View File

@ -31,7 +31,6 @@
*
*/
#include <stdint.h>
#ifdef __cplusplus

View File

@ -24,7 +24,6 @@
* @author Matthew Blue <matthew.blue.neuro@gmail.com>
*/
#include "atmega_regs_common.h"
#ifdef __cplusplus

View File

@ -22,7 +22,6 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#include <assert.h>
#include "cpu.h"

View File

@ -24,7 +24,6 @@
* @author Hugues Larrive <hugues.larrive@pm.me>
*/
#include "cpu.h"
#ifdef __cplusplus

View File

@ -23,7 +23,6 @@
*
*/
#include <stdint.h>
#ifdef __cplusplus

View File

@ -18,7 +18,6 @@
* @author Gerson Fernando Budke <nandojve@gmail.com>
*/
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -20,7 +20,6 @@
#include "periph_cpu.h"
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -17,7 +17,6 @@
*
*/
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -24,7 +24,6 @@
#include "periph_cpu.h"
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -18,7 +18,6 @@
* @author Gerson Fernando Budke <nandojve@gmail.com>
*/
#include <avr/io.h>
#ifdef __cplusplus

View File

@ -24,7 +24,6 @@
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -21,7 +21,6 @@
*
*/
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -31,7 +31,6 @@
*
*/
#include <stdio.h>
#include <stdint.h>

View File

@ -19,7 +19,6 @@
*
*/
#include <stdio.h>
#include <stdarg.h>
#include <avr/pgmspace.h>
@ -61,7 +60,6 @@ static inline char * flash_strncpy(char *ram, FLASH_ATTR const char *flash, size
return strncpy_P(ram, (const char *)flash, n);
}
static inline int flash_vprintf(FLASH_ATTR const char *flash, va_list args)
{
/* vprintf_P() is not provided by avr-libc. But vfprintf_P() with

View File

@ -26,7 +26,6 @@
*
*/
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>

View File

@ -19,7 +19,6 @@
*
*/
#include <avr/io.h>
#ifdef __cplusplus

View File

@ -19,7 +19,6 @@
* @author Koen Zandberg <koen@bergzand.net>
*/
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -18,7 +18,6 @@
* @author Ian Martin <ian@locicontrols.com>
*/
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -18,7 +18,6 @@
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
*/
#include "net/eui64.h"
#ifdef __cplusplus

View File

@ -23,7 +23,6 @@
* @{
*/
#include <stdint.h>
#include "cc2538.h"
@ -344,6 +343,5 @@ typedef struct {
} /* end extern "C" */
#endif
/** @} */
/** @} */

View File

@ -21,7 +21,6 @@
* @author Sebastian Meiling <s@mlng.net>
*/
#include <stdint.h>
#include "cc2538.h"

View File

@ -21,7 +21,6 @@
* @author Ian Martin <ian@locicontrols.com>
*/
#include <stdbool.h>
#include "board.h"

View File

@ -19,7 +19,6 @@
* @author Aaron Sowry <aaron@mutex.nz>
*/
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -20,7 +20,6 @@
*
*/
#include "cc2538.h"
#ifdef __cplusplus

View File

@ -21,7 +21,6 @@
* @author Sebastian Meiling <s@mlng.net>
*/
#include "cc2538.h"
#ifdef __cplusplus
@ -47,5 +46,4 @@ typedef struct {
} /* end extern "C" */
#endif
/** @} */

View File

@ -19,7 +19,6 @@
* @author Sebastian Meiling <s@mlng.net>
*/
#include "cc2538.h"
#ifdef __cplusplus

View File

@ -19,7 +19,6 @@
* @author Ian Martin <ian@locicontrols.com>
*/
#include "cc2538.h"
#ifdef __cplusplus
@ -160,5 +159,4 @@ typedef struct {
} /* end extern "C" */
#endif
/** @} */

View File

@ -19,7 +19,6 @@
* @author Ian Martin <ian@locicontrols.com>
*/
#include "cc2538.h"
#ifdef __cplusplus

View File

@ -18,7 +18,6 @@
* @author Ian Martin <ian@locicontrols.com>
*/
#include "kernel_defines.h"
#include "cpu_conf_common.h"
#include "cc2538.h"

View File

@ -18,7 +18,6 @@
* @author Francisco Molina <francois-xavier.molina@inria.fr>
*/
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -20,7 +20,6 @@
* @author Sebastian Meiling <s@mlng.net>
*/
#include <stdint.h>
#include <stdio.h>

View File

@ -16,7 +16,6 @@
* @brief CC26x0/CC13x0 AUX register definitions
*/
#include <stdbool.h>
#include "cc26xx_cc13xx.h"

View File

@ -16,7 +16,6 @@
* @brief CC26x0/CC13x0 FCFG register definitions
*/
#include <cc26xx_cc13xx.h>
#ifdef __cplusplus

View File

@ -16,7 +16,6 @@
* @brief CC26x0/CC13x0 PRCM register definitions
*/
#include <cc26xx_cc13xx.h>
#ifdef __cplusplus

View File

@ -20,7 +20,6 @@
*
*/
#ifndef SET_MODE_CONF_1_ALT_DCDC_IPEAK
#define SET_MODE_CONF_1_ALT_DCDC_IPEAK 0x2 /**< 32 mA */
#endif

View File

@ -18,7 +18,6 @@
* @author Leon M. George <leon@georgemail.de>
*/
#include "periph_cpu_common.h"
#ifdef __cplusplus

View File

@ -17,7 +17,6 @@
* @brief CC26x2, CC13x2 AUX register definitions
*/
#include <stdbool.h>
#include "cc26xx_cc13xx.h"
@ -477,5 +476,4 @@ typedef struct {
} /* end extern "C" */
#endif
/** @}*/

View File

@ -16,7 +16,6 @@
* @brief CC26x2, CC13x2 FCFG register definitions
*/
#include <cc26xx_cc13xx.h>
#ifdef __cplusplus
@ -157,5 +156,4 @@ typedef struct {
} /* end extern "C" */
#endif
/** @} */

View File

@ -16,7 +16,6 @@
* @brief CC26x2, CC13x2 PRCM register definitions
*/
#include <cc26xx_cc13xx.h>
#ifdef __cplusplus

View File

@ -16,7 +16,6 @@
* @brief CC26x2/CC13x2 Device setup functions
*/
#include <cc26xx_cc13xx.h>
#ifdef __cplusplus

View File

@ -20,7 +20,6 @@
*
*/
#ifndef SET_MODE_CONF_1_ALT_DCDC_IPEAK
#define SET_MODE_CONF_1_ALT_DCDC_IPEAK 0x2 /**< 12 mA */
#endif

View File

@ -18,7 +18,6 @@
* @author Leon M. George <leon@georgemail.de>
*/
#include "periph_cpu_common.h"
#ifdef __cplusplus

View File

@ -19,7 +19,6 @@
* @author Anton Gerasimov <tossel@gmail.com>
*/
#include <stdint.h>
#ifdef __cplusplus

View File

@ -18,7 +18,6 @@
* @author Jean Pierre Dudey <jeandudey@hotmail.com>
*/
#include "cc26xx_cc13xx.h"
#ifdef __cplusplus

View File

@ -16,7 +16,6 @@
* @brief CC26xx/CC13xx CCFG register definitions
*/
#include <cc26xx_cc13xx.h>
#ifdef __cplusplus
@ -164,5 +163,4 @@ typedef struct {
} /* end extern "C" */
#endif
/** @} */

View File

@ -19,7 +19,6 @@
*
*/
#include "cc26xx_cc13xx.h"
#ifdef __cplusplus
@ -59,5 +58,4 @@ typedef struct {
} /* end extern "C" */
#endif
/** @} */

View File

@ -18,7 +18,6 @@
* @author Leon George <leon@georgemail.eu>
*/
#include "cc26xx_cc13xx.h"
#ifdef __cplusplus

View File

@ -18,7 +18,6 @@
* @author Jean Pierre Dudey <jeandudey@hotmail.com>
*/
#include "cc26xx_cc13xx.h"
#ifdef __cplusplus

View File

@ -18,7 +18,6 @@
* @author Leon George <leon@georgemail.eu>
*/
#include "cc26xx_cc13xx.h"
#ifdef __cplusplus

View File

@ -18,7 +18,6 @@
* @author Leon George <leon@georgemail.eu>
*/
#include "cc26xx_cc13xx.h"
#ifdef __cplusplus

View File

@ -18,7 +18,6 @@
* @author Jean Pierre Dudey <jeandudey@hotmail.com>
*/
#include <cc26xx_cc13xx.h>
#include <stdbool.h>

View File

@ -18,7 +18,6 @@
* @author Jean Pierre Dudey <jeandudey@hotmail.com>
*/
#include "cc26xx_cc13xx.h"
#ifdef __cplusplus

View File

@ -17,7 +17,6 @@
*
*/
#include "cc26xx_cc13xx.h"
#ifdef __cplusplus

View File

@ -16,7 +16,6 @@
* @brief CC26xx/CC13xx VIMS register definitions
*/
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -16,7 +16,6 @@
* @brief CC26xx/CC13xx WDT register definitions
*/
#include <cc26xx_cc13xx.h>
#ifdef __cplusplus

View File

@ -20,7 +20,6 @@
* @author Jean Pierre Dudey <jeandudey@hotmail.com>
*/
#include "kernel_defines.h"
#include "cpu_conf_common.h"

View File

@ -18,7 +18,6 @@
* @author Leon M. George <leon@georgemail.de>
*/
#include "cpu.h"
#ifdef __cplusplus

View File

@ -19,7 +19,6 @@
*
*/
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -29,7 +29,6 @@
* @todo remove include irq.h once core was adjusted
*/
#include "irq.h"
#include "sched.h"
#include "thread.h"

View File

@ -18,7 +18,6 @@
* @author Kaspar Schleiser <kaspar@schleiser.de>
*/
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -18,7 +18,6 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#include <stdbool.h>
#include <stdint.h>
#include "cpu_conf.h"

View File

@ -20,7 +20,6 @@
* @}
*/
#include <stdbool.h>
#include <stdint.h>

View File

@ -19,7 +19,6 @@
* @author Koen Zandberg <koen@bergzand.net>
*/
#include "cpu_conf.h"
#ifdef __cplusplus

View File

@ -18,7 +18,6 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#ifdef __cplusplus
extern "C" {
#endif

Some files were not shown because too many files have changed in this diff Show More