From a1588b3de7e51bc620338522ab6e9acea74d1767 Mon Sep 17 00:00:00 2001 From: Ron Eldor Date: Tue, 22 Jan 2019 13:02:03 +0200 Subject: [PATCH] Rename the platform specific crypto_platform To avoid collisions between the psa `crypto_platform.h` file and the platform specific `crypto_platform.h` file, for the init \ terminate functions, rename the latter to `crypto_device_platform`. --- features/cryptocell/FEATURE_CRYPTOCELL310/Readme.md | 2 +- .../{crypto_platform.c => crypto_device_platform.c} | 0 .../{crypto_platform.h => crypto_device_platform.h} | 0 features/mbedtls/platform/inc/platform_alt.h | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) rename features/cryptocell/FEATURE_CRYPTOCELL310/TARGET_MCU_NRF52840/{crypto_platform.c => crypto_device_platform.c} (100%) rename features/cryptocell/FEATURE_CRYPTOCELL310/TARGET_MCU_NRF52840/{crypto_platform.h => crypto_device_platform.h} (100%) diff --git a/features/cryptocell/FEATURE_CRYPTOCELL310/Readme.md b/features/cryptocell/FEATURE_CRYPTOCELL310/Readme.md index 4ab2853ac0..6d584899c2 100644 --- a/features/cryptocell/FEATURE_CRYPTOCELL310/Readme.md +++ b/features/cryptocell/FEATURE_CRYPTOCELL310/Readme.md @@ -24,5 +24,5 @@ To port your CC 310 driver to Mbed OS on your specific target, do the following: 1. In `features/cryptocell/FEATURE_CRYPTOCELL310/TARGET_`, add your platform-specific libraries for all toolchains in `TOOLCHAIN_ARM`, `TOOLCHAIN_GCC_ARM` and `TOOLCHAIN_IAR` respectively. 1. Add your CC setup code: * Implement `crypto_platform_setup()` and `crypto_platform_terminate()` to enable CC on your platform, in case you have board-specific setup functionality, required for CC setup. You MUST call 'SaSi_LibInit()` and 'SaSi_LibFini()' respectively in these functions. - * Define `crypto_platform_ctx` in `crypto_platform.h` in a way that suits your implementation. + * Define `crypto_platform_ctx` in `crypto_device_platform.h` in a way that suits your implementation. diff --git a/features/cryptocell/FEATURE_CRYPTOCELL310/TARGET_MCU_NRF52840/crypto_platform.c b/features/cryptocell/FEATURE_CRYPTOCELL310/TARGET_MCU_NRF52840/crypto_device_platform.c similarity index 100% rename from features/cryptocell/FEATURE_CRYPTOCELL310/TARGET_MCU_NRF52840/crypto_platform.c rename to features/cryptocell/FEATURE_CRYPTOCELL310/TARGET_MCU_NRF52840/crypto_device_platform.c diff --git a/features/cryptocell/FEATURE_CRYPTOCELL310/TARGET_MCU_NRF52840/crypto_platform.h b/features/cryptocell/FEATURE_CRYPTOCELL310/TARGET_MCU_NRF52840/crypto_device_platform.h similarity index 100% rename from features/cryptocell/FEATURE_CRYPTOCELL310/TARGET_MCU_NRF52840/crypto_platform.h rename to features/cryptocell/FEATURE_CRYPTOCELL310/TARGET_MCU_NRF52840/crypto_device_platform.h diff --git a/features/mbedtls/platform/inc/platform_alt.h b/features/mbedtls/platform/inc/platform_alt.h index 687be6d642..92e9c33364 100644 --- a/features/mbedtls/platform/inc/platform_alt.h +++ b/features/mbedtls/platform/inc/platform_alt.h @@ -22,7 +22,7 @@ #define __PLATFORM_ALT__ #include "platform_mbed.h" #if defined(MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT) -#include "crypto_platform.h" +#include "crypto_device_platform.h" /** * \brief The platform context structure. *