Skip to content

Commit

Permalink
Reverted styling and applied comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lpbeliveau-silabs committed Jul 16, 2024
1 parent 56241b1 commit 92515f1
Show file tree
Hide file tree
Showing 88 changed files with 470 additions and 886 deletions.
16 changes: 8 additions & 8 deletions matter/efr32/efr32mg24/BRD2601B/autogen/gatt_db.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ extern "C" {

extern const sli_bt_gattdb_t gattdb;

#define gattdb_generic_attribute 1
#define gattdb_service_changed_char 3
#define gattdb_database_hash 6
#define gattdb_client_support_features 8
#define gattdb_device_name 11
#define gattdb_CHIPoBLEChar_Rx 23
#define gattdb_CHIPoBLEChar_Tx 25
#define gattdb_CHIPoBLEChar_C3 28
#define gattdb_generic_attribute 1
#define gattdb_service_changed_char 3
#define gattdb_database_hash 6
#define gattdb_client_support_features 8
#define gattdb_device_name 11
#define gattdb_CHIPoBLEChar_Rx 23
#define gattdb_CHIPoBLEChar_Tx 25
#define gattdb_CHIPoBLEChar_C3 28

#if __cplusplus
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
#define SL_CATALOG_SIMPLE_LED_LED1_PRESENT
#define SL_CATALOG_SLEEPTIMER_PRESENT
#define SL_CATALOG_SLI_PROTOCOL_CRYPTO_PRESENT
#if defined(CONFIG_ENABLE_UART)
#define SL_CATALOG_UARTDRV_EUSART_PRESENT
#endif

#endif // SL_COMPONENT_CATALOG_H
1 change: 0 additions & 1 deletion matter/efr32/efr32mg24/BRD2601B/autogen/sl_event_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ void sl_driver_init(void);
void sl_service_init(void);
void sl_stack_init(void);
void sl_internal_app_init(void);
void sl_iostream_init_instances(void);

#endif // SL_EVENT_HANDLER_H
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/***************************************************************************/ /**
/***************************************************************************//**
* @file
* @brief LED Driver Instances
*******************************************************************************
Expand Down Expand Up @@ -42,7 +42,7 @@ extern const sl_led_t sl_led_led1;

extern const sl_led_t *sl_simple_led_array[];

#define SL_SIMPLE_LED_COUNT 2
#define SL_SIMPLE_LED_COUNT 2
#define SL_SIMPLE_LED_INSTANCE(n) (sl_simple_led_array[n])

void sl_simple_led_init_instances(void);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
#ifndef SLI_MBEDTLS_CONFIG_AUTOGEN_H
#define SLI_MBEDTLS_CONFIG_AUTOGEN_H


// Added definition check because of DIC specific configs
#ifndef MBEDTLS_MPI_MAX_SIZE
#define MBEDTLS_MPI_MAX_SIZE 32
#endif


#define MBEDTLS_AES_C
#define MBEDTLS_ASN1_PARSE_C
#define MBEDTLS_ASN1_WRITE_C
Expand Down Expand Up @@ -43,4 +45,9 @@
#define MBEDTLS_PSA_CRYPTO_DRIVERS
#define MBEDTLS_PSA_CRYPTO_STORAGE_C






#endif // SLI_MBEDTLS_CONFIG_AUTOGEN_H
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
// #define MBEDTLS_PSA_BUILTIN_ALG_CMAC 1
// #define MBEDTLS_PSA_BUILTIN_ALG_PBKDF2_AES_CMAC_PRF_128 1


#endif // SLI_PSA_BUILTIN_CONFIG_AUTOGEN_H
36 changes: 18 additions & 18 deletions matter/efr32/efr32mg24/BRD2601B/autogen/sli_psa_config_autogen.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
#ifndef SLI_PSA_CONFIG_AUTOGEN_H
#define SLI_PSA_CONFIG_AUTOGEN_H

#define PSA_WANT_KEY_TYPE_AES 1
#define PSA_WANT_ALG_CCM 1
#define PSA_WANT_ALG_ECB_NO_PADDING 1
#define PSA_WANT_ALG_CMAC 1
#define PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY 1
#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC 1
#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT 1
#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT 1
#define PSA_WANT_KEY_TYPE_AES 1
#define PSA_WANT_ALG_CCM 1
#define PSA_WANT_ALG_ECB_NO_PADDING 1
#define PSA_WANT_ALG_CMAC 1
#define PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY 1
#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC 1
#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT 1
#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT 1
#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE 1
#define PSA_WANT_ECC_SECP_R1_256 1
#define PSA_WANT_ALG_ECDH 1
#define PSA_WANT_ALG_ECDSA 1
#define PSA_WANT_ALG_HKDF 1
#define PSA_WANT_ALG_HMAC 1
#define PSA_WANT_KEY_TYPE_HMAC 1
#define PSA_WANT_ALG_PBKDF2_AES_CMAC_PRF_128 1
#define PSA_WANT_ALG_SHA_256 1
#define PSA_WANT_ALG_TLS12_PRF 1
#define PSA_WANT_ALG_TLS12_PSK_TO_MS 1
#define PSA_WANT_ECC_SECP_R1_256 1
#define PSA_WANT_ALG_ECDH 1
#define PSA_WANT_ALG_ECDSA 1
#define PSA_WANT_ALG_HKDF 1
#define PSA_WANT_ALG_HMAC 1
#define PSA_WANT_KEY_TYPE_HMAC 1
#define PSA_WANT_ALG_PBKDF2_AES_CMAC_PRF_128 1
#define PSA_WANT_ALG_SHA_256 1
#define PSA_WANT_ALG_TLS12_PRF 1
#define PSA_WANT_ALG_TLS12_PSK_TO_MS 1
#define MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG

#define MBEDTLS_PSA_KEY_SLOT_COUNT (2 + 15 + 1 + SL_PSA_KEY_USER_SLOT_COUNT)
Expand Down
16 changes: 8 additions & 8 deletions matter/efr32/efr32mg24/BRD2601B/config/psa_crypto_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
// <i> gracefully in case an application opens more than its declared amount of
// <i> keys, thereby precluding the stack from functioning.
// <i> Default: 4
#define SL_PSA_KEY_USER_SLOT_COUNT (4)
#define SL_PSA_KEY_USER_SLOT_COUNT (4)

// <o SL_PSA_ITS_USER_MAX_FILES> PSA Maximum User Persistent Keys Count <0-1024>
// <i> Maximum amount of keys (or other files) that can be stored persistently
Expand All @@ -48,7 +48,7 @@
// <i> and if SL_PSA_ITS_USER_MAX_FILES is changed, ITS should be cleared and
// <i> all files need to be stored again.
// <i> Default: 128
#define SL_PSA_ITS_USER_MAX_FILES (128)
#define SL_PSA_ITS_USER_MAX_FILES (128)

// <o SL_PSA_ITS_SUPPORT_V1_DRIVER> Enable V1 Format Support For ITS Files <0-1>
// <i> Devices that used PSA ITS together with gecko_sdk_3.1.x or earlier
Expand Down Expand Up @@ -105,7 +105,7 @@
// <i> It is recommended to only use the PUF key for deriving further key
// <i> material.
// <i> Default: PSA_ALG_PBKDF2_AES_CMAC_PRF_128
#define SL_CRYPTOACC_BUILTIN_KEY_PUF_ALG (PSA_ALG_PBKDF2_AES_CMAC_PRF_128)
#define SL_CRYPTOACC_BUILTIN_KEY_PUF_ALG (PSA_ALG_PBKDF2_AES_CMAC_PRF_128)
#endif // SL_CRYPTOACC_BUILTIN_KEY_PUF_ALG

// </h>
Expand All @@ -127,7 +127,7 @@
// <i> to be included in the project.
// <i>
// <i> Default: 0
#define SL_VSE_BUFFER_TRNG_DATA_DURING_SLEEP (0)
#define SL_VSE_BUFFER_TRNG_DATA_DURING_SLEEP (0)

// <o SL_VSE_MAX_TRNG_WORDS_BUFFERED_DURING_SLEEP> Number of random words to buffer before putting the device to sleep <1-63>
// <i> This option can be used to decrease the amount of random words that
Expand All @@ -152,17 +152,17 @@
// Sub-files

#if defined(SLI_PSA_CONFIG_AUTOGEN_OVERRIDE_FILE)
#include SLI_PSA_CONFIG_AUTOGEN_OVERRIDE_FILE
#include SLI_PSA_CONFIG_AUTOGEN_OVERRIDE_FILE
#else
#include "sli_psa_config_autogen.h"
#include "sli_psa_config_autogen.h"
#endif

#if defined(TFM_CONFIG_SL_SECURE_LIBRARY)
#include "sli_psa_tfm_translation.h"
#include "sli_psa_tfm_translation.h"
#endif

#if SL_MBEDTLS_DRIVERS_ENABLED
#include "sli_psa_acceleration.h"
#include "sli_psa_acceleration.h"
#endif

#include "sli_psa_builtin_config_autogen.h"
Expand Down

This file was deleted.

16 changes: 8 additions & 8 deletions matter/efr32/efr32mg24/BRD2703A/autogen/gatt_db.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ extern "C" {

extern const sli_bt_gattdb_t gattdb;

#define gattdb_generic_attribute 1
#define gattdb_service_changed_char 3
#define gattdb_database_hash 6
#define gattdb_client_support_features 8
#define gattdb_device_name 11
#define gattdb_CHIPoBLEChar_Rx 23
#define gattdb_CHIPoBLEChar_Tx 25
#define gattdb_CHIPoBLEChar_C3 28
#define gattdb_generic_attribute 1
#define gattdb_service_changed_char 3
#define gattdb_database_hash 6
#define gattdb_client_support_features 8
#define gattdb_device_name 11
#define gattdb_CHIPoBLEChar_Rx 23
#define gattdb_CHIPoBLEChar_Tx 25
#define gattdb_CHIPoBLEChar_C3 28

#if __cplusplus
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#define SL_CATALOG_MEMORY_MANAGER_PRESENT
#define SL_CATALOG_MEMORY_PROFILER_API_PRESENT
#define SL_CATALOG_MPU_PRESENT
#define SL_CATALOG_MX25_FLASH_SHUTDOWN_USART_PRESENT
#define SL_CATALOG_NVM3_PRESENT
#define SL_CATALOG_OT_GP_INTERFACE_PRESENT
#define SL_CATALOG_OPENTHREAD_STACK_PRESENT
Expand Down
2 changes: 0 additions & 2 deletions matter/efr32/efr32mg24/BRD2703A/autogen/sl_event_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include "sl_sleeptimer.h"
#include "sl_mpu.h"
#include "gpiointerrupt.h"
#include "sl_i2cspm_instances.h"
#include "sl_iostream_rtt.h"
#include "sl_mbedtls.h"
#include "nvm3_default.h"
Expand Down Expand Up @@ -60,7 +59,6 @@ void sl_kernel_start(void)
void sl_driver_init(void)
{
GPIOINT_Init();
sl_i2cspm_init_instances();
sl_simple_button_init_instances();
sl_simple_led_init_instances();
#if defined(CONFIG_ENABLE_UART)
Expand Down
1 change: 0 additions & 1 deletion matter/efr32/efr32mg24/BRD2703A/autogen/sl_event_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ void sl_driver_init(void);
void sl_service_init(void);
void sl_stack_init(void);
void sl_internal_app_init(void);
void sl_iostream_init_instances(void);

#endif // SL_EVENT_HANDLER_H
64 changes: 0 additions & 64 deletions matter/efr32/efr32mg24/BRD2703A/autogen/sl_i2cspm_init.c

This file was deleted.

52 changes: 0 additions & 52 deletions matter/efr32/efr32mg24/BRD2703A/autogen/sl_i2cspm_instances.h

This file was deleted.

Loading

0 comments on commit 92515f1

Please sign in to comment.