Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ONME-4366 - Fix UBLOX_EVK_ODIN_W2 fails in emac tests due to heap mem… #12024

Merged
merged 1 commit into from
Dec 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions TESTS/network/emac/emac_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static rtos::Semaphore link_status_semaphore;
#if defined (__ICCARM__)
#pragma location = ".ethusbram"
#endif
ETHMEM_SECTION static EventQueue worker_loop_event_queue(20 * EVENTS_EVENT_SIZE);
ETHMEM_SECTION static EventQueue worker_loop_event_queue(50 * EVENTS_EVENT_SIZE);

static void worker_loop_event_cb(int event);
static Event<void(int)> worker_loop_event(&worker_loop_event_queue, worker_loop_event_cb);
Expand Down Expand Up @@ -434,7 +434,11 @@ void emac_if_link_state_change_cb(bool up)

void emac_if_link_input_cb(void *buf)
{
link_input_event.post(buf);
if (link_input_event.post(buf) == 0) {
if (buf) {
emac_m_mngr_get()->free(buf);
}
}
}

static void link_input_event_cb(void *buf)
Expand Down