Use new pico_clone_default_boot2 for changing SPI clock divisor

pull/17/head
Luke Wren 2021-08-22 08:10:07 +01:00
rodzic 3c1b24d143
commit 79a1fbc8db
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -10,7 +10,7 @@ add_executable(bad_apple
# Increase CLKDIV to 4, because we're going to run the system at 372 MHz, and
# the flash gets rather unhappy if you try to clock it at 186 MHz
pico_define_boot_stage2(bad_apple_boot2 ${PICO_SDK_PATH}/src/rp2_common/boot_stage2/boot2_w25q080.S)
pico_clone_default_boot_stage2(bad_apple_boot2)
target_compile_definitions(bad_apple_boot2 PRIVATE PICO_FLASH_SPI_CLKDIV=4)
pico_set_boot_stage2(bad_apple bad_apple_boot2)