Skip to content

Commit

Permalink
Updated to QP CPP v7.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Chavez committed May 22, 2023
1 parent 8e407c1 commit 6526f36
Show file tree
Hide file tree
Showing 32 changed files with 8,590 additions and 6,905 deletions.
4 changes: 2 additions & 2 deletions examples/blinky_bsp-esp32/bsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static void tickHook_ESP32(void)
{
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
/* process time events for rate 0 */
QF::TICK_FROM_ISR(&xHigherPriorityTaskWoken, &l_TickHook);
QTimeEvt::TICK_X_FROM_ISR(0U, &xHigherPriorityTaskWoken, &l_TickHook);
/* notify FreeRTOS to perform context switch from ISR, if needed */
if(xHigherPriorityTaskWoken) {
portYIELD_FROM_ISR();
Expand Down Expand Up @@ -165,4 +165,4 @@ void QP::QS::onFlush(void) {
//............................................................................
void QP::QS::onReset(void) {
esp_restart();
}
}
4 changes: 3 additions & 1 deletion examples/dpp_bsp-esp32/bsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ static constexpr unsigned LED_BUILTIN=13U;
#endif

using namespace QP;
static uint8_t const l_TickHook = static_cast<uint8_t>(0);

//............................................................................
// QS facilities
Expand All @@ -49,7 +50,7 @@ static void tickHook_ESP32(void)
{
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
/* process time events for rate 0 */
QF::TICK_FROM_ISR(&xHigherPriorityTaskWoken, &l_TIMER_ID);
QTimeEvt::tickFromISR_(0U,&xHigherPriorityTaskWoken, &l_TickHook);
/* notify FreeRTOS to perform context switch from ISR, if needed */
if(xHigherPriorityTaskWoken) {
portYIELD_FROM_ISR();
Expand Down Expand Up @@ -167,6 +168,7 @@ void QSpy_Task(void *) {

void QF::onStartup(void) {
esp_register_freertos_tick_hook_for_cpu(tickHook_ESP32, QP_CPU_NUM);
QS_OBJ_DICTIONARY(&l_TickHook);
#ifdef QS_ON
xTaskCreatePinnedToCore(
QSpy_Task, /* Function to implement the task */
Expand Down
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name=QPESP32
version=0.1.5
version=0.2.0
author=Victor Chavez
maintainer=Victor Chavez
sentence=QP/C++ Port for ESP32.
paragraph=QP/C++ Port for the ESP32. Based on v6.9.4 from QP/C++
paragraph=QP/C++ Port for the ESP32. Based on v7.2.2 from QP/C++
category=Device Control
url=https://www.state-machine.com/arduino/
architectures=*
Expand Down
Loading

0 comments on commit 6526f36

Please sign in to comment.