Merge pull request #2743 from hathach/header_fix

rp2040: add clocks.h as set_sys_clock_khz is moving there from stdlib.h
This commit is contained in:
Graham Sanderson
2024-08-01 19:26:24 -05:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -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"

View File

@@ -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)