blob: 50f56d6f265ee4056d5be40913cb6df4ef14665a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
if(NOT DEFINED ARDUINO)
return()
endif()
target_compile_definitions(pbdrv-mod PRIVATE PB_TARGET_FREERTOS)
target_sources(pbdrv-mod PRIVATE "${CMAKE_CURRENT_LIST_DIR}/mod.cpp")
target_link_arduino_libraries(pbdrv-mod core Wire)
# freertos is used to defer the handling of i2c messages outside the receive
# interrupt service routine
include("${CMAKE_CURRENT_LIST_DIR}/../../ext/freertos/include.cmake")
|