-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from pimoroni/driver/rv3028
C++ tweaks and MP support and example for RV3028 RTC
- Loading branch information
Showing
21 changed files
with
1,995 additions
and
804 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.