Added STM32F1 Cube HAL support (we had StdPeriLib, not Cube).

This commit is contained in:
David Garske
2020-07-29 17:22:41 -07:00
parent 46ef82e2fd
commit a38f7a4fca
2 changed files with 7 additions and 1 deletions

View File

@ -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 */

View File

@ -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"