37/* Some extremely important info to anyone that decides they want to edit this:
38 Before ANY flash operation (erase or program) interrupts MUST be saved and the other core MUST not be using ANY flash
39 operations! If they are we could have serious errors in reading and writing flash putting the device in an
40 UNRECOVERABLE state as instructions are also read from flash.
41
42 All of the functions below are setup to be *safe* to use! If you are to access flash AT ALL for WHATEVER REASON please
43 use the functions below! (or you better know what you're doing!)
44
45 Also please minimize the WRITES to the flash device as much as possible, as there is a limited amount of lifetime to
46 these chips. Any use of flash should be used primarily as a way to store often non-changing system information
47 (ie. configuration) that also does not need to be secure. For secure data storage or one-time-use keys, please see the
48 Raspberry Pi RP2350 datasheet for more info on OTP and flash encryption!
49 */
50
51/* Note: FLASH_PAGE_SIZE & FLASH_SECTOR_SIZE are macros provided by pico-sdk. When switching boards they will need to be re-defined with a wrapper */
52
53#ifdef W_HAL_RP2350
54/* I can't be bothered to define these myself so we just gonna include the mf */