Increase default mbedTLS heap size for nrf52840. (#1752)

This commit is contained in:
Robert Lubos
2017-05-10 17:58:47 +02:00
committed by Jonathan Hui
parent 027ad9eb03
commit f2af98cd8a
3 changed files with 20 additions and 2 deletions
@@ -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_
+2 -2
View File
@@ -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
};
+10
View File
@@ -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
*