mirror of
https://github.com/espressif/openthread.git
synced 2026-07-29 07:07:47 +00:00
[nrf52840] fix included headers in aes_alt.h (#3860)
This commit is contained in:
committed by
Jonathan Hui
parent
98ed5f16d7
commit
2279ef610e
@@ -256,21 +256,6 @@
|
||||
#define OPENTHREAD_CONFIG_HEADER_IE_SUPPORT 1
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def NRF_MBEDTLS_AES_ALT_INTERRUPT_CONTEXT
|
||||
*
|
||||
* Define as 1 to enable AES usage in interrupt context and AES-256, by introducing a software AES under platform layer.
|
||||
*
|
||||
* @note This feature must be enabled to support AES-256 used by Commissioner and Joiner, and AES usage in interrupt context
|
||||
* used by Header IE related features.
|
||||
*
|
||||
*/
|
||||
#if OPENTHREAD_ENABLE_COMMISSIONER || OPENTHREAD_ENABLE_JOINER || OPENTHREAD_CONFIG_HEADER_IE_SUPPORT
|
||||
#define NRF_MBEDTLS_AES_ALT_INTERRUPT_CONTEXT 1
|
||||
#else
|
||||
#define NRF_MBEDTLS_AES_ALT_INTERRUPT_CONTEXT 0
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Suppress the ARMCC warning on unreachable statement,
|
||||
* e.g. break after assert(false) or ExitNow() macro.
|
||||
|
||||
@@ -51,8 +51,6 @@
|
||||
#include MBEDTLS_CONFIG_FILE
|
||||
#endif
|
||||
|
||||
#include <openthread-core-config.h>
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
@@ -29,6 +29,8 @@
|
||||
#ifndef NRF52840_MBEDTLS_CONFIG_H_
|
||||
#define NRF52840_MBEDTLS_CONFIG_H_
|
||||
|
||||
#include <openthread/config.h>
|
||||
|
||||
#ifndef DISABLE_CC310
|
||||
#define MBEDTLS_AES_ALT
|
||||
#define MBEDTLS_ECP_ALT
|
||||
@@ -49,4 +51,19 @@
|
||||
_Pragma("diag_suppress=68")
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def NRF_MBEDTLS_AES_ALT_INTERRUPT_CONTEXT
|
||||
*
|
||||
* Define as 1 to enable AES usage in interrupt context and AES-256, by introducing a software AES under platform layer.
|
||||
*
|
||||
* @note This feature must be enabled to support AES-256 used by Commissioner and Joiner, and AES usage in interrupt context
|
||||
* used by Header IE related features.
|
||||
*
|
||||
*/
|
||||
#if OPENTHREAD_ENABLE_COMMISSIONER || OPENTHREAD_ENABLE_JOINER || OPENTHREAD_CONFIG_HEADER_IE_SUPPORT
|
||||
#define NRF_MBEDTLS_AES_ALT_INTERRUPT_CONTEXT 1
|
||||
#else
|
||||
#define NRF_MBEDTLS_AES_ALT_INTERRUPT_CONTEXT 0
|
||||
#endif
|
||||
|
||||
#endif // NRF52840_MBEDTLS_CONFIG_H_
|
||||
|
||||
Reference in New Issue
Block a user