Skip to content

Commit f28aef4

Browse files
event queue test: fix out of memory problem for NUCLEO_F070RB
1 parent 9c1fd48 commit f28aef4

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)