From 7dfe7024f0166d420b0dcb2b56b16adaee8231f1 Mon Sep 17 00:00:00 2001 From: jeromecoutant Date: Thu, 3 Sep 2020 11:41:29 +0200 Subject: [PATCH] B_L4S5I_IOT01A: HW crypto support --- .../TARGET_STM32L4S5xI/mbedtls_device.h | 25 +++++++++++++++++++ targets/targets.json | 3 ++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32L4S5xI/mbedtls_device.h diff --git a/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32L4S5xI/mbedtls_device.h b/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32L4S5xI/mbedtls_device.h new file mode 100644 index 0000000000..f40028d717 --- /dev/null +++ b/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32L4S5xI/mbedtls_device.h @@ -0,0 +1,25 @@ +/* + * mbedtls_device.h + ******************************************************************************* + * Copyright (c) 2017, STMicroelectronics + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +#ifndef MBEDTLS_DEVICE_H +#define MBEDTLS_DEVICE_H + +#define MBEDTLS_AES_ALT + +#endif /* MBEDTLS_DEVICE_H */ diff --git a/targets/targets.json b/targets/targets.json index e7b96de08a..3abcac0afa 100644 --- a/targets/targets.json +++ b/targets/targets.json @@ -3351,7 +3351,8 @@ ], "macros_add": [ "HSE_VALUE=8000000", - "STM32L4S5xx" + "STM32L4S5xx", + "MBEDTLS_CONFIG_HW_SUPPORT" ], "detect_code": [ "0885"