File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
examples/blinky_bsp-esp32 Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 33#include " bsp.hpp" // Board Support Package (BSP)
44
55using namespace QP ;
6-
6+ static constexpr unsigned stack_size = 1000 ;
77// ............................................................................
88void 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// ............................................................................
You can’t perform that action at this time.
0 commit comments