Skip to content

Commit 253255e

Browse files
committed
chore(deps): handle relocation of set_sys_clock_khz
set_sys_clock_khz was relocated to <hardware/clocks.h> in 1.6.2
1 parent a6709bf commit 253255e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sw/picocart64_v1/picocart64_v1.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
#include "hardware/flash.h"
1616
#include "hardware/irq.h"
1717

18+
#if PICO_SDK_VERSION_MAJOR >= 2 || (PICO_SDK_VERSION_MAJOR == 1 && (PICO_SDK_VERSION_MINOR > 6 || PICO_SDK_VERSION_MINOR == 6 && PICO_SDK_VERSION_REVISION >= 2 ))
19+
/* https://github.com/raspberrypi/pico-sdk/issues/712 */
20+
#include "hardware/clocks.h"
21+
#endif
22+
1823
#include "n64_cic.h"
1924
#include "git_info.h"
2025
#include "n64_pi_task.h"

0 commit comments

Comments
 (0)