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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions sys/include/analog_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* directory for more details.
*/

#ifndef ANALOG_UTIL_H
#define ANALOG_UTIL_H

/**
* @defgroup sys_analog_util Analog data conversion utilities
* @ingroup sys
Expand All @@ -18,9 +21,6 @@
* @author Hauke Petersen <[email protected]>
*/

#ifndef ANALOG_UTIL_H
#define ANALOG_UTIL_H

#include <stdint.h>

#include "periph/adc.h"
Expand Down Expand Up @@ -90,5 +90,5 @@ uint16_t dac_util_mapf(float value, float min, float max);
}
#endif

#endif /* ANALOG_UTIL_H */
/** @} */
#endif /* ANALOG_UTIL_H */
8 changes: 4 additions & 4 deletions sys/include/app_metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* directory for more details.
*/

#ifndef APP_METADATA_H
#define APP_METADATA_H

/**
* @defgroup sys_app_metadata app_metadata
* @ingroup sys
Expand All @@ -15,9 +18,6 @@
* @author Kevin Weiss <[email protected]>
*/

#ifndef APP_METADATA_H
#define APP_METADATA_H

#ifdef __cplusplus
extern "C" {
#endif
Expand Down Expand Up @@ -50,5 +50,5 @@ void app_metadata_print_json(void);
}
#endif

#endif /* APP_METADATA_H */
/** @} */
#endif /* APP_METADATA_H */
8 changes: 4 additions & 4 deletions sys/include/architecture.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* details.
*/

#ifndef ARCHITECTURE_H
#define ARCHITECTURE_H

/**
* @defgroup sys_architecture Platform-independent access to architecture
* details
Expand All @@ -21,9 +24,6 @@
* @author Marian Buschsieweke <[email protected]>
*/

#ifndef ARCHITECTURE_H
#define ARCHITECTURE_H

#include <stdint.h>
#include <inttypes.h>
#include <limits.h>
Expand Down Expand Up @@ -229,5 +229,5 @@ typedef uintptr_t uinttxtptr_t;
}
#endif

#endif /* ARCHITECTURE_H */
/** @} */
#endif /* ARCHITECTURE_H */
8 changes: 4 additions & 4 deletions sys/include/atomic_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* details.
*/

#ifndef ATOMIC_UTILS_H
#define ATOMIC_UTILS_H

/**
* @defgroup sys_atomic_utils Utility functions for atomic access
* @ingroup sys
Expand Down Expand Up @@ -133,9 +136,6 @@
* @author Marian Buschsieweke <[email protected]>
*/

#ifndef ATOMIC_UTILS_H
#define ATOMIC_UTILS_H

#include <stdint.h>

#include "irq.h"
Expand Down Expand Up @@ -1391,5 +1391,5 @@ static inline uint64_t semi_atomic_fetch_and_u64(volatile uint64_t *dest,
}
#endif

#endif /* ATOMIC_UTILS_H */
/** @} */
#endif /* ATOMIC_UTILS_H */
6 changes: 3 additions & 3 deletions sys/include/auto_init.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
* directory for more details.
*/

#ifndef AUTO_INIT_H
#define AUTO_INIT_H

/**
* @defgroup sys_auto_init Auto-initialization
* @ingroup sys
Expand Down Expand Up @@ -44,7 +47,7 @@
* - by passing them via the `CFLAGS` variable on the build command line:
*
* ```
* CFLAGS=-DBMP180_PARAM_OVERSAMPLING=1 USEMODULE=bmp180 make BOARD=arduino-zero -C examples/basic/default

Check warning on line 50 in sys/include/auto_init.h

View workflow job for this annotation

GitHub Actions / static-tests

line is longer than 100 characters
* ```
*
* - by setting the `CFLAGS` variable in the application `Makefile`:
Expand Down Expand Up @@ -105,9 +108,6 @@
* @author Alexandre Abadie <[email protected]>
*/

#ifndef AUTO_INIT_H
#define AUTO_INIT_H

