aboutsummaryrefslogtreecommitdiff
path: root/lib/pbdrv/drv/arduino
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-08 19:20:49 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-08 19:20:49 +0200
commitfeaa43f37c01cf832fed17572d915e5709231893 (patch)
tree37f63dee764e75ad2dd1485f06c583b5473ff6fc /lib/pbdrv/drv/arduino
parente4b241c8ec4f12fe6ac479c2153cc540830e6a5d (diff)
WIP raspberry pi pico pbdrv
Diffstat (limited to 'lib/pbdrv/drv/arduino')
-rw-r--r--lib/pbdrv/drv/arduino/cfg.cmake7
-rw-r--r--lib/pbdrv/drv/arduino/mod.h2
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/pbdrv/drv/arduino/cfg.cmake b/lib/pbdrv/drv/arduino/cfg.cmake
new file mode 100644
index 0000000..36716e3
--- /dev/null
+++ b/lib/pbdrv/drv/arduino/cfg.cmake
@@ -0,0 +1,7 @@
+if(NOT DEFINED ARDUINO)
+ return()
+endif()
+
+target_sources(pbdrv-mod PRIVATE "${CMAKE_CURRENT_LIST_DIR}/mod.cpp")
+target_link_arduino_libraries(pbdrv-mod core Wire)
+
diff --git a/lib/pbdrv/drv/arduino/mod.h b/lib/pbdrv/drv/arduino/mod.h
index e545d9b..079941a 100644
--- a/lib/pbdrv/drv/arduino/mod.h
+++ b/lib/pbdrv/drv/arduino/mod.h
@@ -1,7 +1,5 @@
#pragma once
-#include "../../pb-mod.h"
-
#ifdef __cplusplus
extern "C" {
#endif