From 7f1ae501097b2ec610511f93a6ea6a8c1cfed651 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 8 Feb 2020 11:45:12 +0000 Subject: [PATCH] New defaults for H7 clock dividers for higher performance. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13334 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- .../STM32/RT-STM32H743ZI_REV_V-NUCLEO144/cfg/mcuconf.h | 10 +++++----- .../STM32/multi/ADC/cfg/stm32h743_nucleo144/mcuconf.h | 10 +++++----- .../STM32/multi/DAC/cfg/stm32h743_nucleo144/mcuconf.h | 10 +++++----- .../STM32/multi/SPI/cfg/stm32h743_nucleo144/mcuconf.h | 10 +++++----- .../STM32/multi/SPI/cfg/stm32h755_nucleo144/mcuconf.h | 10 +++++----- ...PI (Select ELF file)(OpenOCD, Flash and Run).launch | 2 +- .../processors/conf/mcuconf_stm32h743xx/mcuconf.h.ftl | 10 +++++----- 7 files changed, 31 insertions(+), 31 deletions(-) diff --git a/demos/STM32/RT-STM32H743ZI_REV_V-NUCLEO144/cfg/mcuconf.h b/demos/STM32/RT-STM32H743ZI_REV_V-NUCLEO144/cfg/mcuconf.h index e09c10326..0a7cbb584 100644 --- a/demos/STM32/RT-STM32H743ZI_REV_V-NUCLEO144/cfg/mcuconf.h +++ b/demos/STM32/RT-STM32H743ZI_REV_V-NUCLEO144/cfg/mcuconf.h @@ -121,11 +121,11 @@ #define STM32_SW STM32_SW_PLL1_P_CK #define STM32_RTCSEL STM32_RTCSEL_LSE_CK #define STM32_D1CPRE STM32_D1CPRE_DIV1 -#define STM32_D1HPRE STM32_D1HPRE_DIV4 -#define STM32_D1PPRE3 STM32_D1PPRE3_DIV1 -#define STM32_D2PPRE1 STM32_D2PPRE1_DIV1 -#define STM32_D2PPRE2 STM32_D2PPRE2_DIV1 -#define STM32_D3PPRE4 STM32_D3PPRE4_DIV1 +#define STM32_D1HPRE STM32_D1HPRE_DIV2 +#define STM32_D1PPRE3 STM32_D1PPRE3_DIV2 +#define STM32_D2PPRE1 STM32_D2PPRE1_DIV2 +#define STM32_D2PPRE2 STM32_D2PPRE2_DIV2 +#define STM32_D3PPRE4 STM32_D3PPRE4_DIV2 /* * Peripherals clocks static settings. diff --git a/testhal/STM32/multi/ADC/cfg/stm32h743_nucleo144/mcuconf.h b/testhal/STM32/multi/ADC/cfg/stm32h743_nucleo144/mcuconf.h index dda6efabf..0530714a9 100644 --- a/testhal/STM32/multi/ADC/cfg/stm32h743_nucleo144/mcuconf.h +++ b/testhal/STM32/multi/ADC/cfg/stm32h743_nucleo144/mcuconf.h @@ -121,11 +121,11 @@ #define STM32_SW STM32_SW_PLL1_P_CK #define STM32_RTCSEL STM32_RTCSEL_LSE_CK #define STM32_D1CPRE STM32_D1CPRE_DIV1 -#define STM32_D1HPRE STM32_D1HPRE_DIV4 -#define STM32_D1PPRE3 STM32_D1PPRE3_DIV1 -#define STM32_D2PPRE1 STM32_D2PPRE1_DIV1 -#define STM32_D2PPRE2 STM32_D2PPRE2_DIV1 -#define STM32_D3PPRE4 STM32_D3PPRE4_DIV1 +#define STM32_D1HPRE STM32_D1HPRE_DIV2 +#define STM32_D1PPRE3 STM32_D1PPRE3_DIV2 +#define STM32_D2PPRE1 STM32_D2PPRE1_DIV2 +#define STM32_D2PPRE2 STM32_D2PPRE2_DIV2 +#define STM32_D3PPRE4 STM32_D3PPRE4_DIV2 /* * Peripherals clocks static settings. diff --git a/testhal/STM32/multi/DAC/cfg/stm32h743_nucleo144/mcuconf.h b/testhal/STM32/multi/DAC/cfg/stm32h743_nucleo144/mcuconf.h index bdc1efaa3..b5cf8a29d 100644 --- a/testhal/STM32/multi/DAC/cfg/stm32h743_nucleo144/mcuconf.h +++ b/testhal/STM32/multi/DAC/cfg/stm32h743_nucleo144/mcuconf.h @@ -121,11 +121,11 @@ #define STM32_SW STM32_SW_PLL1_P_CK #define STM32_RTCSEL STM32_RTCSEL_LSE_CK #define STM32_D1CPRE STM32_D1CPRE_DIV1 -#define STM32_D1HPRE STM32_D1HPRE_DIV4 -#define STM32_D1PPRE3 STM32_D1PPRE3_DIV1 -#define STM32_D2PPRE1 STM32_D2PPRE1_DIV1 -#define STM32_D2PPRE2 STM32_D2PPRE2_DIV1 -#define STM32_D3PPRE4 STM32_D3PPRE4_DIV1 +#define STM32_D1HPRE STM32_D1HPRE_DIV2 +#define STM32_D1PPRE3 STM32_D1PPRE3_DIV2 +#define STM32_D2PPRE1 STM32_D2PPRE1_DIV2 +#define STM32_D2PPRE2 STM32_D2PPRE2_DIV2 +#define STM32_D3PPRE4 STM32_D3PPRE4_DIV2 /* * Peripherals clocks static settings. diff --git a/testhal/STM32/multi/SPI/cfg/stm32h743_nucleo144/mcuconf.h b/testhal/STM32/multi/SPI/cfg/stm32h743_nucleo144/mcuconf.h index c006fc24e..16c094290 100644 --- a/testhal/STM32/multi/SPI/cfg/stm32h743_nucleo144/mcuconf.h +++ b/testhal/STM32/multi/SPI/cfg/stm32h743_nucleo144/mcuconf.h @@ -121,11 +121,11 @@ #define STM32_SW STM32_SW_PLL1_P_CK #define STM32_RTCSEL STM32_RTCSEL_LSE_CK #define STM32_D1CPRE STM32_D1CPRE_DIV1 -#define STM32_D1HPRE STM32_D1HPRE_DIV4 -#define STM32_D1PPRE3 STM32_D1PPRE3_DIV1 -#define STM32_D2PPRE1 STM32_D2PPRE1_DIV1 -#define STM32_D2PPRE2 STM32_D2PPRE2_DIV1 -#define STM32_D3PPRE4 STM32_D3PPRE4_DIV1 +#define STM32_D1HPRE STM32_D1HPRE_DIV2 +#define STM32_D1PPRE3 STM32_D1PPRE3_DIV2 +#define STM32_D2PPRE1 STM32_D2PPRE1_DIV2 +#define STM32_D2PPRE2 STM32_D2PPRE2_DIV2 +#define STM32_D3PPRE4 STM32_D3PPRE4_DIV2 /* * Peripherals clocks static settings. diff --git a/testhal/STM32/multi/SPI/cfg/stm32h755_nucleo144/mcuconf.h b/testhal/STM32/multi/SPI/cfg/stm32h755_nucleo144/mcuconf.h index ea8447967..0d2a348f1 100644 --- a/testhal/STM32/multi/SPI/cfg/stm32h755_nucleo144/mcuconf.h +++ b/testhal/STM32/multi/SPI/cfg/stm32h755_nucleo144/mcuconf.h @@ -121,11 +121,11 @@ #define STM32_SW STM32_SW_PLL1_P_CK #define STM32_RTCSEL STM32_RTCSEL_LSE_CK #define STM32_D1CPRE STM32_D1CPRE_DIV1 -#define STM32_D1HPRE STM32_D1HPRE_DIV4 -#define STM32_D1PPRE3 STM32_D1PPRE3_DIV1 -#define STM32_D2PPRE1 STM32_D2PPRE1_DIV1 -#define STM32_D2PPRE2 STM32_D2PPRE2_DIV1 -#define STM32_D3PPRE4 STM32_D3PPRE4_DIV1 +#define STM32_D1HPRE STM32_D1HPRE_DIV2 +#define STM32_D1PPRE3 STM32_D1PPRE3_DIV2 +#define STM32_D2PPRE1 STM32_D2PPRE1_DIV2 +#define STM32_D2PPRE2 STM32_D2PPRE2_DIV2 +#define STM32_D3PPRE4 STM32_D3PPRE4_DIV2 /* * Peripherals clocks static settings. diff --git a/testhal/STM32/multi/SPI/debug/STM32-SPI (Select ELF file)(OpenOCD, Flash and Run).launch b/testhal/STM32/multi/SPI/debug/STM32-SPI (Select ELF file)(OpenOCD, Flash and Run).launch index 9725fad62..c12d2b40f 100644 --- a/testhal/STM32/multi/SPI/debug/STM32-SPI (Select ELF file)(OpenOCD, Flash and Run).launch +++ b/testhal/STM32/multi/SPI/debug/STM32-SPI (Select ELF file)(OpenOCD, Flash and Run).launch @@ -33,7 +33,7 @@ - + diff --git a/tools/ftl/processors/conf/mcuconf_stm32h743xx/mcuconf.h.ftl b/tools/ftl/processors/conf/mcuconf_stm32h743xx/mcuconf.h.ftl index d63ff2c3d..b7e1bd62e 100644 --- a/tools/ftl/processors/conf/mcuconf_stm32h743xx/mcuconf.h.ftl +++ b/tools/ftl/processors/conf/mcuconf_stm32h743xx/mcuconf.h.ftl @@ -132,11 +132,11 @@ #define STM32_SW ${doc.STM32_SW!"STM32_SW_PLL1_P_CK"} #define STM32_RTCSEL ${doc.STM32_RTCSEL!"STM32_RTCSEL_LSE_CK"} #define STM32_D1CPRE ${doc.STM32_D1CPRE!"STM32_D1CPRE_DIV1"} -#define STM32_D1HPRE ${doc.STM32_D1HPRE!"STM32_D1HPRE_DIV4"} -#define STM32_D1PPRE3 ${doc.STM32_D1PPRE3!"STM32_D1PPRE3_DIV1"} -#define STM32_D2PPRE1 ${doc.STM32_D2PPRE1!"STM32_D2PPRE1_DIV1"} -#define STM32_D2PPRE2 ${doc.STM32_D2PPRE2!"STM32_D2PPRE2_DIV1"} -#define STM32_D3PPRE4 ${doc.STM32_D3PPRE4!"STM32_D3PPRE4_DIV1"} +#define STM32_D1HPRE ${doc.STM32_D1HPRE!"STM32_D1HPRE_DIV2"} +#define STM32_D1PPRE3 ${doc.STM32_D1PPRE3!"STM32_D1PPRE3_DIV2"} +#define STM32_D2PPRE1 ${doc.STM32_D2PPRE1!"STM32_D2PPRE1_DIV2"} +#define STM32_D2PPRE2 ${doc.STM32_D2PPRE2!"STM32_D2PPRE2_DIV2"} +#define STM32_D3PPRE4 ${doc.STM32_D3PPRE4!"STM32_D3PPRE4_DIV2"} /* * Peripherals clocks static settings.