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

sys: replace header guards with #pragma once

This commit is contained in:
KSKNico 2025-05-16 19:40:06 +02:00
parent 25034bef7f
commit e6b17fa5cb
547 changed files with 1115 additions and 1655 deletions

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_arduino * @ingroup sys_arduino
* @brief Wrapper to keep source code compatibility for Arduino.h * @brief Wrapper to keep source code compatibility for Arduino.h
@ -14,8 +16,6 @@
* @{ * @{
*/ */
#ifndef ARDUINO_H
#define ARDUINO_H
#ifdef __cplusplus #ifdef __cplusplus
#include "arduino.hpp" #include "arduino.hpp"
@ -29,5 +29,4 @@ extern "C" {
} }
#endif #endif
#endif /* ARDUINO_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_arduino * @ingroup sys_arduino
* @{ * @{
@ -16,8 +18,6 @@
* @author Marian Buschsieweke <marian.buschsieweke@ovgu.de> * @author Marian Buschsieweke <marian.buschsieweke@ovgu.de>
*/ */
#ifndef SPI_H
#define SPI_H
#ifndef MODULE_PERIPH_SPI #ifndef MODULE_PERIPH_SPI
#error "No SPI support on your board" #error "No SPI support on your board"
@ -39,6 +39,5 @@ extern "C" {
} }
#endif #endif
#endif /* SPI_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_arduino * @ingroup sys_arduino
* @brief Wrapper to keep source code compatibility for Wire.h * @brief Wrapper to keep source code compatibility for Wire.h
@ -14,8 +16,6 @@
* @{ * @{
*/ */
#ifndef WIRE_H
#define WIRE_H
#ifndef MODULE_PERIPH_I2C #ifndef MODULE_PERIPH_I2C
#error "No I2C support on your board" #error "No I2C support on your board"
@ -33,5 +33,4 @@ extern "C" {
} }
#endif #endif
#endif /* WIRE_H */
/** @} */ /** @} */

View File

@ -7,6 +7,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_arduino * @ingroup sys_arduino
* @{ * @{
@ -19,8 +21,6 @@
* @author Thomas Perrot <thomas.perrot@tupi.fr> * @author Thomas Perrot <thomas.perrot@tupi.fr>
*/ */
#ifndef ARDUINO_BOARD_H
#define ARDUINO_BOARD_H
#include "arduino_board_analog.h" #include "arduino_board_analog.h"
#include "arduino_board_pins.h" #include "arduino_board_pins.h"
@ -62,5 +62,4 @@ extern "C" {
} }
#endif #endif
#endif /* ARDUINO_BOARD_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_arduino * @ingroup sys_arduino
* @{ * @{
@ -20,8 +22,6 @@
* @author Marian Buschsieweke <marian.buschsieweke@ovgu.de> * @author Marian Buschsieweke <marian.buschsieweke@ovgu.de>
*/ */
#ifndef ARDUINO_BOARD_ANALOG_H
#define ARDUINO_BOARD_ANALOG_H
#include "periph/adc.h" #include "periph/adc.h"
#include "arduino_iomap.h" #include "arduino_iomap.h"
@ -160,5 +160,4 @@ static const adc_t arduino_analog_map[] = {
} }
#endif #endif
#endif /* ARDUINO_BOARD_ANALOG_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_arduino * @ingroup sys_arduino
* @{ * @{
@ -20,8 +22,6 @@
* @author Marian Buschsieweke <marian.buschsieweke@ovgu.de> * @author Marian Buschsieweke <marian.buschsieweke@ovgu.de>
*/ */
#ifndef ARDUINO_BOARD_PINS_H
#define ARDUINO_BOARD_PINS_H
#include "arduino_iomap.h" #include "arduino_iomap.h"
#include "periph/gpio.h" #include "periph/gpio.h"
@ -432,5 +432,4 @@ static const gpio_t arduino_pinmap[] = {
} }
#endif #endif
#endif /* ARDUINO_BOARD_PINS_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_arduino * @ingroup sys_arduino
* @{ * @{
@ -20,8 +22,6 @@
* @author Marian Buschsieweke <marian.buschsieweke@ovgu.de> * @author Marian Buschsieweke <marian.buschsieweke@ovgu.de>
*/ */
#ifndef ARDUINO_BOARD_PWM_H
#define ARDUINO_BOARD_PWM_H
#include "arduino_iomap.h" #include "arduino_iomap.h"
#include "periph/pwm.h" #include "periph/pwm.h"
@ -160,5 +160,4 @@ static const arduino_pwm_t arduino_pwm_list[] = {
} }
#endif #endif
#endif /* ARDUINO_BOARD_PWM_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_auto_init * @ingroup sys_auto_init
* *
@ -16,8 +18,6 @@
* @author Fabian Hüßler <fabian.huessler@ovgu.de> * @author Fabian Hüßler <fabian.huessler@ovgu.de>
*/ */
#ifndef AUTO_INIT_PRIORITIES_H
#define AUTO_INIT_PRIORITIES_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -400,5 +400,4 @@ extern "C" {
} }
#endif #endif
#endif /* AUTO_INIT_PRIORITIES_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_clif * @ingroup sys_clif
* *
@ -16,8 +18,6 @@
* *
* @author Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de> * @author Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
*/ */
#ifndef CLIF_INTERNAL_H
#define CLIF_INTERNAL_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -151,5 +151,4 @@ extern "C" {
} }
#endif #endif
#endif /* CLIF_INTERNAL_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @cond * @cond
* @ingroup sys_crypto * @ingroup sys_crypto
@ -17,8 +19,6 @@
* *
*/ */
#ifndef AES_COMMON_H
#define AES_COMMON_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -51,6 +51,5 @@ psa_status_t cbc_aes_common_encrypt_decrypt(cipher_t *ctx,
} }
#endif #endif
#endif /* AES_COMMON_H */
/** @} */ /** @} */
/** @endcond */ /** @endcond */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @{ * @{
* *
@ -13,8 +15,6 @@
* *
* @author Janos Kutscherauer <noshky@gmail.com> * @author Janos Kutscherauer <noshky@gmail.com>
*/ */
#ifndef COLORTEXTCOLORS_H
#define COLORTEXTCOLORS_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -53,5 +53,4 @@ extern "C" {
} }
#endif #endif
#endif /* COLORTEXTCOLORS_H */
/** @} */ /** @} */

View File

@ -7,6 +7,8 @@
* *
*/ */
#pragma once
/** /**
* @ingroup sys_fs_devfs * @ingroup sys_fs_devfs
* @{ * @{
@ -17,8 +19,6 @@
* @author Vincent Dupont <vincent@otakeys.com> * @author Vincent Dupont <vincent@otakeys.com>
*/ */
#ifndef RANDOM_VFS_H
#define RANDOM_VFS_H
#include "vfs.h" #include "vfs.h"
@ -44,5 +44,4 @@ extern const vfs_file_ops_t random_vfs_ops;
} }
#endif #endif
#endif /* RANDOM_VFS_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_analog_util Analog data conversion utilities * @defgroup sys_analog_util Analog data conversion utilities
* @ingroup sys * @ingroup sys
@ -18,8 +20,6 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef ANALOG_UTIL_H
#define ANALOG_UTIL_H
#include <stdint.h> #include <stdint.h>
@ -90,5 +90,4 @@ uint16_t dac_util_mapf(float value, float min, float max);
} }
#endif #endif
#endif /* ANALOG_UTIL_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_app_metadata app_metadata * @defgroup sys_app_metadata app_metadata
* @ingroup sys * @ingroup sys
@ -15,8 +17,6 @@
* @author Kevin Weiss <kevin.weiss@haw-hamburg.de> * @author Kevin Weiss <kevin.weiss@haw-hamburg.de>
*/ */
#ifndef APP_METADATA_H
#define APP_METADATA_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -50,5 +50,4 @@ void app_metadata_print_json(void);
} }
#endif #endif
#endif /* APP_METADATA_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* details. * details.
*/ */
#pragma once
/** /**
* @defgroup sys_architecture Platform-independent access to architecture * @defgroup sys_architecture Platform-independent access to architecture
* details * details
@ -21,8 +23,6 @@
* @author Marian Buschsieweke <marian.buschsieweke@ovgu.de> * @author Marian Buschsieweke <marian.buschsieweke@ovgu.de>
*/ */
#ifndef ARCHITECTURE_H
#define ARCHITECTURE_H
#include <stdint.h> #include <stdint.h>
#include <inttypes.h> #include <inttypes.h>
@ -229,5 +229,4 @@ typedef uintptr_t uinttxtptr_t;
} }
#endif #endif
#endif /* ARCHITECTURE_H */
/** @} */ /** @} */

