Skip to content

Commit

Permalink
Merge pull request hathach#2743 from hathach/header_fix
Browse files Browse the repository at this point in the history
rp2040: add clocks.h as set_sys_clock_khz is moving there from stdlib.h
  • Loading branch information
kilograham authored Aug 2, 2024
2 parents 271e2a3 + 0ebe81f commit 4232642
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions hw/bsp/rp2040/family.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
5 changes: 4 additions & 1 deletion hw/bsp/rp2040/family.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4232642

Please sign in to comment.