1
0
mirror of https://github.com/whowechina/aic_pico.git synced 2024-11-13 17:30:52 +01:00

Overclock SPI to 75MHz

This commit is contained in:
whowechina 2024-05-23 20:28:26 +08:00
parent ade3b0f1dd
commit 253d5b5039

View File

@ -330,6 +330,12 @@ static void core0_loop()
}
}
static void spi_overclock()
{
uint32_t freq = clock_get_hz(clk_sys);
clock_configure(clk_peri, 0, CLOCKS_CLK_PERI_CTRL_AUXSRC_VALUE_CLK_SYS, freq, freq);
}
static void identify_touch()
{
gpio_init(AIC_TOUCH_EN);
@ -358,6 +364,8 @@ void init()
keypad_init();
}
spi_overclock();
nfc_init_i2c(I2C_PORT, I2C_SCL, I2C_SDA, I2C_FREQ);
nfc_init_spi(SPI_PORT, SPI_MISO, SPI_SCK, SPI_MOSI, SPI_RST, SPI_NSS, SPI_BUSY);
nfc_init();