Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions examples/advanced/psa_crypto/custom_atca_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* directory for more details.
*/

#pragma once

/**
* @ingroup examples
* @{
Expand All @@ -17,9 +19,6 @@
* @author Lena Boeckmann <[email protected]>
*
*/
#ifndef CUSTOM_ATCA_PARAMS_H
#define CUSTOM_ATCA_PARAMS_H

#include "cryptoauthlib.h"
#include "psa/crypto.h"

Expand Down Expand Up @@ -121,5 +120,4 @@ extern "C" {
}
#endif

#endif /* CUSTOM_ATCA_PARAMS_H */
/** @} */
7 changes: 2 additions & 5 deletions examples/advanced/twr_aloha/control.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* directory for more details.
*/

#pragma once

/**
* @ingroup examples
* @{
Expand All @@ -17,9 +19,6 @@
* @}
*/

#ifndef CONTROL_H
#define CONTROL_H

#ifdef __cplusplus
extern "C" {
#endif
Expand Down Expand Up @@ -115,5 +114,3 @@ uint32_t uwb_core_rng_req_remaining(void);
#ifdef __cplusplus
}
#endif

#endif /* CONTROL_H */
6 changes: 2 additions & 4 deletions examples/lang_support/official/riot_and_cpp/c_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* directory for more details.
*/

#pragma once

/**
* @ingroup examples
* @{
Expand All @@ -19,9 +21,6 @@

#include <stdio.h>

#ifndef C_FUNCTIONS_H
#define C_FUNCTIONS_H

/*
* all headers defining c functions must be marked as extern "C" when included
* into c++ sources
Expand Down Expand Up @@ -51,4 +50,3 @@ int day_of_week(int day, int month, int year);
#endif

/** @} */
#endif /* C_FUNCTIONS_H */
6 changes: 2 additions & 4 deletions examples/lang_support/official/riot_and_cpp/cpp_class.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* directory for more details.
*/

#pragma once

/**
* @defgroup
* @brief
Expand All @@ -20,9 +22,6 @@
* @author DangNhat Pham-Huu <[email protected]>
*/

#ifndef CPP_CLASS_H
#define CPP_CLASS_H

#include <cstdio>

class cpp_class
Expand Down Expand Up @@ -60,4 +59,3 @@ class cpp_class
};

/** @} */
#endif /* CPP_CLASS_H */
6 changes: 2 additions & 4 deletions examples/networking/coap/gcoap/gcoap_example.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* details.
*/

#pragma once

/**
* @ingroup examples
* @{
Expand All @@ -16,9 +18,6 @@
* @author Ken Bannister <[email protected]>
*/

#ifndef GCOAP_EXAMPLE_H
#define GCOAP_EXAMPLE_H

#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down Expand Up @@ -53,5 +52,4 @@ void notify_observers(void);
}
#endif

#endif /* GCOAP_EXAMPLE_H */
/** @} */
6 changes: 2 additions & 4 deletions examples/networking/coap/gcoap_dtls/gcoap_example.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* details.
*/

#pragma once

/**
* @ingroup examples
* @{
Expand All @@ -16,9 +18,6 @@
* @author Ken Bannister <[email protected]>
*/

#ifndef GCOAP_EXAMPLE_H
#define GCOAP_EXAMPLE_H

#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down Expand Up @@ -61,5 +60,4 @@ void notify_observers(void);
}
#endif

#endif /* GCOAP_EXAMPLE_H */
/** @} */
7 changes: 2 additions & 5 deletions examples/networking/coap/gcoap_dtls/tinydtls_keys.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* directory for more details.
*/

#pragma once

/**
* @ingroup examples
* @{
Expand All @@ -18,9 +20,6 @@
* @}
*/

#ifndef TINYDTLS_KEYS_H
#define TINYDTLS_KEYS_H

#ifdef __cplusplus
extern "C" {
#endif
Expand Down Expand Up @@ -59,5 +58,3 @@ static const unsigned char ecdsa_pub_key_y[] = {
#ifdef __cplusplus
}
#endif

#endif /* TINYDTLS_KEYS_H */
7 changes: 2 additions & 5 deletions examples/networking/dtls/dtls-echo/tinydtls_keys.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* directory for more details.
*/

#pragma once

/**
* @ingroup examples
* @{
Expand All @@ -18,9 +20,6 @@
* @}
*/

#ifndef TINYDTLS_KEYS_H
#define TINYDTLS_KEYS_H

#ifdef __cplusplus
extern "C" {
#endif
Expand Down Expand Up @@ -62,5 +61,3 @@ static const unsigned char ecdsa_pub_key_y[] = {
#ifdef __cplusplus
}
#endif

#endif /* TINYDTLS_KEYS_H */
7 changes: 2 additions & 5 deletions examples/networking/dtls/dtls-sock/dtls_client_credentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* directory for more details.
*/

#pragma once

/**
* @ingroup examples
* @{
Expand All @@ -18,9 +20,6 @@
* @}
*/

#ifndef DTLS_CLIENT_CREDENTIALS_H
#define DTLS_CLIENT_CREDENTIALS_H

#ifdef __cplusplus
extern "C" {
#endif
Expand Down Expand Up @@ -135,5 +134,3 @@ static const unsigned char known_server_public_key_1_y[] = {
#ifdef __cplusplus
}
#endif

#endif /* DTLS_CLIENT_CREDENTIALS_H */
7 changes: 2 additions & 5 deletions examples/networking/dtls/dtls-sock/dtls_server_credentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* directory for more details.
*/

#pragma once

/**
* @ingroup examples
* @{
Expand All @@ -18,9 +20,6 @@
* @}
*/

#ifndef DTLS_SERVER_CREDENTIALS_H
#define DTLS_SERVER_CREDENTIALS_H

#ifdef __cplusplus
extern "C" {
#endif
Expand Down Expand Up @@ -131,5 +130,3 @@ static const unsigned char known_client_public_key_0_y[] = {
#ifdef __cplusplus
}
#endif

#endif /* DTLS_SERVER_CREDENTIALS_H */
7 changes: 2 additions & 5 deletions examples/networking/misc/lwm2m/credentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* directory for more details.
*/

#pragma once

/**
* @ingroup examples
* @{
Expand All @@ -18,9 +20,6 @@
* @}
*/

#ifndef CREDENTIALS_H
#define CREDENTIALS_H

#ifdef __cplusplus
extern "C" {
#endif
Expand Down Expand Up @@ -75,5 +74,3 @@ static const uint8_t server_rpk_pub[] = {
#ifdef __cplusplus
}
#endif

#endif /* CREDENTIALS_H */