Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed May 3, 2024
1 parent 19d8556 commit 38cb0ad
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 85 deletions.
112 changes: 56 additions & 56 deletions platform/security/sl_component/sl_mbedtls_support/inc/threading_alt.h
Original file line number Diff line number Diff line change
@@ -1,64 +1,64 @@
/**************************************************************************/ /**
* @file
* @brief Threading primitive implementation for mbed TLS
*******************************************************************************
* # License
* <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
*
* The licensor of this software is Silicon Laboratories Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
******************************************************************************/
* @file
* @brief Threading primitive implementation for mbed TLS
*******************************************************************************
* # License
* <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
*
* The licensor of this software is Silicon Laboratories Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
******************************************************************************/

#ifndef THREADING_ALT_H
#define THREADING_ALT_H

/***************************************************************************//**
* \addtogroup sl_crypto
* \{
******************************************************************************/

/***************************************************************************//**
* \addtogroup sl_crypto_threading Threading Primitives
* \brief Threading primitive implementation for mbed TLS
*
* This file contains the glue logic between the mbed TLS threading API
* and CMSIS RTOS2 API.
*
* In order to enable support for Micrium OS backend
* the user must make sure SL_CATALOG_MICRIUMOS_KERNEL_PRESENT is defined.
* In order to enable support for FreeRTOS backend the user must make sure
* SL_CATALOG_FREERTOS_KERNEL_PRESENT is defined.
*
* Applications created using Simplicity Studio 5 the sl_component_catalog.h
* file will define one of the above in order to declare the presence
* of a specific RTOS.
*
* \note
* In order to use the Silicon Labs Hardware Acceleration plugins in
* multi-threaded applications, select
* <b>Mbed TLS support for EFM32/EFR32 crypto acceleration</b> component.
*
* \{
******************************************************************************/
/***************************************************************************/ /**
* \addtogroup sl_crypto
* \{
******************************************************************************/

/***************************************************************************/ /**
* \addtogroup sl_crypto_threading Threading Primitives
* \brief Threading primitive implementation for mbed TLS
*
* This file contains the glue logic between the mbed TLS threading API
* and CMSIS RTOS2 API.
*
* In order to enable support for Micrium OS backend
* the user must make sure SL_CATALOG_MICRIUMOS_KERNEL_PRESENT is defined.
* In order to enable support for FreeRTOS backend the user must make sure
* SL_CATALOG_FREERTOS_KERNEL_PRESENT is defined.
*
* Applications created using Simplicity Studio 5 the sl_component_catalog.h
* file will define one of the above in order to declare the presence
* of a specific RTOS.
*
* \note
* In order to use the Silicon Labs Hardware Acceleration plugins in
* multi-threaded applications, select
* <b>Mbed TLS support for EFM32/EFR32 crypto acceleration</b> component.
*
* \{
******************************************************************************/

#include "mbedtls/threading.h"
#include <stdbool.h>
Expand Down
58 changes: 29 additions & 29 deletions platform/security/sl_component/sl_psa_driver/src/sl_psa_its_nvm3.c
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
/***************************************************************************//**
* @file
* @brief PSA ITS implementation based on Silicon Labs NVM3
*******************************************************************************
* # License
* <b>Copyright 2020 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
*
* The licensor of this software is Silicon Laboratories Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
******************************************************************************/
/***************************************************************************/ /**
* @file
* @brief PSA ITS implementation based on Silicon Labs NVM3
*******************************************************************************
* # License
* <b>Copyright 2020 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
*
* The licensor of this software is Silicon Laboratories Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
******************************************************************************/

// The psa_driver_wrappers.h file that we're including here assumes that it has
// access to private struct members. Define this here in order to avoid
Expand Down

0 comments on commit 38cb0ad

Please sign in to comment.