Skip to content

Commit e565d12

Browse files
committed
Update picoruby submodule with Machine.sleep implementation
Updates submodule to include the WIP Machine.sleep implementation with RP2040/RP2350 dual support and proper alarm conflict resolution.
1 parent ee416e4 commit e565d12

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

CMakeLists.txt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -146,21 +146,18 @@ target_link_libraries(${PROJECT_NAME} PRIVATE
146146
mruby
147147
)
148148

149-
# Workaround for Pico2
149+
# Sleep functionality for both RP2040 and RP2350
150+
target_link_libraries(${PROJECT_NAME} PRIVATE
151+
hardware_sleep
152+
)
153+
154+
# RTC only for RP2040
150155
if(PICO_BOARD STREQUAL "pico" OR PICO_BOARD STREQUAL "pico_w")
151156
target_link_libraries(${PROJECT_NAME} PRIVATE
152-
hardware_sleep
153157
hardware_rtc
154158
)
155159
endif()
156160

157-
# RP2350 specific libraries
158-
if(NOT PICO_RP2040)
159-
target_link_libraries(${PROJECT_NAME} PRIVATE
160-
hardware_powman
161-
)
162-
endif()
163-
164161
if(USE_WIFI)
165162
# these are used only in WiFi build
166163
target_link_libraries(${PROJECT_NAME} PRIVATE

0 commit comments

Comments
 (0)