1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-15 09:33:50 +01:00

cpu: replace header guards with #pragma once

This commit is contained in:
KSKNico 2025-05-21 17:13:37 +02:00
parent f6e8c79178
commit fe821eaa1d
368 changed files with 716 additions and 1147 deletions

View File

@ -5,8 +5,7 @@
*
*/
#ifndef VIC_H
#define VIC_H
#pragma once
#include <stdbool.h>
@ -86,4 +85,3 @@ bool cpu_install_irq(int IntNumber, void *HandlerAddr, int Priority);
#endif
/** @} */
#endif /* VIC_H */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_arm7_common
* @{
@ -17,8 +19,6 @@
*
*/
#ifndef ARCHITECTURE_ARCH_H
#define ARCHITECTURE_ARCH_H
#ifdef __cplusplus
extern "C" {
@ -34,4 +34,3 @@ extern "C" {
#endif
/** @} */
#endif /* ARCHITECTURE_ARCH_H */

View File

@ -6,8 +6,7 @@
* more details.
*/
#ifndef ARM7_COMMON_H
#define ARM7_COMMON_H
#pragma once
/**
* @defgroup cpu_arm7_common ARM7 CPU common
@ -101,4 +100,3 @@ extern "C" {
#endif
/** @} */
#endif /* ARM7_COMMON_H */

View File

@ -6,8 +6,7 @@
* directory for more details.
*/
#ifndef ARM_CPU_H
#define ARM_CPU_H
#pragma once
#include <stdint.h>
#include "VIC.h"
@ -60,5 +59,3 @@ static inline uintptr_t cpu_get_caller_pc(void)
#ifdef __cplusplus
}
#endif
#endif /* ARM_CPU_H */

View File

@ -6,6 +6,8 @@
* details.
*/
#pragma once
/**
* @ingroup cpu_arm7_common
*
@ -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"
@ -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 */
/** @} */

View File

@ -6,8 +6,7 @@
* directory for more details.
*/
#ifndef IAP_H
#define IAP_H
#pragma once
#include <stdint.h>
@ -62,5 +61,3 @@ uint8_t iap_get_sector(uint32_t addr);
#ifdef __cplusplus
}
#endif
#endif /* IAP_H */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_arm7_common
* @{
@ -16,8 +18,6 @@
* @author Heiko Will <hwill@inf.fu-berlin.de>
*/
#ifndef IRQ_ARCH_H
#define IRQ_ARCH_H
#include "VIC.h"
#include <stdbool.h>
@ -79,5 +79,4 @@ static inline __attribute__((always_inline)) bool irq_is_enabled(void)
}
#endif
#endif /* IRQ_ARCH_H */
/** @} */

View File

@ -7,6 +7,8 @@
* details.
*/
#pragma once
/**
* @ingroup cpu_arm7_common
* @{
@ -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"
@ -46,5 +46,4 @@ static inline __attribute__((always_inline)) void thread_yield_higher(void)
}
#endif
#endif /* THREAD_ARCH_H */
/** @} */

View File

@ -6,8 +6,7 @@
* directory for more details.
*/
#ifndef CPU_H
#define CPU_H
#pragma once
/**
* @ingroup cpu_arm7tdmi_gba
@ -27,4 +26,3 @@ extern uintptr_t __stack_start; /**< end of user stack memory space */
#endif
/** @} */
#endif /* CPU_H */

View File

@ -6,8 +6,7 @@
* directory for more details.
*/
#ifndef CPU_CONF_H
#define CPU_CONF_H
#pragma once
#ifdef __cplusplus
extern "C"
@ -90,5 +89,3 @@ extern "C"
#ifdef __cplusplus
}
#endif
#endif /* CPU_CONF_H */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_arm7tdmi_gba
* @{
@ -16,8 +18,6 @@
* @author
*/
#ifndef PERIPH_CPU_H
#define PERIPH_CPU_H
#include <stdint.h>
#ifdef __cplusplus
@ -34,5 +34,4 @@ extern "C"
}
#endif
#endif /* PERIPH_CPU_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_arm7tdmi_gba
* @{
@ -16,8 +18,6 @@
* @author Bennet Blischke
*/
#ifndef PERIPH_GBA_H
#define PERIPH_GBA_H
#include <stdint.h>
@ -102,5 +102,4 @@ extern "C"
}
#endif
#endif /* PERIPH_GBA_H */
/** @} */

View File

@ -1,5 +1,5 @@
#ifndef FONT_TERMINAL_H
#define FONT_TERMINAL_H
#pragma once
#ifdef __cplusplus
extern "C"
@ -282,5 +282,3 @@ extern "C"
#ifdef __cplusplus
}
#endif
#endif /* FONT_TERMINAL_H */

View File