View File

@ -8,6 +8,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_auto_init Auto-initialization * @defgroup sys_auto_init Auto-initialization
* @ingroup sys * @ingroup sys
@ -105,8 +107,6 @@
* @author Alexandre Abadie <alexandre.abadie@inria.fr> * @author Alexandre Abadie <alexandre.abadie@inria.fr>
*/ */
#ifndef AUTO_INIT_H
#define AUTO_INIT_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -126,4 +126,3 @@ void auto_init(void);
#endif #endif
/** @} */ /** @} */
#endif /* AUTO_INIT_H */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_auto_init_utils Utilities to influence the order of auto-initialized modules * @defgroup sys_auto_init_utils Utilities to influence the order of auto-initialized modules
* @ingroup sys * @ingroup sys
@ -24,8 +26,6 @@
* @experimental * @experimental
* @author Fabian Hüßler <fabian.huessler@ovgu.de> * @author Fabian Hüßler <fabian.huessler@ovgu.de>
*/ */
#ifndef AUTO_INIT_UTILS_H
#define AUTO_INIT_UTILS_H
#include <stdint.h> #include <stdint.h>
#include "xfa.h" #include "xfa.h"
@ -97,5 +97,4 @@ typedef struct {
} }
#endif #endif
#endif /* AUTO_INIT_UTILS_H */
/** @} */ /** @} */

View File

@ -7,6 +7,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_base64 base64 encoder decoder * @defgroup sys_base64 base64 encoder decoder
* @ingroup sys_serialization * @ingroup sys_serialization
@ -17,8 +19,6 @@
* @author Martin Landsmann <Martin.Landsmann@HAW-Hamburg.de> * @author Martin Landsmann <Martin.Landsmann@HAW-Hamburg.de>
*/ */
#ifndef BASE64_H
#define BASE64_H
#include <stddef.h> /* for size_t */ #include <stddef.h> /* for size_t */
@ -128,4 +128,3 @@ int base64_decode(const void *base64_in, size_t base64_in_size,
#endif #endif
/** @} */ /** @} */
#endif /* BASE64_H */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_bcd Binary coded decimal * @defgroup sys_bcd Binary coded decimal
* @ingroup sys * @ingroup sys
@ -18,8 +20,6 @@
* @author Martine Lenders <m.lenders@fu-berlin.de> * @author Martine Lenders <m.lenders@fu-berlin.de>
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com> * @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
*/ */
#ifndef BCD_H
#define BCD_H
#include <stdbool.h> #include <stdbool.h>
#include <stddef.h> #include <stddef.h>
@ -112,5 +112,4 @@ int bcd_buf_from_str(const char *str, size_t str_len,
} }
#endif #endif
#endif /* BCD_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_benchmark Benchmark * @defgroup sys_benchmark Benchmark
* @ingroup sys * @ingroup sys
@ -18,8 +20,6 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef BENCHMARK_H
#define BENCHMARK_H
#include <stdint.h> #include <stdint.h>
@ -65,5 +65,4 @@ void benchmark_print_time(uint32_t time, unsigned long runs, const char *name);
} }
#endif #endif
#endif /* BENCHMARK_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* details. * details.
*/ */
#pragma once
/** /**
* @defgroup sys_bhp Bottom Half Processor * @defgroup sys_bhp Bottom Half Processor
* @ingroup sys * @ingroup sys
@ -26,8 +28,6 @@
* @author José I. Alamos <jose.alamos@haw-hamburg.de> * @author José I. Alamos <jose.alamos@haw-hamburg.de>
*/ */
#ifndef BHP_H
#define BHP_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -86,5 +86,4 @@ static inline void bhp_set_cb(bhp_t *bhp, bhp_cb_t cb, void *ctx)
} }
#endif #endif
#endif /* BHP_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* details. * details.
*/ */
#pragma once
/** /**
* @defgroup sys_bhp_event Event based implementation of Bottom Half Processor * @defgroup sys_bhp_event Event based implementation of Bottom Half Processor
* @ingroup sys_bhp * @ingroup sys_bhp
@ -16,8 +18,6 @@
* @author José I. Alamos <jose.alamos@haw-hamburg.de> * @author José I. Alamos <jose.alamos@haw-hamburg.de>
*/ */
#ifndef BHP_EVENT_H
#define BHP_EVENT_H
#include "bhp.h" #include "bhp.h"
#include <event.h> #include <event.h>
@ -58,5 +58,4 @@ void bhp_event_isr_cb(void *bhp_event_ctx);
} }
#endif #endif
#endif /* BHP_EVENT_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* details. * details.
*/ */
#pragma once
/** /**
* @defgroup sys_bhp_msg Message based implementation of Bottom Half Processor * @defgroup sys_bhp_msg Message based implementation of Bottom Half Processor
* @ingroup sys_bhp * @ingroup sys_bhp
@ -21,8 +23,6 @@
* @author José I. Alamos <jose.alamos@haw-hamburg.de> * @author José I. Alamos <jose.alamos@haw-hamburg.de>
*/ */
#ifndef BHP_MSG_H
#define BHP_MSG_H
#include "msg.h" #include "msg.h"
#include "thread.h" #include "thread.h"
@ -102,5 +102,4 @@ static inline void bhp_msg_handler(msg_t *msg)
} }
#endif #endif
#endif /* BHP_MSG_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys * @ingroup sys
* @{ * @{
@ -16,8 +18,6 @@
* @author Joakim Nohlgård <joakim.nohlgard@eistec.se> * @author Joakim Nohlgård <joakim.nohlgard@eistec.se>
*/ */
#ifndef BIT_H
#define BIT_H
#include <stdint.h> #include <stdint.h>
#include "cpu.h" #include "cpu.h"
@ -305,5 +305,4 @@ static inline bool bit_check8(volatile uint8_t *ptr, uint8_t bit)
} }
#endif #endif
#endif /* BIT_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_bitfield Bitfields * @defgroup sys_bitfield Bitfields
* @ingroup sys * @ingroup sys
@ -26,8 +28,6 @@
* @author Oliver Hahm <oliver.hahm@inria.fr> * @author Oliver Hahm <oliver.hahm@inria.fr>
*/ */
#ifndef BITFIELD_H
#define BITFIELD_H
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
@ -395,4 +395,3 @@ unsigned bf_popcnt(const uint8_t field[], size_t size);
#endif #endif
/** @} */ /** @} */
#endif /* BITFIELD_H */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/* /*
* bloom.c * bloom.c
* *
@ -120,8 +122,6 @@
* @author Christian Mehlis <mehlis@inf.fu-berlin.de> * @author Christian Mehlis <mehlis@inf.fu-berlin.de>
*/ */
#ifndef BLOOM_H
#define BLOOM_H
#include <stdlib.h> #include <stdlib.h>
#include <stdbool.h> #include <stdbool.h>
@ -229,4 +229,3 @@ bool bloom_check(bloom_t *bloom, const uint8_t *buf, size_t len);
#endif #endif
/** @} */ /** @} */
#endif /* BLOOM_H */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup busy_wait Busy Waiting low-level helpers * @defgroup busy_wait Busy Waiting low-level helpers
* @ingroup sys * @ingroup sys
@ -18,8 +20,6 @@
* @{ * @{
*/ */
#ifndef BUSY_WAIT_H
#define BUSY_WAIT_H
#include <stdint.h> #include <stdint.h>
#include "periph_conf.h" #include "periph_conf.h"
@ -85,5 +85,4 @@ static inline void busy_wait_us(unsigned usec)
} }
#endif #endif
#endif /* BUSY_WAIT_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys * @ingroup sys
* @{ * @{
@ -16,8 +18,6 @@
* @author René Kijewski <rene.kijewski@fu-berlin.de> * @author René Kijewski <rene.kijewski@fu-berlin.de>
*/ */
#ifndef BYTEORDER_H
#define BYTEORDER_H
#include <string.h> #include <string.h>
#include <stdint.h> #include <stdint.h>
@ -618,5 +618,4 @@ static inline void byteorder_htolebufll(uint8_t *buf, uint64_t val)
} }
#endif #endif
#endif /* BYTEORDER_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* details. * details.
*/ */
#pragma once
/** /**
* @defgroup sys_can_dll Data Link Layer * @defgroup sys_can_dll Data Link Layer
* @ingroup sys_can * @ingroup sys_can
@ -23,8 +25,6 @@
* @author Toon Stegen <toon.stegen@altran.com> * @author Toon Stegen <toon.stegen@altran.com>
*/ */
#ifndef CAN_CAN_H
#define CAN_CAN_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -183,6 +183,5 @@ typedef struct can_frame can_frame_t;
} }
#endif #endif
#endif /* CAN_CAN_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* details. * details.
*/ */
#pragma once
/** /**
* @defgroup sys_can_common Common definitions * @defgroup sys_can_common Common definitions
* @ingroup sys_can * @ingroup sys_can
@ -23,8 +25,6 @@
* @author Vincent Dupont <vincent@otakeys.com> * @author Vincent Dupont <vincent@otakeys.com>
*/ */
#ifndef CAN_COMMON_H
#define CAN_COMMON_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -171,5 +171,4 @@ typedef struct can_reg_entry {
} }
#endif #endif
#endif /* CAN_COMMON_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_can_conn * @ingroup sys_can_conn
* @{ * @{
@ -17,8 +19,6 @@
* *
*/ */
#ifndef CAN_CONN_ISOTP_H
#define CAN_CONN_ISOTP_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -198,5 +198,4 @@ int conn_can_isotp_select(conn_can_isotp_slave_t **conn, conn_can_isotp_t *maste
} }
#endif #endif
#endif /* CAN_CONN_ISOTP_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_can_conn Connection * @defgroup sys_can_conn Connection
* @ingroup sys_can * @ingroup sys_can
@ -22,8 +24,6 @@
* *
*/ */
#ifndef CAN_CONN_RAW_H
#define CAN_CONN_RAW_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -138,5 +138,4 @@ int conn_can_raw_set_filter(conn_can_raw_t *conn, struct can_filter *filter, siz
} }
#endif #endif
#endif /* CAN_CONN_RAW_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* details. * details.
*/ */
#pragma once
/** /**
* @ingroup sys_can_dll * @ingroup sys_can_dll
* @{ * @{
@ -17,8 +19,6 @@
* @author Toon Stegen <toon.stegen@altran.com> * @author Toon Stegen <toon.stegen@altran.com>
*/ */
#ifndef CAN_DEVICE_H
#define CAN_DEVICE_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -122,6 +122,5 @@ int can_device_calc_bittiming(uint32_t clock, const struct can_bittiming_const *
} }
#endif #endif
#endif /* CAN_DEVICE_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* details. * details.
*/ */
#pragma once
/** /**
* @ingroup sys_can_dll * @ingroup sys_can_dll
* @{ * @{
@ -17,8 +19,6 @@
* @author Toon Stegen <toon.stegen@altran.com> * @author Toon Stegen <toon.stegen@altran.com>
*/ */
#ifndef CAN_DLL_H
#define CAN_DLL_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -104,6 +104,5 @@ int can_dll_dispatch_bus_off(kernel_pid_t pid);
} }
#endif #endif
#endif /* CAN_DLL_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* details. * details.
*/ */
#pragma once
/** /**
* @defgroup sys_can_isotp ISO transport protocol over CAN * @defgroup sys_can_isotp ISO transport protocol over CAN
* @ingroup sys_can * @ingroup sys_can
@ -18,8 +20,6 @@
* @author Vincent Dupont <vincent@otakeys.com> * @author Vincent Dupont <vincent@otakeys.com>
*/ */
#ifndef CAN_ISOTP_H
#define CAN_ISOTP_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -214,5 +214,4 @@ void isotp_free_rx(can_rx_data_t *rx);
} }
#endif #endif
#endif /* CAN_ISOTP_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* details. * details.
*/ */
#pragma once
/** /**
* @ingroup sys_can_dll * @ingroup sys_can_dll
* @{ * @{
@ -17,8 +19,6 @@
* @author Toon Stegen <toon.stegen@altran.com> * @author Toon Stegen <toon.stegen@altran.com>
*/ */
#ifndef CAN_PKT_H
#define CAN_PKT_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -143,5 +143,4 @@ void can_pkt_buf_free(void *data, size_t size);
} }
#endif #endif
#endif /* CAN_PKT_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* details. * details.
*/ */
#pragma once
/** /**
* @ingroup sys_can_dll * @ingroup sys_can_dll
* @{ * @{
@ -21,8 +23,6 @@
* @author Aurelien Gonce <aurelien.gonce@altran.com> * @author Aurelien Gonce <aurelien.gonce@altran.com>
*/ */
#ifndef CAN_RAW_H
#define CAN_RAW_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -275,5 +275,4 @@ int raw_can_set_trx(int ifnum, can_trx_t *trx);
} }
#endif #endif
#endif /* CAN_RAW_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* details. * details.
*/ */
#pragma once
/** /**
* @ingroup sys_can_dll * @ingroup sys_can_dll
* @{ * @{
@ -17,8 +19,6 @@
* @author Vincent Dupont <vincent@otakeys.com> * @author Vincent Dupont <vincent@otakeys.com>
*/ */
#ifndef CAN_ROUTER_H
#define CAN_ROUTER_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -113,5 +113,4 @@ int can_router_dispatch_tx_error(can_pkt_t *pkt);
} }
#endif #endif
#endif /* CAN_ROUTER_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_cb_mux Callback multiplexer * @defgroup sys_cb_mux Callback multiplexer
* @ingroup sys * @ingroup sys
@ -26,8 +28,6 @@
* @author Matthew Blue <matthew.blue.neuro@gmail.com> * @author Matthew Blue <matthew.blue.neuro@gmail.com>
*/ */
#ifndef CB_MUX_H
#define CB_MUX_H
#include <stdint.h> #include <stdint.h>
@ -139,5 +139,3 @@ void cb_mux_iter(cb_mux_t *head, cb_mux_iter_t func, void *arg);
#endif #endif
/** @} */ /** @} */
#endif /* CB_MUX_H */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_checksum_crc16_ccitt CRC16-CCITT * @defgroup sys_checksum_crc16_ccitt CRC16-CCITT
* @ingroup sys_checksum * @ingroup sys_checksum
@ -29,8 +31,6 @@
* @author Bennet Blischke <bennet.blischke@haw-hamburg.de> * @author Bennet Blischke <bennet.blischke@haw-hamburg.de>
*/ */
#ifndef CHECKSUM_CRC16_CCITT_H
#define CHECKSUM_CRC16_CCITT_H
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>
@ -186,6 +186,5 @@ uint16_t crc16_ccitt_aug_calc(const unsigned char *buf, size_t len);
} }
#endif #endif
#endif /* CHECKSUM_CRC16_CCITT_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_checksum_crc32 CRC32 * @defgroup sys_checksum_crc32 CRC32
* @ingroup sys_checksum * @ingroup sys_checksum
@ -17,8 +19,6 @@
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com> * @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
*/ */
#ifndef CHECKSUM_CRC32_H
#define CHECKSUM_CRC32_H
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
@ -46,6 +46,5 @@ uint32_t crc32(const void *buf, size_t size);
} }
#endif #endif
#endif /* CHECKSUM_CRC32_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_checksum_crc8 CRC-8 * @defgroup sys_checksum_crc8 CRC-8
* @ingroup sys_checksum * @ingroup sys_checksum
@ -18,8 +20,6 @@
* *
* @author Gunar Schorcht <gunar@schorcht.net> * @author Gunar Schorcht <gunar@schorcht.net>
*/ */
#ifndef CHECKSUM_CRC8_H
#define CHECKSUM_CRC8_H
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
@ -47,5 +47,4 @@ uint8_t crc8(const uint8_t *data, size_t len, uint8_t poly, uint8_t seed);
} }
#endif #endif
#endif /* CHECKSUM_CRC8_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_checksum_fletcher16 Fletcher16 * @defgroup sys_checksum_fletcher16 Fletcher16
* @ingroup sys_checksum * @ingroup sys_checksum
@ -17,8 +19,6 @@
* @author Joakim Nohlgård <joakim.nohlgard@eistec.se> * @author Joakim Nohlgård <joakim.nohlgard@eistec.se>
*/ */
#ifndef CHECKSUM_FLETCHER16_H
#define CHECKSUM_FLETCHER16_H
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
@ -81,6 +81,5 @@ uint16_t fletcher16_finish(fletcher16_ctx_t *ctx);
} }
#endif #endif
#endif /* CHECKSUM_FLETCHER16_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_checksum_fletcher32 Fletcher32 * @defgroup sys_checksum_fletcher32 Fletcher32
* @ingroup sys_checksum * @ingroup sys_checksum
@ -18,8 +20,6 @@
* @author Koen Zandberg <koen@bergzand.net> * @author Koen Zandberg <koen@bergzand.net>
*/ */
#ifndef CHECKSUM_FLETCHER32_H
#define CHECKSUM_FLETCHER32_H
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
@ -86,6 +86,5 @@ uint32_t fletcher32_finish(fletcher32_ctx_t *ctx);
} }
#endif #endif
#endif /* CHECKSUM_FLETCHER32_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_checksum_ucrc16 CRC16 (lightweight) * @defgroup sys_checksum_ucrc16 CRC16 (lightweight)
* @ingroup sys_checksum * @ingroup sys_checksum
@ -26,8 +28,6 @@
* *
* @author Martine Lenders <m.lenders@fu-berlin.de> * @author Martine Lenders <m.lenders@fu-berlin.de>
*/ */
#ifndef CHECKSUM_UCRC16_H
#define CHECKSUM_UCRC16_H
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>
@ -78,5 +78,4 @@ uint16_t ucrc16_calc_le(const uint8_t *buf, size_t len, uint16_t poly,
} }
#endif #endif
#endif /* CHECKSUM_UCRC16_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_chunk_buffer chunked Ringbuffer * @defgroup sys_chunk_buffer chunked Ringbuffer
* @ingroup sys * @ingroup sys
@ -20,8 +22,6 @@
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com> * @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
*/ */
#ifndef CHUNKED_RINGBUFFER_H
#define CHUNKED_RINGBUFFER_H
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
@ -247,5 +247,4 @@ bool crb_chunk_foreach(chunk_ringbuf_t *rb, crb_foreach_callback_t func, void *c
} }
#endif #endif
#endif /* CHUNKED_RINGBUFFER_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_clif CoRE Link Format * @defgroup sys_clif CoRE Link Format
* @ingroup sys_serialization * @ingroup sys_serialization
@ -92,8 +94,6 @@
* @author Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de> * @author Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
*/ */
#ifndef CLIF_H
#define CLIF_H
#include <sys/types.h> #include <sys/types.h>
@ -331,5 +331,4 @@ int clif_init_attr(clif_attr_t *attr, clif_attr_type_t type);
} }
#endif #endif
#endif /* CLIF_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_clk System core clock * @defgroup sys_clk System core clock
* @ingroup sys * @ingroup sys
@ -15,8 +17,6 @@
* @brief System core clock utility functions * @brief System core clock utility functions
*/ */
#ifndef CLK_H
#define CLK_H
#include <assert.h> #include <assert.h>
#include <stdint.h> #include <stdint.h>
@ -45,5 +45,4 @@ static inline uint32_t coreclk(void) {
} }
#endif #endif
#endif /* CLK_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_coding_xor XOR code * @defgroup sys_coding_xor XOR code
* @ingroup sys_coding * @ingroup sys_coding
@ -24,8 +26,6 @@
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com> * @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
*/ */
#ifndef CODING_XOR_H
#define CODING_XOR_H
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
@ -89,5 +89,4 @@ bool coding_xor_recover(void *data, size_t len, uint8_t *parity,
} }
#endif #endif
#endif /* CODING_XOR_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* details. * details.
*/ */
#pragma once
/** /**
* @defgroup sys_color Color * @defgroup sys_color Color
* @ingroup sys * @ingroup sys
@ -20,8 +22,6 @@
* @author Simon Brummer <brummer.simon@googlemail.com> * @author Simon Brummer <brummer.simon@googlemail.com>
*/ */
#ifndef COLOR_H
#define COLOR_H
#include <stdint.h> #include <stdint.h>
@ -183,5 +183,4 @@ void color_rgb_complementary(const color_rgb_t *rgb, color_rgb_t *comp_rgb);
} }
#endif #endif
#endif /* COLOR_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_congure CongURE - A Congestion control framework * @defgroup sys_congure CongURE - A Congestion control framework
* @ingroup sys * @ingroup sys
@ -17,8 +19,6 @@
* *
* @author Martine S. Lenders <m.lenders@fu-berlin.de> * @author Martine S. Lenders <m.lenders@fu-berlin.de>
*/ */
#ifndef CONGURE_H
#define CONGURE_H
#include <stdint.h> #include <stdint.h>
@ -221,5 +221,4 @@ struct congure_snd_driver {
} }
#endif #endif
#endif /* CONGURE_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_congure_abe CongURE implementation of TCP ABE * @defgroup sys_congure_abe CongURE implementation of TCP ABE
* @ingroup sys_congure * @ingroup sys_congure
@ -20,8 +22,6 @@
* *
* @author Martine S. Lenders <m.lenders@fu-berlin.de> * @author Martine S. Lenders <m.lenders@fu-berlin.de>
*/ */
#ifndef CONGURE_ABE_H
#define CONGURE_ABE_H
#include <stdint.h> #include <stdint.h>
@ -91,5 +91,4 @@ static inline void congure_abe_set_mss(congure_abe_snd_t *c, unsigned mss)
} }
#endif #endif
#endif /* CONGURE_ABE_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_congure_config CongURE compile time configuration * @defgroup sys_congure_config CongURE compile time configuration
* @ingroup sys_congure * @ingroup sys_congure
@ -17,8 +19,6 @@
* *
* @author Martine S. Lenders <m.lenders@fu-berlin.de> * @author Martine S. Lenders <m.lenders@fu-berlin.de>
*/ */
#ifndef CONGURE_CONFIG_H
#define CONGURE_CONFIG_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -48,5 +48,4 @@ extern "C" {
} }
#endif #endif
#endif /* CONGURE_CONFIG_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_congure_mock CongURE mock implementation * @defgroup sys_congure_mock CongURE mock implementation
* @ingroup sys_congure * @ingroup sys_congure
@ -16,8 +18,6 @@
* *
* @author Martine S. Lenders <m.lenders@fu-berlin.de> * @author Martine S. Lenders <m.lenders@fu-berlin.de>
*/ */
#ifndef CONGURE_MOCK_H
#define CONGURE_MOCK_H
#include <stdint.h> #include <stdint.h>
@ -168,5 +168,4 @@ void congure_mock_snd_setup(congure_mock_snd_t *c,
} }
#endif #endif
#endif /* CONGURE_MOCK_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_congure_quic CongURE implementation of QUIC's CC * @defgroup sys_congure_quic CongURE implementation of QUIC's CC
* @ingroup sys_congure * @ingroup sys_congure
@ -17,8 +19,6 @@
* *
* @author Martine S. Lenders <m.lenders@fu-berlin.de> * @author Martine S. Lenders <m.lenders@fu-berlin.de>
*/ */
#ifndef CONGURE_QUIC_H
#define CONGURE_QUIC_H
#include "ztimer.h" #include "ztimer.h"
@ -229,5 +229,4 @@ void congure_quic_snd_setup(congure_quic_snd_t *c,
} }
#endif #endif
#endif /* CONGURE_QUIC_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_congure_reno CongURE implementation of TCP Reno * @defgroup sys_congure_reno CongURE implementation of TCP Reno
* @ingroup sys_congure * @ingroup sys_congure
@ -20,8 +22,6 @@
* *
* @author Martine S. Lenders <m.lenders@fu-berlin.de> * @author Martine S. Lenders <m.lenders@fu-berlin.de>
*/ */
#ifndef CONGURE_RENO_H
#define CONGURE_RENO_H
#include <stdint.h> #include <stdint.h>
@ -308,5 +308,4 @@ void congure_reno_snd_report_ecn_ce(congure_snd_t *c, ztimer_now_t time);
} }
#endif #endif
#endif /* CONGURE_RENO_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_congure_test CongURE test framework shell commands * @defgroup sys_congure_test CongURE test framework shell commands
* @ingroup sys_congure * @ingroup sys_congure
@ -33,8 +35,6 @@
* @author Martine S Lenders <m.lenders@fu-berlin.de> * @author Martine S Lenders <m.lenders@fu-berlin.de>
*/ */
#ifndef CONGURE_TEST_H
#define CONGURE_TEST_H
#include "congure_impl.h" #include "congure_impl.h"
@ -328,5 +328,4 @@ int congure_test_call_report(int argc, char **argv);
} }
#endif #endif
#endif /* CONGURE_TEST_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_crypto * @ingroup sys_crypto
* @{ * @{
@ -27,8 +29,6 @@
* @author Zakaria Kasmi <zkasmi@inf.fu-berlin.de> * @author Zakaria Kasmi <zkasmi@inf.fu-berlin.de>
*/ */
#ifndef CRYPTO_AES_H
#define CRYPTO_AES_H
#include <stdint.h> #include <stdint.h>
#include "crypto/ciphers.h" #include "crypto/ciphers.h"
@ -130,4 +130,3 @@ int aes_decrypt(const cipher_context_t *context, const uint8_t *cipher_block,
#endif #endif
/** @} */ /** @} */
#endif /* CRYPTO_AES_H */

View File

@ -21,6 +21,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#pragma once
/** /**
* @ingroup sys_crypto * @ingroup sys_crypto
* @{ * @{
@ -31,8 +33,6 @@
* @author René Kijewski <rene.kijewski@fu-berlin.de> * @author René Kijewski <rene.kijewski@fu-berlin.de>
*/ */
#ifndef CRYPTO_CHACHA_H
#define CRYPTO_CHACHA_H
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>
@ -139,7 +139,6 @@ uint32_t chacha_prng_next(void);
} }
#endif #endif
#endif /* CRYPTO_CHACHA_H */
/** /**
* @} * @}

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_crypto_chacha20poly1305 chacha20poly1305 AEAD cipher * @defgroup sys_crypto_chacha20poly1305 chacha20poly1305 AEAD cipher
* @ingroup sys_crypto * @ingroup sys_crypto
@ -25,8 +27,6 @@
* @author Koen Zandberg <koen@bergzand.net> * @author Koen Zandberg <koen@bergzand.net>
*/ */
#ifndef CRYPTO_CHACHA20POLY1305_H
#define CRYPTO_CHACHA20POLY1305_H
#include "crypto/poly1305.h" #include "crypto/poly1305.h"
@ -114,5 +114,4 @@ void chacha20_encrypt_decrypt(const uint8_t *input, uint8_t *output,
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* CRYPTO_CHACHA20POLY1305_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_crypto * @ingroup sys_crypto
* @{ * @{
@ -19,8 +21,6 @@
* @author Mark Essien <markessien@gmail.com> * @author Mark Essien <markessien@gmail.com>
*/ */
#ifndef CRYPTO_CIPHERS_H
#define CRYPTO_CIPHERS_H
#include <stdint.h> #include <stdint.h>
#include "modules.h" #include "modules.h"
@ -188,4 +188,3 @@ int cipher_get_block_size(const cipher_t *cipher);
#endif #endif
/** @} */ /** @} */
#endif /* CRYPTO_CIPHERS_H */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_crypto * @ingroup sys_crypto
* @{ * @{
@ -17,8 +19,6 @@
* @author Nico von Geyso <nico.geyso@fu-berlin.de> * @author Nico von Geyso <nico.geyso@fu-berlin.de>
*/ */
#ifndef CRYPTO_HELPER_H
#define CRYPTO_HELPER_H
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
@ -67,5 +67,4 @@ void crypto_secure_wipe(void *buf, size_t len);
} }
#endif #endif
#endif /* CRYPTO_HELPER_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_crypto * @ingroup sys_crypto
* @{ * @{
@ -17,8 +19,6 @@
* @author Nico von Geyso <nico.geyso@fu-berlin.de> * @author Nico von Geyso <nico.geyso@fu-berlin.de>
*/ */
#ifndef CRYPTO_MODES_CBC_H
#define CRYPTO_MODES_CBC_H
#include <stddef.h> #include <stddef.h>
#include "crypto/ciphers.h" #include "crypto/ciphers.h"
@ -68,5 +68,4 @@ int cipher_decrypt_cbc(const cipher_t *cipher, uint8_t iv[16], const uint8_t *in
} }
#endif #endif
#endif /* CRYPTO_MODES_CBC_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_crypto * @ingroup sys_crypto
* @{ * @{
@ -17,8 +19,6 @@
* @author Nico von Geyso <nico.geyso@fu-berlin.de> * @author Nico von Geyso <nico.geyso@fu-berlin.de>
*/ */
#ifndef CRYPTO_MODES_CCM_H
#define CRYPTO_MODES_CCM_H
#include "crypto/ciphers.h" #include "crypto/ciphers.h"
@ -109,5 +109,4 @@ int cipher_decrypt_ccm(const cipher_t *cipher,
} }
#endif #endif
#endif /* CRYPTO_MODES_CCM_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_crypto * @ingroup sys_crypto
* @{ * @{
@ -17,8 +19,6 @@
* @author Nico von Geyso <nico.geyso@fu-berlin.de> * @author Nico von Geyso <nico.geyso@fu-berlin.de>
*/ */
#ifndef CRYPTO_MODES_CTR_H
#define CRYPTO_MODES_CTR_H
#include "crypto/ciphers.h" #include "crypto/ciphers.h"
@ -75,5 +75,4 @@ int cipher_decrypt_ctr(const cipher_t *cipher, uint8_t nonce_counter[16],
} }
#endif #endif
#endif /* CRYPTO_MODES_CTR_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_crypto * @ingroup sys_crypto
* @{ * @{
@ -17,8 +19,6 @@
* @author Nico von Geyso <nico.geyso@fu-berlin.de> * @author Nico von Geyso <nico.geyso@fu-berlin.de>
*/ */
#ifndef CRYPTO_MODES_ECB_H
#define CRYPTO_MODES_ECB_H
#include "crypto/ciphers.h" #include "crypto/ciphers.h"
@ -65,5 +65,4 @@ int cipher_decrypt_ecb(const cipher_t *cipher, const uint8_t *input,
} }
#endif #endif
#endif /* CRYPTO_MODES_ECB_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_crypto * @ingroup sys_crypto
* @{ * @{
@ -20,8 +22,6 @@
* @author Mathias Tausig <mathias@tausig.at> * @author Mathias Tausig <mathias@tausig.at>
*/ */
#ifndef CRYPTO_MODES_OCB_H
#define CRYPTO_MODES_OCB_H
#include "crypto/ciphers.h" #include "crypto/ciphers.h"
#include <stdint.h> #include <stdint.h>
@ -112,5 +112,4 @@ int32_t cipher_decrypt_ocb(const cipher_t *cipher,
} }
#endif #endif
#endif /* CRYPTO_MODES_OCB_H */
/** @} */ /** @} */

View File

@ -8,6 +8,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_crypto * @ingroup sys_crypto
* @defgroup sys_crypto_poly1305 poly1305 * @defgroup sys_crypto_poly1305 poly1305
@ -25,8 +27,6 @@
* *
* @see https://tools.ietf.org/html/rfc8439#section-2.5 * @see https://tools.ietf.org/html/rfc8439#section-2.5
*/ */
#ifndef CRYPTO_POLY1305_H
#define CRYPTO_POLY1305_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -90,5 +90,4 @@ void poly1305_auth(uint8_t *mac, const uint8_t *data, size_t len,
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* CRYPTO_POLY1305_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_psa_crypto * @ingroup sys_psa_crypto
* @{ * @{
@ -16,8 +18,6 @@
* *
*/ */
#ifndef CRYPTO_PSA_RIOT_CIPHERS_H
#define CRYPTO_PSA_RIOT_CIPHERS_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -40,5 +40,4 @@ typedef cipher_t psa_cipher_aes_256_ctx_t;
} }
#endif #endif
#endif /* CRYPTO_PSA_RIOT_CIPHERS_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_dbgpin Direct pin control for debugging/profiling * @defgroup sys_dbgpin Direct pin control for debugging/profiling
* @ingroup sys * @ingroup sys
@ -20,8 +22,6 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef DBGPIN_H
#define DBGPIN_H
#include "container.h" #include "container.h"
#include "periph/gpio.h" #include "periph/gpio.h"
@ -124,5 +124,4 @@ static inline void dbgpin_init(void)
} }
#endif #endif
#endif /* DBGPIN_H */
/** @} **/ /** @} **/

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup debug_irq_disable IRQ Disable Debug helper * @defgroup debug_irq_disable IRQ Disable Debug helper
* @ingroup sys * @ingroup sys
@ -17,8 +19,6 @@
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com> * @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
*/ */
#ifndef DEBUG_IRQ_DISABLE_H
#define DEBUG_IRQ_DISABLE_H
#include <stdint.h> #include <stdint.h>
@ -51,4 +51,3 @@ void debug_irq_disable_print(const char *file, unsigned line, uint32_t ticks);
#endif #endif
/** @} */ /** @} */
#endif /* DEBUG_IRQ_DISABLE_H */

View File

@ -7,6 +7,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_div Integer division functions * @defgroup sys_div Integer division functions
* @ingroup sys_math * @ingroup sys_math
@ -21,8 +23,6 @@
* @{ * @{
*/ */
#ifndef DIV_H
#define DIV_H
#include <assert.h> #include <assert.h>
#include <stdint.h> #include <stdint.h>
@ -181,4 +181,3 @@ static inline uint32_t div_u32_mod_44488(uint32_t val)
} }
#endif #endif
/** @} */ /** @} */
#endif /* DIV_H */

View File

@ -21,6 +21,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#pragma once
/** /**
* @ingroup sys_ecc * @ingroup sys_ecc
* @{ * @{
@ -36,8 +38,6 @@
* @author Peter Kietzmann <peter.kietzmann@haw.hamburg.de> * @author Peter Kietzmann <peter.kietzmann@haw.hamburg.de>
*/ */
#ifndef ECC_GOLAY2412_H
#define ECC_GOLAY2412_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -71,5 +71,4 @@ void golay2412_decode(uint32_t _dec_msg_len,
} }
#endif #endif
#endif /* ECC_GOLAY2412_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_ecc * @ingroup sys_ecc
* @brief * @brief
@ -15,8 +17,6 @@
* @author Lucas Jenß <lucas@x3ro.de> * @author Lucas Jenß <lucas@x3ro.de>
*/ */
#ifndef ECC_HAMMING256_H
#define ECC_HAMMING256_H
#include <stdint.h> #include <stdint.h>
@ -64,5 +64,4 @@ uint8_t hamming_verify256x( uint8_t *data, uint32_t size, const uint8_t *code );
} }
#endif #endif
#endif /* ECC_HAMMING256_H */
/** @} */ /** @} */

View File

@ -21,6 +21,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#pragma once
/** /**
* @ingroup sys_ecc * @ingroup sys_ecc
* @{ * @{
@ -32,8 +34,6 @@
* @author Peter Kietzmann <peter.kietzmann@haw.hamburg.de> * @author Peter Kietzmann <peter.kietzmann@haw.hamburg.de>
*/ */
#ifndef ECC_REPETITION_H
#define ECC_REPETITION_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -73,5 +73,4 @@ void repetition_decode(unsigned int _dec_msg_len,
} }
#endif #endif
#endif /* ECC_REPETITION_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_eepreg EEPROM registration * @defgroup sys_eepreg EEPROM registration
* @ingroup sys * @ingroup sys
@ -54,8 +56,6 @@
* @author Matthew Blue <matthew.blue.neuro@gmail.com> * @author Matthew Blue <matthew.blue.neuro@gmail.com>
*/ */
#ifndef EEPREG_H
#define EEPREG_H
#include <stdint.h> #include <stdint.h>
@ -267,5 +267,3 @@ int eepreg_free(uint32_t *len);
#endif #endif
/** @} */ /** @} */
#endif /* EEPREG_H */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @{ * @{
* *
@ -13,8 +15,6 @@
* *
* @author Janos Kutscherauer <noshky@gmail.com> * @author Janos Kutscherauer <noshky@gmail.com>
*/ */
#ifndef EMBUNIT_COLOROUTPUTTER_H
#define EMBUNIT_COLOROUTPUTTER_H
#include "Outputter.h" #include "Outputter.h"
@ -41,5 +41,4 @@ void ColorOutputter_printStatistics(OutputterRef self, TestResultRef result);
} }
#endif #endif
#endif /* EMBUNIT_COLOROUTPUTTER_H */
/** @} */ /** @} */

