mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
Add support for STM32WBA
This commit is contained in:
@@ -179,6 +179,12 @@ extern ${variable.value} ${variable.name};
|
|||||||
#undef NO_STM32_CRYPTO
|
#undef NO_STM32_CRYPTO
|
||||||
#define WOLFSSL_STM32_PKA
|
#define WOLFSSL_STM32_PKA
|
||||||
#define WOLFSSL_STM32_PKA_V2
|
#define WOLFSSL_STM32_PKA_V2
|
||||||
|
#elif defined(STM32WBA52xx)
|
||||||
|
#define WOLFSSL_STM32WBA
|
||||||
|
#define WOLFSSL_STM32_PKA
|
||||||
|
#undef NO_STM32_HASH
|
||||||
|
#undef NO_STM32_CRYPTO
|
||||||
|
#define HAL_CONSOLE_UART huart4
|
||||||
#else
|
#else
|
||||||
#warning Please define a hardware platform!
|
#warning Please define a hardware platform!
|
||||||
/* This means there is not a pre-defined platform for your board/CPU */
|
/* This means there is not a pre-defined platform for your board/CPU */
|
||||||
|
@@ -64,6 +64,9 @@
|
|||||||
#elif defined(WOLFSSL_STM32H7S)
|
#elif defined(WOLFSSL_STM32H7S)
|
||||||
#include <stm32h7rsxx_hal_conf.h>
|
#include <stm32h7rsxx_hal_conf.h>
|
||||||
#include <stm32h7rsxx_hal_pka.h>
|
#include <stm32h7rsxx_hal_pka.h>
|
||||||
|
#elif defined(WOLFSSL_STM32WBA)
|
||||||
|
#include <stm32wbaxx_hal_conf.h>
|
||||||
|
#include <stm32wbaxx_hal_pka.h>
|
||||||
#else
|
#else
|
||||||
#error Please add the hal_pk.h include
|
#error Please add the hal_pk.h include
|
||||||
#endif
|
#endif
|
||||||
|
@@ -145,7 +145,8 @@ int wc_Stm32_Hash_Final(STM32_HASH_Context* stmCtx, word32 algo,
|
|||||||
#define STM32_CRYPTO_AES_GCM
|
#define STM32_CRYPTO_AES_GCM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WOLFSSL_STM32WB) || defined(WOLFSSL_STM32WL)
|
#if defined(WOLFSSL_STM32WB) || defined(WOLFSSL_STM32WL) || \
|
||||||
|
defined(WOLFSSL_STM32WBA)
|
||||||
#define STM32_CRYPTO_AES_ONLY /* crypto engine only supports AES */
|
#define STM32_CRYPTO_AES_ONLY /* crypto engine only supports AES */
|
||||||
#ifdef WOLFSSL_STM32WB
|
#ifdef WOLFSSL_STM32WB
|
||||||
#define CRYP AES1
|
#define CRYP AES1
|
||||||
|
@@ -2097,7 +2097,7 @@ extern void uITRON4_free(void *p) ;
|
|||||||
defined(WOLFSSL_STM32G0) || defined(WOLFSSL_STM32U5) || \
|
defined(WOLFSSL_STM32G0) || defined(WOLFSSL_STM32U5) || \
|
||||||
defined(WOLFSSL_STM32H5) || defined(WOLFSSL_STM32WL) || \
|
defined(WOLFSSL_STM32H5) || defined(WOLFSSL_STM32WL) || \
|
||||||
defined(WOLFSSL_STM32G4) || defined(WOLFSSL_STM32MP13) || \
|
defined(WOLFSSL_STM32G4) || defined(WOLFSSL_STM32MP13) || \
|
||||||
defined(WOLFSSL_STM32H7S)
|
defined(WOLFSSL_STM32H7S) || defined(WOLFSSL_STM32WBA)
|
||||||
|
|
||||||
#define SIZEOF_LONG_LONG 8
|
#define SIZEOF_LONG_LONG 8
|
||||||
#ifndef CHAR_BIT
|
#ifndef CHAR_BIT
|
||||||
@@ -2167,6 +2167,8 @@ extern void uITRON4_free(void *p) ;
|
|||||||
#include "stm32mp13xx_hal.h"
|
#include "stm32mp13xx_hal.h"
|
||||||
#include "stm32mp13xx_hal_conf.h"
|
#include "stm32mp13xx_hal_conf.h"
|
||||||
#endif
|
#endif
|
||||||
|
#elif defined(WOLFSSL_STM32WBA)
|
||||||
|
#include "stm32wbaxx_hal.h"
|
||||||
#endif
|
#endif
|
||||||
#if defined(WOLFSSL_CUBEMX_USE_LL) && defined(WOLFSSL_STM32L4)
|
#if defined(WOLFSSL_CUBEMX_USE_LL) && defined(WOLFSSL_STM32L4)
|
||||||
#include "stm32l4xx_ll_rng.h"
|
#include "stm32l4xx_ll_rng.h"
|
||||||
|
Reference in New Issue
Block a user