Skip to content

Commit f2ba5d7

Browse files
committed
CMakeLists.txt: Reference ArduinoCore-API in Rust builds
We plan to provide an alternative API implementation for the Rust build in the future, but since one does not currently exist, we will refer to the ArduinoCore-API. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
1 parent 14b0cca commit f2ba5d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ if (CONFIG_ARDUINO_API)
8484
add_library(arduinocore_api_rust STATIC IMPORTED GLOBAL)
8585
set_target_properties(arduinocore_api_rust PROPERTIES IMPORTED_LOCATION ${RUST_LIB})
8686
zephyr_link_libraries(arduinocore_api_rust)
87+
zephyr_include_directories(${CMAKE_CURRENT_SOURCE_DIR}/zephyr/blobs/ArduinoCore-API/)
8788
else()
8889
zephyr_include_directories(${CMAKE_CURRENT_SOURCE_DIR}/zephyr/blobs/ArduinoCore-API/)
8990
zephyr_sources(${CMAKE_CURRENT_SOURCE_DIR}/zephyr/blobs/ArduinoCore-API/api/CanMsg.cpp)

cores/arduino/Arduino.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#pragma once
88

9-
#include <api/ArduinoAPI.h>
9+
#include "api/ArduinoAPI.h"
1010

1111
#include <zephyr/kernel.h>
1212
#include <zephyr/drivers/gpio.h>
@@ -104,6 +104,5 @@ int digitalPinToInterrupt(pin_size_t pin);
104104

105105
#include <variant.h>
106106
#ifdef __cplusplus
107-
#include <zephyrPrint.h>
108107
#include <zephyrSerial.h>
109108
#endif // __cplusplus

0 commit comments

Comments
 (0)