10000 Add RTC headers to path and pico_utils to link (#353) · solderparty/arduino-pico@1afbbab · GitHub
[go: up one dir, main page]

Skip to content

Commit 1afbbab

Browse files
Add RTC headers to path and pico_utils to link (earlephilhower#353)
Fixes earlephilhower#348 Add the RTC header path in the SDK to the Arduino build path. Also add pico_utils to the libpico.a for the datetime_to_str call. Note that the pico_sdk has a bug in the datetime.h header so you need to manually bracket the include file as "C": extern "C" { #include "pico/util/datetime.h" }
1 parent 52b3120 commit 1afbbab

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

lib/libpico.a

0 Bytes
Binary file not shown.

lib/platform_inc.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
-iwithprefixbefore/pico-sdk/src/rp2_common/hardware_gpio/include
2727
-iwithprefixbefore/pico-sdk/src/rp2_common/hardware_i2c/include
2828
-iwithprefixbefore/pico-sdk/src/rp2_common/hardware_irq/include
29+
-iwithprefixbefore/pico-sdk/src/rp2_common/hardware_rtc/include
2930
-iwithprefixbefore/pico-sdk/src/rp2_common/hardware_pio/include
3031
-iwithprefixbefore/pico-sdk/src/rp2_common/hardware_pll/include
3132
-iwithprefixbefore/pico-sdk/src/rp2_common/hardware_pwm/include

tools/libpico/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ target_link_libraries(pico
7070
pico_standard_link
7171
pico_stdlib
7272
pico_unique_id
73+
pico_util
7374
tinyusb
74-
tinyusb_device_unmarked
75+
tinyusb_device_unmarked
7576
pico_audio
7677
pico_audio_i2s
7778
)

0 commit comments

Comments
 (0)
0