Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 1 addition & 3 deletions cpu/arm7_common/include/VIC.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
*
*/

#ifndef VIC_H
#define VIC_H
#pragma once

#include <stdbool.h>

Expand Down Expand Up @@ -86,4 +85,3 @@ bool cpu_install_irq(int IntNumber, void *HandlerAddr, int Priority);
#endif

/** @} */
#endif /* VIC_H */
5 changes: 2 additions & 3 deletions cpu/arm7_common/include/architecture_arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* directory for more details.
*/

#pragma once

/**
* @ingroup cpu_arm7_common
* @{
Expand All @@ -17,9 +19,7 @@
*
*/

#ifndef ARCHITECTURE_ARCH_H
#define ARCHITECTURE_ARCH_H

Check warning on line 22 in cpu/arm7_common/include/architecture_arch.h

View workflow job for this annotation

GitHub Actions / static-tests

too many consecutive empty lines
#ifdef __cplusplus
extern "C" {
#endif
Expand All @@ -34,4 +34,3 @@
#endif

/** @} */
#endif /* ARCHITECTURE_ARCH_H */
4 changes: 1 addition & 3 deletions cpu/arm7_common/include/arm7_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* more details.
*/

#ifndef ARM7_COMMON_H
#define ARM7_COMMON_H
#pragma once

/**
* @defgroup cpu_arm7_common ARM7 CPU common
Expand Down Expand Up @@ -101,4 +100,3 @@ extern "C" {
#endif

/** @} */
#endif /* ARM7_COMMON_H */
5 changes: 1 addition & 4 deletions cpu/arm7_common/include/arm_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* directory for more details.
*/

#ifndef ARM_CPU_H
#define ARM_CPU_H
#pragma once

#include <stdint.h>
#include "VIC.h"
Expand Down Expand Up @@ -60,5 +59,3 @@ static inline uintptr_t cpu_get_caller_pc(void)
#ifdef __cplusplus
}
#endif

#endif /* ARM_CPU_H */
5 changes: 2 additions & 3 deletions cpu/arm7_common/include/atomic_utils_arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* details.
*/

#pragma once

/**
* @ingroup cpu_arm7_common
*
Expand All @@ -16,8 +18,6 @@
* @author Marian Buschsieweke <marian.buschsieweke@ovgu.de>
*/

#ifndef ATOMIC_UTILS_ARCH_H
#define ATOMIC_UTILS_ARCH_H
#ifndef DOXYGEN

#include "periph_cpu.h"
Expand Down Expand Up @@ -72,5 +72,4 @@ static inline void atomic_store_u32(volatile uint32_t *dest, uint32_t val)
#endif

#endif /* DOXYGEN */
#endif /* ATOMIC_UTILS_ARCH_H */
/** @} */
5 changes: 1 addition & 4 deletions cpu/arm7_common/include/iap.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* directory for more details.
*/

#ifndef IAP_H
#define IAP_H
#pragma once

#include <stdint.h>

Expand Down Expand Up @@ -62,5 +61,3 @@ uint8_t iap_get_sector(uint32_t addr);
#ifdef __cplusplus
}
#endif

#endif /* IAP_H */
5 changes: 2 additions & 3 deletions cpu/arm7_common/include/irq_arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* directory for more details.
*/

#pragma once

/**
* @ingroup cpu_arm7_common
* @{
Expand All @@ -16,9 +18,7 @@
* @author Heiko Will <hwill@inf.fu-berlin.de>
*/

#ifndef IRQ_ARCH_H
#define IRQ_ARCH_H

Check warning on line 21 in cpu/arm7_common/include/irq_arch.h

View workflow job for this annotation

GitHub Actions / static-tests

too many consecutive empty lines
#include "VIC.h"
#include <stdbool.h>

Expand Down Expand Up @@ -79,5 +79,4 @@
}
#endif

#endif /* IRQ_ARCH_H */
/** @} */
5 changes: 2 additions & 3 deletions cpu/arm7_common/include/thread_arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* details.
*/

#pragma once

/**
* @ingroup cpu_arm7_common
* @{
Expand All @@ -17,8 +19,6 @@
* @author Kaspar Schleiser <kaspar@schleiser.de>
* @author Heiko Will <heiko.will@fu-berlin.de>
*/
#ifndef THREAD_ARCH_H
#define THREAD_ARCH_H

