H5 mcuconf.h updater tool.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@16376 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
9a6f3b3249
commit
aa5c0d9965
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
ChibiOS - Copyright (C) 2006..2020 Giovanni Di Sirio
|
||||
ChibiOS - Copyright (C) 2006..2023 Giovanni Di Sirio
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
@ -14,8 +14,11 @@
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef MCUCONF_H
|
||||
#define MCUCONF_H
|
||||
|
||||
/*
|
||||
* STM32G4xx drivers configuration.
|
||||
* STM32H5xx drivers configuration.
|
||||
* The following settings override the default settings present in
|
||||
* the various device driver implementation headers.
|
||||
* Note that the settings for each driver only have effect if the whole
|
||||
|
@ -28,9 +31,6 @@
|
|||
* 0...3 Lowest...Highest.
|
||||
*/
|
||||
|
||||
#ifndef MCUCONF_H
|
||||
#define MCUCONF_H
|
||||
|
||||
#define STM32H5xx_MCUCONF
|
||||
#define STM32H562_MCUCONF
|
||||
#define STM32H563_MCUCONF
|
||||
|
@ -177,8 +177,10 @@
|
|||
#define STM32_IRQ_TIM5_PRIORITY 7
|
||||
#define STM32_IRQ_TIM6_PRIORITY 7
|
||||
#define STM32_IRQ_TIM7_PRIORITY 7
|
||||
#define STM32_IRQ_TIM8_BRK_PRIORITY 7
|
||||
#define STM32_IRQ_TIM8_UP_PRIORITY 7
|
||||
#define STM32_IRQ_TIM8_CC_PRIORITY 7
|
||||
#define STM32_IRQ_TIM8_CC_PRIORITY 7
|
||||
#define STM32_IRQ_TIM12_PRIORITY 7
|
||||
#define STM32_IRQ_TIM13_PRIORITY 7
|
||||
#define STM32_IRQ_TIM14_PRIORITY 7
|
||||
|
@ -263,7 +265,6 @@
|
|||
#define STM32_PWM_USE_TIM15 FALSE
|
||||
#define STM32_PWM_USE_TIM16 FALSE
|
||||
#define STM32_PWM_USE_TIM17 FALSE
|
||||
#define STM32_PWM_USE_TIM20 FALSE
|
||||
|
||||
/*
|
||||
* RTC driver system settings.
|
||||
|
|
|
@ -0,0 +1,353 @@
|
|||
[#ftl]
|
||||
[#--
|
||||
ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio.
|
||||
|
||||
This file is part of ChibiOS.
|
||||
|
||||
ChibiOS is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
ChibiOS is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
--]
|
||||
[@pp.dropOutputFile /]
|
||||
[#import "/@lib/libutils.ftl" as utils /]
|
||||
[#import "/@lib/liblicense.ftl" as license /]
|
||||
[@pp.changeOutputFile name="mcuconf.h" /]
|
||||
/*
|
||||
[@license.EmitLicenseAsText /]
|
||||
*/
|
||||
|
||||
#ifndef MCUCONF_H
|
||||
#define MCUCONF_H
|
||||
|
||||
/*
|
||||
* STM32H5xx drivers configuration.
|
||||
* The following settings override the default settings present in
|
||||
* the various device driver implementation headers.
|
||||
* Note that the settings for each driver only have effect if the whole
|
||||
* driver is enabled in halconf.h.
|
||||
*
|
||||
* IRQ priorities:
|
||||
* 15...0 Lowest...Highest.
|
||||
*
|
||||
* DMA priorities:
|
||||
* 0...3 Lowest...Highest.
|
||||
*/
|
||||
|
||||
#define STM32H5xx_MCUCONF
|
||||
#define STM32H562_MCUCONF
|
||||
#define STM32H563_MCUCONF
|
||||
#define STM32H573_MCUCONF
|
||||
|
||||
/*
|
||||
* HAL driver system settings.
|
||||
*/
|
||||
#define STM32_NO_INIT ${doc.STM32_NO_INIT!"FALSE"}
|
||||
#define STM32_CLOCK_DYNAMIC ${doc.STM32_CLOCK_DYNAMIC!"FALSE"}
|
||||
|
||||
/*
|
||||
* PWR settings.
|
||||
*/
|
||||
#define STM32_PWR_VOSCR ${doc.STM32_PWR_VOSCR!"STM32_VOS_RANGE0"}
|
||||
#define STM32_PWR_BDCR ${doc.STM32_PWR_BDCR!"(0U)"}
|
||||
#define STM32_PWR_UCPDR ${doc.STM32_PWR_UCPDR!"(0U)"}
|
||||
#define STM32_PWR_SCCR ${doc.STM32_PWR_SCCR!"(0U)"}
|
||||
#define STM32_PWR_VMCR ${doc.STM32_PWR_VMCR!"(0U)"}
|
||||
#define STM32_PWR_USBSCR ${doc.STM32_PWR_USBSCR!"(0U)"}
|
||||
#define STM32_PWR_WUCR ${doc.STM32_PWR_WUCR!"(0U)"}
|
||||
#define STM32_PWR_IORETR ${doc.STM32_PWR_IORETR!"(0U)"}
|
||||
#define STM32_PWR_SECCFGR ${doc.STM32_PWR_SECCFGR!"(0U)"}
|
||||
#define STM32_PWR_PRIVCFGR ${doc.STM32_PWR_PRIVCFGR!"(0U)"}
|
||||
|
||||
/*
|
||||
* Clock settings.
|
||||
*/
|
||||
#define STM32_HSI_ENABLED ${doc.STM32_HSI_ENABLED!"TRUE"}
|
||||
#define STM32_HSIDIV_VALUE ${doc.STM32_HSIDIV_VALUE!"2"}
|
||||
#define STM32_HSI48_ENABLED ${doc.STM32_HSI48_ENABLED!"FALSE"}
|
||||
#define STM32_CSI_ENABLED ${doc.STM32_CSI_ENABLED!"FALSE"}
|
||||
#define STM32_HSE_ENABLED ${doc.STM32_HSE_ENABLED!"FALSE"}
|
||||
#define STM32_LSI_ENABLED ${doc.STM32_LSI_ENABLED!"FALSE"}
|
||||
#define STM32_LSE_ENABLED ${doc.STM32_LSE_ENABLED!"FALSE"}
|
||||
#define STM32_SW ${doc.STM32_SW!"STM32_SW_PLL1P"}
|
||||
#define STM32_PLL1SRC ${doc.STM32_PLL1SRC!"STM32_PLL1SRC_HSI"}
|
||||
#define STM32_PLL1M_VALUE ${doc.STM32_PLL1M_VALUE!"16"}
|
||||
#define STM32_PLL1N_VALUE ${doc.STM32_PLL1N_VALUE!"250"}
|
||||
#define STM32_PLL1P_VALUE ${doc.STM32_PLL1P_VALUE!"2"}
|
||||
#define STM32_PLL1Q_VALUE ${doc.STM32_PLL1Q_VALUE!"2"}
|
||||
#define STM32_PLL1R_VALUE ${doc.STM32_PLL1R_VALUE!"2"}
|
||||
#define STM32_PLL2SRC ${doc.STM32_PLL2SRC!"STM32_PLL2SRC_HSI"}
|
||||
#define STM32_PLL2M_VALUE ${doc.STM32_PLL2M_VALUE!"16"}
|
||||
#define STM32_PLL2N_VALUE ${doc.STM32_PLL2N_VALUE!"250"}
|
||||
#define STM32_PLL2P_VALUE ${doc.STM32_PLL2P_VALUE!"2"}
|
||||
#define STM32_PLL2Q_VALUE ${doc.STM32_PLL2Q_VALUE!"2"}
|
||||
#define STM32_PLL2R_VALUE ${doc.STM32_PLL2R_VALUE!"2"}
|
||||
#define STM32_PLL3SRC ${doc.STM32_PLL3SRC!"STM32_PLL3SRC_HSI"}
|
||||
#define STM32_PLL3M_VALUE ${doc.STM32_PLL3M_VALUE!"16"}
|
||||
#define STM32_PLL3N_VALUE ${doc.STM32_PLL3N_VALUE!"250"}
|
||||
#define STM32_PLL3P_VALUE ${doc.STM32_PLL3P_VALUE!"2"}
|
||||
#define STM32_PLL3Q_VALUE ${doc.STM32_PLL3Q_VALUE!"2"}
|
||||
#define STM32_PLL3R_VALUE ${doc.STM32_PLL3R_VALUE!"2"}
|
||||
#define STM32_HPRE ${doc.STM32_HPRE!"STM32_HPRE_DIV1"}
|
||||
#define STM32_PPRE1 ${doc.STM32_PPRE1!"STM32_PPRE1_DIV1"}
|
||||
#define STM32_PPRE2 ${doc.STM32_PPRE2!"STM32_PPRE2_DIV1"}
|
||||
#define STM32_PPRE3 ${doc.STM32_PPRE3!"STM32_PPRE3_DIV1"}
|
||||
#define STM32_STOPWUCK ${doc.STM32_STOPWUCK!"STM32_STOPWUCK_HSI"}
|
||||
#define STM32_STOPKERWUCK ${doc.STM32_STOPKERWUCK!"STM32_STOPKERWUCK_HSI"}
|
||||
#define STM32_RTCPRE_VALUE ${doc.STM32_RTCPRE_VALUE!"STM32_RTCPRE_NOCLOCK"}
|
||||
#define STM32_MCO1SEL ${doc.STM32_MCO1SEL!"STM32_MCO1SEL_HSI"}
|
||||
#define STM32_MCO1PRE_VALUE ${doc.STM32_MCO1PRE_VALUE!"STM32_MCO1PRE_NOCLOCK"}
|
||||
#define STM32_MCO2SEL ${doc.STM32_MCO2SEL!"STM32_MCO2SEL_SYSCLK"}
|
||||
#define STM32_MCO2PRE_VALUE ${doc.STM32_MCO2PRE_VALUE!"STM32_MCO2PRE_NOCLOCK"}
|
||||
#define STM32_LSCOSEL ${doc.STM32_LSCOSEL!"STM32_LSCOSEL_NOCLOCK"}
|
||||
|
||||
/*
|
||||
* Peripherals clock sources.
|
||||
*/
|
||||
#define STM32_USART1SEL ${doc.STM32_USART1SEL!"STM32_USART1SEL_PCLK2"}
|
||||
#define STM32_USART2SEL ${doc.STM32_USART2SEL!"STM32_USART2SEL_PCLK1"}
|
||||
#define STM32_USART3SEL ${doc.STM32_USART3SEL!"STM32_USART3SEL_PCLK1"}
|
||||
#define STM32_UART4SEL ${doc.STM32_UART4SEL!"STM32_UART4SEL_PCLK1"}
|
||||
#define STM32_UART5SEL ${doc.STM32_UART5SEL!"STM32_UART5SEL_PCLK1"}
|
||||
#define STM32_USART6SEL ${doc.STM32_USART6SEL!"STM32_USART6SEL_PCLK1"}
|
||||
#define STM32_UART7SEL ${doc.STM32_UART7SEL!"STM32_UART7SEL_PCLK1"}
|
||||
#define STM32_UART8SEL ${doc.STM32_UART8SEL!"STM32_UART8SEL_PCLK1"}
|
||||
#define STM32_UART9SEL ${doc.STM32_UART9SEL!"STM32_UART9SEL_PCLK1"}
|
||||
#define STM32_USART10SEL ${doc.STM32_USART10SEL!"STM32_USART10SEL_PCLK1"}
|
||||
#define STM32_USART11SEL ${doc.STM32_USART11SEL!"STM32_USART11SEL_PCLK1"}
|
||||
#define STM32_UART12SEL ${doc.STM32_UART12SEL!"STM32_UART12SEL_PCLK1"}
|
||||
#define STM32_LPUART1SEL ${doc.STM32_LPUART1SEL!"STM32_LPUART1SEL_PCLK3"}
|
||||
#define STM32_TIMICSEL ${doc.STM32_TIMICSEL!"STM32_TIMICSEL_NOCLK"}
|
||||
#define STM32_LPTIM1SEL ${doc.STM32_LPTIM1SEL!"STM32_LPTIM1SEL_PCLK3"}
|
||||
#define STM32_LPTIM2SEL ${doc.STM32_LPTIM2SEL!"STM32_LPTIM2SEL_PCLK1"}
|
||||
#define STM32_LPTIM3SEL ${doc.STM32_LPTIM3SEL!"STM32_LPTIM3SEL_PCLK3"}
|
||||
#define STM32_LPTIM4SEL ${doc.STM32_LPTIM4SEL!"STM32_LPTIM4SEL_PCLK3"}
|
||||
#define STM32_LPTIM5SEL ${doc.STM32_LPTIM5SEL!"STM32_LPTIM5SEL_PCLK3"}
|
||||
#define STM32_LPTIM6SEL ${doc.STM32_LPTIM6SEL!"STM32_LPTIM6SEL_PCLK3"}
|
||||
#define STM32_SPI1SEL ${doc.STM32_SPI1SEL!"STM32_SPI1SEL_PLL1Q"}
|
||||
#define STM32_SPI2SEL ${doc.STM32_SPI2SEL!"STM32_SPI2SEL_PLL1Q"}
|
||||
#define STM32_SPI3SEL ${doc.STM32_SPI3SEL!"STM32_SPI3SEL_PLL1Q"}
|
||||
#define STM32_SPI4SEL ${doc.STM32_SPI4SEL!"STM32_SPI4SEL_PCLK2"}
|
||||
#define STM32_SPI5SEL ${doc.STM32_SPI5SEL!"STM32_SPI5SEL_PCLK3"}
|
||||
#define STM32_SPI6SEL ${doc.STM32_SPI6SEL!"STM32_SPI6SEL_PCLK2"}
|
||||
#define STM32_OSPISEL ${doc.STM32_OSPISEL!"STM32_OSPISEL_HCLK4"}
|
||||
#define STM32_SYSTICKSEL ${doc.STM32_SYSTICKSEL!"STM32_SYSTICKSEL_HCLKDIV8"}
|
||||
#define STM32_USBSEL ${doc.STM32_USBSEL!"STM32_USBSEL_NOCLOCK"}
|
||||
#define STM32_SDMMC1SEL ${doc.STM32_SDMMC1SEL!"STM32_SDMMC1SEL_PLL1Q"}
|
||||
#define STM32_SDMMC2SEL ${doc.STM32_SDMMC2SEL!"STM32_SDMMC2SEL_PLL1Q"}
|
||||
#define STM32_I2C1SEL ${doc.STM32_I2C1SEL!"STM32_I2C1SEL_PCLK1"}
|
||||
#define STM32_I2C2SEL ${doc.STM32_I2C2SEL!"STM32_I2C2SEL_PCLK1"}
|
||||
#define STM32_I2C3SEL ${doc.STM32_I2C3SEL!"STM32_I2C3SEL_PCLK3"}
|
||||
#define STM32_I2C4SEL ${doc.STM32_I2C4SEL!"STM32_I2C4SEL_PCLK3"}
|
||||
#define STM32_I3C1SEL ${doc.STM32_I3C1SEL!"STM32_I3C1SEL_PCLK1"}
|
||||
#define STM32_ADCDACSEL ${doc.STM32_ADCDACSEL!"STM32_ADCDACSEL_HCLK"}
|
||||
#define STM32_DACSEL ${doc.STM32_DACSEL!"STM32_DACSEL_IGNORE"}
|
||||
#define STM32_RNGSEL ${doc.STM32_RNGSEL!"STM32_RNGSEL_IGNORE"}
|
||||
#define STM32_CECSEL ${doc.STM32_CECSEL!"STM32_CECSEL_IGNORE"}
|
||||
#define STM32_FDCANSEL ${doc.STM32_FDCANSEL!"STM32_FDCANSEL_IGNORE"}
|
||||
#define STM32_SAI1SEL ${doc.STM32_SAI1SEL!"STM32_SAI1SEL_PLL1Q"}
|
||||
#define STM32_SAI2SEL ${doc.STM32_SAI2SEL!"STM32_SAI2SEL_PLL1Q"}
|
||||
#define STM32_CKPERSEL ${doc.STM32_CKPERSEL!"STM32_CKPERSEL_HSI"}
|
||||
#define STM32_RTCSEL ${doc.STM32_RTCSEL!"STM32_RTCSEL_NOCLOCK"}
|
||||
|
||||
/*
|
||||
* IRQ system settings.
|
||||
*/
|
||||
#define STM32_IRQ_EXTI0_PRIORITY ${doc.STM32_IRQ_EXTI0_PRIORITY!"6"}
|
||||
#define STM32_IRQ_EXTI1_PRIORITY ${doc.STM32_IRQ_EXTI1_PRIORITY!"6"}
|
||||
#define STM32_IRQ_EXTI2_PRIORITY ${doc.STM32_IRQ_EXTI2_PRIORITY!"6"}
|
||||
#define STM32_IRQ_EXTI3_PRIORITY ${doc.STM32_IRQ_EXTI3_PRIORITY!"6"}
|
||||
#define STM32_IRQ_EXTI4_PRIORITY ${doc.STM32_IRQ_EXTI4_PRIORITY!"6"}
|
||||
#define STM32_IRQ_EXTI5_PRIORITY ${doc.STM32_IRQ_EXTI5_PRIORITY!"6"}
|
||||
#define STM32_IRQ_EXTI6_PRIORITY ${doc.STM32_IRQ_EXTI6_PRIORITY!"6"}
|
||||
#define STM32_IRQ_EXTI7_PRIORITY ${doc.STM32_IRQ_EXTI7_PRIORITY!"6"}
|
||||
#define STM32_IRQ_EXTI8_PRIORITY ${doc.STM32_IRQ_EXTI8_PRIORITY!"6"}
|
||||
#define STM32_IRQ_EXTI9_PRIORITY ${doc.STM32_IRQ_EXTI9_PRIORITY!"6"}
|
||||
#define STM32_IRQ_EXTI10_PRIORITY ${doc.STM32_IRQ_EXTI10_PRIORITY!"6"}
|
||||
#define STM32_IRQ_EXTI11_PRIORITY ${doc.STM32_IRQ_EXTI11_PRIORITY!"6"}
|
||||
#define STM32_IRQ_EXTI12_PRIORITY ${doc.STM32_IRQ_EXTI12_PRIORITY!"6"}
|
||||
#define STM32_IRQ_EXTI13_PRIORITY ${doc.STM32_IRQ_EXTI13_PRIORITY!"6"}
|
||||
#define STM32_IRQ_EXTI14_PRIORITY ${doc.STM32_IRQ_EXTI14_PRIORITY!"6"}
|
||||
#define STM32_IRQ_EXTI15_PRIORITY ${doc.STM32_IRQ_EXTI15_PRIORITY!"6"}
|
||||
|
||||
#define STM32_IRQ_TIM1_BRK_PRIORITY ${doc.STM32_IRQ_TIM1_BRK_PRIORITY!"7"}
|
||||
#define STM32_IRQ_TIM1_UP_PRIORITY ${doc.STM32_IRQ_TIM1_UP_PRIORITY!"7"}
|
||||
#define STM32_IRQ_TIM1_TRGCO_PRIORITY ${doc.STM32_IRQ_TIM1_TRGCO_PRIORITY!"7"}
|
||||
#define STM32_IRQ_TIM1_CC_PRIORITY ${doc.STM32_IRQ_TIM1_CC_PRIORITY!"7"}
|
||||
#define STM32_IRQ_TIM2_PRIORITY ${doc.STM32_IRQ_TIM2_PRIORITY!"7"}
|
||||
#define STM32_IRQ_TIM3_PRIORITY ${doc.STM32_IRQ_TIM3_PRIORITY!"7"}
|
||||
#define STM32_IRQ_TIM4_PRIORITY ${doc.STM32_IRQ_TIM4_PRIORITY!"7"}
|
||||
#define STM32_IRQ_TIM5_PRIORITY ${doc.STM32_IRQ_TIM5_PRIORITY!"7"}
|
||||
#define STM32_IRQ_TIM6_PRIORITY ${doc.STM32_IRQ_TIM6_PRIORITY!"7"}
|
||||
#define STM32_IRQ_TIM7_PRIORITY ${doc.STM32_IRQ_TIM7_PRIORITY!"7"}
|
||||
#define STM32_IRQ_TIM8_BRK_PRIORITY ${doc.STM32_IRQ_TIM8_BRK_PRIORITY!"7"}
|
||||
#define STM32_IRQ_TIM8_UP_PRIORITY ${doc.STM32_IRQ_TIM8_UP_PRIORITY!"7"}
|
||||
#define STM32_IRQ_TIM8_CC_PRIORITY ${doc.STM32_IRQ_TIM8_CC_PRIORITY!"7"}
|
||||
#define STM32_IRQ_TIM8_CC_PRIORITY ${doc.STM32_IRQ_TIM8_CC_PRIORITY!"7"}
|
||||
#define STM32_IRQ_TIM12_PRIORITY ${doc.STM32_IRQ_TIM12_PRIORITY!"7"}
|
||||
#define STM32_IRQ_TIM13_PRIORITY ${doc.STM32_IRQ_TIM13_PRIORITY!"7"}
|
||||
#define STM32_IRQ_TIM14_PRIORITY ${doc.STM32_IRQ_TIM14_PRIORITY!"7"}
|
||||
#define STM32_IRQ_TIM15_PRIORITY ${doc.STM32_IRQ_TIM15_PRIORITY!"7"}
|
||||
#define STM32_IRQ_TIM16_PRIORITY ${doc.STM32_IRQ_TIM16_PRIORITY!"7"}
|
||||
#define STM32_IRQ_TIM17_PRIORITY ${doc.STM32_IRQ_TIM17_PRIORITY!"7"}
|
||||
|
||||
#define STM32_IRQ_USART1_PRIORITY ${doc.STM32_IRQ_USART1_PRIORITY!"12"}
|
||||
#define STM32_IRQ_USART2_PRIORITY ${doc.STM32_IRQ_USART2_PRIORITY!"12"}
|
||||
#define STM32_IRQ_USART3_PRIORITY ${doc.STM32_IRQ_USART3_PRIORITY!"12"}
|
||||
#define STM32_IRQ_UART4_PRIORITY ${doc.STM32_IRQ_UART4_PRIORITY!"12"}
|
||||
#define STM32_IRQ_UART5_PRIORITY ${doc.STM32_IRQ_UART5_PRIORITY!"12"}
|
||||
#define STM32_IRQ_USART6_PRIORITY ${doc.STM32_IRQ_USART6_PRIORITY!"12"}
|
||||
#define STM32_IRQ_UART7_PRIORITY ${doc.STM32_IRQ_UART7_PRIORITY!"12"}
|
||||
#define STM32_IRQ_UART8_PRIORITY ${doc.STM32_IRQ_UART8_PRIORITY!"12"}
|
||||
#define STM32_IRQ_UART9_PRIORITY ${doc.STM32_IRQ_UART9_PRIORITY!"12"}
|
||||
#define STM32_IRQ_USART10_PRIORITY ${doc.STM32_IRQ_USART10_PRIORITY!"12"}
|
||||
#define STM32_IRQ_USART11_PRIORITY ${doc.STM32_IRQ_USART11_PRIORITY!"12"}
|
||||
#define STM32_IRQ_UART12_PRIORITY ${doc.STM32_IRQ_UART12_PRIORITY!"12"}
|
||||
#define STM32_IRQ_LPUART1_PRIORITY ${doc.STM32_IRQ_LPUART1_PRIORITY!"12"}
|
||||
|
||||
/*
|
||||
* ADC driver system settings.
|
||||
*/
|
||||
|
||||
/*
|
||||
* CAN driver system settings.
|
||||
*/
|
||||
|
||||
/*
|
||||
* DAC driver system settings.
|
||||
*/
|
||||
|
||||
/*
|
||||
* GPT driver system settings.
|
||||
*/
|
||||
#define STM32_GPT_USE_TIM1 ${doc.STM32_GPT_USE_TIM1!"FALSE"}
|
||||
#define STM32_GPT_USE_TIM2 ${doc.STM32_GPT_USE_TIM2!"FALSE"}
|
||||
#define STM32_GPT_USE_TIM3 ${doc.STM32_GPT_USE_TIM3!"FALSE"}
|
||||
#define STM32_GPT_USE_TIM4 ${doc.STM32_GPT_USE_TIM4!"FALSE"}
|
||||
#define STM32_GPT_USE_TIM5 ${doc.STM32_GPT_USE_TIM5!"FALSE"}
|
||||
#define STM32_GPT_USE_TIM6 ${doc.STM32_GPT_USE_TIM6!"FALSE"}
|
||||
#define STM32_GPT_USE_TIM7 ${doc.STM32_GPT_USE_TIM7!"FALSE"}
|
||||
#define STM32_GPT_USE_TIM8 ${doc.STM32_GPT_USE_TIM8!"FALSE"}
|
||||
#define STM32_GPT_USE_TIM12 ${doc.STM32_GPT_USE_TIM12!"FALSE"}
|
||||
#define STM32_GPT_USE_TIM13 ${doc.STM32_GPT_USE_TIM13!"FALSE"}
|
||||
#define STM32_GPT_USE_TIM14 ${doc.STM32_GPT_USE_TIM14!"FALSE"}
|
||||
#define STM32_GPT_USE_TIM15 ${doc.STM32_GPT_USE_TIM15!"FALSE"}
|
||||
#define STM32_GPT_USE_TIM16 ${doc.STM32_GPT_USE_TIM16!"FALSE"}
|
||||
#define STM32_GPT_USE_TIM17 ${doc.STM32_GPT_USE_TIM17!"FALSE"}
|
||||
|
||||
/*
|
||||
* I2C driver system settings.
|
||||
*/
|
||||
|
||||
/*
|
||||
* ICU driver system settings.
|
||||
*/
|
||||
#define STM32_ICU_USE_TIM1 ${doc.STM32_ICU_USE_TIM1!"FALSE"}
|
||||
#define STM32_ICU_USE_TIM2 ${doc.STM32_ICU_USE_TIM2!"FALSE"}
|
||||
#define STM32_ICU_USE_TIM3 ${doc.STM32_ICU_USE_TIM3!"FALSE"}
|
||||
#define STM32_ICU_USE_TIM4 ${doc.STM32_ICU_USE_TIM4!"FALSE"}
|
||||
#define STM32_ICU_USE_TIM5 ${doc.STM32_ICU_USE_TIM5!"FALSE"}
|
||||
#define STM32_ICU_USE_TIM8 ${doc.STM32_ICU_USE_TIM8!"FALSE"}
|
||||
#define STM32_ICU_USE_TIM12 ${doc.STM32_ICU_USE_TIM12!"FALSE"}
|
||||
#define STM32_ICU_USE_TIM15 ${doc.STM32_ICU_USE_TIM15!"FALSE"}
|
||||
#define STM32_ICU_USE_TIM16 ${doc.STM32_ICU_USE_TIM16!"FALSE"}
|
||||
#define STM32_ICU_USE_TIM17 ${doc.STM32_ICU_USE_TIM17!"FALSE"}
|
||||
|
||||
/*
|
||||
* PWM driver system settings.
|
||||
*/
|
||||
#define STM32_PWM_USE_TIM1 ${doc.STM32_PWM_USE_TIM1!"FALSE"}
|
||||
#define STM32_PWM_USE_TIM2 ${doc.STM32_PWM_USE_TIM2!"FALSE"}
|
||||
#define STM32_PWM_USE_TIM3 ${doc.STM32_PWM_USE_TIM3!"FALSE"}
|
||||
#define STM32_PWM_USE_TIM4 ${doc.STM32_PWM_USE_TIM4!"FALSE"}
|
||||
#define STM32_PWM_USE_TIM5 ${doc.STM32_PWM_USE_TIM5!"FALSE"}
|
||||
#define STM32_PWM_USE_TIM8 ${doc.STM32_PWM_USE_TIM8!"FALSE"}
|
||||
#define STM32_PWM_USE_TIM12 ${doc.STM32_PWM_USE_TIM12!"FALSE"}
|
||||
#define STM32_PWM_USE_TIM13 ${doc.STM32_PWM_USE_TIM13!"FALSE"}
|
||||
#define STM32_PWM_USE_TIM14 ${doc.STM32_PWM_USE_TIM14!"FALSE"}
|
||||
#define STM32_PWM_USE_TIM15 ${doc.STM32_PWM_USE_TIM15!"FALSE"}
|
||||
#define STM32_PWM_USE_TIM16 ${doc.STM32_PWM_USE_TIM16!"FALSE"}
|
||||
#define STM32_PWM_USE_TIM17 ${doc.STM32_PWM_USE_TIM17!"FALSE"}
|
||||
|
||||
/*
|
||||
* RTC driver system settings.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SDC driver system settings.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SERIAL driver system settings.
|
||||
*/
|
||||
#define STM32_SERIAL_USE_USART1 ${doc.STM32_SERIAL_USE_USART1!"FALSE"}
|
||||
#define STM32_SERIAL_USE_USART2 ${doc.STM32_SERIAL_USE_USART2!"FALSE"}
|
||||
#define STM32_SERIAL_USE_USART3 ${doc.STM32_SERIAL_USE_USART3!"FALSE"}
|
||||
#define STM32_SERIAL_USE_UART4 ${doc.STM32_SERIAL_USE_UART4!"FALSE"}
|
||||
#define STM32_SERIAL_USE_UART5 ${doc.STM32_SERIAL_USE_UART5!"FALSE"}
|
||||
#define STM32_SERIAL_USE_USART6 ${doc.STM32_SERIAL_USE_USART6!"FALSE"}
|
||||
#define STM32_SERIAL_USE_UART7 ${doc.STM32_SERIAL_USE_UART7!"FALSE"}
|
||||
#define STM32_SERIAL_USE_UART8 ${doc.STM32_SERIAL_USE_UART8!"FALSE"}
|
||||
#define STM32_SERIAL_USE_UART9 ${doc.STM32_SERIAL_USE_UART9!"FALSE"}
|
||||
#define STM32_SERIAL_USE_USART10 ${doc.STM32_SERIAL_USE_USART10!"FALSE"}
|
||||
#define STM32_SERIAL_USE_USART11 ${doc.STM32_SERIAL_USE_USART11!"FALSE"}
|
||||
#define STM32_SERIAL_USE_UART12 ${doc.STM32_SERIAL_USE_UART12!"FALSE"}
|
||||
#define STM32_SERIAL_USE_LPUART1 ${doc.STM32_SERIAL_USE_LPUART1!"FALSE"}
|
||||
|
||||
/*
|
||||
* SIO driver system settings.
|
||||
*/
|
||||
#define STM32_SIO_USE_USART1 ${doc.STM32_SIO_USE_USART1!"TRUE"}
|
||||
#define STM32_SIO_USE_USART2 ${doc.STM32_SIO_USE_USART2!"TRUE"}
|
||||
#define STM32_SIO_USE_USART3 ${doc.STM32_SIO_USE_USART3!"TRUE"}
|
||||
#define STM32_SIO_USE_UART4 ${doc.STM32_SIO_USE_UART4!"TRUE"}
|
||||
#define STM32_SIO_USE_UART5 ${doc.STM32_SIO_USE_UART5!"TRUE"}
|
||||
#define STM32_SIO_USE_USART6 ${doc.STM32_SIO_USE_USART6!"TRUE"}
|
||||
#define STM32_SIO_USE_UART7 ${doc.STM32_SIO_USE_UART7!"TRUE"}
|
||||
#define STM32_SIO_USE_UART8 ${doc.STM32_SIO_USE_UART8!"TRUE"}
|
||||
#define STM32_SIO_USE_UART9 ${doc.STM32_SIO_USE_UART9!"TRUE"}
|
||||
#define STM32_SIO_USE_USART10 ${doc.STM32_SIO_USE_USART10!"TRUE"}
|
||||
#define STM32_SIO_USE_USART11 ${doc.STM32_SIO_USE_USART11!"TRUE"}
|
||||
#define STM32_SIO_USE_UART12 ${doc.STM32_SIO_USE_UART12!"TRUE"}
|
||||
#define STM32_SIO_USE_LPUART1 ${doc.STM32_SIO_USE_LPUART1!"TRUE"}
|
||||
|
||||
/*
|
||||
* SPI driver system settings.
|
||||
*/
|
||||
|
||||
/*
|
||||
* ST driver system settings.
|
||||
*/
|
||||
#define STM32_ST_IRQ_PRIORITY ${doc.STM32_ST_IRQ_PRIORITY!"8"}
|
||||
#define STM32_ST_USE_TIMER ${doc.STM32_ST_USE_TIMER!"2"}
|
||||
|
||||
/*
|
||||
* TRNG driver system settings.
|
||||
*/
|
||||
|
||||
/*
|
||||
* UART driver system settings.
|
||||
*/
|
||||
|
||||
/*
|
||||
* USB driver system settings.
|
||||
*/
|
||||
|
||||
/*
|
||||
* WDG driver system settings.
|
||||
*/
|
||||
#define STM32_WDG_USE_IWDG ${doc.STM32_WDG_USE_IWDG!"FALSE"}
|
||||
|
||||
/*
|
||||
* WSPI driver system settings.
|
||||
*/
|
||||
|
||||
#endif /* MCUCONF_H */
|
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
if [ $# -eq 2 ]
|
||||
then
|
||||
if [ $1 = "rootpath" ]
|
||||
then
|
||||
find $2 -name "mcuconf.h" -exec bash update_mcuconf_stm32h563xx.sh "{}" \;
|
||||
else
|
||||
echo "Usage: update_mcuconf_stm32h563xx.sh [rootpath <root path>]"
|
||||
fi
|
||||
elif [ $# -eq 1 ]
|
||||
then
|
||||
declare conffile=$(<$1)
|
||||
if egrep -q "STM32H562_MCUCONF" <<< "$conffile" || egrep -q "STM32H563_MCUCONF" <<< "$conffile" || egrep -q "STM32H573_MCUCONF" <<< "$conffile"
|
||||
then
|
||||
echo Processing: $1
|
||||
egrep -e "\#define\s+[a-zA-Z0-9_()]*\s+[^\s]" <<< "$conffile" | sed -r 's/\#define\s+([a-zA-Z0-9_]*)(\([^)]*\))?\s+/\1=/g' > ./values.txt
|
||||
if ! fmpp -q -C conf.fmpp -S ../ftl/processors/conf/mcuconf_stm32h563xx
|
||||
then
|
||||
echo
|
||||
echo "aborted"
|
||||
exit 1
|
||||
fi
|
||||
cp ./mcuconf.h $1
|
||||
rm ./mcuconf.h ./values.txt
|
||||
fi
|
||||
else
|
||||
echo "Usage: update_mcuconf_stm32h563xx.sh [rootpath <root path>]"
|
||||
echo " update_mcuconf_stm32h563xx.sh <configuration file>]"
|
||||
fi
|
Loading…
Reference in New Issue