summaryrefslogtreecommitdiff
path: root/supervisor/port.h
diff options
context:
space:
mode:
Diffstat (limited to 'supervisor/port.h')
-rw-r--r--supervisor/port.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/supervisor/port.h b/supervisor/port.h
index 862400986..812cf715b 100644
--- a/supervisor/port.h
+++ b/supervisor/port.h
@@ -99,4 +99,8 @@ void port_background_task(void);
void port_start_background_task(void);
void port_finish_background_task(void);
+// Some ports need special handling to wake the main task from an interrupt
+// context or other task. The port must implement the necessary code in this
+// function. A default weak implementation is provided that does nothing.
+void port_wake_main_task(void);
#endif // MICROPY_INCLUDED_SUPERVISOR_PORT_H