Skip to content

Commit 7b57ce3

Browse files
committed
pkg: change header guards to pragma once
1 parent 8774ed2 commit 7b57ce3

File tree

163 files changed

+331
-681
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+331
-681
lines changed

pkg/cryptoauthlib/include/atca.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* directory for more details.
77
*/
88

9+
#pragma once
10+
911
/**
1012
* @ingroup pkg_cryptoauthlib
1113
* @{
@@ -17,9 +19,6 @@
1719
*
1820
*/
1921

20-
#ifndef ATCA_H
21-
#define ATCA_H
22-
2322
#include "periph/i2c.h"
2423
#include "cryptoauthlib.h"
2524

@@ -74,5 +73,4 @@ typedef struct {
7473
}
7574
#endif
7675

77-
#endif /* ATCA_H */
7876
/** @} */

pkg/cryptoauthlib/include/atca_config.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* directory for more details.
77
*/
88

9+
#pragma once
10+
911
/**
1012
* @ingroup pkg_cryptoauthlib
1113
* @{
@@ -18,9 +20,6 @@
1820
*
1921
*/
2022

21-
#ifndef ATCA_CONFIG_H
22-
#define ATCA_CONFIG_H
23-
2423
#ifdef __cplusplus
2524
extern "C" {
2625
#endif
@@ -48,5 +47,4 @@ extern "C" {
4847
#ifdef __cplusplus
4948
}
5049
#endif
51-
#endif /* ATCA_CONFIG_H */
5250
/** @} */

pkg/cryptoauthlib/include/atca_params.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* directory for more details.
77
*/
88

9+
#pragma once
10+
911
/**
1012
* @ingroup pkg_cryptoauthlib
1113
* @{
@@ -17,9 +19,6 @@
1719
*
1820
*/
1921

20-
#ifndef ATCA_PARAMS_H
21-
#define ATCA_PARAMS_H
22-
2322
#include "board.h"
2423
#include "periph/i2c.h"
2524
#include "atca.h"
@@ -124,5 +123,4 @@ extern ATCADevice atca_devs_ptr[ATCA_NUMOF];
124123
}
125124
#endif
126125

127-
#endif /* ATCA_PARAMS_H */
128126
/** @} */

pkg/cryptoauthlib/include/atecc608a_config.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* directory for more details.
77
*/
88

9+
#pragma once
10+
911
/**
1012
* @file
1113
* @brief Example configuration for Microchip CryptoAuth devices
@@ -26,9 +28,6 @@
2628
*
2729
*/
2830

