From a48dab376754d75bf420df0a2d228a69c108803c Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 25 Dec 2022 13:03:46 +0000 Subject: [PATCH] Higher SPI speed. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15916 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- demos/STM32/RT-VFS-FATFS/cfg/stm32g474re_nucleo64/mcuconf.h | 2 +- demos/STM32/RT-VFS-FATFS/cfg/stm32g474re_nucleo64/portab.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/STM32/RT-VFS-FATFS/cfg/stm32g474re_nucleo64/mcuconf.h b/demos/STM32/RT-VFS-FATFS/cfg/stm32g474re_nucleo64/mcuconf.h index 695ea0df0..f27fa82ec 100644 --- a/demos/STM32/RT-VFS-FATFS/cfg/stm32g474re_nucleo64/mcuconf.h +++ b/demos/STM32/RT-VFS-FATFS/cfg/stm32g474re_nucleo64/mcuconf.h @@ -75,7 +75,7 @@ #define STM32_PLLQ_VALUE 8 #define STM32_PLLR_VALUE 2 #define STM32_HPRE STM32_HPRE_DIV1 -#define STM32_PPRE1 STM32_PPRE1_DIV4 +#define STM32_PPRE1 STM32_PPRE1_DIV2 #define STM32_PPRE2 STM32_PPRE2_DIV1 #define STM32_MCOSEL STM32_MCOSEL_NOCLOCK #define STM32_MCOPRE STM32_MCOPRE_DIV1 diff --git a/demos/STM32/RT-VFS-FATFS/cfg/stm32g474re_nucleo64/portab.c b/demos/STM32/RT-VFS-FATFS/cfg/stm32g474re_nucleo64/portab.c index 1a726be08..a8e0fceb1 100644 --- a/demos/STM32/RT-VFS-FATFS/cfg/stm32g474re_nucleo64/portab.c +++ b/demos/STM32/RT-VFS-FATFS/cfg/stm32g474re_nucleo64/portab.c @@ -51,7 +51,7 @@ /*===========================================================================*/ /* Making sure mcuconf.h setup is as expected.*/ -#if STM32_PCLK1 != 85000000/2 +#if STM32_PCLK1 != 85000000 #error "unexpected PCLK1 frequency" #endif