21
21
* for Zephyr platforms.
22
22
*/
23
23
24
- #if !CONFIG_NORDIC_SECURITY_BACKEND
24
+ #if !defined( CONFIG_NORDIC_SECURITY_BACKEND)
25
25
#include < crypto/CHIPCryptoPAL.h> // nogncheck
26
- #endif // !CONFIG_NORDIC_SECURITY_BACKEND
26
+ #endif // !defined( CONFIG_NORDIC_SECURITY_BACKEND)
27
27
28
28
#include < platform/internal/CHIPDeviceLayerInternal.h>
29
29
@@ -45,7 +45,7 @@ PlatformManagerImpl PlatformManagerImpl::sInstance{ sChipThreadStack };
45
45
46
46
static k_timer sOperationalHoursSavingTimer ;
47
47
48
- #if !CONFIG_NORDIC_SECURITY_BACKEND && !defined(CONFIG_MBEDTLS_ZEPHYR_ENTROPY)
48
+ #if !defined( CONFIG_NORDIC_SECURITY_BACKEND) && !defined(CONFIG_MBEDTLS_ZEPHYR_ENTROPY)
49
49
static int app_entropy_source (void * data, unsigned char * output, size_t len, size_t * olen)
50
50
{
51
51
const struct device * entropy = DEVICE_DT_GET (DT_CHOSEN (zephyr_entropy));
@@ -71,7 +71,7 @@ static int app_entropy_source(void * data, unsigned char * output, size_t len, s
71
71
72
72
return ret;
73
73
}
74
- #endif // !CONFIG_NORDIC_SECURITY_BACKEND && !defined(CONFIG_MBEDTLS_ZEPHYR_ENTROPY)
74
+ #endif // !defined( CONFIG_NORDIC_SECURITY_BACKEND) && !defined(CONFIG_MBEDTLS_ZEPHYR_ENTROPY)
75
75
76
76
void PlatformManagerImpl::OperationalHoursSavingTimerEventHandler (k_timer * timer)
77
77
{
@@ -108,20 +108,20 @@ CHIP_ERROR PlatformManagerImpl::_InitChipStack(void)
108
108
{
109
109
CHIP_ERROR err;
110
110
111
- #if !CONFIG_NORDIC_SECURITY_BACKEND && !defined(CONFIG_MBEDTLS_ZEPHYR_ENTROPY)
111
+ #if !defined( CONFIG_NORDIC_SECURITY_BACKEND) && !defined(CONFIG_MBEDTLS_ZEPHYR_ENTROPY)
112
112
// Minimum required from source before entropy is released ( with mbedtls_entropy_func() ) (in bytes)
113
113
const size_t kThreshold = 16 ;
114
- #endif // !CONFIG_NORDIC_SECURITY_BACKEND && !defined(CONFIG_MBEDTLS_ZEPHYR_ENTROPY)
114
+ #endif // !defined( CONFIG_NORDIC_SECURITY_BACKEND) && !defined(CONFIG_MBEDTLS_ZEPHYR_ENTROPY)
115
115
116
116
// Initialize the configuration system.
117
117
err = Internal::ZephyrConfig::Init ();
118
118
SuccessOrExit (err);
119
119
120
- #if !CONFIG_NORDIC_SECURITY_BACKEND && !defined(CONFIG_MBEDTLS_ZEPHYR_ENTROPY)
120
+ #if !defined( CONFIG_NORDIC_SECURITY_BACKEND) && !defined(CONFIG_MBEDTLS_ZEPHYR_ENTROPY)
121
121
// Add entropy source based on Zephyr entropy driver
122
122
err = chip::Crypto::add_entropy_source (app_entropy_source, NULL , kThreshold );
123
123
SuccessOrExit (err);
124
- #endif // !CONFIG_NORDIC_SECURITY_BACKEND && !defined(CONFIG_MBEDTLS_ZEPHYR_ENTROPY)
124
+ #endif // !defined( CONFIG_NORDIC_SECURITY_BACKEND) && !defined(CONFIG_MBEDTLS_ZEPHYR_ENTROPY)
125
125
126
126
// Call _InitChipStack() on the generic implementation base class to finish the initialization process.
127
127
err = Internal::GenericPlatformManagerImpl_Zephyr<PlatformManagerImpl>::_InitChipStack ();
0 commit comments