Skip to content
Snippets Groups Projects
Commit 6de92b08 authored by Oleg Hahm's avatar Oleg Hahm
Browse files

Merge pull request #4378 from haukepetersen/fix_core_includeguards

core: fixed include guards a minor style/doxygen
parents a3732a76 f326beb3
No related branches found
No related tags found
No related merge requests found
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
* @author Kaspar Schleiser <kaspar@schleiser.de> * @author Kaspar Schleiser <kaspar@schleiser.de>
*/ */
#ifndef _FLAGS_H #ifndef FLAGS_H
#define _FLAGS_H #define FLAGS_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
...@@ -38,5 +38,5 @@ ...@@ -38,5 +38,5 @@
} }
#endif #endif
#endif /* _FLAGS_H */ #endif /* FLAGS_H */
/** @} */ /** @} */
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
* @author Kaspar Schleiser <kaspar@schleiser.de> * @author Kaspar Schleiser <kaspar@schleiser.de>
*/ */
#ifndef __LOG_H #ifndef LOG_H
#define __LOG_H #define LOG_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
...@@ -100,5 +100,5 @@ enum { ...@@ -100,5 +100,5 @@ enum {
} }
#endif #endif
#endif /* __LOG_H */ #endif /* LOG_H */
/** @} */ /** @} */
...@@ -18,11 +18,10 @@ ...@@ -18,11 +18,10 @@
* @brief Add definitions required on the native board * @brief Add definitions required on the native board
* *
* @author Raphael Hiesgen <raphael.hiesgen@haw-hamburg.de> * @author Raphael Hiesgen <raphael.hiesgen@haw-hamburg.de>
* @}
*/ */
#ifndef _NATIVE_SCHEDULER_H #ifndef NATIVE_SCHEDULER_H
#define _NATIVE_SCHEDULER_H #define NATIVE_SCHEDULER_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
...@@ -30,6 +29,7 @@ extern "C" { ...@@ -30,6 +29,7 @@ extern "C" {
#ifdef BOARD_NATIVE #ifdef BOARD_NATIVE
#include <stdio.h> #include <stdio.h>
/* /*
* Required to use some C++11 headers with g++ on the native board. * Required to use some C++11 headers with g++ on the native board.
*/ */
...@@ -48,10 +48,11 @@ inline int sched_yield(void) ...@@ -48,10 +48,11 @@ inline int sched_yield(void)
puts("[ERROR] sched_yield called (defined in sched.h)\n"); puts("[ERROR] sched_yield called (defined in sched.h)\n");
return 0; return 0;
} }
#endif // BOARD_NATIVE #endif /* BOARD_NATIVE */
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif // _NATIVE_SCHEDULER_H #endif /* NATIVE_SCHEDULER_H */
/** @} */
...@@ -77,8 +77,8 @@ ...@@ -77,8 +77,8 @@
* @author Kaspar Schleiser <kaspar@schleiser.de> * @author Kaspar Schleiser <kaspar@schleiser.de>
*/ */
#ifndef _SCHEDULER_H #ifndef SCHEDULER_H
#define _SCHEDULER_H #define SCHEDULER_H
#include <stddef.h> #include <stddef.h>
#include "bitarithm.h" #include "bitarithm.h"
...@@ -193,5 +193,5 @@ void sched_register_cb(void (*callback)(uint32_t, uint32_t)); ...@@ -193,5 +193,5 @@ void sched_register_cb(void (*callback)(uint32_t, uint32_t));
} }
#endif #endif
#endif // _SCHEDULER_H #endif /* SCHEDULER_H */
/** @} */ /** @} */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment