Skip to content

Commit 067cd46

Browse files
authored
Update blinky_bsp-esp32.ino
1 parent 53d7fa3 commit 067cd46

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

examples/blinky_bsp-esp32/blinky_bsp-esp32.ino

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include "bsp.hpp" // Board Support Package (BSP)
44

55
using namespace QP;
6-
6+
static constexpr unsigned stack_size = 1000;
77
//............................................................................
88
void setup() {
99
Serial.begin(115200);
@@ -14,9 +14,13 @@ void setup() {
1414
// statically allocate event queues for the AOs and start them...
1515
static QEvt const *blinky_queueSto[30];
1616
AO_Blinky->start(1U, // priority
17-
blinky_queueSto, Q_DIM(blinky_queueSto),
18-
(void *)0, 1000U); // no stack
19-
QF::run(); // run the QF/C++ framework
17+
blinky_queueSto, // queu storage for evets
18+
Q_DIM(blinky_queueSto), //len of queue
19+
nullptr, // No static stack
20+
stack_size);
21+
QF::run(); // Normally QF Run is located in a loop
22+
//but since using Arduino SDK not necessary
23+
// Called once to call QF::OnStartup and produce the QS trace
2024
}
2125

2226
//............................................................................

0 commit comments

Comments
 (0)