QuantumLeaps / qpcpp

QP/C++ Real-Time Embedded Framework/RTOS for embedded systems based on active objects (actors) and hierarchical state machines
https://www.state-machine.com/products/qp
371 stars 82 forks source link

Stack top/bottom argument (uc-os-ii port) #12

Closed vChavezB closed 2 years ago

vChavezB commented 2 years ago

I was checking the source code for the uc-os ii port and found a possible bug.

In particular, when you create the task for the active object

https://github.com/QuantumLeaps/qpcpp/blob/8803d8faed8124deb91073e4cf8603fd9e0b07ba/ports/ucos-ii/qf_port.cpp#L111-L115

shouldn't there be as well a conditional compilation macro for the bottom part of the stack?

https://github.com/QuantumLeaps/qpcpp/blob/8803d8faed8124deb91073e4cf8603fd9e0b07ba/ports/ucos-ii/qf_port.cpp#L118

quantum-leaps commented 2 years ago

The issue is fixed in QP 7.0.0.