@ -1,5 +1,5 @@
#ifndef ATMEGA_PCINT_H
#define ATMEGA_PCINT_H
#pragma once
#ifdef __cplusplus
extern "C" {
@ -11,5 +11,3 @@ extern "C" {
#ifdef __cplusplus
}
#endif
#endif /* ATMEGA_PCINT_H */

View File

@ -8,6 +8,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega1281
* @{
@ -20,8 +22,6 @@
* @author Francisco Acosta <francisco.acosta@inria.fr>
*/
#ifndef DEFAULT_TIMER_CONFIG_H
#define DEFAULT_TIMER_CONFIG_H
#ifdef __cplusplus
extern "C" {
@ -50,5 +50,4 @@ extern "C" {
}
#endif
#endif /* DEFAULT_TIMER_CONFIG_H */
/** @} */

View File

@ -8,6 +8,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega1281
* @{
@ -20,8 +22,6 @@
* @author Francisco Acosta <francisco.acosta@inria.fr>
*/
#ifndef PERIPH_CPU_H
#define PERIPH_CPU_H
#ifdef __cplusplus
extern "C" {
@ -110,5 +110,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 */
/** @} */

View File

@ -1,5 +1,5 @@
#ifndef ATMEGA_PCINT_H
#define ATMEGA_PCINT_H
#pragma once
#ifdef __cplusplus
extern "C" {
@ -13,5 +13,3 @@ extern "C" {
#ifdef __cplusplus
}
#endif
#endif /* ATMEGA_PCINT_H */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega1284p
* @{
@ -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 */
@ -47,5 +47,4 @@ extern "C" {
}
#endif
#endif /* DEFAULT_TIMER_CONFIG_H */
/** @} */

View File

@ -8,6 +8,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega1284p
* @{
@ -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"
@ -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 */
/** @} */

View File

@ -1,5 +1,5 @@
#ifndef ATMEGA_PCINT_H
#define ATMEGA_PCINT_H
#pragma once
#ifdef __cplusplus
extern "C" {
@ -11,5 +11,3 @@ extern "C" {
#ifdef __cplusplus
}
#endif
#endif /* ATMEGA_PCINT_H */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega128rfa1
* @{
@ -17,8 +19,6 @@
* @author Steffen Robertz <steffen.robertz@rwth-aachen.de>
*/
#ifndef DEFAULT_TIMER_CONFIG_H
#define DEFAULT_TIMER_CONFIG_H
#ifdef __cplusplus
extern "C" {
@ -54,5 +54,4 @@ extern "C" {
}
#endif
#endif /* DEFAULT_TIMER_CONFIG_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega128rfa1
* @{
@ -17,8 +19,6 @@
* @author Steffen Robertz <steffen.robertz@rwth-aachen.de>
*/
#ifndef PERIPH_CPU_H
#define PERIPH_CPU_H
#include "periph_cpu_common.h"
#include "atmega_regs_common.h"
@ -107,5 +107,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 */
/** @} */

View File

@ -1,5 +1,5 @@
#ifndef ATMEGA_PCINT_H
#define ATMEGA_PCINT_H
#pragma once
#ifdef __cplusplus
extern "C" {
@ -12,5 +12,3 @@ extern "C" {
#ifdef __cplusplus
}
#endif
#endif /* ATMEGA_PCINT_H */

View File

@ -8,6 +8,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega2560
* @{
@ -20,8 +22,6 @@
* @author Francisco Acosta <francisco.acosta@inria.fr>
*/
#ifndef DEFAULT_TIMER_CONFIG_H
#define DEFAULT_TIMER_CONFIG_H
#ifdef __cplusplus
extern "C" {
@ -50,5 +50,4 @@ extern "C" {
}
#endif
#endif /* DEFAULT_TIMER_CONFIG_H */
/** @} */

View File

@ -7,6 +7,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega2560
* @{
@ -18,8 +20,6 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#ifndef PERIPH_CPU_H
#define PERIPH_CPU_H
#include "periph_cpu_common.h"
@ -112,5 +112,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 */
/** @} */

View File

@ -1,5 +1,5 @@
#ifndef ATMEGA_PCINT_H
#define ATMEGA_PCINT_H
#pragma once
#ifdef __cplusplus
extern "C" {
@ -11,5 +11,3 @@ extern "C" {
#ifdef __cplusplus
}
#endif
#endif /* ATMEGA_PCINT_H */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega256rfr2
* @{
@ -17,8 +19,6 @@
* @author Steffen Robertz <steffen.robertz@rwth-aachen.de>
*/
#ifndef DEFAULT_TIMER_CONFIG_H
#define DEFAULT_TIMER_CONFIG_H
#ifdef __cplusplus
extern "C" {
@ -54,5 +54,4 @@ extern "C" {
}
#endif
#endif /* DEFAULT_TIMER_CONFIG_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega256rfr2
* @{
@ -17,8 +19,6 @@
* @author Steffen Robertz <steffen.robertz@rwth-aachen.de>
*/
#ifndef PERIPH_CPU_H
#define PERIPH_CPU_H
#include "periph_cpu_common.h"
#include "atmega_regs_common.h"
@ -108,5 +108,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 */
/** @} */

View File

@ -1,5 +1,5 @@
#ifndef ATMEGA_PCINT_H
#define ATMEGA_PCINT_H
#pragma once
#ifdef __cplusplus
extern "C" {
@ -12,5 +12,3 @@ extern "C" {
#ifdef __cplusplus
}
#endif
#endif /* ATMEGA_PCINT_H */

View File

@ -7,6 +7,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega328p
* @{
@ -18,8 +20,6 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#ifndef DEFAULT_TIMER_CONFIG_H
#define DEFAULT_TIMER_CONFIG_H
#ifdef __cplusplus
extern "C" {
@ -40,5 +40,4 @@ extern "C" {
}
#endif
#endif /* DEFAULT_TIMER_CONFIG_H */
/** @} */

View File

@ -7,6 +7,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega328p
* @{
@ -18,8 +20,6 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#ifndef PERIPH_CPU_H
#define PERIPH_CPU_H
#include "periph_cpu_common.h"
@ -103,5 +103,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 */
/** @} */

View File

@ -1,5 +1,5 @@
#ifndef ATMEGA_PCINT_H
#define ATMEGA_PCINT_H
#pragma once
#ifdef __cplusplus
extern "C" {
@ -10,5 +10,3 @@ extern "C" {
#ifdef __cplusplus
}
#endif
#endif /* ATMEGA_PCINT_H */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega32u4
* @{
@ -17,8 +19,6 @@
*
*/
#ifndef DEFAULT_TIMER_CONFIG_H
#define DEFAULT_TIMER_CONFIG_H
#ifdef __cplusplus
extern "C" {
@ -47,5 +47,4 @@ extern "C" {
}
#endif
#endif /* DEFAULT_TIMER_CONFIG_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega32u4
* @{
@ -17,8 +19,6 @@
*
*/
#ifndef PERIPH_CPU_H
#define PERIPH_CPU_H
#include "periph_cpu_common.h"
@ -97,5 +97,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 */
/** @} */

View File

@ -9,6 +9,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega_common
* @{
@ -24,8 +26,6 @@
* @author Hugues Larrive <hugues.larrive@pm.me>
*/
#ifndef CPU_CONF_H
#define CPU_CONF_H
#include "atmega_regs_common.h"
@ -89,5 +89,4 @@ extern "C" {
}
#endif
#endif /* CPU_CONF_H */
/** @} */

View File

@ -8,6 +8,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega8
* @{
@ -20,8 +22,6 @@
* @author Hugues Larrive <hugues.larrive@pm.me>
*/
#ifndef DEFAULT_TIMER_CONFIG_H
#define DEFAULT_TIMER_CONFIG_H
#ifdef __cplusplus
extern "C" {
@ -42,5 +42,4 @@ extern "C" {
}
#endif
#endif /* DEFAULT_TIMER_CONFIG_H */
/** @} */

View File

@ -8,6 +8,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega8
* @{
@ -20,8 +22,6 @@
* @author Hugues Larrive <hugues.larrive@pm.me>
*/
#ifndef PERIPH_CPU_H
#define PERIPH_CPU_H
#include "periph_cpu_common.h"
@ -105,5 +105,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 */
/** @} */

View File

@ -8,6 +8,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega_common
* @ingroup drivers_periph_gpio
@ -22,8 +24,6 @@
* @author Laurent Navet <laurent.navet@gmail.com>
*/
#ifndef ATMEGA_GPIO_H
#define ATMEGA_GPIO_H
#include <stddef.h>
#include <stdio.h>
@ -83,5 +83,4 @@ static inline uint16_t atmega_port_addr(gpio_t pin)
}
#endif
#endif /* ATMEGA_GPIO_H */
/** @} */

View File

@ -9,6 +9,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega_common
* @{
@ -23,8 +25,6 @@
*
*/
#ifndef ATMEGA_REGS_COMMON_H
#define ATMEGA_REGS_COMMON_H
#include <avr/io.h>
#include <avr/power.h>
@ -182,5 +182,4 @@ typedef struct {
}
#endif
#endif /* ATMEGA_REGS_COMMON_H */
/** @} */

View File

@ -9,6 +9,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega_common
* @brief Common clock support for ATmega family based micro-controllers
@ -29,8 +31,6 @@
*
*/
#ifndef CPU_CLOCK_H
#define CPU_CLOCK_H
#include <stdint.h>
@ -78,5 +78,4 @@ static inline void atmega_set_prescaler(uint8_t clk_scale)
}
#endif
#endif /* CPU_CLOCK_H */
/** @} */

View File

@ -8,6 +8,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega_common
* @{
@ -22,8 +24,6 @@
* @author Matthew Blue <matthew.blue.neuro@gmail.com>
*/
#ifndef CPU_CONF_H
#define CPU_CONF_H
#include "atmega_regs_common.h"
@ -87,5 +87,4 @@ extern "C" {
}
#endif
#endif /* CPU_CONF_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega_common
* @ingroup drivers_periph_gpio_ll
@ -20,8 +22,6 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#ifndef GPIO_LL_ARCH_H
#define GPIO_LL_ARCH_H
#include <assert.h>
@ -372,5 +372,4 @@ static inline bool is_gpio_port_num_valid(uint_fast8_t num)
}
#endif
#endif /* GPIO_LL_ARCH_H */
/** @} */

View File

@ -9,6 +9,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atmega_common
* @{
@ -22,8 +24,6 @@
* @author Hugues Larrive <hugues.larrive@pm.me>
*/
#ifndef PERIPH_CPU_COMMON_H
#define PERIPH_CPU_COMMON_H
#include "cpu.h"
@ -384,5 +384,4 @@ typedef struct {
}
#endif
#endif /* PERIPH_CPU_COMMON_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atxmega
* @brief Common implementations and headers for ATxmega family based micro-controllers
@ -21,8 +23,6 @@
*
*/
#ifndef CPU_CLOCK_H
#define CPU_CLOCK_H
#include <stdint.h>
@ -71,5 +71,4 @@ static inline void atxmega_set_prescaler(uint8_t clk_scale, uint8_t bus_scale)
}
#endif
#endif /* CPU_CLOCK_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atxmega
* @{
@ -16,8 +18,6 @@
* @author Gerson Fernando Budke <nandojve@gmail.com>
*/
#ifndef CPU_CONF_H
#define CPU_CONF_H
#ifdef __cplusplus
extern "C" {
@ -72,5 +72,4 @@ extern "C" {
}
#endif
#endif /* CPU_CONF_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atxmega
* @{
@ -18,8 +20,6 @@
#include "periph_cpu.h"
#ifndef CPU_EBI_H
#define CPU_EBI_H
#ifdef __cplusplus
extern "C" {
@ -150,5 +150,4 @@ void hugemem_write_block(hugemem_ptr_t to, const void *from, size_t size);
}
#endif
#endif /* CPU_EBI_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atxmega
* @brief Non Volatile Memory (NVM) internal API
@ -15,8 +17,6 @@
*
*/
#ifndef CPU_NVM_H
#define CPU_NVM_H
#ifdef __cplusplus
extern "C" {
@ -61,5 +61,4 @@ uint8_t nvm_read_production_signature_row(uint8_t address);
}
#endif
#endif /* CPU_NVM_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atxmega
* @{
@ -22,8 +24,6 @@
#include "periph_cpu.h"
#ifndef CPU_PM_H
#define CPU_PM_H
#ifdef __cplusplus
extern "C" {
@ -37,5 +37,4 @@ void pm_periph_power_off(void);
}
#endif
#endif /* CPU_PM_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_atxmega
* @{
@ -16,8 +18,6 @@
* @author Gerson Fernando Budke <nandojve@gmail.com>
*/
#ifndef PERIPH_CPU_H
#define PERIPH_CPU_H
#include <avr/io.h>
@ -612,5 +612,4 @@ typedef struct {
}
#endif
#endif /* PERIPH_CPU_H */
/** @} */

View File

@ -28,8 +28,7 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE. */
#ifndef ERRNO_H
#define ERRNO_H
#pragma once
/**
* @addtogroup cpu_atmega_common
@ -154,5 +153,3 @@ extern int errno;
/** @} */
/** @} */
#endif /* ERRNO_H */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @addtogroup cpu_atmega_common
* @{
@ -15,8 +17,6 @@
*
* @author Martine Lenders <mlenders@inf.fu-berlin.de>
*/
#ifndef INTTYPES_H
#define INTTYPES_H
#include_next <inttypes.h>
@ -33,5 +33,4 @@ extern "C" {
}
#endif
#endif /* INTTYPES_H */
/** @} */

View File

@ -6,6 +6,8 @@
* details.
*/
#pragma once
/**
* @addtogroup cpu_atmega_common
*
@ -22,8 +24,6 @@
#include <string.h>
#ifndef STRINGS_H
#define STRINGS_H
#ifdef __cplusplus
extern "C" {
@ -78,5 +78,4 @@ static inline void bcopy(const void *src, void *dest, size_t n)
}
#endif
#endif /* STRINGS_H */
/** @} */

View File

@ -6,8 +6,7 @@
* directory for more details.
*/
#ifndef SYS_TIME_H
#define SYS_TIME_H
#pragma once
#include <sys/types.h>
#include <time.h>
@ -28,5 +27,3 @@ struct timeval {
#ifdef __cplusplus
}
#endif
#endif /* SYS_TIME_H */

View File

@ -7,8 +7,7 @@
* directory for more details.
*/
#ifndef SYS_TYPES_H
#define SYS_TYPES_H
#pragma once
#include <stdint.h>
#include <stddef.h>
@ -43,5 +42,3 @@ typedef uint32_t useconds_t; /**< Used for time in microseconds */
#ifdef __cplusplus
}
#endif
#endif /* SYS_TYPES_H */

View File

@ -7,8 +7,7 @@
* directory for more details.
*/
#ifndef UNISTD_H
#define UNISTD_H
#pragma once
#include <stddef.h>
#include <stdint.h>
@ -106,5 +105,3 @@ ssize_t write(int, const void *, size_t);
#ifdef __cplusplus
}
#endif
#endif /* UNISTD_H */

View File

@ -7,6 +7,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_avr8_common
* @{
@ -19,8 +21,6 @@
*
*/
#ifndef ARCHITECTURE_ARCH_H
#define ARCHITECTURE_ARCH_H
#ifdef __cplusplus
extern "C" {
@ -40,4 +40,3 @@ typedef uint32_t uinttxtptr_t;
#endif
/** @} */
#endif /* ARCHITECTURE_ARCH_H */

View File

@ -7,6 +7,8 @@
* details.
*/
#pragma once
/**
* @ingroup cpu_avr8_common
*
@ -18,8 +20,6 @@
* @author Gerson Fernando Budke <nandojve@gmail.com>
*/
#ifndef ATOMIC_UTILS_ARCH_H
#define ATOMIC_UTILS_ARCH_H
#ifndef DOXYGEN
#include "periph_cpu.h"
@ -50,5 +50,4 @@ static inline void atomic_store_u8(volatile uint8_t *dest, uint8_t val)
#endif
#endif /* DOXYGEN */
#endif /* ATOMIC_UTILS_ARCH_H */
/** @} */

View File

@ -9,6 +9,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_avr8_common
* @brief Common implementations and headers for AVR-8 family based micro-controllers
@ -29,8 +31,6 @@
*
*/
#ifndef CPU_H
#define CPU_H
#include <stdio.h>
#include <stdint.h>
@ -181,5 +181,4 @@ void avr8_reset_cause(void);
}
#endif
#endif /* CPU_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_avr8_common
* @{
@ -17,8 +19,6 @@
*
*/
#ifndef FLASH_UTILS_ARCH_H
#define FLASH_UTILS_ARCH_H
#include <stdio.h>
#include <stdarg.h>
@ -105,4 +105,3 @@ int flash_snprintf(char *buf, size_t buf_len, FLASH_ATTR const char *flash, ...)
#endif
/** @} */
#endif /* FLASH_UTILS_ARCH_H */

View File

@ -9,6 +9,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_avr8_common
* @{
@ -24,8 +26,6 @@
*
*/
#ifndef IRQ_ARCH_H
#define IRQ_ARCH_H
#include <stdbool.h>
#include <stdint.h>
@ -158,4 +158,3 @@ __attribute__((always_inline)) static inline bool irq_is_enabled(void)
#endif
/** @} */
#endif /* IRQ_ARCH_H */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_avr8_common
* @{
@ -17,8 +19,6 @@
*
*/
#ifndef STATES_INTERNAL_H
#define STATES_INTERNAL_H
#include <avr/io.h>
@ -109,5 +109,4 @@ extern uint8_t avr8_state_irq_count_sram; /**< IRQ state variable.
}
#endif
#endif /* STATES_INTERNAL_H */
/** @} */

View File

@ -6,6 +6,8 @@
* details.
*/
#pragma once
/**
* @defgroup cpu_avr8_common_stdio_wrapper stdio wrapper for AVR8
* @ingroup cpu_avr8_common
@ -21,8 +23,6 @@
* @author Marian Buschsieweke <marian.buschsieweke@ovgu.de>
*/
#ifndef STDIO_H
#define STDIO_H
#include_next "stdio.h"
/* C++ does not support __flash. Hence, only wrap printf() and friends for
@ -141,5 +141,4 @@ extern "C" {
#endif
#endif /* STDIO_H */
/** @} */

View File

@ -7,6 +7,8 @@
* details.
*/
#pragma once
/**
* @ingroup cpu_avr8_common
* @{
@ -17,8 +19,6 @@
* @author Koen Zandberg <koen@bergzand.net>
*/
#ifndef THREAD_ARCH_H
#define THREAD_ARCH_H
#ifdef __cplusplus
extern "C" {
@ -28,5 +28,4 @@ extern "C" {
}
#endif
#endif /* THREAD_ARCH_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_cc2538_regs
* @{
@ -16,8 +18,6 @@
* @author Ian Martin <ian@locicontrols.com>
*/
#ifndef CC2538_H
#define CC2538_H
#ifdef __cplusplus
extern "C" {
@ -809,5 +809,4 @@ typedef volatile uint32_t cc2538_reg_t; /**< Least-significant 32 bits of the IE
}
#endif
#endif /* CC2538_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_cc2538
* @{
@ -16,8 +18,6 @@
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
*/
#ifndef CC2538_EUI_PRIMARY_H
#define CC2538_EUI_PRIMARY_H
#include "net/eui64.h"
@ -71,5 +71,4 @@ static inline int cc2538_get_eui64_primary(uint8_t index, eui64_t *addr)
} /* end extern "C" */
#endif
#endif /* CC2538_EUI_PRIMARY_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @defgroup cpu_cc2538_gpio CC2538 General-Purpose I/O
* @ingroup cpu_cc2538_regs
@ -21,8 +23,6 @@
* @{
*/
#ifndef CC2538_GPIO_H
#define CC2538_GPIO_H
#include <stdint.h>
@ -344,7 +344,6 @@ typedef struct {
} /* end extern "C" */
#endif
#endif /* CC2538_GPIO_H */
/** @} */
/** @} */

View File

@ -7,6 +7,8 @@
* directory for more details.
*/
#pragma once
/**
* @defgroup cpu_cc2538_gptimer CC2538 General Purpose Timer
* @ingroup cpu_cc2538_regs
@ -19,8 +21,6 @@
* @author Sebastian Meiling <s@mlng.net>
*/
#ifndef CC2538_GPTIMER_H
#define CC2538_GPTIMER_H
#include <stdint.h>
@ -88,5 +88,4 @@ typedef struct {
} /* end extern "C" */
#endif
#endif /* CC2538_GPTIMER_H */
/** @} */

View File

@ -8,6 +8,8 @@
*
*/
#pragma once
/**
* @ingroup cpu_cc2538
* @{
@ -19,8 +21,6 @@
* @author Ian Martin <ian@locicontrols.com>
*/
#ifndef CC2538_RF_H
#define CC2538_RF_H
#include <stdbool.h>
@ -468,5 +468,4 @@ void cc2538_set_tx_power(int dBm);
}
#endif
#endif /* CC2538_RF_H */
/** @} */

View File

@ -7,6 +7,8 @@
*
*/
#pragma once
/**
* @ingroup cpu_cc2538
* @{
@ -17,8 +19,6 @@
* @author Aaron Sowry <aaron@mutex.nz>
*/
#ifndef CC2538_RF_INTERNAL_H
#define CC2538_RF_INTERNAL_H
#ifdef __cplusplus
extern "C" {
@ -100,5 +100,4 @@ bool RFCORE_ASSERT_failure(const char *expr, const char *func, int line);
}
#endif
#endif /* CC2538_RF_INTERNAL_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @defgroup cpu_cc2538_rfcore CC2538 RF core interface
* @ingroup cpu_cc2538_regs
@ -18,8 +20,6 @@
*
*/
#ifndef CC2538_RFCORE_H
#define CC2538_RFCORE_H
#include "cc2538.h"
@ -275,5 +275,4 @@ enum {
} /* extern "C" */
#endif
#endif /* CC2538_RFCORE_H */
/** @} */

View File

@ -7,6 +7,8 @@
* directory for more details.
*/
#pragma once
/**
* @defgroup cpu_cc2538_adc CC2538 ADC
* @ingroup cpu_cc2538_regs
@ -19,8 +21,6 @@
* @author Sebastian Meiling <s@mlng.net>
*/
#ifndef CC2538_SOC_ADC_H
#define CC2538_SOC_ADC_H
#include "cc2538.h"
@ -47,6 +47,5 @@ typedef struct {
} /* end extern "C" */
#endif
#endif /* CC2538_SOC_ADC_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @addtogroup cpu_cc2538
* @{
@ -17,8 +19,6 @@
* @author Sebastian Meiling <s@mlng.net>
*/
#ifndef CC2538_SSI_H
#define CC2538_SSI_H
#include "cc2538.h"
@ -61,5 +61,4 @@ typedef struct {
} /* end extern "C" */
#endif
#endif /* CC2538_SSI_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @defgroup cpu_cc2538_sysctrl CC2538 System Control
* @ingroup cpu_cc2538_regs
@ -17,8 +19,6 @@
* @author Ian Martin <ian@locicontrols.com>
*/
#ifndef CC2538_SYS_CTRL_H
#define CC2538_SYS_CTRL_H
#include "cc2538.h"
@ -160,6 +160,5 @@ typedef struct {
} /* end extern "C" */
#endif
#endif /* CC2538_SYS_CTRL_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @defgroup cpu_cc2538_uart CC2538 UART
* @ingroup cpu_cc2538_regs
@ -17,8 +19,6 @@
* @author Ian Martin <ian@locicontrols.com>
*/
#ifndef CC2538_UART_H
#define CC2538_UART_H
#include "cc2538.h"
@ -187,5 +187,4 @@ typedef struct {
} /* end extern "C" */
#endif
#endif /* CC2538_UART_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_cc2538
* @{
@ -16,8 +18,6 @@
* @author Ian Martin <ian@locicontrols.com>
*/
#ifndef CPU_CONF_H
#define CPU_CONF_H
#include "kernel_defines.h"
#include "cpu_conf_common.h"
@ -74,5 +74,4 @@ extern "C" {
} /* end extern "C" */
#endif
#endif /* CPU_CONF_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu
* @{
@ -16,8 +18,6 @@
* @author Francisco Molina <francois-xavier.molina@inria.fr>
*/
#ifndef OPENWSN_DEFS_H
#define OPENWSN_DEFS_H
#ifdef __cplusplus
extern "C" {
@ -39,5 +39,4 @@ extern "C" {
}
#endif
#endif /* OPENWSN_DEFS_H */
/** @} */

View File

@ -7,6 +7,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_cc2538
* @{
@ -18,8 +20,6 @@
* @author Sebastian Meiling <s@mlng.net>
*/
#ifndef PERIPH_CPU_H
#define PERIPH_CPU_H
#include <stdint.h>
#include <stdio.h>
@ -386,5 +386,4 @@ typedef gpio_t adc_conf_t;
}
#endif
#endif /* PERIPH_CPU_H */
/** @} */

View File

@ -6,6 +6,8 @@
* details.
*/
#pragma once
/**
* @ingroup cpu_cc26x0_cc13x0_definitions
* @{
@ -14,8 +16,6 @@
* @brief CC26x0/CC13x0 AUX register definitions
*/
#ifndef CC26X0_CC13X0_AUX_H
#define CC26X0_CC13X0_AUX_H
#include <stdbool.h>
@ -253,5 +253,4 @@ typedef struct {
} /* end extern "C" */
#endif
#endif /* CC26X0_CC13X0_AUX_H */
/** @} */

View File

@ -6,6 +6,8 @@
* details.
*/
#pragma once
/**
* @ingroup cpu_cc26x0_cc13x0_definitions
* @{
@ -14,8 +16,6 @@
* @brief CC26x0/CC13x0 FCFG register definitions
*/
#ifndef CC26X0_CC13X0_FCFG_H
#define CC26X0_CC13X0_FCFG_H
#include <cc26xx_cc13xx.h>
@ -142,5 +142,4 @@ typedef struct {
} /* end extern "C" */
#endif
#endif /* CC26X0_CC13X0_FCFG_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_cc26x0_cc13x0_definitions
* @{
@ -14,8 +16,6 @@
* @brief CC26x0/CC13x0 PRCM register definitions
*/
#ifndef CC26X0_CC13X0_PRCM_H
#define CC26X0_CC13X0_PRCM_H
#include <cc26xx_cc13xx.h>
@ -359,5 +359,4 @@ typedef struct {
} /* end extern "C" */
#endif
#endif /* CC26X0_CC13X0_PRCM_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @addtogroup cpu_cc26x0_cc13x0
* @{
@ -18,8 +20,6 @@
*
*/
#ifndef CPU_CONF_H
#define CPU_CONF_H
#ifndef SET_MODE_CONF_1_ALT_DCDC_IPEAK
#define SET_MODE_CONF_1_ALT_DCDC_IPEAK 0x2 /**< 32 mA */
@ -50,5 +50,4 @@ extern "C" {
}
#endif
#endif /* CPU_CONF_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_cc26x0_cc13x0
* @{
@ -16,8 +18,6 @@
* @author Leon M. George <leon@georgemail.de>
*/
#ifndef PERIPH_CPU_H
#define PERIPH_CPU_H
#include "periph_cpu_common.h"
@ -31,5 +31,4 @@ extern "C" {
}
#endif
#endif /* PERIPH_CPU_H */
/** @} */

View File

@ -6,6 +6,9 @@
* Public License v2.1. See the file LICENSE in the top level directory for more
* details.
*/
#pragma once
/**
* @ingroup cpu_cc26x2_cc13x2_definitions
* @{
@ -14,8 +17,6 @@
* @brief CC26x2, CC13x2 AUX register definitions
*/
#ifndef CC26X2_CC13X2_AUX_H
#define CC26X2_CC13X2_AUX_H
#include <stdbool.h>
@ -476,6 +477,5 @@ typedef struct {
} /* end extern "C" */
#endif
#endif /* CC26X2_CC13X2_AUX_H */
/** @}*/

View File

@ -5,6 +5,9 @@
* Public License v2.1. See the file LICENSE in the top level directory for more
* details.
*/
#pragma once
/**
* @ingroup cpu_cc26x2_cc13x2_definitions
* @{
@ -13,8 +16,6 @@
* @brief CC26x2, CC13x2 FCFG register definitions
*/
#ifndef CC26X2_CC13X2_FCFG_H
#define CC26X2_CC13X2_FCFG_H
#include <cc26xx_cc13xx.h>
@ -156,6 +157,5 @@ typedef struct {
} /* end extern "C" */
#endif
#endif /* CC26X2_CC13X2_FCFG_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_cc26x2_cc13x2_definitions
* @{
@ -14,8 +16,6 @@
* @brief CC26x2, CC13x2 PRCM register definitions
*/
#ifndef CC26X2_CC13X2_PRCM_H
#define CC26X2_CC13X2_PRCM_H
#include <cc26xx_cc13xx.h>
@ -385,5 +385,4 @@ typedef struct {
} /* end extern "C" */
#endif
#endif /* CC26X2_CC13X2_PRCM_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_cc26x2_cc13x2
* @{
@ -14,8 +16,6 @@
* @brief CC26x2/CC13x2 Device setup functions
*/
#ifndef CC26X2_CC13X2_SETUP_H
#define CC26X2_CC13X2_SETUP_H
#include <cc26xx_cc13xx.h>
@ -117,5 +117,4 @@ void setup_trim_device(void);
} /* end extern "C" */
#endif
#endif /* CC26X2_CC13X2_SETUP_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @addtogroup cpu_cc26x2_cc13x2
* @{
@ -18,8 +20,6 @@
*
*/
#ifndef CPU_CONF_H
#define CPU_CONF_H
#ifndef SET_MODE_CONF_1_ALT_DCDC_IPEAK
#define SET_MODE_CONF_1_ALT_DCDC_IPEAK 0x2 /**< 12 mA */
@ -50,5 +50,4 @@ extern "C" {
}
#endif
#endif /* CPU_CONF_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_cc26x2_cc13x2
* @{
@ -16,8 +18,6 @@
* @author Leon M. George <leon@georgemail.de>
*/
#ifndef PERIPH_CPU_H
#define PERIPH_CPU_H
#include "periph_cpu_common.h"
@ -31,5 +31,4 @@ extern "C" {
}
#endif
#endif /* PERIPH_CPU_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_cc26xx_cc13xx_definitions
* @{
@ -17,8 +19,6 @@
* @author Anton Gerasimov <tossel@gmail.com>
*/
#ifndef CC26XX_CC13XX_H
#define CC26XX_CC13XX_H
#include <stdint.h>
@ -177,5 +177,4 @@ typedef enum IRQn {
}
#endif
#endif /* CC26XX_CC13XX_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_cc26xx_cc13xx_definitions
* @{
@ -16,8 +18,6 @@
* @author Jean Pierre Dudey <jeandudey@hotmail.com>
*/
#ifndef CC26XX_CC13XX_ADI_H
#define CC26XX_CC13XX_ADI_H
#include "cc26xx_cc13xx.h"
@ -122,5 +122,4 @@ typedef struct {
}
#endif
#endif /* CC26XX_CC13XX_ADI_H */
/** @} */

View File

@ -5,6 +5,9 @@
* Public License v2.1. See the file LICENSE in the top level directory for more
* details.
*/
#pragma once
/**
* @ingroup cpu_cc26xx_cc13xx_definitions
* @{
@ -13,8 +16,6 @@
* @brief CC26xx/CC13xx CCFG register definitions
*/
#ifndef CC26XX_CC13XX_CCFG_H
#define CC26XX_CC13XX_CCFG_H
#include <cc26xx_cc13xx.h>
@ -163,6 +164,5 @@ typedef struct {
} /* end extern "C" */
#endif
#endif /* CC26XX_CC13XX_CCFG_H */
/** @} */

View File

@ -5,6 +5,9 @@
* Public License v2.1. See the file LICENSE in the top level directory for more
* details.
*/
#pragma once
/**
* @ingroup cpu_cc26xx_cc13xx_definitions
* @{
@ -16,8 +19,6 @@
*
*/
#ifndef CC26XX_CC13XX_GPIO_H
#define CC26XX_CC13XX_GPIO_H
#include "cc26xx_cc13xx.h"
@ -58,6 +59,5 @@ typedef struct {
} /* end extern "C" */
#endif
#endif /* CC26XX_CC13XX_GPIO_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_cc26xx_cc13xx_definitions
* @{
@ -16,8 +18,6 @@
* @author Leon George <leon@georgemail.eu>
*/
#ifndef CC26XX_CC13XX_GPT_H
#define CC26XX_CC13XX_GPT_H
#include "cc26xx_cc13xx.h"
@ -207,5 +207,4 @@ typedef struct {
}
#endif
#endif /* CC26XX_CC13XX_GPT_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_cc26xx_cc13xx_definitions
* @{
@ -16,8 +18,6 @@
* @author Jean Pierre Dudey <jeandudey@hotmail.com>
*/
#ifndef CC26XX_CC13XX_HARD_API_H
#define CC26XX_CC13XX_HARD_API_H
#include "cc26xx_cc13xx.h"
@ -93,5 +93,4 @@ typedef struct {
}
#endif
#endif /* CC26XX_CC13XX_HARD_API_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_cc26xx_cc13xx_definitions
* @{
@ -16,8 +18,6 @@
* @author Leon George <leon@georgemail.eu>
*/
#ifndef CC26XX_CC13XX_I2C_H
#define CC26XX_CC13XX_I2C_H
#include "cc26xx_cc13xx.h"
@ -198,5 +198,4 @@ cycle or continues on to a repeated START condition
}
#endif
#endif /* CC26XX_CC13XX_I2C_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_cc26xx_cc13xx_definitions
* @{
@ -16,8 +18,6 @@
* @author Leon George <leon@georgemail.eu>
*/
#ifndef CC26XX_CC13XX_IOC_H
#define CC26XX_CC13XX_IOC_H
#include "cc26xx_cc13xx.h"
@ -182,5 +182,4 @@ typedef struct {
}
#endif
#endif /* CC26XX_CC13XX_IOC_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_cc26xx_cc13xx
* @{
@ -16,8 +18,6 @@
* @author Jean Pierre Dudey <jeandudey@hotmail.com>
*/
#ifndef CC26XX_CC13XX_POWER_H
#define CC26XX_CC13XX_POWER_H
#include <cc26xx_cc13xx.h>
#include <stdbool.h>
@ -91,5 +91,4 @@ void power_clock_disable_uart(uart_t uart);
} /* end extern "C" */
#endif
#endif /* CC26XX_CC13XX_POWER_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_cc26xx_cc13xx_definitions
* @{
@ -16,8 +18,6 @@
* @author Jean Pierre Dudey <jeandudey@hotmail.com>
*/
#ifndef CC26XX_CC13XX_RFC_H
#define CC26XX_CC13XX_RFC_H
#include "cc26xx_cc13xx.h"
@ -167,5 +167,4 @@ typedef struct {
}
#endif
#endif /* CC26XX_CC13XX_RFC_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @addtogroup cpu_cc26xx_cc13xx_definitions
* @{
@ -15,8 +17,6 @@
*
*/
#ifndef CC26XX_CC13XX_UART_H
#define CC26XX_CC13XX_UART_H
#include "cc26xx_cc13xx.h"
@ -141,5 +141,4 @@ typedef struct {
} /* end extern "C" */
#endif
#endif /* CC26XX_CC13XX_UART_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup cpu_cc26xx_cc13xx_definitions
* @{
@ -14,8 +16,6 @@
* @brief CC26xx/CC13xx VIMS register definitions
*/
#ifndef CC26XX_CC13XX_VIMS_H
#define CC26XX_CC13XX_VIMS_H
#ifdef __cplusplus
extern "C" {
@ -258,5 +258,4 @@ typedef struct {
}
#endif
#endif /* CC26XX_CC13XX_VIMS_H */
/** @} */

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