Skip to content

Commit 6713513

Browse files
authored
Merge pull request #5370 from maciejbocianski/event_queue_mem_fix
event queue test: fix out of memory for NUCLEO_F070RB
2 parents fbd9e7e + f28aef4 commit 6713513

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

TESTS/events/queue/main.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222

2323
using namespace utest::v1;
2424

25-
#define TEST_EQUEUE_SIZE 1024
25+
// TEST_EQUEUE_SIZE was reduced below 1024B to fit this test to devices with small RAM (RAM <= 16kB)
26+
// additionally TEST_EQUEUE_SIZE was expressed in EVENTS_EVENT_SIZE to increase readability
27+
// (for more details about EVENTS_EVENT_SIZE see EventQueue constructor)
28+
#define TEST_EQUEUE_SIZE (18*EVENTS_EVENT_SIZE)
2629

2730
// flag for called
2831
volatile bool touched = false;

0 commit comments

Comments
 (0)