From 1ae5f8cdaa04215fa98b091e8b6ff48d29e46df0 Mon Sep 17 00:00:00 2001 From: adustm Date: Tue, 7 Mar 2017 08:48:09 +0100 Subject: [PATCH] Add AES HW encryption for NUCLEO_F756ZG in mbedtls --- .../TARGST_NUCLEO_F756ZG/mbedtls_device.h | 26 +++++++++++++++++++ targets/targets.json | 1 + 2 files changed, 27 insertions(+) create mode 100644 features/mbedtls/targets/TARGET_STM/TARGET_STM32F7/TARGST_NUCLEO_F756ZG/mbedtls_device.h diff --git a/features/mbedtls/targets/TARGET_STM/TARGET_STM32F7/TARGST_NUCLEO_F756ZG/mbedtls_device.h b/features/mbedtls/targets/TARGET_STM/TARGET_STM32F7/TARGST_NUCLEO_F756ZG/mbedtls_device.h new file mode 100644 index 0000000000..9a06a1cba5 --- /dev/null +++ b/features/mbedtls/targets/TARGET_STM/TARGET_STM32F7/TARGST_NUCLEO_F756ZG/mbedtls_device.h @@ -0,0 +1,26 @@ +/* + * 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 ebad046527..7221be65ca 100644 --- a/targets/targets.json +++ b/targets/targets.json @@ -1073,6 +1073,7 @@ "macro_name": "STM32_D11_SPI_ETHERNET_PIN" } }, + "macros": ["TRANSACTION_QUEUE_SIZE_SPI=2", "USBHOST_OTHER", "MBEDTLS_CONFIG_HW_SUPPORT"], "supported_form_factors": ["ARDUINO"], "detect_code": ["0819"], "device_has_add": ["ANALOGOUT", "CAN", "LOWPOWERTIMER", "SERIAL_ASYNCH", "TRNG"],