summaryrefslogtreecommitdiff
path: root/supervisor/shared
diff options
context:
space:
mode:
authorDan Halbert <halbert@adafruit.com>2021-01-12 13:25:40 -0500
committerGitHub <noreply@github.com>2021-01-12 13:25:40 -0500
commitf9c762256fed05c1beaa122de960310b36df3002 (patch)
tree9e3df8ef080c031db33d1a8a912a69f579f66ee9 /supervisor/shared
parent4be5e914ac50650b87175aa04adee9a14f1adc27 (diff)
parent1ca29ec47c9f51589faa151b659dfd1dd4a349ef (diff)
Merge pull request #3733 from jepler/audioout-esp32
esp32s2: Add I2SAudioOut
Diffstat (limited to 'supervisor/shared')
-rw-r--r--supervisor/shared/background_callback.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/supervisor/shared/background_callback.c b/supervisor/shared/background_callback.c
index ef686cbab..288c9a4df 100644
--- a/supervisor/shared/background_callback.c
+++ b/supervisor/shared/background_callback.c
@@ -38,6 +38,8 @@ STATIC volatile background_callback_t *callback_head, *callback_tail;
#define CALLBACK_CRITICAL_BEGIN (common_hal_mcu_disable_interrupts())
#define CALLBACK_CRITICAL_END (common_hal_mcu_enable_interrupts())
+MP_WEAK void port_wake_main_task(void) {}
+
void background_callback_add_core(background_callback_t *cb) {
CALLBACK_CRITICAL_BEGIN;
if (cb->prev || callback_head == cb) {
@@ -55,6 +57,8 @@ void background_callback_add_core(background_callback_t *cb) {
}
callback_tail = cb;
CALLBACK_CRITICAL_END;
+
+ port_wake_main_task();
}
void background_callback_add(background_callback_t *cb, background_callback_fun fun, void *data) {