Skip to content

Commit 4232642

Browse files
authored
Merge pull request #2743 from hathach/header_fix
rp2040: add clocks.h as set_sys_clock_khz is moving there from stdlib.h
2 parents 271e2a3 + 0ebe81f commit 4232642

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

hw/bsp/rp2040/family.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "hardware/gpio.h"
3232
#include "hardware/sync.h"
3333
#include "hardware/resets.h"
34+
#include "hardware/clocks.h"
3435
#include "hardware/structs/ioqspi.h"
3536
#include "hardware/structs/sio.h"
3637

hw/bsp/rp2040/family.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ target_sources(tinyusb_bsp INTERFACE
133133
target_include_directories(tinyusb_bsp INTERFACE
134134
${TOP}/hw
135135
)
136-
target_link_libraries(tinyusb_bsp INTERFACE pico_unique_id)
136+
target_link_libraries(tinyusb_bsp INTERFACE
137+
pico_unique_id
138+
hardware_clocks
139+
)
137140

138141
# tinyusb_additions will hold our extra settings for examples
139142
add_library(tinyusb_additions INTERFACE)

0 commit comments

Comments
 (0)