Skip to content

Commit

Permalink
Disable high prio queue: ARMmbed#10256
Browse files Browse the repository at this point in the history
  • Loading branch information
janjongboom committed Mar 28, 2019
1 parent 6b84b14 commit c5aabab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions events/mbed_lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
"use-lowpower-timer-ticker": {
"help": "Enable use of low power timer and ticker classes in non-RTOS builds. May reduce the accuracy of the event queue. In RTOS builds, the RTOS tick count is used, and this configuration option has no effect.",
"value": 0
},
"enable-highprio-queue": {
"help": "Enables the high priority queue. Disabling this feature will return the mbed_event_queue() when requesting the high prio queue.",
"value": 1
}
}
}
4 changes: 4 additions & 0 deletions events/mbed_shared_queues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ EventQueue *mbed_event_queue()
#ifdef MBED_CONF_RTOS_PRESENT
EventQueue *mbed_highprio_event_queue()
{
#if MBED_CONF_EVENTS_ENABLE_HIGHPRIO_QUEUE == 1
return do_shared_event_queue_with_thread<osPriorityHigh, MBED_CONF_EVENTS_SHARED_HIGHPRIO_EVENTSIZE, MBED_CONF_EVENTS_SHARED_HIGHPRIO_STACKSIZE>("shared_highprio_event_queue");
#else
return mbed_event_queue();
#endif
}
#endif

Expand Down

0 comments on commit c5aabab

Please sign in to comment.