mirror of
https://github.com/espressif/openthread.git
synced 2026-07-15 00:24:11 +00:00
Increase default mbedTLS heap size for nrf52840. (#1752)
This commit is contained in:
committed by
Jonathan Hui
parent
027ad9eb03
commit
f2af98cd8a
@@ -123,4 +123,12 @@
|
||||
*/
|
||||
#define OPENTHREAD_CONFIG_MBEDTLS_HEAP_SIZE (4096 * sizeof(void *))
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_CONFIG_MBEDTLS_HEAP_SIZE_NO_DTLS
|
||||
*
|
||||
* The size of mbedTLS heap buffer when DTLS is disabled.
|
||||
*
|
||||
*/
|
||||
#define OPENTHREAD_CONFIG_MBEDTLS_HEAP_SIZE_NO_DTLS 2048
|
||||
|
||||
#endif // OPENTHREAD_CORE_NRF52840_CONFIG_H_
|
||||
|
||||
@@ -64,9 +64,9 @@ public:
|
||||
enum
|
||||
{
|
||||
#if OPENTHREAD_ENABLE_DTLS
|
||||
kMemorySize = OPENTHREAD_CONFIG_MBEDTLS_HEAP_SIZE, ///< Size of memory buffer (bytes).
|
||||
kMemorySize = OPENTHREAD_CONFIG_MBEDTLS_HEAP_SIZE, ///< Size of memory buffer (bytes).
|
||||
#else
|
||||
kMemorySize = 384, ///< Size of memory buffer (bytes).
|
||||
kMemorySize = OPENTHREAD_CONFIG_MBEDTLS_HEAP_SIZE_NO_DTLS, ///< Size of memory buffer (bytes).
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
@@ -725,6 +725,16 @@
|
||||
#define OPENTHREAD_CONFIG_MBEDTLS_HEAP_SIZE (2048 * sizeof(void *))
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_CONFIG_MBEDTLS_HEAP_SIZE_NO_DTLS
|
||||
*
|
||||
* The size of mbedTLS heap buffer when DTLS is disabled.
|
||||
*
|
||||
*/
|
||||
#ifndef OPENTHREAD_CONFIG_MBEDTLS_HEAP_SIZE_NO_DTLS
|
||||
#define OPENTHREAD_CONFIG_MBEDTLS_HEAP_SIZE_NO_DTLS 384
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_CONFIG_ENABLE_STEERING_DATA_SET_OOB
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user