ports/samd/samd_qspiflash.c: Correct QSPI baud calculation.

Signed-off-by: I. Tomita <ziceva@me.com>
pull/12740/head
I. Tomita 2023-10-19 12:54:37 +03:00
rodzic 86c7b957a8
commit 6dd903569c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -238,7 +238,7 @@ static void wait_for_flash_ready(void) {
}
static uint8_t get_baud(int32_t freq_mhz) {
int baud = get_peripheral_freq() / (freq_mhz * 1000000) - 1;
int baud = get_cpu_freq() / (freq_mhz * 1000000) - 1;
if (baud < 1) {
baud = 1;
}