Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit347a80d

Browse files
Ayush1325DhruvaG2000
authored andcommitted
Add ARDUINO_ENTRY config variable
- Controls if arduino entry functions (setup and loop) wrapper is provided- Useful for porting programs since while it might need Arduino APIs, but don't really need setup and loop structure.- Also useful for slowly migrating to Zephyr APIsSigned-off-by: Ayush Singh <ayushdevel1325@gmail.com>
1 parent814bf66 commit347a80d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

‎Kconfig‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,8 @@ config ARDUINO_API_SERIAL_BUFFER_SIZE
2626
int "Buffer size for Arduino Serial API"
2727
default 64
2828

29+
config ARDUINO_ENTRY
30+
bool "Provide arduino setup and loop entry points"
31+
default y
32+
2933
endif

‎cores/arduino/CMakeLists.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ if(NOT DEFINED ARDUINO_BUILD_PATH)
77
zephyr_sources(zephyrPrint.cpp)
88
zephyr_sources(zephyrSerial.cpp)
99
zephyr_sources(zephyrCommon.cpp)
10+
11+
if(DEFINED CONFIG_ARDUINO_ENTRY)
1012
zephyr_sources(main.cpp)
13+
endif()
1114

1215
endif()
1316

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp