Skip to content

Commit

Permalink
Update bsp.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
vChavezB authored Mar 18, 2022
1 parent 9650060 commit ca4804c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/blinky_bsp-esp32/bsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ using namespace QP;
// un-comment if QS instrumentation needed
//#define QS_ON
// BSP functions
static void freertos_tick_hook(void); /*Tick hook for QP */
static void tickHook_ESP32(void); /*Tick hook for QP */
static uint8_t const l_TickHook = static_cast<uint8_t>(0);
static void freertos_tick_hook(void)

static void tickHook_ESP32(void)
{
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
/* process time events for rate 0 */
Expand Down Expand Up @@ -76,7 +77,7 @@ bool IdleHook(void) {
}
void QF::onStartup(void) {
esp_register_freertos_idle_hook(IdleHook);
esp_register_freertos_tick_hook_for_cpu(freertos_tick_hook, QP_CPU_NUM);
esp_register_freertos_tick_hook_for_cpu(tickHook_ESP32, QP_CPU_NUM);
QS_OBJ_DICTIONARY(&l_TickHook);
}
//............................................................................
Expand Down

0 comments on commit ca4804c

Please sign in to comment.