From 1ae5f8cdaa04215fa98b091e8b6ff48d29e46df0 Mon Sep 17 00:00:00 2001 From: adustm Date: Tue, 7 Mar 2017 08:48:09 +0100 Subject: [PATCH 1/3] 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 00000000000..9a06a1cba55 --- /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 ebad046527c..7221be65ca0 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"], From a89860c81d4640d3713ad7957207fa0f19723f3d Mon Sep 17 00:00:00 2001 From: adustm Date: Thu, 16 Mar 2017 18:18:08 +0100 Subject: [PATCH 2/3] fix typo in directory name --- .../mbedtls_device.h | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename features/mbedtls/targets/TARGET_STM/TARGET_STM32F7/{TARGST_NUCLEO_F756ZG => TARGET_NUCLEO_F756ZG}/mbedtls_device.h (100%) diff --git a/features/mbedtls/targets/TARGET_STM/TARGET_STM32F7/TARGST_NUCLEO_F756ZG/mbedtls_device.h b/features/mbedtls/targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F756ZG/mbedtls_device.h similarity index 100% rename from features/mbedtls/targets/TARGET_STM/TARGET_STM32F7/TARGST_NUCLEO_F756ZG/mbedtls_device.h rename to features/mbedtls/targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F756ZG/mbedtls_device.h From 7a9a22e2cd93c2e2bf5db9f016e02adfb0bffed7 Mon Sep 17 00:00:00 2001 From: Russ Butler Date: Wed, 19 Jul 2017 13:09:45 -0500 Subject: [PATCH 3/3] Change 'macros' to 'macros_add' for NUCLEO_F756ZG Address PR feedback by renaming 'macros' to 'macros_add'. --- targets/targets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/targets.json b/targets/targets.json index 7221be65ca0..5845a6a8684 100644 --- a/targets/targets.json +++ b/targets/targets.json @@ -1073,7 +1073,7 @@ "macro_name": "STM32_D11_SPI_ETHERNET_PIN" } }, - "macros": ["TRANSACTION_QUEUE_SIZE_SPI=2", "USBHOST_OTHER", "MBEDTLS_CONFIG_HW_SUPPORT"], + "macros_add": ["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"],