Skip to content

Commit 312c258

Browse files
committed
main.cpp: support loading via llext
1 parent d20ef62 commit 312c258

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cores/arduino/main.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
*/
66

77
#include "Arduino.h"
8+
#ifdef CONFIG_LLEXT
9+
#include <zephyr/llext/symbol.h>
10+
#endif
811

912
int main(void) {
1013
setup();
@@ -16,3 +19,7 @@ int main(void) {
1619

1720
return 0;
1821
}
22+
23+
#ifdef CONFIG_LLEXT
24+
LL_EXTENSION_SYMBOL(main);
25+
#endif

0 commit comments

Comments
 (0)