From 705de7be3f20996de677a8e2cb10ff1cb24592ba Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Thu, 8 Aug 2024 17:07:00 +0100 Subject: [PATCH] mlx90640: Add hardware/clocks for set_sys_clock_khz. --- examples/breakout_mlx90640/CMakeLists.txt | 2 +- examples/breakout_mlx90640/demo.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/breakout_mlx90640/CMakeLists.txt b/examples/breakout_mlx90640/CMakeLists.txt index c2fa2f03..2f634d93 100644 --- a/examples/breakout_mlx90640/CMakeLists.txt +++ b/examples/breakout_mlx90640/CMakeLists.txt @@ -6,7 +6,7 @@ add_executable( ) # Pull in pico libraries that we need -target_link_libraries(${OUTPUT_NAME} pico_stdlib mlx90640 hub75_legacy hardware_vreg) +target_link_libraries(${OUTPUT_NAME} pico_stdlib mlx90640 hub75_legacy hardware_vreg hardware_clocks) # create map/bin/hex file etc. pico_add_extra_outputs(${OUTPUT_NAME}) diff --git a/examples/breakout_mlx90640/demo.cpp b/examples/breakout_mlx90640/demo.cpp index 9da4b65c..9ec6bf8b 100644 --- a/examples/breakout_mlx90640/demo.cpp +++ b/examples/breakout_mlx90640/demo.cpp @@ -1,5 +1,6 @@ #include "pico/stdlib.h" #include "hardware/vreg.h" +#include "hardware/clocks.h" #include "stdio.h" #include