#include "irq.h"

Expand Down Expand Up @@ -46,5 +46,4 @@ static inline __attribute__((always_inline)) void thread_yield_higher(void)
}
#endif

#endif /* THREAD_ARCH_H */
/** @} */
4 changes: 1 addition & 3 deletions cpu/arm7tdmi_gba/include/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* directory for more details.
*/

#ifndef CPU_H
#define CPU_H
#pragma once

/**
* @ingroup cpu_arm7tdmi_gba
Expand All @@ -27,4 +26,3 @@ extern uintptr_t __stack_start; /**< end of user stack memory space */
#endif

/** @} */
#endif /* CPU_H */
5 changes: 1 addition & 4 deletions cpu/arm7tdmi_gba/include/cpu_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* directory for more details.
*/

#ifndef CPU_CONF_H
#define CPU_CONF_H
#pragma once

#ifdef __cplusplus
extern "C"
Expand Down Expand Up @@ -90,5 +89,3 @@ extern "C"
#ifdef __cplusplus
}
#endif

#endif /* CPU_CONF_H */
5 changes: 2 additions & 3 deletions cpu/arm7tdmi_gba/include/periph_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* directory for more details.
*/

#pragma once

/**
* @ingroup cpu_arm7tdmi_gba
* @{
Expand All @@ -16,8 +18,6 @@
* @author
*/

#ifndef PERIPH_CPU_H
#define PERIPH_CPU_H
#include <stdint.h>

#ifdef __cplusplus
Expand All @@ -34,5 +34,4 @@ extern "C"
}
#endif

#endif /* PERIPH_CPU_H */
/** @} */
5 changes: 2 additions & 3 deletions cpu/arm7tdmi_gba/include/periph_gba.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* directory for more details.
*/

#pragma once

/**
* @ingroup cpu_arm7tdmi_gba
* @{
Expand All @@ -16,9 +18,7 @@
* @author Bennet Blischke
*/

#ifndef PERIPH_GBA_H
#define PERIPH_GBA_H

Check warning on line 21 in cpu/arm7tdmi_gba/include/periph_gba.h

View workflow job for this annotation

GitHub Actions / static-tests

too many consecutive empty lines
#include <stdint.h>

#ifdef __cplusplus
Expand Down Expand Up @@ -102,5 +102,4 @@
}
#endif

#endif /* PERIPH_GBA_H */
/** @} */
6 changes: 2 additions & 4 deletions cpu/arm7tdmi_gba/stdio_fb/font_terminal.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef FONT_TERMINAL_H
#define FONT_TERMINAL_H
#pragma once


Check warning on line 3 in cpu/arm7tdmi_gba/stdio_fb/font_terminal.h

View workflow job for this annotation

GitHub Actions / static-tests

too many consecutive empty lines
#ifdef __cplusplus
extern "C"
{
Expand Down Expand Up @@ -282,5 +282,3 @@
#ifdef __cplusplus
}
#endif

#endif /* FONT_TERMINAL_H */
6 changes: 2 additions & 4 deletions cpu/atmega1281/include/atmega_pcint.h
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
#ifndef ATMEGA_PCINT_H
#define ATMEGA_PCINT_H
#pragma once

Check warning on line 1 in cpu/atmega1281/include/atmega_pcint.h

View workflow job for this annotation

GitHub Actions / static-tests

no copyright notice found


Check warning on line 3 in cpu/atmega1281/include/atmega_pcint.h

View workflow job for this annotation

GitHub Actions / static-tests

too many consecutive empty lines
#ifdef __cplusplus
extern "C" {
#endif

#define ATMEGA_PCINT_MAP_PCINT0 GPIO_PIN(PORT_B, 0), GPIO_PIN(PORT_B, 1), GPIO_PIN(PORT_B, 2), GPIO_PIN(PORT_B, 3), GPIO_PIN(PORT_B, 4), GPIO_PIN(PORT_B, 5), GPIO_PIN(PORT_B, 6), GPIO_PIN(PORT_B, 7)

Check warning on line 8 in cpu/atmega1281/include/atmega_pcint.h

View workflow job for this annotation

GitHub Actions / static-tests

line is longer than 100 characters
#define ATMEGA_PCINT_MAP_PCINT1 GPIO_PIN(PORT_E, 0), GPIO_UNDEF, GPIO_UNDEF, GPIO_UNDEF, GPIO_UNDEF, GPIO_UNDEF, GPIO_UNDEF, GPIO_UNDEF

Check warning on line 9 in cpu/atmega1281/include/atmega_pcint.h

View workflow job for this annotation

GitHub Actions / static-tests

line is longer than 100 characters

#ifdef __cplusplus
}
#endif