View File

@ -6,13 +6,13 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @{ * @{
* *
* @file ColorTextOutputter.h * @file ColorTextOutputter.h
*/ */
#ifndef EMBUNIT_COLORTEXTOUTPUTTER_H
#define EMBUNIT_COLORTEXTOUTPUTTER_H
#include "Outputter.h" #include "Outputter.h"
@ -26,5 +26,4 @@ OutputterRef ColorTextOutputter_outputter(void);
} }
#endif #endif
#endif /* EMBUNIT_COLORTEXTOUTPUTTER_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* details. * details.
*/ */
#pragma once
/** /**
* @defgroup sys_endian endian conversions as provided by most libcs * @defgroup sys_endian endian conversions as provided by most libcs
* @ingroup sys * @ingroup sys
@ -20,8 +22,6 @@
* @author Marian Buschsieweke <marian.buschsieweke@posteo.net> * @author Marian Buschsieweke <marian.buschsieweke@posteo.net>
*/ */
#ifndef ENDIAN_H
#define ENDIAN_H
#include <stdint.h> #include <stdint.h>
@ -177,5 +177,4 @@ uint64_t le64toh(uint64_t little_endian_64bits);/**< little endian to host, 64 b
} }
#endif #endif
#endif /* ENDIAN_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_entropy_source_common Entropy Source Common * @defgroup sys_entropy_source_common Entropy Source Common
* @ingroup sys_entropy_source * @ingroup sys_entropy_source
@ -18,8 +20,6 @@
* @author Peter Kietzmann <peter.kietzmann@haw-hamburg.de> * @author Peter Kietzmann <peter.kietzmann@haw-hamburg.de>
*/ */
#ifndef ENTROPY_SOURCE_H
#define ENTROPY_SOURCE_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -302,5 +302,4 @@ static inline int entropy_source_test(entropy_source_tests_rep_t *state_rep,
} }
#endif #endif
#endif /* ENTROPY_SOURCE_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_entropy_source_adc ADC Noise Entropy Source * @defgroup sys_entropy_source_adc ADC Noise Entropy Source
* @ingroup sys_entropy_source * @ingroup sys_entropy_source
@ -31,8 +33,6 @@
* @author Peter Kietzmann <peter.kietzmann@haw-hamburg.de> * @author Peter Kietzmann <peter.kietzmann@haw-hamburg.de>
*/ */
#ifndef ENTROPY_SOURCE_ADC_NOISE_H
#define ENTROPY_SOURCE_ADC_NOISE_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -154,5 +154,4 @@ static inline uint32_t entropy_source_adc_entropy_per_sample(void)
} }
#endif #endif
#endif /* ENTROPY_SOURCE_ADC_NOISE_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_entropy_source_zero Zero Entropy Source * @defgroup sys_entropy_source_zero Zero Entropy Source
* @ingroup sys_entropy_source * @ingroup sys_entropy_source
@ -19,8 +21,6 @@
* @author Peter Kietzmann <peter.kietzmann@haw-hamburg.de> * @author Peter Kietzmann <peter.kietzmann@haw-hamburg.de>
*/ */
#ifndef ENTROPY_SOURCE_ZERO_ENTROPY_H
#define ENTROPY_SOURCE_ZERO_ENTROPY_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -88,5 +88,4 @@ int entropy_source_zero_get(uint8_t *buf, size_t len);
} }
#endif #endif
#endif /* ENTROPY_SOURCE_ZERO_ENTROPY_H */
/** @} */ /** @} */

