mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 18:13:49 +01:00
examples: replace header guards with #pragma once
This commit is contained in:
parent
cd8bb88381
commit
a28a905d73
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup examples
|
* @ingroup examples
|
||||||
* @{
|
* @{
|
||||||
@ -17,9 +19,6 @@
|
|||||||
* @author Lena Boeckmann <lena.boeckmann@haw-hamburg.de>
|
* @author Lena Boeckmann <lena.boeckmann@haw-hamburg.de>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#ifndef CUSTOM_ATCA_PARAMS_H
|
|
||||||
#define CUSTOM_ATCA_PARAMS_H
|
|
||||||
|
|
||||||
#include "cryptoauthlib.h"
|
#include "cryptoauthlib.h"
|
||||||
#include "psa/crypto.h"
|
#include "psa/crypto.h"
|
||||||
|
|
||||||
@ -121,5 +120,4 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* CUSTOM_ATCA_PARAMS_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup examples
|
* @ingroup examples
|
||||||
* @{
|
* @{
|
||||||
@ -17,9 +19,6 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONTROL_H
|
|
||||||
#define CONTROL_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -115,5 +114,3 @@ uint32_t uwb_core_rng_req_remaining(void);
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* CONTROL_H */
|
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup examples
|
* @ingroup examples
|
||||||
* @{
|
* @{
|
||||||
@ -19,9 +21,6 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#ifndef C_FUNCTIONS_H
|
|
||||||
#define C_FUNCTIONS_H
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* all headers defining c functions must be marked as extern "C" when included
|
* all headers defining c functions must be marked as extern "C" when included
|
||||||
* into c++ sources
|
* into c++ sources
|
||||||
@ -51,4 +50,3 @@ int day_of_week(int day, int month, int year);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
#endif /* C_FUNCTIONS_H */
|
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup
|
* @defgroup
|
||||||
* @brief
|
* @brief
|
||||||
@ -20,9 +22,6 @@
|
|||||||
* @author DangNhat Pham-Huu <51002279@stu.hcmut.edu.vn>
|
* @author DangNhat Pham-Huu <51002279@stu.hcmut.edu.vn>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CPP_CLASS_H
|
|
||||||
#define CPP_CLASS_H
|
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
class cpp_class
|
class cpp_class
|
||||||
@ -60,4 +59,3 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
#endif /* CPP_CLASS_H */
|
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* details.
|
* details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup examples
|
* @ingroup examples
|
||||||
* @{
|
* @{
|
||||||
@ -16,9 +18,6 @@
|
|||||||
* @author Ken Bannister <kb2ma@runbox.com>
|
* @author Ken Bannister <kb2ma@runbox.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef GCOAP_EXAMPLE_H
|
|
||||||
#define GCOAP_EXAMPLE_H
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -53,5 +52,4 @@ void notify_observers(void);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* GCOAP_EXAMPLE_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* details.
|
* details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup examples
|
* @ingroup examples
|
||||||
* @{
|
* @{
|
||||||
@ -16,9 +18,6 @@
|
|||||||
* @author Ken Bannister <kb2ma@runbox.com>
|
* @author Ken Bannister <kb2ma@runbox.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef GCOAP_EXAMPLE_H
|
|
||||||
#define GCOAP_EXAMPLE_H
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -61,5 +60,4 @@ void notify_observers(void);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* GCOAP_EXAMPLE_H */
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup examples
|
* @ingroup examples
|
||||||
* @{
|
* @{
|
||||||
@ -18,9 +20,6 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef TINYDTLS_KEYS_H
|
|
||||||
#define TINYDTLS_KEYS_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -59,5 +58,3 @@ static const unsigned char ecdsa_pub_key_y[] = {
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* TINYDTLS_KEYS_H */
|
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup examples
|
* @ingroup examples
|
||||||
* @{
|
* @{
|
||||||
@ -18,9 +20,6 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef TINYDTLS_KEYS_H
|
|
||||||
#define TINYDTLS_KEYS_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -62,5 +61,3 @@ static const unsigned char ecdsa_pub_key_y[] = {
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* TINYDTLS_KEYS_H */
|
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup examples
|
* @ingroup examples
|
||||||
* @{
|
* @{
|
||||||
@ -18,9 +20,6 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DTLS_CLIENT_CREDENTIALS_H
|
|
||||||
#define DTLS_CLIENT_CREDENTIALS_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -135,5 +134,3 @@ static const unsigned char known_server_public_key_1_y[] = {
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* DTLS_CLIENT_CREDENTIALS_H */
|
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup examples
|
* @ingroup examples
|
||||||
* @{
|
* @{
|
||||||
@ -18,9 +20,6 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DTLS_SERVER_CREDENTIALS_H
|
|
||||||
#define DTLS_SERVER_CREDENTIALS_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -131,5 +130,3 @@ static const unsigned char known_client_public_key_0_y[] = {
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* DTLS_SERVER_CREDENTIALS_H */
|
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
* directory for more details.
|
* directory for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup examples
|
* @ingroup examples
|
||||||
* @{
|
* @{
|
||||||
@ -18,9 +20,6 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CREDENTIALS_H
|
|
||||||
#define CREDENTIALS_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -75,5 +74,3 @@ static const uint8_t server_rpk_pub[] = {
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* CREDENTIALS_H */
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user