From a38f7a4fcaf3515e52a3fe5c96512866ed0ff195 Mon Sep 17 00:00:00 2001 From: David Garske Date: Wed, 29 Jul 2020 17:22:41 -0700 Subject: [PATCH] Added STM32F1 Cube HAL support (we had StdPeriLib, not Cube). --- IDE/STM32Cube/wolfSSL.wolfSSL_conf.h | 4 ++++ wolfssl/wolfcrypt/settings.h | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/IDE/STM32Cube/wolfSSL.wolfSSL_conf.h b/IDE/STM32Cube/wolfSSL.wolfSSL_conf.h index 9112c8b8f..cc839caf6 100644 --- a/IDE/STM32Cube/wolfSSL.wolfSSL_conf.h +++ b/IDE/STM32Cube/wolfSSL.wolfSSL_conf.h @@ -165,6 +165,10 @@ extern "C" { #elif defined(STM32F207xx) #define WOLFSSL_STM32F2 #define HAL_CONSOLE_UART huart3 +#elif defined(STM32F107xC) + #define WOLFSSL_STM32F1 + #define HAL_CONSOLE_UART huart4 + #define NO_STM32_RNG #else #warning Please define a hardware platform! #define WOLFSSL_STM32F4 /* default */ diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index 87f1ab396..0257d447f 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -1242,7 +1242,9 @@ extern void uITRON4_free(void *p) ; #endif #define NO_OLD_RNGNAME #ifdef WOLFSSL_STM32_CUBEMX - #if defined(WOLFSSL_STM32F2) + #if defined(WOLFSSL_STM32F1) + #include "stm32f1xx_hal.h" + #elif defined(WOLFSSL_STM32F2) #include "stm32f2xx_hal.h" #elif defined(WOLFSSL_STM32L5) #include "stm32l5xx_hal.h"