#ifdef __cplusplus
extern "C" {
#endif
Expand Down
6 changes: 3 additions & 3 deletions sys/include/auto_init_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* directory for more details.
*/

#ifndef AUTO_INIT_UTILS_H
#define AUTO_INIT_UTILS_H
/**
* @defgroup sys_auto_init_utils Utilities to influence the order of auto-initialized modules
* @ingroup sys
Expand All @@ -24,8 +26,6 @@
* @experimental
* @author Fabian Hüßler <[email protected]>
*/
#ifndef AUTO_INIT_UTILS_H
#define AUTO_INIT_UTILS_H

#include <stdint.h>
#include "xfa.h"
Expand Down Expand Up @@ -97,5 +97,5 @@ typedef struct {
}
#endif

#endif /* AUTO_INIT_UTILS_H */
/** @} */
#endif /* AUTO_INIT_UTILS_H */
6 changes: 3 additions & 3 deletions sys/include/base64.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
* directory for more details.
*/

#ifndef BASE64_H
#define BASE64_H

/**
* @defgroup sys_base64 base64 encoder decoder
* @ingroup sys_serialization
Expand All @@ -17,9 +20,6 @@
* @author Martin Landsmann <[email protected]>
*/

#ifndef BASE64_H
#define BASE64_H

#include <stddef.h> /* for size_t */

#ifdef __cplusplus
Expand Down
6 changes: 3 additions & 3 deletions sys/include/bcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* directory for more details.
*/

#ifndef BCD_H
#define BCD_H
/**
* @defgroup sys_bcd Binary coded decimal
* @ingroup sys
Expand All @@ -17,8 +19,6 @@
*
* @author Martine Lenders <[email protected]>
*/
#ifndef BCD_H
#define BCD_H

#include <stdint.h>

Expand Down Expand Up @@ -56,5 +56,5 @@ static inline uint8_t bcd_to_byte(uint8_t bcd)
}
#endif

#endif /* BCD_H */
/** @} */
#endif /* BCD_H */
8 changes: 4 additions & 4 deletions sys/include/benchmark.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* directory for more details.
*/

#ifndef BENCHMARK_H
#define BENCHMARK_H

/**
* @defgroup sys_benchmark Benchmark
* @ingroup sys
Expand All @@ -18,9 +21,6 @@
* @author Hauke Petersen <[email protected]>
*/

#ifndef BENCHMARK_H
#define BENCHMARK_H

#include <stdint.h>

#include "irq.h"
Expand Down Expand Up @@ -65,5 +65,5 @@ void benchmark_print_time(uint32_t time, unsigned long runs, const char *name);
}
#endif

#endif /* BENCHMARK_H */
/** @} */
#endif /* BENCHMARK_H */
8 changes: 4 additions & 4 deletions sys/include/bhp.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* details.
*/

#ifndef BHP_H
#define BHP_H

/**
* @defgroup sys_bhp Bottom Half Processor
* @ingroup sys
Expand All @@ -26,9 +29,6 @@
* @author José I. Alamos <[email protected]>
*/

#ifndef BHP_H
#define BHP_H

#ifdef __cplusplus
extern "C" {
#endif
Expand Down Expand Up @@ -86,5 +86,5 @@ static inline void bhp_set_cb(bhp_t *bhp, bhp_cb_t cb, void *ctx)
}
#endif

#endif /* BHP_H */
/** @} */
#endif /* BHP_H */
8 changes: 4 additions & 4 deletions sys/include/bhp/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* details.
*/

#ifndef BHP_EVENT_H
#define BHP_EVENT_H

/**
* @defgroup sys_bhp_event Event based implementation of Bottom Half Processor
* @ingroup sys_bhp
Expand All @@ -16,9 +19,6 @@
* @author José I. Alamos <[email protected]>
*/

#ifndef BHP_EVENT_H
#define BHP_EVENT_H

#include "bhp.h"
#include <event.h>

Expand Down Expand Up @@ -58,5 +58,5 @@ void bhp_event_isr_cb(void *bhp_event_ctx);
}
#endif

#endif /* BHP_EVENT_H */
/** @} */
#endif /* BHP_EVENT_H */
8 changes: 4 additions & 4 deletions sys/include/bhp/msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* details.
*/

#ifndef BHP_MSG_H
#define BHP_MSG_H

