Skip to content

Commit

Permalink
Merge pull request #141 from pimoroni/driver/rv3028
Browse files Browse the repository at this point in the history
C++ tweaks and MP support and example for RV3028 RTC
  • Loading branch information
Gadgetoid authored May 14, 2021
2 parents 0549a57 + 5ca77b6 commit 13d4aaf
Show file tree
Hide file tree
Showing 21 changed files with 1,995 additions and 804 deletions.
11 changes: 1 addition & 10 deletions drivers/rv3028/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
add_library(rv3028 INTERFACE)

target_sources(rv3028 INTERFACE
${CMAKE_CURRENT_LIST_DIR}/rv3028.cpp
)

target_include_directories(rv3028 INTERFACE ${CMAKE_CURRENT_LIST_DIR})

# Pull in pico libraries that we need
target_link_libraries(rv3028 INTERFACE pico_stdlib hardware_i2c)
include(rv3028.cmake)
12 changes: 6 additions & 6 deletions drivers/rv3028/rv3028.cmake
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
add_library(rv3028 INTERFACE)
set(DRIVER_NAME rv3028)
add_library(${DRIVER_NAME} INTERFACE)

target_sources(rv3028 INTERFACE
${CMAKE_CURRENT_LIST_DIR}/rv3028.cpp
)
target_sources(${DRIVER_NAME} INTERFACE
${CMAKE_CURRENT_LIST_DIR}/${DRIVER_NAME}.cpp)

target_include_directories(rv3028 INTERFACE ${CMAKE_CURRENT_LIST_DIR})
target_include_directories(${DRIVER_NAME} INTERFACE ${CMAKE_CURRENT_LIST_DIR})

# Pull in pico libraries that we need
target_link_libraries(rv3028 INTERFACE pico_stdlib hardware_i2c)
target_link_libraries(${DRIVER_NAME} INTERFACE pico_stdlib hardware_i2c)
Loading

0 comments on commit 13d4aaf

Please sign in to comment.