29-
#ifndef ATECC608A_CONFIG_H
30-
#define ATECC608A_CONFIG_H
31-
3231
#ifdef __cplusplus
3332
extern "C" {
3433
#endif
@@ -112,5 +111,3 @@ const uint8_t atecc608a_config[] = {
112111
#ifdef __cplusplus
113112
}
114113
#endif
115-
116-
#endif /* ATECC608A_CONFIG_H */

pkg/cryptoauthlib/include/cryptoauthlib_test.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* directory for more details.
77
*/
88

9+
#pragma once
10+
911
/**
1012
* @ingroup pkg_cryptoauthlib
1113
* @{
@@ -16,9 +18,6 @@
1618
*
1719
*/
1820

19-
#ifndef CRYPTOAUTHLIB_TEST_H
20-
#define CRYPTOAUTHLIB_TEST_H
21-
2221
#ifdef __cplusplus
2322
extern "C" {
2423
#endif
@@ -38,5 +37,4 @@ int atca_run_cmd(char *command, size_t len);
3837
}
3938
#endif
4039

41-
#endif /* CRYPTOAUTHLIB_TEST_H */
4240
/** @} */

pkg/driver_bme680/include/bme680_hal.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* directory for more details.
77
*/
88

9+
#pragma once
10+
911
/**
1012
* @ingroup pkg_driver_bme680
1113
* @{
@@ -16,9 +18,6 @@
1618
* @author Dylan Laduranty <[email protected]>
1719
*/
1820

19-
#ifndef BME680_HAL_H
20-
#define BME680_HAL_H
21-
2221
#ifdef __cplusplus
2322
extern "C" {
2423
#endif
@@ -45,5 +44,4 @@ int8_t bme680_spi_write_hal(uint8_t dev_id, uint8_t reg_addr,
4544
}
4645
#endif
4746

48-
#endif /* BME680_HAL_H */
4947
/** @} */

pkg/driver_cryptocell_310/include/cryptocell_310_util.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* directory for more details.
77
*/
88

9+
#pragma once
10+
911
/**
1012
* @ingroup pkg_driver_cryptocell_310
1113
* @{
@@ -16,8 +18,6 @@
1618
* @author Lena Boeckmann <[email protected]>
1719
*
1820
*/
19-
#ifndef CRYPTOCELL_310_UTIL_H
20-
#define CRYPTOCELL_310_UTIL_H
2121

2222
#ifdef __cplusplus
2323
extern "C" {
@@ -68,5 +68,4 @@ void driver_cryptocell_310_terminate(void);
6868
}
6969
#endif
7070

71-
#endif /* CRYPTOCELL_310_UTIL_H */
7271
/** @} */

pkg/driver_cryptocell_310/include/psa_cryptocell_310_aes_common.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* directory for more details.
77
*/
88

9+
#pragma once
10+
911
/**
1012
* @ingroup pkg_driver_cryptocell_310
1113
* @{
@@ -18,9 +20,6 @@
1820
*
1921
*/
2022

21-
#ifndef PSA_CRYPTOCELL_310_AES_COMMON_H
22-
#define PSA_CRYPTOCELL_310_AES_COMMON_H
23-
2423
#ifdef __cplusplus
2524
extern "C" {
2625
#endif
@@ -69,5 +68,4 @@ psa_status_t cryptocell_310_common_aes_encrypt_decrypt(SaSiAesUserContext_t *ctx
6968
}
7069
#endif
7170

72-
#endif /* PSA_CRYPTOCELL_310_AES_COMMON_H */
7371
/** @} */

pkg/driver_cryptocell_310/include/psa_cryptocell_310_ecc_common.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* directory for more details.
77
*/
88

9+
#pragma once
10+
911
/**
1012
* @ingroup pkg_driver_cryptocell_310
1113
* @{
@@ -18,9 +20,6 @@
1820
*
1921
*/
2022

21-
#ifndef PSA_CRYPTOCELL_310_ECC_COMMON_H
22-
#define PSA_CRYPTOCELL_310_ECC_COMMON_H
23-
2423
#ifdef __cplusplus
2524
extern "C" {
2625
#endif
@@ -140,5 +139,4 @@ psa_status_t cryptocell_310_common_ecc_verify(const uint8_t *pub_key,
140139
}
141140
#endif
142141

143-
#endif /* PSA_CRYPTOCELL_310_ECC_COMMON_H */
144142
/** @} */

pkg/driver_cryptocell_310/include/psa_cryptocell_310_hashes_common.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* directory for more details.
77
*/
88

9+
#pragma once
10+
911
/**
1012
* @ingroup pkg_driver_cryptocell_310
1113
* @{
@@ -17,8 +19,6 @@
1719
* @author Lena Boeckmann <[email protected]>
1820
*
1921
*/
20-
#ifndef PSA_CRYPTOCELL_310_HASHES_COMMON_H
21-
#define PSA_CRYPTOCELL_310_HASHES_COMMON_H
2222

2323
#ifdef __cplusplus
2424
extern "C" {
@@ -67,5 +67,4 @@ psa_status_t cryptocell_310_common_hash_finish(CRYS_HASHUserContext_t *ctx,
6767
}
6868
#endif
6969

70-
#endif /* PSA_CRYPTOCELL_310_HASHES_COMMON_H */
7170
/** @} */

0 commit comments

Comments
 (0)