#endif /* ATMEGA_PCINT_H */
5 changes: 2 additions & 3 deletions cpu/atmega1281/include/default_timer_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* directory for more details.
*/

#pragma once

/**
* @ingroup cpu_atmega1281
* @{
Expand All @@ -20,9 +22,7 @@
* @author Francisco Acosta <francisco.acosta@inria.fr>
*/

#ifndef DEFAULT_TIMER_CONFIG_H
#define DEFAULT_TIMER_CONFIG_H

Check warning on line 25 in cpu/atmega1281/include/default_timer_config.h

View workflow job for this annotation

GitHub Actions / static-tests

too many consecutive empty lines
#ifdef __cplusplus
extern "C" {
#endif
Expand Down Expand Up @@ -50,5 +50,4 @@
}
#endif

#endif /* DEFAULT_TIMER_CONFIG_H */
/** @} */
5 changes: 2 additions & 3 deletions cpu/atmega1281/include/periph_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* directory for more details.
*/

#pragma once

/**
* @ingroup cpu_atmega1281
* @{
Expand All @@ -20,9 +22,7 @@
* @author Francisco Acosta <francisco.acosta@inria.fr>
*/

#ifndef PERIPH_CPU_H
#define PERIPH_CPU_H

Check warning on line 25 in cpu/atmega1281/include/periph_cpu.h

View workflow job for this annotation

GitHub Actions / static-tests

too many consecutive empty lines
#ifdef __cplusplus
extern "C" {
#endif
Expand Down Expand Up @@ -110,5 +110,4 @@
#include "periph_conf.h"
#include "default_timer_config.h"

#endif /* PERIPH_CPU_H */
/** @} */
6 changes: 2 additions & 4 deletions cpu/atmega1284p/include/atmega_pcint.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef ATMEGA_PCINT_H
#define ATMEGA_PCINT_H
#pragma once


#ifdef __cplusplus
extern "C" {
Expand All @@ -13,5 +13,3 @@ extern "C" {
#ifdef __cplusplus
}
#endif

#endif /* ATMEGA_PCINT_H */
5 changes: 2 additions & 3 deletions cpu/atmega1284p/include/default_timer_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* directory for more details.
*/

#pragma once

/**
* @ingroup cpu_atmega1284p
* @{
Expand All @@ -16,8 +18,6 @@
* @author Marian Buschsieweke <marian.buschsieweke@ovgu.de>
*/

#ifndef DEFAULT_TIMER_CONFIG_H
#define DEFAULT_TIMER_CONFIG_H

#include "periph_cpu_common.h"
#include "periph_conf.h" /* <- Allow overwriting timer config from board */
Expand Down Expand Up @@ -47,5 +47,4 @@ extern "C" {
}
#endif

#endif /* DEFAULT_TIMER_CONFIG_H */
/** @} */
5 changes: 2 additions & 3 deletions cpu/atmega1284p/include/periph_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* directory for more details.
*/

#pragma once

/**
* @ingroup cpu_atmega1284p
* @{
Expand All @@ -20,8 +22,6 @@
* @author Matthew Blue <matthew.blue.neuro@gmail.com>
*/

#ifndef PERIPH_CPU_H
#define PERIPH_CPU_H

#include "periph_cpu_common.h"

Expand Down Expand Up @@ -113,5 +113,4 @@ static inline bool atmega_has_pin_exti(uint8_t port_num, uint8_t pin_num)
#include "periph_conf.h"
#include "default_timer_config.h"

#endif /* PERIPH_CPU_H */
/** @} */
6 changes: 2 additions & 4 deletions cpu/atmega128rfa1/include/atmega_pcint.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef ATMEGA_PCINT_H
#define ATMEGA_PCINT_H
#pragma once


#ifdef __cplusplus
extern "C" {
Expand All @@ -11,5 +11,3 @@ extern "C" {
#ifdef __cplusplus
}
#endif

#endif /* ATMEGA_PCINT_H */
Loading