summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Sanderson <[email protected]>2024-08-01 19:26:24 -0500
committerGitHub <[email protected]>2024-08-01 19:26:24 -0500
commit4232642899362fa5e9cf0dc59bad6f1f6d32c563 (patch)
treef92aef4701b6dca1030d31c0c54b899f28c1a523
parent271e2a30e1981ae1b52e5236dc028e3289873000 (diff)
parent0ebe81f4c3a6b38aef82b9f3a7d7f74fbf99c831 (diff)
Merge pull request #2743 from hathach/header_fix
rp2040: add clocks.h as set_sys_clock_khz is moving there from stdlib.h
-rw-r--r--hw/bsp/rp2040/family.c1
-rw-r--r--hw/bsp/rp2040/family.cmake5
2 files changed, 5 insertions, 1 deletions
diff --git a/hw/bsp/rp2040/family.c b/hw/bsp/rp2040/family.c
index cffb632f3..9360f7f57 100644
--- a/hw/bsp/rp2040/family.c
+++ b/hw/bsp/rp2040/family.c
@@ -31,6 +31,7 @@
#include "hardware/gpio.h"
#include "hardware/sync.h"
#include "hardware/resets.h"
+#include "hardware/clocks.h"
#include "hardware/structs/ioqspi.h"
#include "hardware/structs/sio.h"
diff --git a/hw/bsp/rp2040/family.cmake b/hw/bsp/rp2040/family.cmake
index c81390b28..d91821ffa 100644
--- a/hw/bsp/rp2040/family.cmake
+++ b/hw/bsp/rp2040/family.cmake
@@ -133,7 +133,10 @@ target_sources(tinyusb_bsp INTERFACE
target_include_directories(tinyusb_bsp INTERFACE
${TOP}/hw
)
-target_link_libraries(tinyusb_bsp INTERFACE pico_unique_id)
+target_link_libraries(tinyusb_bsp INTERFACE
+ pico_unique_id
+ hardware_clocks
+ )
# tinyusb_additions will hold our extra settings for examples
add_library(tinyusb_additions INTERFACE)