mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 18:13:49 +01:00
Merge pull request #21405 from JerelJr/fix-core-headers
core: replace header guards with #pragma once
This commit is contained in:
commit
55f9d1c930
@ -4,6 +4,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup core_sync_cond Condition Variable
|
* @defgroup core_sync_cond Condition Variable
|
||||||
* @ingroup core_sync
|
* @ingroup core_sync
|
||||||
@ -134,9 +136,6 @@
|
|||||||
* @author Sam Kumar <samkumar@berkeley.edu>
|
* @author Sam Kumar <samkumar@berkeley.edu>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef COND_H
|
|
||||||
#define COND_H
|
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
@ -211,5 +210,4 @@ void cond_broadcast(cond_t *cond);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* COND_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup core_mbox Mailboxes
|
* @defgroup core_mbox Mailboxes
|
||||||
* @ingroup core
|
* @ingroup core
|
||||||
@ -19,9 +21,6 @@
|
|||||||
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MBOX_H
|
|
||||||
#define MBOX_H
|
|
||||||
|
|
||||||
#include "list.h"
|
#include "list.h"
|
||||||
#include "cib.h"
|
#include "cib.h"
|
||||||
#include "msg.h"
|
#include "msg.h"
|
||||||
@ -201,4 +200,3 @@ static inline void mbox_unset(mbox_t *mbox)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
#endif /* MBOX_H */
|
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup core_msg Messaging / IPC
|
* @defgroup core_msg Messaging / IPC
|
||||||
* @ingroup core
|
* @ingroup core
|
||||||
@ -173,9 +175,6 @@
|
|||||||
* @author Kévin Roussel <Kevin.Roussel@inria.fr>
|
* @author Kévin Roussel <Kevin.Roussel@inria.fr>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MSG_H
|
|
||||||
#define MSG_H
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
@ -434,5 +433,4 @@ void msg_queue_print(void);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* MSG_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_msg
|
* @ingroup core_msg
|
||||||
*
|
*
|
||||||
@ -35,9 +37,6 @@
|
|||||||
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
|
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MSG_BUS_H
|
|
||||||
#define MSG_BUS_H
|
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
@ -264,5 +263,4 @@ static inline int msg_bus_post(msg_bus_t *bus, uint8_t type, const void *arg)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* MSG_BUS_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @addtogroup core_sync_mutex
|
* @addtogroup core_sync_mutex
|
||||||
* @{
|
* @{
|
||||||
@ -18,9 +20,6 @@
|
|||||||
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MUTEX_H
|
|
||||||
#define MUTEX_H
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
@ -349,5 +348,4 @@ void mutex_cancel(mutex_cancel_t *mc);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* MUTEX_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup core_sched_native Scheduler for native
|
* @defgroup core_sched_native Scheduler for native
|
||||||
* @ingroup core_sched
|
* @ingroup core_sched
|
||||||
@ -20,9 +22,6 @@
|
|||||||
* @author Raphael Hiesgen <raphael.hiesgen@haw-hamburg.de>
|
* @author Raphael Hiesgen <raphael.hiesgen@haw-hamburg.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef NATIVE_SCHED_H
|
|
||||||
#define NATIVE_SCHED_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -64,5 +63,4 @@ extern int sched_yield(void);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* NATIVE_SCHED_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup core_sched Scheduler
|
* @defgroup core_sched Scheduler
|
||||||
* @ingroup core
|
* @ingroup core
|
||||||
@ -78,9 +80,6 @@
|
|||||||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SCHED_H
|
|
||||||
#define SCHED_H
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
@ -385,5 +384,4 @@ static inline int sched_runq_more_than_one(uint8_t prio)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* SCHED_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* details.
|
* details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup sys_stdio_null
|
* @ingroup sys_stdio_null
|
||||||
*
|
*
|
||||||
@ -22,8 +24,6 @@
|
|||||||
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
|
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CORE_STDIO_H
|
|
||||||
#define CORE_STDIO_H
|
|
||||||
#include_next "stdio.h"
|
#include_next "stdio.h"
|
||||||
|
|
||||||
#ifdef MODULE_STDIO_NULL
|
#ifdef MODULE_STDIO_NULL
|
||||||
@ -66,5 +66,4 @@ static inline int vprintf_null(const char *__restrict__ format, va_list ap)
|
|||||||
|
|
||||||
#endif /* MODULE_STDIO_NULL */
|
#endif /* MODULE_STDIO_NULL */
|
||||||
|
|
||||||
#endif /* CORE_STDIO_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup core_thread Threading
|
* @defgroup core_thread Threading
|
||||||
* @ingroup core
|
* @ingroup core
|
||||||
@ -116,9 +118,6 @@
|
|||||||
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef THREAD_H
|
|
||||||
#define THREAD_H
|
|
||||||
|
|
||||||
#include "clist.h"
|
#include "clist.h"
|
||||||
#include "cib.h"
|
#include "cib.h"
|
||||||
#include "msg.h"
|
#include "msg.h"
|
||||||
@ -660,4 +659,3 @@ static inline uintptr_t thread_measure_stack_free(const thread_t *thread)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
#endif /* THREAD_H */
|
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup core_thread_flags Thread Flags
|
* @defgroup core_thread_flags Thread Flags
|
||||||
* @ingroup core
|
* @ingroup core
|
||||||
@ -54,9 +56,6 @@
|
|||||||
*
|
*
|
||||||
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
||||||
*/
|
*/
|
||||||
#ifndef THREAD_FLAGS_H
|
|
||||||
#define THREAD_FLAGS_H
|
|
||||||
|
|
||||||
#include "sched.h" /* for thread_t typedef */
|
#include "sched.h" /* for thread_t typedef */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@ -201,5 +200,4 @@ int thread_flags_wake(thread_t *thread);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* THREAD_FLAGS_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_util
|
* @ingroup core_util
|
||||||
*
|
*
|
||||||
@ -19,9 +21,6 @@
|
|||||||
* @author Martine Lenders <m.lenders@fu-berlin.de>
|
* @author Martine Lenders <m.lenders@fu-berlin.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ASSERT_H
|
|
||||||
#define ASSERT_H
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@ -169,5 +168,4 @@ __NORETURN void _assert_panic(void);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* ASSERT_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_util
|
* @ingroup core_util
|
||||||
* @{
|
* @{
|
||||||
@ -18,9 +20,6 @@
|
|||||||
* @author Martine Lenders <mlenders@inf.fu-berlin.de>
|
* @author Martine Lenders <mlenders@inf.fu-berlin.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef BITARITHM_H
|
|
||||||
#define BITARITHM_H
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "cpu_conf.h"
|
#include "cpu_conf.h"
|
||||||
@ -278,5 +277,4 @@ static inline unsigned bitarithm_test_and_clear(unsigned state, uint8_t *index)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* BITARITHM_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_util
|
* @ingroup core_util
|
||||||
* @{
|
* @{
|
||||||
@ -30,9 +32,6 @@
|
|||||||
* exclusive access as indicated in the API doc.
|
* exclusive access as indicated in the API doc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CIB_H
|
|
||||||
#define CIB_H
|
|
||||||
|
|
||||||
#include "assert.h"
|
#include "assert.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@ -285,5 +284,4 @@ static inline int cib_put_unsafe(cib_t *cib)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* CIB_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -8,6 +8,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_util
|
* @ingroup core_util
|
||||||
* @{
|
* @{
|
||||||
@ -87,9 +89,6 @@
|
|||||||
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CLIST_H
|
|
||||||
#define CLIST_H
|
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include "list.h"
|
#include "list.h"
|
||||||
@ -500,5 +499,4 @@ static inline bool clist_more_than_one(clist_node_t *list)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* CLIST_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_internal
|
* @ingroup core_internal
|
||||||
* @{
|
* @{
|
||||||
@ -18,9 +20,6 @@
|
|||||||
* @author Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>
|
* @author Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef COMPILER_HINTS_H
|
|
||||||
#define COMPILER_HINTS_H
|
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
@ -198,5 +197,4 @@ static inline unsigned may_be_zero(unsigned n)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* COMPILER_HINTS_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_internal
|
* @ingroup core_internal
|
||||||
* @{
|
* @{
|
||||||
@ -18,9 +20,6 @@
|
|||||||
* @author Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>
|
* @author Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONTAINER_H
|
|
||||||
#define CONTAINER_H
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
@ -87,5 +86,4 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* CONTAINER_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_util
|
* @ingroup core_util
|
||||||
* @{
|
* @{
|
||||||
@ -21,9 +23,6 @@
|
|||||||
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DEBUG_H
|
|
||||||
#define DEBUG_H
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "sched.h"
|
#include "sched.h"
|
||||||
#include "thread.h"
|
#include "thread.h"
|
||||||
@ -148,5 +147,4 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* DEBUG_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,9 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef IRQ_H
|
||||||
|
#define IRQ_H
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup core_irq IRQ Handling
|
* @defgroup core_irq IRQ Handling
|
||||||
* @ingroup core
|
* @ingroup core
|
||||||
@ -19,9 +22,6 @@
|
|||||||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef IRQ_H
|
|
||||||
#define IRQ_H
|
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "cpu_conf.h"
|
#include "cpu_conf.h"
|
||||||
|
|
||||||
@ -30,9 +30,9 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef IRQ_API_INLINED
|
#ifdef IRQ_API_INLINED
|
||||||
#define MAYBE_INLINE static inline __attribute__((always_inline))
|
# define MAYBE_INLINE static inline __attribute__((always_inline))
|
||||||
#else
|
#else
|
||||||
#define MAYBE_INLINE
|
# define MAYBE_INLINE
|
||||||
#endif /* IRQ_API_INLINED */
|
#endif /* IRQ_API_INLINED */
|
||||||
|
|
||||||
#ifndef IRQ_API_INLINED
|
#ifndef IRQ_API_INLINED
|
||||||
@ -91,12 +91,12 @@ MAYBE_INLINE bool irq_is_enabled(void);
|
|||||||
MAYBE_INLINE bool irq_is_in(void);
|
MAYBE_INLINE bool irq_is_in(void);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#include "irq_arch.h" /* IWYU pragma: export */
|
# include "irq_arch.h" /* IWYU pragma: export */
|
||||||
#endif /* IRQ_API_INLINED */
|
#endif /* IRQ_API_INLINED */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* IRQ_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
#endif /* IRQ_H */
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_internal
|
* @ingroup core_internal
|
||||||
* @{
|
* @{
|
||||||
@ -18,9 +20,6 @@
|
|||||||
* @author Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>
|
* @author Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef KERNEL_DEFINES_H
|
|
||||||
#define KERNEL_DEFINES_H
|
|
||||||
|
|
||||||
#include "modules.h"
|
#include "modules.h"
|
||||||
#include "riot_version.h"
|
#include "riot_version.h"
|
||||||
#include "compiler_hints.h"
|
#include "compiler_hints.h"
|
||||||
@ -34,5 +33,4 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* KERNEL_DEFINES_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_internal
|
* @ingroup core_internal
|
||||||
* @{
|
* @{
|
||||||
@ -18,9 +20,6 @@
|
|||||||
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef KERNEL_INIT_H
|
|
||||||
#define KERNEL_INIT_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -69,5 +68,4 @@ static inline void early_init(void) {}
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* KERNEL_INIT_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_util
|
* @ingroup core_util
|
||||||
* @{
|
* @{
|
||||||
@ -20,9 +22,6 @@
|
|||||||
* @author Víctor Ariño <victor.arino@zii.aero>
|
* @author Víctor Ariño <victor.arino@zii.aero>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIST_H
|
|
||||||
#define LIST_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -99,5 +98,4 @@ static inline list_node_t *list_remove(list_node_t *list, list_node_t *node)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* LIST_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_util
|
* @ingroup core_util
|
||||||
* @{
|
* @{
|
||||||
@ -30,9 +32,6 @@
|
|||||||
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LOG_H
|
|
||||||
#define LOG_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -124,5 +123,4 @@ enum {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* LOG_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_macros
|
* @ingroup core_macros
|
||||||
* @{
|
* @{
|
||||||
@ -16,9 +18,6 @@
|
|||||||
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
|
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MACROS_MATH_H
|
|
||||||
#define MACROS_MATH_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -57,5 +56,4 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* MACROS_MATH_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_macros
|
* @ingroup core_macros
|
||||||
* @{
|
* @{
|
||||||
@ -16,9 +18,6 @@
|
|||||||
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
|
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MACROS_UNITS_H
|
|
||||||
#define MACROS_UNITS_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -57,5 +56,4 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* MACROS_UNITS_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_macros
|
* @ingroup core_macros
|
||||||
* @{
|
* @{
|
||||||
@ -16,9 +18,6 @@
|
|||||||
* @author Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
* @author Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MACROS_UTILS_H
|
|
||||||
#define MACROS_UTILS_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -93,5 +92,4 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* MACROS_UTILS_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_macros
|
* @ingroup core_macros
|
||||||
* @{
|
* @{
|
||||||
@ -16,9 +18,6 @@
|
|||||||
* @author Gunar Schorcht <gunar@schorcht.net>
|
* @author Gunar Schorcht <gunar@schorcht.net>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MACROS_XTSTR_H
|
|
||||||
#define MACROS_XTSTR_H
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@ -41,5 +40,4 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* MACROS_XTSTR_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_internal
|
* @ingroup core_internal
|
||||||
* @{
|
* @{
|
||||||
@ -18,9 +20,6 @@
|
|||||||
* @author Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>
|
* @author Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MODULES_H
|
|
||||||
#define MODULES_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -107,5 +106,4 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* MODULES_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_util
|
* @ingroup core_util
|
||||||
* @{
|
* @{
|
||||||
@ -19,9 +21,6 @@
|
|||||||
* @author Kévin Roussel <Kevin.Roussel@inria.fr>
|
* @author Kévin Roussel <Kevin.Roussel@inria.fr>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PANIC_H
|
|
||||||
#define PANIC_H
|
|
||||||
|
|
||||||
#include "kernel_defines.h"
|
#include "kernel_defines.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@ -100,5 +99,4 @@ void panic_arch(void);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* PANIC_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_util
|
* @ingroup core_util
|
||||||
* @{
|
* @{
|
||||||
@ -16,9 +18,6 @@
|
|||||||
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PRIORITY_QUEUE_H
|
|
||||||
#define PRIORITY_QUEUE_H
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
@ -139,4 +138,3 @@ void priority_queue_print_node(priority_queue_t *root);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
#endif /* PRIORITY_QUEUE_H */
|
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_util
|
* @ingroup core_util
|
||||||
* @{
|
* @{
|
||||||
@ -22,9 +24,6 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef RINGBUFFER_H
|
|
||||||
#define RINGBUFFER_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -163,5 +162,3 @@ unsigned ringbuffer_peek(const ringbuffer_t *__restrict rb, char *buf,
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* RINGBUFFER_H */
|
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_internal
|
* @ingroup core_internal
|
||||||
* @{
|
* @{
|
||||||
@ -18,9 +20,6 @@
|
|||||||
* @author Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>
|
* @author Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef RIOT_VERSION_H
|
|
||||||
#define RIOT_VERSION_H
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@ -60,5 +59,4 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* RIOT_VERSION_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup core_sync_rmutex Recursive Mutex
|
* @defgroup core_sync_rmutex Recursive Mutex
|
||||||
* @ingroup core_sync
|
* @ingroup core_sync
|
||||||
@ -20,9 +22,6 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef RMUTEX_H
|
|
||||||
#define RMUTEX_H
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "mutex.h"
|
#include "mutex.h"
|
||||||
@ -109,5 +108,4 @@ void rmutex_unlock(rmutex_t *rmutex);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* RMUTEX_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -8,6 +8,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_thread
|
* @ingroup core_thread
|
||||||
*
|
*
|
||||||
@ -19,9 +21,6 @@
|
|||||||
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef THREAD_CONFIG_H
|
|
||||||
#define THREAD_CONFIG_H
|
|
||||||
|
|
||||||
#include "cpu_conf.h"
|
#include "cpu_conf.h"
|
||||||
#include "sched.h" /* for SCHED_PRIO_LEVELS */
|
#include "sched.h" /* for SCHED_PRIO_LEVELS */
|
||||||
|
|
||||||
@ -140,5 +139,4 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* THREAD_CONFIG_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup core_util
|
* @ingroup core_util
|
||||||
* @brief Cross File Arrays
|
* @brief Cross File Arrays
|
||||||
@ -22,9 +24,6 @@
|
|||||||
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef XFA_H
|
|
||||||
#define XFA_H
|
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include "compiler_hints.h"
|
#include "compiler_hints.h"
|
||||||
|
|
||||||
@ -194,5 +193,4 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* XFA_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user