View File

@ -8,6 +8,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_event Event Queue * @defgroup sys_event Event Queue
* @ingroup sys * @ingroup sys
@ -93,8 +95,6 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef EVENT_H
#define EVENT_H
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
@ -513,5 +513,4 @@ void event_sync(event_queue_t *queue);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* EVENT_H */
/** @} */ /** @} */

View File

@ -8,6 +8,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_event * @ingroup sys_event
* @brief Provides a callback-with-argument event type * @brief Provides a callback-with-argument event type
@ -33,8 +35,6 @@
* @author Kaspar Schleiser <kaspar@schleiser.de> * @author Kaspar Schleiser <kaspar@schleiser.de>
*/ */
#ifndef EVENT_CALLBACK_H
#define EVENT_CALLBACK_H
#include <assert.h> #include <assert.h>
#include "event.h" #include "event.h"
@ -123,5 +123,4 @@ void _event_callback_handler(event_t *event);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* EVENT_CALLBACK_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_event * @ingroup sys_event
* @brief Trigger an event callback after a timeout * @brief Trigger an event callback after a timeout
@ -22,8 +24,6 @@
* *
*/ */
#ifndef EVENT_DEFERRED_CALLBACK_H
#define EVENT_DEFERRED_CALLBACK_H
#include <assert.h> #include <assert.h>
#include "event/callback.h" #include "event/callback.h"
@ -100,5 +100,4 @@ static inline void event_deferred_callback_cancel(event_deferred_callback_t *eve
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* EVENT_DEFERRED_CALLBACK_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_event * @ingroup sys_event
* @brief Provides functionality to trigger periodic events * @brief Provides functionality to trigger periodic events
@ -33,8 +35,6 @@
* *
*/ */
#ifndef EVENT_PERIODIC_H
#define EVENT_PERIODIC_H
#include "event.h" #include "event.h"
#include "ztimer/periodic.h" #include "ztimer/periodic.h"
@ -151,5 +151,4 @@ static inline void event_periodic_stop(event_periodic_t *event_periodic)
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* EVENT_PERIODIC_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_event * @ingroup sys_event
* @brief Provides functionality to trigger periodic event callbacks * @brief Provides functionality to trigger periodic event callbacks
@ -22,8 +24,6 @@
* *
*/ */
#ifndef EVENT_PERIODIC_CALLBACK_H
#define EVENT_PERIODIC_CALLBACK_H
#include <assert.h> #include <assert.h>
#include "event/callback.h" #include "event/callback.h"
@ -180,5 +180,4 @@ static inline void event_periodic_callback_stop(event_periodic_callback_t *event
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* EVENT_PERIODIC_CALLBACK_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_event * @ingroup sys_event
* @brief Provides functionality to trigger multiple events at once * @brief Provides functionality to trigger multiple events at once
@ -19,8 +21,6 @@
* *
*/ */
#ifndef EVENT_SOURCE_H
#define EVENT_SOURCE_H
#include "event.h" #include "event.h"
#include "list.h" #include "list.h"
@ -114,5 +114,4 @@ static inline void event_source_trigger(event_source_t *source)
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* EVENT_SOURCE_H */
/** @} */ /** @} */

View File

@ -8,6 +8,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_event * @ingroup sys_event
* @brief Provides utility functions for event handler threads * @brief Provides utility functions for event handler threads
@ -50,8 +52,6 @@
* @author Kaspar Schleiser <kaspar@schleiser.de> * @author Kaspar Schleiser <kaspar@schleiser.de>
*/ */
#ifndef EVENT_THREAD_H
#define EVENT_THREAD_H
#include <stddef.h> #include <stddef.h>
@ -124,5 +124,4 @@ extern event_queue_t event_thread_queues[EVENT_QUEUE_PRIO_NUMOF];
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* EVENT_THREAD_H */
/** @} */ /** @} */

View File

@ -8,6 +8,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @ingroup sys_event * @ingroup sys_event
* @brief Provides functionality to trigger events after timeout * @brief Provides functionality to trigger events after timeout
@ -34,8 +36,6 @@
* @author Kaspar Schleiser <kaspar@schleiser.de> * @author Kaspar Schleiser <kaspar@schleiser.de>
*/ */
#ifndef EVENT_TIMEOUT_H
#define EVENT_TIMEOUT_H
#include "event.h" #include "event.h"
#include "ztimer.h" #include "ztimer.h"
@ -127,5 +127,4 @@ static inline bool event_timeout_is_pending(const event_timeout_t *event_timeout
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* EVENT_TIMEOUT_H */
/** @} */ /** @} */

View File

@ -7,6 +7,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup sys_evtimer Millisecond interval event timers * @defgroup sys_evtimer Millisecond interval event timers
* @ingroup sys * @ingroup sys
@ -38,8 +40,6 @@
* @author Martine Lenders <m.lenders@fu-berlin.de> * @author Martine Lenders <m.lenders@fu-berlin.de>
*/ */
#ifndef EVTIMER_H
#define EVTIMER_H
#include <stdint.h> #include <stdint.h>
#include "modules.h" #include "modules.h"
@ -121,5 +121,4 @@ static inline uint32_t evtimer_now_msec(void)
} }
#endif #endif
#endif /* EVTIMER_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @addtogroup sys_evtimer * @addtogroup sys_evtimer
* @{ * @{
@ -15,8 +17,6 @@
* *
* @author Simon Brummer <simon.brummer@posteo.de> * @author Simon Brummer <simon.brummer@posteo.de>
*/ */
#ifndef EVTIMER_MBOX_H
#define EVTIMER_MBOX_H
#include "assert.h" #include "assert.h"
#include "msg.h" #include "msg.h"
@ -87,5 +87,4 @@ static inline void evtimer_init_mbox(evtimer_t *evtimer)
} }
#endif #endif
#endif /* EVTIMER_MBOX_H */
/** @} */ /** @} */

View File

@ -7,6 +7,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @addtogroup sys_evtimer * @addtogroup sys_evtimer
* @{ * @{
@ -17,8 +19,6 @@
* @author Kaspar Schleiser <kaspar@schleiser.de> * @author Kaspar Schleiser <kaspar@schleiser.de>
* @author Martine Lenders <m.lenders@fu-berlin.de> * @author Martine Lenders <m.lenders@fu-berlin.de>
*/ */
#ifndef EVTIMER_MSG_H
#define EVTIMER_MSG_H
#include "msg.h" #include "msg.h"
#include "evtimer.h" #include "evtimer.h"
@ -84,5 +84,4 @@ static inline void evtimer_init_msg(evtimer_t *evtimer)
} }
#endif #endif
#endif /* EVTIMER_MSG_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup fido2_ctap CTAP * @defgroup fido2_ctap CTAP
* @ingroup fido2 * @ingroup fido2
@ -22,8 +24,6 @@
* @author Nils Ollrogge <nils.ollrogge@fu-berlin.de> * @author Nils Ollrogge <nils.ollrogge@fu-berlin.de>
*/ */
#ifndef FIDO2_CTAP_H
#define FIDO2_CTAP_H
#include <stdint.h> #include <stdint.h>
@ -230,5 +230,4 @@ ctap_status_code_t fido2_ctap_reset(ctap_resp_t *resp);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* FIDO2_CTAP_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup fido2_ctap_ctap FIDO2 CTAP * @defgroup fido2_ctap_ctap FIDO2 CTAP
* @ingroup fido2_ctap * @ingroup fido2_ctap
@ -22,8 +24,6 @@
* @author Nils Ollrogge <nils.ollrogge@fu-berlin.de> * @author Nils Ollrogge <nils.ollrogge@fu-berlin.de>
*/ */
#ifndef FIDO2_CTAP_CTAP_H
#define FIDO2_CTAP_CTAP_H
#include <stdint.h> #include <stdint.h>
@ -680,5 +680,4 @@ ctap_state_t *fido2_ctap_get_state(void);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* FIDO2_CTAP_CTAP_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup fido2_ctap_cbor FIDO2 CTAP CBOR * @defgroup fido2_ctap_cbor FIDO2 CTAP CBOR
* @ingroup fido2_ctap * @ingroup fido2_ctap
@ -19,8 +21,6 @@
* @author Nils Ollrogge <nils.ollrogge@fu-berlin.de> * @author Nils Ollrogge <nils.ollrogge@fu-berlin.de>
*/ */
#ifndef FIDO2_CTAP_CTAP_CBOR_H
#define FIDO2_CTAP_CTAP_CBOR_H
#include "fido2/ctap/ctap.h" #include "fido2/ctap/ctap.h"
@ -334,5 +334,4 @@ void fido2_ctap_cbor_init_encoder(uint8_t *buf, size_t len);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* FIDO2_CTAP_CTAP_CBOR_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup fido2_ctap_crypto FIDO2 CTAP crypto * @defgroup fido2_ctap_crypto FIDO2 CTAP crypto
* @ingroup fido2_ctap * @ingroup fido2_ctap
@ -20,8 +22,6 @@
* @author Nils Ollrogge <nils.ollrogge@fu-berlin.de> * @author Nils Ollrogge <nils.ollrogge@fu-berlin.de>
*/ */
#ifndef FIDO2_CTAP_CTAP_CRYPTO_H
#define FIDO2_CTAP_CTAP_CRYPTO_H
#include <stdint.h> #include <stdint.h>
@ -298,5 +298,4 @@ ctap_status_code_t fido2_ctap_crypto_aes_ccm_dec(uint8_t *out, size_t out_len,
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* FIDO2_CTAP_CTAP_CRYPTO_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup fido2_ctap_mem FIDO2 CTAP flash * @defgroup fido2_ctap_mem FIDO2 CTAP flash
* @ingroup fido2_ctap * @ingroup fido2_ctap
@ -19,8 +21,6 @@
* @author Nils Ollrogge <nils.ollrogge@fu-berlin.de> * @author Nils Ollrogge <nils.ollrogge@fu-berlin.de>
*/ */
#ifndef FIDO2_CTAP_CTAP_MEM_H
#define FIDO2_CTAP_CTAP_MEM_H
#include <stdint.h> #include <stdint.h>
@ -170,5 +170,4 @@ ctap_status_code_t fido2_ctap_mem_write_rk_to_flash(ctap_resident_key_t *rk);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* FIDO2_CTAP_CTAP_MEM_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup fido2_ctap_utils FIDO2 CTAP utils * @defgroup fido2_ctap_utils FIDO2 CTAP utils
* @ingroup fido2_ctap * @ingroup fido2_ctap
@ -19,8 +21,6 @@
* @author Nils Ollrogge <nils.ollrogge@fu-berlin.de> * @author Nils Ollrogge <nils.ollrogge@fu-berlin.de>
*/ */
#ifndef FIDO2_CTAP_CTAP_UTILS_H
#define FIDO2_CTAP_CTAP_UTILS_H
#include <stdint.h> #include <stdint.h>
#include "fido2/ctap/ctap.h" #include "fido2/ctap/ctap.h"
@ -90,5 +90,4 @@ static inline bool fido2_ctap_utils_ks_equal(const ctap_resident_key_t *k1,
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* FIDO2_CTAP_CTAP_UTILS_H */
/** @} */ /** @} */

View File

@ -6,6 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#pragma once
/** /**
* @defgroup fido2_ctap_transport FIDO2 CTAP transport * @defgroup fido2_ctap_transport FIDO2 CTAP transport
* @ingroup fido2_ctap * @ingroup fido2_ctap
@ -19,8 +21,6 @@
* @author Nils Ollrogge <nils.ollrogge@fu-berlin.de> * @author Nils Ollrogge <nils.ollrogge@fu-berlin.de>
*/ */
#ifndef FIDO2_CTAP_TRANSPORT_CTAP_TRANSPORT_H
#define FIDO2_CTAP_TRANSPORT_CTAP_TRANSPORT_H
#include <stdint.h> #include <stdint.h>
#include "mutex.h" #include "mutex.h"
@ -44,5 +44,4 @@ void fido2_ctap_transport_init(void);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* FIDO2_CTAP_TRANSPORT_CTAP_TRANSPORT_H */
/** @} */ /** @} */

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