Skip to content

Commit

Permalink
Set default test EMAC pool size
Browse files Browse the repository at this point in the history
  • Loading branch information
multiplemonomials committed Jan 26, 2025
1 parent 2cf8902 commit 78aa49e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@

#define CHECK_ASSERT(value, fmt, ...) check_value(value, fmt, ##__VA_ARGS__)

#define BUF_POOL_SIZE (14 + 40 + 20 + 536) /* Ethernet + IP + TCP + payload */

#define MEM_MNGR_TRACE "test mem mngr: "

char s_trace_buffer[100] = MEM_MNGR_TRACE;
Expand Down Expand Up @@ -74,7 +72,8 @@ void emac_heap_error_handler(heap_fail_t event)
EmacTestMemoryManager::EmacTestMemoryManager()
: m_mem_mutex(),
m_mem_buffers(),
m_alloc_unit(BUF_POOL_SIZE),
m_alloc_unit(MBED_CONF_NSAPI_EMAC_RX_POOL_BUF_SIZE),
m_pool_size(MBED_CONF_NSAPI_EMAC_RX_POOL_NUM_BUFS),
m_memory_available(true)
{
#ifdef ETHMEM_SECTION
Expand Down

0 comments on commit 78aa49e

Please sign in to comment.