/**
* @defgroup sys_bhp_msg Message based implementation of Bottom Half Processor
* @ingroup sys_bhp
Expand All @@ -21,9 +24,6 @@
* @author José I. Alamos <[email protected]>
*/

#ifndef BHP_MSG_H
#define BHP_MSG_H

#include "msg.h"
#include "thread.h"
#include "bhp.h"
Expand Down Expand Up @@ -102,5 +102,5 @@ static inline void bhp_msg_handler(msg_t *msg)
}
#endif

#endif /* BHP_MSG_H */
/** @} */
#endif /* BHP_MSG_H */
8 changes: 4 additions & 4 deletions sys/include/bit.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* directory for more details.
*/

#ifndef BIT_H
#define BIT_H

/**
* @ingroup sys
* @{
Expand All @@ -16,9 +19,6 @@
* @author Joakim Nohlgård <[email protected]>
*/

#ifndef BIT_H
#define BIT_H

#include <stdint.h>
#include "cpu.h"

Expand All @@ -34,7 +34,7 @@
/**
* @brief Flag to check if the CPU has hardware bit band support
*/
#define CPU_HAS_BITBAND 1 || 0 (1 if CPU implements bit-banding, 0 if not)

Check warning on line 37 in sys/include/bit.h

View workflow job for this annotation

GitHub Actions / static-tests

keyword 'if' not followed by a single space
/**
* @brief Flag to check if bit-banding is supported for all of SRAM
*
Expand Down Expand Up @@ -74,7 +74,7 @@
static inline volatile void *bitband_addr(volatile void *ptr, uintptr_t bit)
{
return (volatile void *)((((uintptr_t)ptr) & 0xF0000000ul) + 0x2000000ul +
((((uintptr_t)ptr) & 0xFFFFFul) << 5) + (bit << 2));

Check warning on line 77 in sys/include/bit.h

View workflow job for this annotation

GitHub Actions / static-tests

full block {} expected in the control structure
}

/**
Expand Down Expand Up @@ -305,5 +305,5 @@
}
#endif

#endif /* BIT_H */
/** @} */
#endif /* BIT_H */
6 changes: 3 additions & 3 deletions sys/include/bitfield.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* directory for more details.
*/

#ifndef BITFIELD_H
#define BITFIELD_H

/**
* @defgroup sys_bitfield Bitfields
* @ingroup sys
Expand All @@ -20,15 +23,12 @@
* @brief bitfields operations on bitfields of arbitrary length
*
* @note Code taken mostly from
* <a href="http://stackoverflow.com/questions/1590893/error-trying-to-define-a-1-024-bit-128-byte-bit-field">

Check warning on line 26 in sys/include/bitfield.h

View workflow job for this annotation

GitHub Actions / static-tests

line is longer than 100 characters
* Stackoverflow, User Christoph</a>
*
* @author Oliver Hahm <[email protected]>
*/

#ifndef BITFIELD_H
#define BITFIELD_H

#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
Expand Down
6 changes: 3 additions & 3 deletions sys/include/bloom.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@
*
*/

#ifndef BLOOM_H
#define BLOOM_H

/**
* @defgroup sys_bloom Bloom filter
* @ingroup sys
Expand All @@ -120,9 +123,6 @@
* @author Christian Mehlis <[email protected]>
*/

#ifndef BLOOM_H
#define BLOOM_H

#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
Expand Down
8 changes: 4 additions & 4 deletions sys/include/busy_wait.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* directory for more details.
*/

#ifndef BUSY_WAIT_H
#define BUSY_WAIT_H

/**
* @defgroup busy_wait Busy Waiting low-level helpers
* @ingroup sys
Expand All @@ -18,9 +21,6 @@
* @{
*/

#ifndef BUSY_WAIT_H
#define BUSY_WAIT_H

#include <stdint.h>
#include "periph_conf.h"
#include "time_units.h"
Expand Down Expand Up @@ -85,5 +85,5 @@ static inline void busy_wait_us(unsigned usec)
}
#endif

#endif /* BUSY_WAIT_H */
/** @} */
#endif /* BUSY_WAIT_H */
Loading
Loading