We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36cf198 commit 7b01324Copy full SHA for 7b01324
cores/arduino/main.cpp
@@ -19,6 +19,10 @@ void start_static_threads();
19
void __attribute__((weak)) initVariant(void) {
20
}
21
22
+// This function can be overwriten by one library.
23
+void __attribute__((weak)) __loopHook(void) {
24
+}
25
+
26
int main(void) {
27
#if (DT_NODE_HAS_PROP(DT_PATH(zephyr_user), cdc_acm) && \
28
(CONFIG_USB_CDC_ACM || CONFIG_USBD_CDC_ACM_CLASS))
@@ -39,6 +43,7 @@ int main(void) {
39
43
// DT_NODE_HAS_PROP(DT_PATH(zephyr_user), serials)
40
44
if (arduino::serialEventRun) arduino::serialEventRun();
41
45
#endif
46
+ __loopHook();
42
47
48
49
return 0;
0 commit comments