diff --git a/CMakeLists.txt b/CMakeLists.txt index 666451e..cdfabac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ # Generated Cmake Pico project file -cmake_minimum_required(VERSION 3.26) +cmake_minimum_required(VERSION 3.28) set(CMAKE_C_STANDARD 11) set(CMAKE_CXX_STANDARD 23) @@ -14,8 +14,8 @@ set(PICO_BOARD pico CACHE STRING "Board type") # Pull in Raspberry Pi Pico SDK (must be before project) include(pico_sdk_import.cmake) -if (PICO_SDK_VERSION_STRING VERSION_LESS "1.5.0") - message(FATAL_ERROR "Raspberry Pi Pico SDK version 1.5.0 (or later) required. Your version is ${PICO_SDK_VERSION_STRING}") +if (PICO_SDK_VERSION_STRING VERSION_LESS "2.0.0") + message(FATAL_ERROR "Raspberry Pi Pico SDK version 2.0.0 (or later) required. Your version is ${PICO_SDK_VERSION_STRING}") endif() project(raspikeyer VERSION "0.0.1" LANGUAGES C CXX ASM) diff --git a/src/raspikeyer.cpp b/src/raspikeyer.cpp index f0d620e..cbb36fe 100644 --- a/src/raspikeyer.cpp +++ b/src/raspikeyer.cpp @@ -5,6 +5,7 @@ #include "bsp/board.h" #include "hardware/adc.h" +#include "pico/flash.h" #include "pico/binary_info/code.h" #include "pico/multicore.h" #include "pico/stdlib.h" diff --git a/src/settings.cpp b/src/settings.cpp index 0786140..2f8316b 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1,6 +1,7 @@ #include #include "pico/stdlib.h" +#include "pico/flash.h" #include "settings.h" @@ -66,4 +67,4 @@ Settings read_settings() } return settings; -} \ No newline at end of file +} diff --git a/src/settings.h b/src/settings.h index cd19270..e3a78cf 100644 --- a/src/settings.h +++ b/src/settings.h @@ -1,6 +1,6 @@ #pragma once -#include "pico/flash.h" +#include "hardware/flash.h" const uint16_t MAGIC_NUMBER = 4;