mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
HAL_ChibiOS: added support for STM32H7A3
interesting MCU as it is the first H7 we support that doesn't have a 128k flash sector size
This commit is contained in:
parent
a19818d15e
commit
054fb94e9a
@ -55,6 +55,8 @@
|
||||
#include "stm32f47_mcuconf.h"
|
||||
#elif defined(STM32H730xx) || defined(STM32H723xx)
|
||||
#include "stm32h7_type2_mcuconf.h"
|
||||
#elif defined(STM32H7A3xx)
|
||||
#include "stm32h7_A3_mcuconf.h"
|
||||
#elif defined(STM32H7)
|
||||
#include "stm32h7_mcuconf.h"
|
||||
#elif defined(STM32G4)
|
||||
|
581
libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_A3_mcuconf.h
Normal file
581
libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_A3_mcuconf.h
Normal file
@ -0,0 +1,581 @@
|
||||
/*
|
||||
ChibiOS - Copyright (C) 2006..2018 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.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/*
|
||||
this header is modelled on the one for the Nucleo-144 H743 board from ChibiOS
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
// MPU region for ethernet
|
||||
#define STM32_NOCACHE_MPU_REGION_ETH MPU_REGION_2
|
||||
|
||||
#ifndef STM32_LSECLK
|
||||
#define STM32_LSECLK 32768U
|
||||
#endif
|
||||
#ifndef STM32_LSEDRV
|
||||
#define STM32_LSEDRV (3U << 3U)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* STM32H7xx 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 STM32H7xx_MCUCONF
|
||||
#define STM32H7A3_MCUCONF
|
||||
|
||||
/*
|
||||
* General settings.
|
||||
*/
|
||||
#ifndef STM32_NO_INIT
|
||||
#define STM32_NO_INIT FALSE
|
||||
#endif
|
||||
#define STM32_TARGET_CORE 1
|
||||
|
||||
/*
|
||||
* Memory attributes settings.
|
||||
*/
|
||||
// Disable ChibiOS memory protection which is fixed to SRAM1-3
|
||||
#define STM32_NOCACHE_ENABLE FALSE
|
||||
|
||||
// enable memory protection on SRAM4, used for bdshot
|
||||
#define STM32_NOCACHE_MPU_REGION_1 MPU_REGION_5
|
||||
#define STM32_NOCACHE_MPU_REGION_1_BASE 0x38000000U
|
||||
#define STM32_NOCACHE_MPU_REGION_1_SIZE MPU_RASR_SIZE_16K
|
||||
|
||||
// enable memory protection on part of AXI used for SDMMC
|
||||
#define STM32_NOCACHE_MPU_REGION_2 MPU_REGION_4
|
||||
#define STM32_NOCACHE_MPU_REGION_2_BASE 0x24044000
|
||||
#define STM32_NOCACHE_MPU_REGION_2_SIZE MPU_RASR_SIZE_16K
|
||||
|
||||
/*
|
||||
* PWR system settings.
|
||||
* Reading STM32 Reference Manual is required, settings in PWR_CR3 are
|
||||
* very critical.
|
||||
* Register constants are taken from the ST header.
|
||||
*/
|
||||
#define STM32_PWR_CR1 (PWR_CR1_SVOS_1 | PWR_CR1_SVOS_0)
|
||||
#define STM32_PWR_CR2 (PWR_CR2_BREN)
|
||||
#ifdef SMPS_PWR
|
||||
#define STM32_PWR_CR3 (PWR_CR3_SMPSEN | PWR_CR3_USB33DEN)
|
||||
#else
|
||||
#define STM32_PWR_CR3 (PWR_CR3_LDOEN | PWR_CR3_USB33DEN)
|
||||
#endif
|
||||
#define STM32_PWR_CPUCR 0
|
||||
|
||||
/*
|
||||
* Clock tree static settings.
|
||||
* Reading STM32 Reference Manual is required.
|
||||
*/
|
||||
#define STM32_LSI_ENABLED FALSE
|
||||
#define STM32_CSI_ENABLED FALSE
|
||||
#define STM32_HSI48_ENABLED TRUE
|
||||
#define STM32_LSE_ENABLED FALSE
|
||||
#define STM32_HSIDIV STM32_HSIDIV_DIV1
|
||||
|
||||
/*
|
||||
* Setup clocks for the STM32H7A3
|
||||
*/
|
||||
#define STM32_VOS STM32_VOS_SCALE0
|
||||
/*
|
||||
setup PLLs based on HSE clock
|
||||
*/
|
||||
#if STM32_HSECLK == 0U
|
||||
// no crystal, this gives 280MHz system clock
|
||||
#define STM32_HSE_ENABLED FALSE
|
||||
#define STM32_HSI_ENABLED TRUE // HSI is 64MHzs
|
||||
#define STM32_PLL1_DIVM_VALUE 32
|
||||
#define STM32_PLL2_DIVM_VALUE 32
|
||||
#define STM32_PLL3_DIVM_VALUE 32
|
||||
#define STM32_PLLSRC STM32_PLLSRC_HSI_CK
|
||||
#define STM32_MCO1SEL STM32_MCO1SEL_HSI_CK
|
||||
#define STM32_CKPERSEL STM32_CKPERSEL_HSI_CK
|
||||
|
||||
#elif STM32_HSECLK == 8000000U
|
||||
#define STM32_HSE_ENABLED TRUE
|
||||
#define STM32_HSI_ENABLED FALSE
|
||||
#define STM32_PLL1_DIVM_VALUE 4
|
||||
#define STM32_PLL2_DIVM_VALUE 4
|
||||
#define STM32_PLL3_DIVM_VALUE 4
|
||||
#define STM32_PLLSRC STM32_PLLSRC_HSE_CK
|
||||
#define STM32_CKPERSEL STM32_CKPERSEL_HSE_CK
|
||||
|
||||
#elif STM32_HSECLK == 16000000U
|
||||
#define STM32_HSE_ENABLED TRUE
|
||||
#define STM32_HSI_ENABLED FALSE
|
||||
#define STM32_PLL1_DIVM_VALUE 8
|
||||
#define STM32_PLL2_DIVM_VALUE 8
|
||||
#define STM32_PLL3_DIVM_VALUE 8
|
||||
#define STM32_PLLSRC STM32_PLLSRC_HSE_CK
|
||||
#define STM32_CKPERSEL STM32_CKPERSEL_HSE_CK
|
||||
|
||||
#else
|
||||
#error "Unsupported HSE clock"
|
||||
#endif
|
||||
|
||||
#if (STM32_HSECLK == 0U) || (STM32_HSECLK == 8000000U) || (STM32_HSECLK == 16000000U)
|
||||
// common clock tree for multiples of 8MHz crystals
|
||||
#define STM32_PLL1_DIVN_VALUE 280
|
||||
#define STM32_PLL1_DIVP_VALUE 2
|
||||
#define STM32_PLL1_DIVQ_VALUE 2
|
||||
#define STM32_PLL1_DIVR_VALUE 2
|
||||
|
||||
#define STM32_PLL2_DIVN_VALUE 160
|
||||
#define STM32_PLL2_DIVP_VALUE 2
|
||||
#define STM32_PLL2_DIVQ_VALUE 4 // 80MHz for FDCAN
|
||||
#define STM32_PLL2_DIVR_VALUE 2
|
||||
|
||||
#define STM32_PLL3_DIVN_VALUE 100
|
||||
#define STM32_PLL3_DIVP_VALUE 2
|
||||
#define STM32_PLL3_DIVQ_VALUE 2
|
||||
#define STM32_PLL3_DIVR_VALUE 4
|
||||
#endif // clock selection
|
||||
|
||||
/*
|
||||
* PLLs static settings.
|
||||
* Reading STM32 Reference Manual is required.
|
||||
*/
|
||||
#define STM32_PLLCFGR_MASK ~0
|
||||
|
||||
#define STM32_PLL1_ENABLED TRUE
|
||||
#define STM32_PLL1_P_ENABLED TRUE
|
||||
#define STM32_PLL1_Q_ENABLED TRUE
|
||||
#define STM32_PLL1_R_ENABLED TRUE
|
||||
#define STM32_PLL1_FRACN_VALUE 0
|
||||
|
||||
#define STM32_PLL2_ENABLED TRUE
|
||||
#define STM32_PLL2_P_ENABLED TRUE
|
||||
#define STM32_PLL2_Q_ENABLED TRUE
|
||||
#define STM32_PLL2_R_ENABLED TRUE
|
||||
#define STM32_PLL2_FRACN_VALUE 0
|
||||
|
||||
#define STM32_PLL3_ENABLED TRUE
|
||||
#define STM32_PLL3_P_ENABLED TRUE
|
||||
#define STM32_PLL3_Q_ENABLED TRUE
|
||||
#define STM32_PLL3_R_ENABLED TRUE
|
||||
#define STM32_PLL3_FRACN_VALUE 0
|
||||
|
||||
/*
|
||||
* Core clocks dynamic settings (can be changed at runtime).
|
||||
* Reading STM32 Reference Manual is required.
|
||||
*/
|
||||
#define STM32_SW STM32_SW_PLL1_P_CK
|
||||
#define STM32_RTCSEL STM32_RTCSEL_LSI_CK
|
||||
#define STM32_D1CPRE STM32_D1CPRE_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.
|
||||
* Reading STM32 Reference Manual is required.
|
||||
*/
|
||||
#ifndef STM32_MCO1SEL
|
||||
#define STM32_MCO1SEL STM32_MCO1SEL_HSE_CK
|
||||
#endif
|
||||
#ifndef STM32_MCO1PRE_VALUE
|
||||
#define STM32_MCO1PRE_VALUE 1
|
||||
#endif
|
||||
#ifndef STM32_MCO2SEL
|
||||
#define STM32_MCO2SEL STM32_MCO2SEL_SYS_CK
|
||||
#endif
|
||||
#ifndef STM32_MCO2PRE_VALUE
|
||||
#define STM32_MCO2PRE_VALUE 1
|
||||
#endif
|
||||
#define STM32_TIMPRE_ENABLE TRUE
|
||||
#define STM32_HRTIMSEL 0
|
||||
#define STM32_STOPKERWUCK 0
|
||||
#define STM32_STOPWUCK 0
|
||||
#define STM32_RTCPRE_VALUE 2
|
||||
#define STM32_SDMMCSEL STM32_SDMMCSEL_PLL2_R_CK
|
||||
#define STM32_OCTOSPISEL STM32_OCTOSPISEL_HCLK
|
||||
#define STM32_FMCSEL STM32_OCTOSPISEL_HCLK
|
||||
|
||||
#define STM32_SWPSEL STM32_SWPSEL_PCLK1
|
||||
#define STM32_FDCANSEL STM32_FDCANSEL_PLL2_Q_CK
|
||||
#define STM32_DFSDM1SEL STM32_DFSDM1SEL_PCLK2
|
||||
#define STM32_SPDIFSEL STM32_SPDIFSEL_PLL1_Q_CK
|
||||
#define STM32_SPI45SEL STM32_SPI45SEL_PCLK2
|
||||
#define STM32_SPI123SEL STM32_SPI123SEL_PLL3_P_CK
|
||||
#define STM32_SAI1SEL STM32_SAI1SEL_PLL1_Q_CK
|
||||
#define STM32_LPTIM1SEL STM32_LPTIM1SEL_PCLK1
|
||||
#define STM32_LPTIM3SEL STM32_LPTIM3SEL_PLL3_P_CK
|
||||
#define STM32_CECSEL STM32_CECSEL_DISABLE
|
||||
#define STM32_USBSEL STM32_USBSEL_HSI48_CK
|
||||
#define STM32_I2C123SEL STM32_I2C123SEL_PLL3_R_CK
|
||||
#define STM32_RNGSEL STM32_RNGSEL_HSI48_CK
|
||||
#define STM32_USART16SEL STM32_USART16SEL_PLL3_Q_CK
|
||||
#define STM32_USART234578SEL STM32_USART234578SEL_PLL3_Q_CK
|
||||
#define STM32_SPI6SEL STM32_SPI6SEL_PLL3_Q_CK
|
||||
#define STM32_SAI4BSEL STM32_SAI4BSEL_PLL1_Q_CK
|
||||
#define STM32_SAI4ASEL STM32_SAI4ASEL_PLL1_Q_CK
|
||||
#define STM32_ADCSEL STM32_ADCSEL_PLL3_R_CK
|
||||
#define STM32_LPTIM345SEL STM32_LPTIM345SEL_PCLK4
|
||||
#define STM32_LPTIM2SEL STM32_LPTIM2SEL_PCLK4
|
||||
#define STM32_I2C4SEL STM32_I2C4SEL_PLL3_R_CK
|
||||
#define STM32_LPUART1SEL STM32_LPUART1SEL_PCLK4 // really PCLK3
|
||||
|
||||
|
||||
/*
|
||||
* IRQ system settings.
|
||||
*/
|
||||
#define STM32_IRQ_EXTI0_PRIORITY 6
|
||||
#define STM32_IRQ_EXTI1_PRIORITY 6
|
||||
#define STM32_IRQ_EXTI2_PRIORITY 6
|
||||
#define STM32_IRQ_EXTI3_PRIORITY 6
|
||||
#define STM32_IRQ_EXTI4_PRIORITY 6
|
||||
#define STM32_IRQ_EXTI5_9_PRIORITY 6
|
||||
#define STM32_IRQ_EXTI10_15_PRIORITY 6
|
||||
#define STM32_IRQ_EXTI16_PRIORITY 6
|
||||
#define STM32_IRQ_EXTI17_PRIORITY 15
|
||||
#define STM32_IRQ_EXTI18_PRIORITY 6
|
||||
#define STM32_IRQ_EXTI19_PRIORITY 6
|
||||
#define STM32_IRQ_EXTI20_21_PRIORITY 6
|
||||
|
||||
#define STM32_IRQ_FDCAN1_PRIORITY 10
|
||||
#define STM32_IRQ_FDCAN2_PRIORITY 10
|
||||
|
||||
#define STM32_IRQ_MDMA_PRIORITY 9
|
||||
#define STM32_IRQ_OCTOSPI1_PRIORITY 10
|
||||
#define STM32_IRQ_OCTOSPI2_PRIORITY 10
|
||||
|
||||
#define STM32_IRQ_SDMMC1_PRIORITY 9
|
||||
#define STM32_IRQ_SDMMC2_PRIORITY 9
|
||||
|
||||
#define STM32_IRQ_TIM1_UP_PRIORITY 7
|
||||
#define STM32_IRQ_TIM1_CC_PRIORITY 7
|
||||
#define STM32_IRQ_TIM2_PRIORITY 7
|
||||
#define STM32_IRQ_TIM3_PRIORITY 7
|
||||
#define STM32_IRQ_TIM4_PRIORITY 7
|
||||
#define STM32_IRQ_TIM5_PRIORITY 7
|
||||
#define STM32_IRQ_TIM6_PRIORITY 7
|
||||
#define STM32_IRQ_TIM7_PRIORITY 7
|
||||
#define STM32_IRQ_TIM8_BRK_TIM12_PRIORITY 7
|
||||
#define STM32_IRQ_TIM8_UP_TIM13_PRIORITY 7
|
||||
#define STM32_IRQ_TIM8_TRGCO_TIM14_PRIORITY 7
|
||||
#define STM32_IRQ_TIM8_CC_PRIORITY 7
|
||||
#define STM32_IRQ_TIM15_PRIORITY 7
|
||||
#define STM32_IRQ_TIM16_PRIORITY 7
|
||||
#define STM32_IRQ_TIM17_PRIORITY 7
|
||||
|
||||
#define STM32_IRQ_USART1_PRIORITY 12
|
||||
#define STM32_IRQ_USART2_PRIORITY 12
|
||||
#define STM32_IRQ_USART3_PRIORITY 12
|
||||
#define STM32_IRQ_UART4_PRIORITY 12
|
||||
#define STM32_IRQ_UART5_PRIORITY 12
|
||||
#define STM32_IRQ_USART6_PRIORITY 12
|
||||
#define STM32_IRQ_UART7_PRIORITY 12
|
||||
#define STM32_IRQ_UART8_PRIORITY 12
|
||||
#define STM32_IRQ_UART9_PRIORITY 12
|
||||
#define STM32_IRQ_USART10_PRIORITY 12
|
||||
|
||||
/*
|
||||
* ADC driver system settings.
|
||||
*/
|
||||
#ifndef STM32_ADC_DUAL_MODE
|
||||
#define STM32_ADC_DUAL_MODE FALSE
|
||||
#endif
|
||||
#ifndef STM32_ADC_SAMPLES_SIZE
|
||||
#define STM32_ADC_SAMPLES_SIZE 16
|
||||
#endif
|
||||
#define STM32_ADC_COMPACT_SAMPLES FALSE
|
||||
#define STM32_ADC_USE_ADC12 TRUE
|
||||
#define STM32_ADC_ADC12_DMA_PRIORITY 2
|
||||
#define STM32_ADC_ADC3_DMA_PRIORITY 2
|
||||
#define STM32_ADC_ADC12_IRQ_PRIORITY 5
|
||||
#define STM32_ADC_ADC3_IRQ_PRIORITY 5
|
||||
#define STM32_ADC_ADC12_CLOCK_MODE ADC_CCR_CKMODE_ADCCK
|
||||
#define STM32_ADC_ADC3_CLOCK_MODE ADC_CCR_CKMODE_ADCCK
|
||||
|
||||
// we call it ADC1 in hwdef.dat, but driver uses ADC12 for DMA stream
|
||||
#ifdef STM32_ADC_ADC1_DMA_STREAM
|
||||
#define STM32_ADC_ADC12_DMA_STREAM STM32_ADC_ADC1_DMA_STREAM
|
||||
#elif defined(STM32_ADC_ADC2_DMA_STREAM)
|
||||
#define STM32_ADC_ADC12_DMA_STREAM STM32_ADC_ADC2_DMA_STREAM
|
||||
#endif
|
||||
|
||||
/*
|
||||
* CAN driver system settings.
|
||||
*/
|
||||
#define STM32_CAN_USE_FDCAN1 FALSE
|
||||
#define STM32_CAN_USE_FDCAN2 FALSE
|
||||
|
||||
/*
|
||||
* DAC driver system settings.
|
||||
*/
|
||||
#define STM32_DAC_DUAL_MODE FALSE
|
||||
#define STM32_DAC_USE_DAC1_CH1 FALSE
|
||||
#define STM32_DAC_USE_DAC1_CH2 FALSE
|
||||
#define STM32_DAC_DAC1_CH1_IRQ_PRIORITY 10
|
||||
#define STM32_DAC_DAC1_CH2_IRQ_PRIORITY 10
|
||||
#define STM32_DAC_DAC1_CH1_DMA_PRIORITY 2
|
||||
#define STM32_DAC_DAC1_CH2_DMA_PRIORITY 2
|
||||
|
||||
/*
|
||||
* GPT driver system settings.
|
||||
*/
|
||||
#define STM32_GPT_USE_TIM1 FALSE
|
||||
#define STM32_GPT_USE_TIM2 FALSE
|
||||
#define STM32_GPT_USE_TIM3 FALSE
|
||||
#define STM32_GPT_USE_TIM4 FALSE
|
||||
#define STM32_GPT_USE_TIM5 FALSE
|
||||
#define STM32_GPT_USE_TIM6 FALSE
|
||||
#define STM32_GPT_USE_TIM7 FALSE
|
||||
#define STM32_GPT_USE_TIM8 FALSE
|
||||
#define STM32_GPT_USE_TIM12 FALSE
|
||||
#define STM32_GPT_USE_TIM13 FALSE
|
||||
#define STM32_GPT_USE_TIM14 FALSE
|
||||
#define STM32_GPT_USE_TIM15 FALSE
|
||||
#define STM32_GPT_USE_TIM16 FALSE
|
||||
#define STM32_GPT_USE_TIM17 FALSE
|
||||
|
||||
/*
|
||||
* I2C driver system settings.
|
||||
*/
|
||||
#define STM32_I2C_BUSY_TIMEOUT 50
|
||||
#define STM32_I2C_I2C1_IRQ_PRIORITY 5
|
||||
#define STM32_I2C_I2C2_IRQ_PRIORITY 5
|
||||
#define STM32_I2C_I2C3_IRQ_PRIORITY 5
|
||||
#define STM32_I2C_I2C4_IRQ_PRIORITY 5
|
||||
#define STM32_I2C_I2C1_DMA_PRIORITY 3
|
||||
#define STM32_I2C_I2C2_DMA_PRIORITY 3
|
||||
#define STM32_I2C_I2C3_DMA_PRIORITY 3
|
||||
#define STM32_I2C_I2C4_DMA_PRIORITY 3
|
||||
#define STM32_I2C_DMA_ERROR_HOOK(i2cp) STM32_DMA_ERROR_HOOK(i2cp)
|
||||
|
||||
/*
|
||||
* ICU driver system settings.
|
||||
*/
|
||||
#define STM32_ICU_USE_TIM1 FALSE
|
||||
#define STM32_ICU_USE_TIM2 FALSE
|
||||
#define STM32_ICU_USE_TIM3 FALSE
|
||||
#define STM32_ICU_USE_TIM4 FALSE
|
||||
#define STM32_ICU_USE_TIM5 FALSE
|
||||
#define STM32_ICU_USE_TIM8 FALSE
|
||||
#define STM32_ICU_USE_TIM9 FALSE
|
||||
#define STM32_ICU_TIM1_IRQ_PRIORITY 7
|
||||
#define STM32_ICU_TIM2_IRQ_PRIORITY 7
|
||||
#define STM32_ICU_TIM3_IRQ_PRIORITY 7
|
||||
#define STM32_ICU_TIM4_IRQ_PRIORITY 7
|
||||
#define STM32_ICU_TIM5_IRQ_PRIORITY 7
|
||||
#define STM32_ICU_TIM8_IRQ_PRIORITY 7
|
||||
#define STM32_ICU_TIM9_IRQ_PRIORITY 7
|
||||
|
||||
/*
|
||||
* MAC driver system settings.
|
||||
*/
|
||||
#define STM32_MAC_TRANSMIT_BUFFERS 2
|
||||
#define STM32_MAC_RECEIVE_BUFFERS 4
|
||||
#define STM32_MAC_BUFFERS_SIZE 1522
|
||||
#define STM32_MAC_PHY_TIMEOUT 100
|
||||
#define STM32_MAC_ETH1_CHANGE_PHY_STATE TRUE
|
||||
#define STM32_MAC_ETH1_IRQ_PRIORITY 13
|
||||
#define STM32_MAC_IP_CHECKSUM_OFFLOAD 0
|
||||
|
||||
/*
|
||||
* PWM driver system settings.
|
||||
*/
|
||||
|
||||
/*
|
||||
* RTC driver system settings.
|
||||
*/
|
||||
#define STM32_RTC_PRESA_VALUE 32
|
||||
#define STM32_RTC_PRESS_VALUE 1024
|
||||
#define STM32_RTC_CR_INIT 0
|
||||
#define STM32_RTC_TAMPCR_INIT 0
|
||||
|
||||
/*
|
||||
* SDC driver system settings.
|
||||
*/
|
||||
#define STM32_SDC_SDMMC_UNALIGNED_SUPPORT TRUE
|
||||
#define STM32_SDC_SDMMC_WRITE_TIMEOUT 1000
|
||||
#define STM32_SDC_SDMMC_READ_TIMEOUT 1000
|
||||
#define STM32_SDC_SDMMC_CLOCK_DELAY 10
|
||||
#define STM32_SDC_SDMMC1_DMA_PRIORITY 3
|
||||
#define STM32_SDC_SDMMC1_IRQ_PRIORITY 9
|
||||
#define STM32_SDC_SDMMC_PWRSAV TRUE
|
||||
|
||||
/*
|
||||
* SERIAL driver system settings.
|
||||
*/
|
||||
#define STM32_SERIAL_USART1_PRIORITY 12
|
||||
#define STM32_SERIAL_USART2_PRIORITY 12
|
||||
#define STM32_SERIAL_USART3_PRIORITY 12
|
||||
#define STM32_SERIAL_UART4_PRIORITY 12
|
||||
#define STM32_SERIAL_UART5_PRIORITY 12
|
||||
#define STM32_SERIAL_USART6_PRIORITY 12
|
||||
#define STM32_SERIAL_UART7_PRIORITY 12
|
||||
#define STM32_SERIAL_UART8_PRIORITY 12
|
||||
|
||||
/*
|
||||
* SIO driver system settings.
|
||||
*/
|
||||
#define STM32_SIO_USE_USART1 FALSE
|
||||
#define STM32_SIO_USE_USART2 FALSE
|
||||
#define STM32_SIO_USE_USART3 FALSE
|
||||
#define STM32_SIO_USE_UART4 FALSE
|
||||
#define STM32_SIO_USE_UART5 FALSE
|
||||
#define STM32_SIO_USE_USART6 FALSE
|
||||
#define STM32_SIO_USE_UART7 FALSE
|
||||
#define STM32_SIO_USE_UART8 FALSE
|
||||
#define STM32_SIO_USE_LPUART1 FALSE
|
||||
|
||||
/*
|
||||
* SPI driver system settings.
|
||||
*/
|
||||
#ifndef STM32_SPI_USE_SPI1
|
||||
#define STM32_SPI_USE_SPI1 FALSE
|
||||
#endif
|
||||
#ifndef STM32_SPI_USE_SPI2
|
||||
#define STM32_SPI_USE_SPI2 FALSE
|
||||
#endif
|
||||
#ifndef STM32_SPI_USE_SPI3
|
||||
#define STM32_SPI_USE_SPI3 FALSE
|
||||
#endif
|
||||
#ifndef STM32_SPI_USE_SPI4
|
||||
#define STM32_SPI_USE_SPI4 FALSE
|
||||
#endif
|
||||
#ifndef STM32_SPI_USE_SPI5
|
||||
#define STM32_SPI_USE_SPI5 FALSE
|
||||
#endif
|
||||
#ifndef STM32_SPI_USE_SPI6
|
||||
#define STM32_SPI_USE_SPI6 FALSE
|
||||
#endif
|
||||
#define STM32_SPI_SPI1_DMA_PRIORITY 1
|
||||
#define STM32_SPI_SPI2_DMA_PRIORITY 1
|
||||
#define STM32_SPI_SPI3_DMA_PRIORITY 1
|
||||
#define STM32_SPI_SPI4_DMA_PRIORITY 1
|
||||
#define STM32_SPI_SPI5_DMA_PRIORITY 1
|
||||
#define STM32_SPI_SPI6_DMA_PRIORITY 1
|
||||
#define STM32_SPI_SPI1_IRQ_PRIORITY 10
|
||||
#define STM32_SPI_SPI2_IRQ_PRIORITY 10
|
||||
#define STM32_SPI_SPI3_IRQ_PRIORITY 10
|
||||
#define STM32_SPI_SPI4_IRQ_PRIORITY 10
|
||||
#define STM32_SPI_SPI5_IRQ_PRIORITY 10
|
||||
#define STM32_SPI_SPI6_IRQ_PRIORITY 10
|
||||
#define STM32_SPI_DMA_ERROR_HOOK(spip) STM32_DMA_ERROR_HOOK(spip)
|
||||
|
||||
/*
|
||||
* ST driver system settings.
|
||||
*/
|
||||
#define STM32_ST_IRQ_PRIORITY 8
|
||||
#ifndef STM32_ST_USE_TIMER
|
||||
#define STM32_ST_USE_TIMER 5
|
||||
#endif
|
||||
|
||||
/*
|
||||
* TRNG driver system settings.
|
||||
*/
|
||||
#define STM32_TRNG_USE_RNG1 FALSE
|
||||
|
||||
/*
|
||||
* UART driver system settings.
|
||||
*/
|
||||
#define STM32_UART_USART1_IRQ_PRIORITY 12
|
||||
#define STM32_UART_USART2_IRQ_PRIORITY 12
|
||||
#define STM32_UART_USART3_IRQ_PRIORITY 12
|
||||
#define STM32_UART_UART4_IRQ_PRIORITY 12
|
||||
#define STM32_UART_UART5_IRQ_PRIORITY 12
|
||||
#define STM32_UART_USART6_IRQ_PRIORITY 12
|
||||
#define STM32_UART_USART1_DMA_PRIORITY 0
|
||||
#define STM32_UART_USART2_DMA_PRIORITY 0
|
||||
#define STM32_UART_USART3_DMA_PRIORITY 0
|
||||
#define STM32_UART_UART4_DMA_PRIORITY 0
|
||||
#define STM32_UART_UART5_DMA_PRIORITY 0
|
||||
#define STM32_UART_USART6_DMA_PRIORITY 0
|
||||
#define STM32_UART_UART7_DMA_PRIORITY 0
|
||||
#define STM32_UART_UART8_DMA_PRIORITY 0
|
||||
#define STM32_UART_DMA_ERROR_HOOK(uartp) STM32_DMA_ERROR_HOOK(uartp)
|
||||
|
||||
#define STM32_IRQ_LPUART1_PRIORITY 12
|
||||
|
||||
/*
|
||||
* USB driver system settings.
|
||||
*/
|
||||
#define STM32_USB_USE_OTG2 TRUE
|
||||
#define STM32_USB_USE_OTG1 FALSE
|
||||
#define STM32_USB_OTG1_IRQ_PRIORITY 14
|
||||
#define STM32_USB_OTG2_IRQ_PRIORITY 14
|
||||
#define STM32_USB_OTG1_RX_FIFO_SIZE 512
|
||||
#define STM32_USB_OTG2_RX_FIFO_SIZE 1024
|
||||
#define STM32_USB_HOST_WAKEUP_DURATION 2
|
||||
#define STM32_OTG2_IS_OTG1 TRUE
|
||||
|
||||
/*
|
||||
* WDG driver system settings.
|
||||
*/
|
||||
#define STM32_WDG_USE_IWDG FALSE
|
||||
|
||||
#define STM32_EXTI_ENHANCED
|
||||
|
||||
// limit ISR count per byte
|
||||
#define STM32_I2C_ISR_LIMIT 6
|
||||
|
||||
// limit SDMMC clock to 12.5MHz by default. This increases
|
||||
// reliability
|
||||
#ifndef STM32_SDC_MAX_CLOCK
|
||||
#define STM32_SDC_MAX_CLOCK 12500000
|
||||
#endif
|
||||
|
||||
#ifndef STM32_WSPI_USE_OCTOSPI1
|
||||
#define STM32_WSPI_USE_OCTOSPI1 FALSE
|
||||
#endif
|
||||
|
||||
#if HAL_XIP_ENABLED
|
||||
#define STM32_OSPI1_NO_RESET TRUE
|
||||
#define STM32_OSPI2_NO_RESET TRUE
|
||||
#endif
|
||||
|
||||
#if STM32_WSPI_USE_OCTOSPI1
|
||||
#define STM32_WSPI_OCTOSPI1_MDMA_CHANNEL STM32_MDMA_CHANNEL_ID_ANY
|
||||
#define STM32_WSPI_OCTOSPI1_MDMA_PRIORITY 1
|
||||
#define STM32_WSPI_OCTOSPI1_PRESCALER_VALUE (STM32_OCTOSPICLK / HAL_OSPI1_CLK)
|
||||
#endif
|
||||
|
||||
/*
|
||||
we use a fixed allocation of BDMA streams. We previously dynamically
|
||||
allocated these, but bugs in the chip make that unreliable. This is
|
||||
a tested set of allocations that is known to work on boards that are
|
||||
using all 3 of ADC3, I2C4 and SPI6. They are the only peripherals
|
||||
that can use BDMA, so fixed allocation is possible as we have 8
|
||||
streams and a maximum of 6 needed.
|
||||
|
||||
The layout is chosen to:
|
||||
|
||||
- avoid stream 0, as this doesn't work on ADC3 or SPI6_RX for no known reason
|
||||
- leave a gap between the peripheral types, as we have previously found that we sometimes
|
||||
lost SPI6 BDMA completion interrupts if SPI6 and I2c4 are neighbours
|
||||
*/
|
||||
#define STM32_I2C_I2C4_RX_BDMA_STREAM 1
|
||||
#define STM32_I2C_I2C4_TX_BDMA_STREAM 2
|
||||
#define STM32_SPI_SPI6_RX_BDMA_STREAM 4
|
||||
#define STM32_SPI_SPI6_TX_BDMA_STREAM 5
|
||||
#define STM32_ADC_ADC3_BDMA_STREAM 7
|
||||
|
||||
// disable DMA on I2C by default on H7
|
||||
#ifndef STM32_I2C_USE_DMA
|
||||
#define STM32_I2C_USE_DMA FALSE
|
||||
#endif
|
944
libraries/AP_HAL_ChibiOS/hwdef/scripts/STM32H7A3xx.py
Normal file
944
libraries/AP_HAL_ChibiOS/hwdef/scripts/STM32H7A3xx.py
Normal file
@ -0,0 +1,944 @@
|
||||
#!/usr/bin/env python
|
||||
'''
|
||||
these tables are generated from the STM32 datasheets for the STM32H7A3bi
|
||||
'''
|
||||
|
||||
# additional build information for ChibiOS
|
||||
build = {
|
||||
"CHIBIOS_STARTUP_MK" : "os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32h7xx.mk",
|
||||
"CHIBIOS_PLATFORM_MK" : "os/hal/ports/STM32/STM32H7xx/platform_type2.mk"
|
||||
}
|
||||
|
||||
# MCU parameters
|
||||
mcu = {
|
||||
# DMA peripheral capabilities:
|
||||
# - can't use ITCM or DTCM for any DMA
|
||||
# - SPI1 to SPI5 can use AXI SRAM, SRAM1 to SRAM3 and SRAM4 for DMA
|
||||
# - SPI6, I2C4 and ADC3 can use SRAM4 on BDMA
|
||||
# - UARTS can use AXI SRAM, SRAM1 to SRAM3 and SRAM4 for DMA
|
||||
# - I2C1, I2C2 and I2C3 can use AXI SRAM, SRAM1 to SRAM3 and SRAM4 with DMA
|
||||
# - timers can use AXI SRAM, SRAM1 to SRAM3 and SRAM4 with DMA
|
||||
# - ADC12 can use AXI SRAM, SRAM1 to SRAM3 and SRAM4
|
||||
# - SDMMC can use AXI SRAM, SRAM1 to SRAM3 with IDMA (cannot use SRAM4)
|
||||
|
||||
# ram map, as list of (address, size-kb, flags)
|
||||
# flags of 1 means DMA-capable (DMA and BDMA)
|
||||
# flags of 2 means faster memory for CPU intensive work
|
||||
# flags of 4 means memory can be used for SDMMC DMA
|
||||
# flags of 8 means memory can be used for ethernet
|
||||
'RAM_MAP' : [
|
||||
(0x24000000, 1024, 4), # AXI SRAM.
|
||||
(0x30000000, 128, 8), # SRAM1, SRAM2
|
||||
(0x20000000, 128, 2), # DTCM, tightly coupled, no DMA, fast
|
||||
(0x00000400, 63, 2), # ITCM (first 1k removed, to keep address 0 unused)
|
||||
(0x38000000, 32, 1), # SDR SRAM
|
||||
],
|
||||
|
||||
'EXPECTED_CLOCK' : 280000000,
|
||||
|
||||
'EXPECTED_CLOCKS' : [
|
||||
('STM32_SYS_CK', 280000000),
|
||||
('STM32_QSPICLK', 280000000),
|
||||
('STM32_SDMMC1CLK', 160000000),
|
||||
('STM32_SPI45CLK', 80000000),
|
||||
('STM32_FDCANCLK', 80000000),
|
||||
],
|
||||
|
||||
# this MCU has a strange OTG setup
|
||||
'STM32_OTG2_IS_OTG1' : 1,
|
||||
|
||||
# this MCU has M7 instructions and hardware double precision
|
||||
'CORTEX' : 'cortex-m7',
|
||||
'CPU_FLAGS' : '-mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard',
|
||||
|
||||
'DEFINES' : {
|
||||
'HAL_HAVE_HARDWARE_DOUBLE' : '1',
|
||||
'STM32H7' : '1',
|
||||
'AP_FASTBOOT_ENABLED' : '0',
|
||||
}
|
||||
}
|
||||
|
||||
pincount = {
|
||||
'A': 16,
|
||||
'B': 16,
|
||||
'C': 16,
|
||||
'D': 16,
|
||||
'E': 16,
|
||||
'F': 16,
|
||||
'G': 16,
|
||||
'H': 16,
|
||||
'I': 16,
|
||||
'J': 16,
|
||||
'K': 16
|
||||
}
|
||||
|
||||
# no DMA map as we will dynamically allocate DMA channels using the DMAMUX
|
||||
DMA_Map = None
|
||||
|
||||
AltFunction_map = {
|
||||
# format is PIN:FUNCTION : AFNUM
|
||||
# extracted from x.dat
|
||||
"PA0:EVENTOUT" : 15,
|
||||
"PA0:I2S6_WS" : 5,
|
||||
"PA0:SAI2_SD_B" : 10,
|
||||
"PA0:SDMMC2_CMD" : 9,
|
||||
"PA0:SPI6_NSS" : 5,
|
||||
"PA0:TIM15_BKIN" : 4,
|
||||
"PA0:TIM2_CH1" : 1,
|
||||
"PA0:TIM2_ETR" : 1,
|
||||
"PA0:TIM5_CH1" : 2,
|
||||
"PA0:TIM8_ETR" : 3,
|
||||
"PA0:UART4_TX" : 8,
|
||||
"PA0:USART2_CTS" : 7,
|
||||
"PA0:USART2_NSS" : 7,
|
||||
"PA1:EVENTOUT" : 15,
|
||||
"PA1:LPTIM3_OUT" : 3,
|
||||
"PA1:LTDC_R2" : 14,
|
||||
"PA1:OCTOSPIM_P1_DQS" : 11,
|
||||
"PA1:OCTOSPIM_P1_IO3" : 9,
|
||||
"PA1:SAI2_MCLK_B" : 10,
|
||||
"PA1:TIM15_CH1N" : 4,
|
||||
"PA1:TIM2_CH2" : 1,
|
||||
"PA1:TIM5_CH2" : 2,
|
||||
"PA1:UART4_RX" : 8,
|
||||
"PA1:USART2_DE" : 7,
|
||||
"PA1:USART2_RTS" : 7,
|
||||
"PA2:DFSDM2_CKIN1" : 6,
|
||||
"PA2:EVENTOUT" : 15,
|
||||
"PA2:LTDC_R1" : 14,
|
||||
"PA2:MDIOS_MDIO" : 12,
|
||||
"PA2:SAI2_SCK_B" : 8,
|
||||
"PA2:TIM15_CH1" : 4,
|
||||
"PA2:TIM2_CH3" : 1,
|
||||
"PA2:TIM5_CH3" : 2,
|
||||
"PA2:USART2_TX" : 7,
|
||||
"PA3:EVENTOUT" : 15,
|
||||
"PA3:I2S6_MCK" : 5,
|
||||
"PA3:LTDC_B2" : 9,
|
||||
"PA3:LTDC_B5" : 14,
|
||||
"PA3:OCTOSPIM_P1_CLK" : 3,
|
||||
"PA3:TIM15_CH2" : 4,
|
||||
"PA3:TIM2_CH4" : 1,
|
||||
"PA3:TIM5_CH4" : 2,
|
||||
"PA3:USART2_RX" : 7,
|
||||
"PA3:USB_OTG_HS_ULPI_D0" : 10,
|
||||
"PA4:DCMI_HSYNC" : 13,
|
||||
"PA4:EVENTOUT" : 15,
|
||||
"PA4:I2S1_WS" : 5,
|
||||
"PA4:I2S3_WS" : 6,
|
||||
"PA4:I2S6_WS" : 8,
|
||||
"PA4:LTDC_VSYNC" : 14,
|
||||
"PA4:PSSI_DE" : 13,
|
||||
"PA4:SPI1_NSS" : 5,
|
||||
"PA4:SPI3_NSS" : 6,
|
||||
"PA4:SPI6_NSS" : 8,
|
||||
"PA4:TIM5_ETR" : 2,
|
||||
"PA4:USART2_CK" : 7,
|
||||
"PA5:EVENTOUT" : 15,
|
||||
"PA5:I2S1_CK" : 5,
|
||||
"PA5:I2S6_CK" : 8,
|
||||
"PA5:LTDC_R4" : 14,
|
||||
"PA5:PSSI_D14" : 13,
|
||||
"PA5:PWR_NDSTOP2" : 0,
|
||||
"PA5:SPI1_SCK" : 5,
|
||||
"PA5:SPI6_SCK" : 8,
|
||||
"PA5:TIM2_CH1" : 1,
|
||||
"PA5:TIM2_ETR" : 1,
|
||||
"PA5:TIM8_CH1N" : 3,
|
||||
"PA5:USB_OTG_HS_ULPI_CK" : 10,
|
||||
"PA6:DCMI_PIXCLK" : 13,
|
||||
"PA6:EVENTOUT" : 15,
|
||||
"PA6:I2S1_SDI" : 5,
|
||||
"PA6:I2S6_SDI" : 8,
|
||||
"PA6:LTDC_G2" : 14,
|
||||
"PA6:MDIOS_MDC" : 11,
|
||||
"PA6:OCTOSPIM_P1_IO3" : 6,
|
||||
"PA6:PSSI_PDCK" : 13,
|
||||
"PA6:SPI1_MISO" : 5,
|
||||
"PA6:SPI6_MISO" : 8,
|
||||
"PA6:TIM13_CH1" : 9,
|
||||
"PA6:TIM1_BKIN" : 1,
|
||||
"PA6:TIM1_BKIN_COMP1" : 12,
|
||||
"PA6:TIM1_BKIN_COMP2" : 12,
|
||||
"PA6:TIM3_CH1" : 2,
|
||||
"PA6:TIM8_BKIN" : 3,
|
||||
"PA6:TIM8_BKIN_COMP1" : 10,
|
||||
"PA6:TIM8_BKIN_COMP2" : 10,
|
||||
"PA7:DFSDM2_DATIN1" : 4,
|
||||
"PA7:EVENTOUT" : 15,
|
||||
"PA7:FMC_SDNWE" : 12,
|
||||
"PA7:I2S1_SDO" : 5,
|
||||
"PA7:I2S6_SDO" : 8,
|
||||
"PA7:LTDC_VSYNC" : 14,
|
||||
"PA7:OCTOSPIM_P1_IO2" : 10,
|
||||
"PA7:SPI1_MOSI" : 5,
|
||||
"PA7:SPI6_MOSI" : 8,
|
||||
"PA7:TIM14_CH1" : 9,
|
||||
"PA7:TIM1_CH1N" : 1,
|
||||
"PA7:TIM3_CH2" : 2,
|
||||
"PA7:TIM8_CH1N" : 3,
|
||||
"PA8:EVENTOUT" : 15,
|
||||
"PA8:I2C3_SCL" : 4,
|
||||
"PA8:LTDC_B3" : 13,
|
||||
"PA8:LTDC_R6" : 14,
|
||||
"PA8:RCC_MCO_1" : 0,
|
||||
"PA8:TIM1_CH1" : 1,
|
||||
"PA8:TIM8_BKIN2" : 3,
|
||||
"PA8:TIM8_BKIN2_COMP1" : 12,
|
||||
"PA8:TIM8_BKIN2_COMP2" : 12,
|
||||
"PA8:UART7_RX" : 11,
|
||||
"PA8:USART1_CK" : 7,
|
||||
"PA8:USB_OTG_HS_SOF" : 10,
|
||||
"PA9:DCMI_D0" : 13,
|
||||
"PA9:EVENTOUT" : 15,
|
||||
"PA9:I2C3_SMBA" : 4,
|
||||
"PA9:I2S2_CK" : 5,
|
||||
"PA9:LPUART1_TX" : 3,
|
||||
"PA9:LTDC_R5" : 14,
|
||||
"PA9:PSSI_D0" : 13,
|
||||
"PA9:SPI2_SCK" : 5,
|
||||
"PA9:TIM1_CH2" : 1,
|
||||
"PA9:USART1_TX" : 7,
|
||||
"PA10:DCMI_D1" : 13,
|
||||
"PA10:EVENTOUT" : 15,
|
||||
"PA10:LPUART1_RX" : 3,
|
||||
"PA10:LTDC_B1" : 14,
|
||||
"PA10:LTDC_B4" : 12,
|
||||
"PA10:MDIOS_MDIO" : 11,
|
||||
"PA10:PSSI_D1" : 13,
|
||||
"PA10:TIM1_CH3" : 1,
|
||||
"PA10:USART1_RX" : 7,
|
||||
"PA10:USB_OTG_HS_ID" : 10,
|
||||
"PA11:OTG_HS_DM" : 0,
|
||||
"PA11:EVENTOUT" : 15,
|
||||
"PA11:FDCAN1_RX" : 9,
|
||||
"PA11:I2S2_WS" : 5,
|
||||
"PA11:LPUART1_CTS" : 3,
|
||||
"PA11:LTDC_R4" : 14,
|
||||
"PA11:SPI2_NSS" : 5,
|
||||
"PA11:TIM1_CH4" : 1,
|
||||
"PA11:UART4_RX" : 6,
|
||||
"PA11:USART1_CTS" : 7,
|
||||
"PA11:USART1_NSS" : 7,
|
||||
"PA12:OTG_HS_DP" : 0,
|
||||
"PA12:EVENTOUT" : 15,
|
||||
"PA12:FDCAN1_TX" : 9,
|
||||
"PA12:I2S2_CK" : 5,
|
||||
"PA12:LPUART1_DE" : 3,
|
||||
"PA12:LPUART1_RTS" : 3,
|
||||
"PA12:LTDC_R5" : 14,
|
||||
"PA12:SAI2_FS_B" : 8,
|
||||
"PA12:SPI2_SCK" : 5,
|
||||
"PA12:TIM1_ETR" : 1,
|
||||
"PA12:UART4_TX" : 6,
|
||||
"PA12:USART1_DE" : 7,
|
||||
"PA12:USART1_RTS" : 7,
|
||||
"PA12:OTG_FS_DP" : 0,
|
||||
"PA13:JTMS-SWDIO" : 0,
|
||||
"PA13:EVENTOUT" : 15,
|
||||
"PA14:JTCK-SWCLK" : 0,
|
||||
"PA14:EVENTOUT" : 15,
|
||||
"PA15:CEC" : 4,
|
||||
"PA15:DEBUG_JTDI" : 0,
|
||||
"PA15:EVENTOUT" : 15,
|
||||
"PA15:I2S1_WS" : 5,
|
||||
"PA15:I2S3_WS" : 6,
|
||||
"PA15:I2S6_WS" : 7,
|
||||
"PA15:LTDC_B6" : 14,
|
||||
"PA15:LTDC_R3" : 9,
|
||||
"PA15:SPI1_NSS" : 5,
|
||||
"PA15:SPI3_NSS" : 6,
|
||||
"PA15:SPI6_NSS" : 7,
|
||||
"PA15:TIM2_CH1" : 1,
|
||||
"PA15:TIM2_ETR" : 1,
|
||||
"PA15:UART4_DE" : 8,
|
||||
"PA15:UART4_RTS" : 8,
|
||||
"PA15:UART7_TX" : 11,
|
||||
"PB0:DFSDM1_CKOUT" : 6,
|
||||
"PB0:DFSDM2_CKOUT" : 4,
|
||||
"PB0:EVENTOUT" : 15,
|
||||
"PB0:LTDC_G1" : 14,
|
||||
"PB0:LTDC_R3" : 9,
|
||||
"PB0:OCTOSPIM_P1_IO1" : 11,
|
||||
"PB0:TIM1_CH2N" : 1,
|
||||
"PB0:TIM3_CH3" : 2,
|
||||
"PB0:TIM8_CH2N" : 3,
|
||||
"PB0:UART4_CTS" : 8,
|
||||
"PB0:USB_OTG_HS_ULPI_D1" : 10,
|
||||
"PB1:ADC1_INP5" : 0,
|
||||
"PB1:DFSDM1_DATIN1" : 6,
|
||||
"PB1:EVENTOUT" : 15,
|
||||
"PB1:LTDC_G0" : 14,
|
||||
"PB1:LTDC_R6" : 9,
|
||||
"PB1:OCTOSPIM_P1_IO0" : 11,
|
||||
"PB1:TIM1_CH3N" : 1,
|
||||
"PB1:TIM3_CH4" : 2,
|
||||
"PB1:TIM8_CH3N" : 3,
|
||||
"PB1:USB_OTG_HS_ULPI_D2" : 10,
|
||||
"PB2:DFSDM1_CKIN1" : 4,
|
||||
"PB2:EVENTOUT" : 15,
|
||||
"PB2:I2S3_SDO" : 7,
|
||||
"PB2:OCTOSPIM_P1_CLK" : 9,
|
||||
"PB2:OCTOSPIM_P1_DQS" : 10,
|
||||
"PB2:RTC_OUT_ALARM" : 0,
|
||||
"PB2:SAI1_D1" : 2,
|
||||
"PB2:SAI1_SD_A" : 6,
|
||||
"PB2:SPI3_MOSI" : 7,
|
||||
"PB3:CRS_SYNC" : 10,
|
||||
"PB3:DEBUG_JTDO-SWO" : 0,
|
||||
"PB3:EVENTOUT" : 15,
|
||||
"PB3:I2S1_CK" : 5,
|
||||
"PB3:I2S3_CK" : 6,
|
||||
"PB3:I2S6_CK" : 8,
|
||||
"PB3:SDMMC2_D2" : 9,
|
||||
"PB3:SPI1_SCK" : 5,
|
||||
"PB3:SPI3_SCK" : 6,
|
||||
"PB3:SPI6_SCK" : 8,
|
||||
"PB3:TIM2_CH2" : 1,
|
||||
"PB3:UART7_RX" : 11,
|
||||
"PB4:EVENTOUT" : 15,
|
||||
"PB4:I2S1_SDI" : 5,
|
||||
"PB4:I2S2_WS" : 7,
|
||||
"PB4:I2S3_SDI" : 6,
|
||||
"PB4:I2S6_SDI" : 8,
|
||||
"PB4:SDMMC2_D3" : 9,
|
||||
"PB4:SPI1_MISO" : 5,
|
||||
"PB4:SPI2_NSS" : 7,
|
||||
"PB4:SPI3_MISO" : 6,
|
||||
"PB4:SPI6_MISO" : 8,
|
||||
"PB4:TIM16_BKIN" : 1,
|
||||
"PB4:TIM3_CH1" : 2,
|
||||
"PB4:UART7_TX" : 11,
|
||||
"PB5:DCMI_D10" : 13,
|
||||
"PB5:EVENTOUT" : 15,
|
||||
"PB5:FDCAN2_RX" : 9,
|
||||
"PB5:FMC_SDCKE1" : 12,
|
||||
"PB5:I2C1_SMBA" : 4,
|
||||
"PB5:I2C4_SMBA" : 6,
|
||||
"PB5:I2S1_SDO" : 5,
|
||||
"PB5:I2S3_SDO" : 7,
|
||||
"PB5:I2S6_SDO" : 8,
|
||||
"PB5:LTDC_B5" : 11,
|
||||
"PB5:PSSI_D10" : 13,
|
||||
"PB5:SPI1_MOSI" : 5,
|
||||
"PB5:SPI3_MOSI" : 7,
|
||||
"PB5:SPI6_MOSI" : 8,
|
||||
"PB5:TIM17_BKIN" : 1,
|
||||
"PB5:TIM3_CH2" : 2,
|
||||
"PB5:UART5_RX" : 14,
|
||||
"PB5:USB_OTG_HS_ULPI_D7" : 10,
|
||||
"PB6:CEC" : 5,
|
||||
"PB6:DCMI_D5" : 13,
|
||||
"PB6:DFSDM1_DATIN5" : 11,
|
||||
"PB6:EVENTOUT" : 15,
|
||||
"PB6:FDCAN2_TX" : 9,
|
||||
"PB6:FMC_SDNE1" : 12,
|
||||
"PB6:I2C1_SCL" : 4,
|
||||
"PB6:I2C4_SCL" : 6,
|
||||
"PB6:LPUART1_TX" : 8,
|
||||
"PB6:OCTOSPIM_P1_NCS" : 10,
|
||||
"PB6:PSSI_D5" : 13,
|
||||
"PB6:TIM16_CH1N" : 1,
|
||||
"PB6:TIM4_CH1" : 2,
|
||||
"PB6:UART5_TX" : 14,
|
||||
"PB6:USART1_TX" : 7,
|
||||
"PB7:DCMI_VSYNC" : 13,
|
||||
"PB7:DFSDM1_CKIN5" : 11,
|
||||
"PB7:EVENTOUT" : 15,
|
||||
"PB7:FMC_NL" : 12,
|
||||
"PB7:I2C1_SDA" : 4,
|
||||
"PB7:I2C4_SDA" : 6,
|
||||
"PB7:LPUART1_RX" : 8,
|
||||
"PB7:PSSI_RDY" : 13,
|
||||
"PB7:TIM17_CH1N" : 1,
|
||||
"PB7:TIM4_CH2" : 2,
|
||||
"PB7:USART1_RX" : 7,
|
||||
"PB8:DCMI_D6" : 13,
|
||||
"PB8:DFSDM1_CKIN7" : 3,
|
||||
"PB8:EVENTOUT" : 15,
|
||||
"PB8:FDCAN1_RX" : 9,
|
||||
"PB8:I2C1_SCL" : 4,
|
||||
"PB8:I2C4_SCL" : 6,
|
||||
"PB8:LTDC_B6" : 14,
|
||||
"PB8:PSSI_D6" : 13,
|
||||
"PB8:SDMMC1_CKIN" : 7,
|
||||
"PB8:SDMMC1_D4" : 12,
|
||||
"PB8:SDMMC2_D4" : 10,
|
||||
"PB8:TIM16_CH1" : 1,
|
||||
"PB8:TIM4_CH3" : 2,
|
||||
"PB8:UART4_RX" : 8,
|
||||
"PB9:DCMI_D7" : 13,
|
||||
"PB9:DFSDM1_DATIN7" : 3,
|
||||
"PB9:EVENTOUT" : 15,
|
||||
"PB9:FDCAN1_TX" : 9,
|
||||
"PB9:I2C1_SDA" : 4,
|
||||
"PB9:I2C4_SDA" : 6,
|
||||
"PB9:I2C4_SMBA" : 11,
|
||||
"PB9:I2S2_WS" : 5,
|
||||
"PB9:LTDC_B7" : 14,
|
||||
"PB9:PSSI_D7" : 13,
|
||||
"PB9:SDMMC1_CDIR" : 7,
|
||||
"PB9:SDMMC1_D5" : 12,
|
||||
"PB9:SDMMC2_D5" : 10,
|
||||
"PB9:SPI2_NSS" : 5,
|
||||
"PB9:TIM17_CH1" : 1,
|
||||
"PB9:TIM4_CH4" : 2,
|
||||
"PB9:UART4_TX" : 8,
|
||||
"PB10:DFSDM1_DATIN7" : 6,
|
||||
"PB10:EVENTOUT" : 15,
|
||||
"PB10:I2C2_SCL" : 4,
|
||||
"PB10:I2S2_CK" : 5,
|
||||
"PB10:LPTIM2_IN1" : 3,
|
||||
"PB10:LTDC_G4" : 14,
|
||||
"PB10:OCTOSPIM_P1_NCS" : 9,
|
||||
"PB10:SPI2_SCK" : 5,
|
||||
"PB10:TIM2_CH3" : 1,
|
||||
"PB10:USART3_TX" : 7,
|
||||
"PB10:USB_OTG_HS_ULPI_D3" : 10,
|
||||
"PB11:DFSDM1_CKIN7" : 6,
|
||||
"PB11:EVENTOUT" : 15,
|
||||
"PB11:I2C2_SDA" : 4,
|
||||
"PB11:LPTIM2_ETR" : 3,
|
||||
"PB11:LTDC_G5" : 14,
|
||||
"PB11:TIM2_CH4" : 1,
|
||||
"PB11:USART3_RX" : 7,
|
||||
"PB11:USB_OTG_HS_ULPI_D4" : 10,
|
||||
"PB12:DFSDM1_DATIN1" : 6,
|
||||
"PB12:DFSDM2_DATIN1" : 11,
|
||||
"PB12:EVENTOUT" : 15,
|
||||
"PB12:FDCAN2_RX" : 9,
|
||||
"PB12:I2C2_SMBA" : 4,
|
||||
"PB12:I2S2_WS" : 5,
|
||||
"PB12:OCTOSPIM_P1_NCLK" : 3,
|
||||
"PB12:SPI2_NSS" : 5,
|
||||
"PB12:TIM1_BKIN" : 1,
|
||||
"PB12:TIM1_BKIN_COMP1" : 13,
|
||||
"PB12:TIM1_BKIN_COMP2" : 13,
|
||||
"PB12:UART5_RX" : 14,
|
||||
"PB12:USART3_CK" : 7,
|
||||
"PB12:USB_OTG_HS_ULPI_D5" : 10,
|
||||
"PB13:DCMI_D2" : 13,
|
||||
"PB13:DFSDM1_CKIN1" : 6,
|
||||
"PB13:DFSDM2_CKIN1" : 4,
|
||||
"PB13:EVENTOUT" : 15,
|
||||
"PB13:FDCAN2_TX" : 9,
|
||||
"PB13:I2S2_CK" : 5,
|
||||
"PB13:LPTIM2_OUT" : 3,
|
||||
"PB13:PSSI_D2" : 13,
|
||||
"PB13:SDMMC1_D0" : 12,
|
||||
"PB13:SPI2_SCK" : 5,
|
||||
"PB13:TIM1_CH1N" : 1,
|
||||
"PB13:UART5_TX" : 14,
|
||||
"PB13:USART3_CTS" : 7,
|
||||
"PB13:USART3_NSS" : 7,
|
||||
"PB13:USB_OTG_HS_ULPI_D6" : 10,
|
||||
"PB14:DFSDM1_DATIN2" : 6,
|
||||
"PB14:EVENTOUT" : 15,
|
||||
"PB14:I2S2_SDI" : 5,
|
||||
"PB14:LTDC_CLK" : 14,
|
||||
"PB14:SDMMC2_D0" : 9,
|
||||
"PB14:SPI2_MISO" : 5,
|
||||
"PB14:TIM12_CH1" : 2,
|
||||
"PB14:TIM1_CH2N" : 1,
|
||||
"PB14:TIM8_CH2N" : 3,
|
||||
"PB14:UART4_DE" : 8,
|
||||
"PB14:UART4_RTS" : 8,
|
||||
"PB14:USART1_TX" : 4,
|
||||
"PB14:USART3_DE" : 7,
|
||||
"PB14:USART3_RTS" : 7,
|
||||
"PB15:DFSDM1_CKIN2" : 6,
|
||||
"PB15:EVENTOUT" : 15,
|
||||
"PB15:I2S2_SDO" : 5,
|
||||
"PB15:LTDC_G7" : 14,
|
||||
"PB15:RTC_REFIN" : 0,
|
||||
"PB15:SDMMC2_D1" : 9,
|
||||
"PB15:SPI2_MOSI" : 5,
|
||||
"PB15:TIM12_CH2" : 2,
|
||||
"PB15:TIM1_CH3N" : 1,
|
||||
"PB15:TIM8_CH3N" : 3,
|
||||
"PB15:UART4_CTS" : 8,
|
||||
"PB15:USART1_RX" : 4,
|
||||
"PC0:DFSDM1_CKIN0" : 3,
|
||||
"PC0:DFSDM1_DATIN4" : 6,
|
||||
"PC0:EVENTOUT" : 15,
|
||||
"PC0:FMC_A25" : 9,
|
||||
"PC0:FMC_SDNWE" : 12,
|
||||
"PC0:LTDC_G2" : 11,
|
||||
"PC0:LTDC_R5" : 14,
|
||||
"PC0:SAI2_FS_B" : 8,
|
||||
"PC0:USB_OTG_HS_ULPI_STP" : 10,
|
||||
"PC1:DEBUG_TRACED0" : 0,
|
||||
"PC1:DFSDM1_CKIN4" : 4,
|
||||
"PC1:DFSDM1_DATIN0" : 3,
|
||||
"PC1:EVENTOUT" : 15,
|
||||
"PC1:I2S2_SDO" : 5,
|
||||
"PC1:LTDC_G5" : 14,
|
||||
"PC1:MDIOS_MDC" : 12,
|
||||
"PC1:OCTOSPIM_P1_IO4" : 10,
|
||||
"PC1:SAI1_D1" : 2,
|
||||
"PC1:SAI1_SD_A" : 6,
|
||||
"PC1:SDMMC2_CK" : 9,
|
||||
"PC1:SPI2_MOSI" : 5,
|
||||
"PC2:DFSDM1_CKIN1" : 3,
|
||||
"PC2:DFSDM1_CKOUT" : 6,
|
||||
"PC2:EVENTOUT" : 15,
|
||||
"PC2:FMC_SDNE0" : 12,
|
||||
"PC2:I2S2_SDI" : 5,
|
||||
"PC2:OCTOSPIM_P1_IO2" : 9,
|
||||
"PC2:OCTOSPIM_P1_IO5" : 11,
|
||||
"PC2:PWR_CSTOP" : 0,
|
||||
"PC2:SPI2_MISO" : 5,
|
||||
"PC2:USB_OTG_HS_ULPI_DIR" : 10,
|
||||
"PC3:DFSDM1_DATIN1" : 3,
|
||||
"PC3:EVENTOUT" : 15,
|
||||
"PC3:FMC_SDCKE0" : 12,
|
||||
"PC3:I2S2_SDO" : 5,
|
||||
"PC3:OCTOSPIM_P1_IO0" : 9,
|
||||
"PC3:OCTOSPIM_P1_IO6" : 11,
|
||||
"PC3:PWR_CSLEEP" : 0,
|
||||
"PC3:SPI2_MOSI" : 5,
|
||||
"PC3:USB_OTG_HS_ULPI_NXT" : 10,
|
||||
"PC4:ADC1_INP4" : 0,
|
||||
"PC4:DFSDM1_CKIN2" : 3,
|
||||
"PC4:EVENTOUT" : 15,
|
||||
"PC4:FMC_SDNE0" : 12,
|
||||
"PC4:I2S1_MCK" : 5,
|
||||
"PC4:LTDC_R7" : 14,
|
||||
"PC5:COMP1_OUT" : 13,
|
||||
"PC5:DFSDM1_DATIN2" : 3,
|
||||
"PC5:EVENTOUT" : 15,
|
||||
"PC5:FMC_SDCKE0" : 12,
|
||||
"PC5:LTDC_DE" : 14,
|
||||
"PC5:OCTOSPIM_P1_DQS" : 10,
|
||||
"PC5:PSSI_D15" : 4,
|
||||
"PC5:SAI1_D3" : 2,
|
||||
"PC6:DCMI_D0" : 13,
|
||||
"PC6:DFSDM1_CKIN3" : 4,
|
||||
"PC6:EVENTOUT" : 15,
|
||||
"PC6:FMC_NWAIT" : 9,
|
||||
"PC6:I2S2_MCK" : 5,
|
||||
"PC6:LTDC_HSYNC" : 14,
|
||||
"PC6:PSSI_D0" : 13,
|
||||
"PC6:SDMMC1_D0DIR" : 8,
|
||||
"PC6:SDMMC1_D6" : 12,
|
||||
"PC6:SDMMC2_D6" : 10,
|
||||
"PC6:TIM3_CH1" : 2,
|
||||
"PC6:TIM8_CH1" : 3,
|
||||
"PC6:USART6_TX" : 7,
|
||||
"PC7:DCMI_D1" : 13,
|
||||
"PC7:DEBUG_TRGIO" : 0,
|
||||
"PC7:DFSDM1_DATIN3" : 4,
|
||||
"PC7:EVENTOUT" : 15,
|
||||
"PC7:FMC_NE1" : 9,
|
||||
"PC7:I2S3_MCK" : 6,
|
||||
"PC7:LTDC_G6" : 14,
|
||||
"PC7:PSSI_D1" : 13,
|
||||
"PC7:SDMMC1_D123DIR" : 8,
|
||||
"PC7:SDMMC1_D7" : 12,
|
||||
"PC7:SDMMC2_D7" : 10,
|
||||
"PC7:SWPMI1_TX" : 11,
|
||||
"PC7:TIM3_CH2" : 2,
|
||||
"PC7:TIM8_CH2" : 3,
|
||||
"PC7:USART6_RX" : 7,
|
||||
"PC8:DCMI_D2" : 13,
|
||||
"PC8:DEBUG_TRACED1" : 0,
|
||||
"PC8:EVENTOUT" : 15,
|
||||
"PC8:FMC_INT" : 10,
|
||||
"PC8:FMC_NCE" : 9,
|
||||
"PC8:FMC_NE2" : 9,
|
||||
"PC8:PSSI_D2" : 13,
|
||||
"PC8:SDMMC1_D0" : 12,
|
||||
"PC8:SWPMI1_RX" : 11,
|
||||
"PC8:TIM3_CH3" : 2,
|
||||
"PC8:TIM8_CH3" : 3,
|
||||
"PC8:UART5_DE" : 8,
|
||||
"PC8:UART5_RTS" : 8,
|
||||
"PC8:USART6_CK" : 7,
|
||||
"PC9:DCMI_D3" : 13,
|
||||
"PC9:EVENTOUT" : 15,
|
||||
"PC9:I2C3_SDA" : 4,
|
||||
"PC9:I2S_CKIN" : 5,
|
||||
"PC9:LTDC_B2" : 14,
|
||||
"PC9:LTDC_G3" : 10,
|
||||
"PC9:OCTOSPIM_P1_IO0" : 9,
|
||||
"PC9:PSSI_D3" : 13,
|
||||
"PC9:RCC_MCO_2" : 0,
|
||||
"PC9:SDMMC1_D1" : 12,
|
||||
"PC9:SWPMI1_SUSPEND" : 11,
|
||||
"PC9:TIM3_CH4" : 2,
|
||||
"PC9:TIM8_CH4" : 3,
|
||||
"PC9:UART5_CTS" : 8,
|
||||
"PC10:DCMI_D8" : 13,
|
||||
"PC10:DFSDM1_CKIN5" : 3,
|
||||
"PC10:DFSDM2_CKIN0" : 4,
|
||||
"PC10:EVENTOUT" : 15,
|
||||
"PC10:I2S3_CK" : 6,
|
||||
"PC10:LTDC_B1" : 10,
|
||||
"PC10:LTDC_R2" : 14,
|
||||
"PC10:OCTOSPIM_P1_IO1" : 9,
|
||||
"PC10:PSSI_D8" : 13,
|
||||
"PC10:SDMMC1_D2" : 12,
|
||||
"PC10:SPI3_SCK" : 6,
|
||||
"PC10:SWPMI1_RX" : 11,
|
||||
"PC10:UART4_TX" : 8,
|
||||
"PC10:USART3_TX" : 7,
|
||||
"PC11:DCMI_D4" : 13,
|
||||
"PC11:DFSDM1_DATIN5" : 3,
|
||||
"PC11:DFSDM2_DATIN0" : 4,
|
||||
"PC11:EVENTOUT" : 15,
|
||||
"PC11:I2S3_SDI" : 6,
|
||||
"PC11:LTDC_B4" : 14,
|
||||
"PC11:OCTOSPIM_P1_NCS" : 9,
|
||||
"PC11:PSSI_D4" : 13,
|
||||
"PC11:SDMMC1_D3" : 12,
|
||||
"PC11:SPI3_MISO" : 6,
|
||||
"PC11:UART4_RX" : 8,
|
||||
"PC11:USART3_RX" : 7,
|
||||
"PC12:DCMI_D9" : 13,
|
||||
"PC12:DEBUG_TRACED3" : 0,
|
||||
"PC12:DFSDM2_CKOUT" : 4,
|
||||
"PC12:EVENTOUT" : 15,
|
||||
"PC12:I2S3_SDO" : 6,
|
||||
"PC12:I2S6_CK" : 5,
|
||||
"PC12:LTDC_R6" : 14,
|
||||
"PC12:PSSI_D9" : 13,
|
||||
"PC12:SDMMC1_CK" : 12,
|
||||
"PC12:SPI3_MOSI" : 6,
|
||||
"PC12:SPI6_SCK" : 5,
|
||||
"PC12:TIM15_CH1" : 2,
|
||||
"PC12:UART5_TX" : 8,
|
||||
"PC12:USART3_CK" : 7,
|
||||
"PC13:EVENTOUT" : 15,
|
||||
"PC14:EVENTOUT" : 15,
|
||||
"PC15:EVENTOUT" : 15,
|
||||
"PD0:DFSDM1_CKIN6" : 3,
|
||||
"PD0:EVENTOUT" : 15,
|
||||
"PD0:CAN1_RX" : 9,
|
||||
"PD0:FMC_D2" : 12,
|
||||
"PD0:FMC_DA2" : 12,
|
||||
"PD0:LTDC_B1" : 14,
|
||||
"PD0:UART4_RX" : 8,
|
||||
"PD0:UART9_CTS" : 11,
|
||||
"PD1:DFSDM1_DATIN6" : 3,
|
||||
"PD1:EVENTOUT" : 15,
|
||||
"PD1:CAN1_TX" : 9,
|
||||
"PD1:FMC_D3" : 12,
|
||||
"PD1:FMC_DA3" : 12,
|
||||
"PD1:UART4_TX" : 8,
|
||||
"PD2:DCMI_D11" : 13,
|
||||
"PD2:DEBUG_TRACED2" : 0,
|
||||
"PD2:EVENTOUT" : 15,
|
||||
"PD2:LTDC_B2" : 14,
|
||||
"PD2:LTDC_B7" : 9,
|
||||
"PD2:PSSI_D11" : 13,
|
||||
"PD2:SDMMC1_CMD" : 12,
|
||||
"PD2:TIM15_BKIN" : 4,
|
||||
"PD2:TIM3_ETR" : 2,
|
||||
"PD2:UART5_RX" : 8,
|
||||
"PD3:DCMI_D5" : 13,
|
||||
"PD3:DFSDM1_CKOUT" : 3,
|
||||
"PD3:EVENTOUT" : 15,
|
||||
"PD3:FMC_CLK" : 12,
|
||||
"PD3:I2S2_CK" : 5,
|
||||
"PD3:LTDC_G7" : 14,
|
||||
"PD3:PSSI_D5" : 13,
|
||||
"PD3:SPI2_SCK" : 5,
|
||||
"PD3:USART2_CTS" : 7,
|
||||
"PD3:USART2_NSS" : 7,
|
||||
"PD4:EVENTOUT" : 15,
|
||||
"PD4:FMC_NOE" : 12,
|
||||
"PD4:OCTOSPIM_P1_IO4" : 10,
|
||||
"PD4:USART2_DE" : 7,
|
||||
"PD4:USART2_RTS" : 7,
|
||||
"PD5:EVENTOUT" : 15,
|
||||
"PD5:FMC_NWE" : 12,
|
||||
"PD5:OCTOSPIM_P1_IO5" : 10,
|
||||
"PD5:USART2_TX" : 7,
|
||||
"PD6:DCMI_D10" : 13,
|
||||
"PD6:DFSDM1_CKIN4" : 3,
|
||||
"PD6:DFSDM1_DATIN1" : 4,
|
||||
"PD6:EVENTOUT" : 15,
|
||||
"PD6:FMC_NWAIT" : 12,
|
||||
"PD6:I2S3_SDO" : 5,
|
||||
"PD6:LTDC_B2" : 14,
|
||||
"PD6:OCTOSPIM_P1_IO6" : 10,
|
||||
"PD6:PSSI_D10" : 13,
|
||||
"PD6:SAI1_D1" : 2,
|
||||
"PD6:SAI1_SD_A" : 6,
|
||||
"PD6:SDMMC2_CK" : 11,
|
||||
"PD6:SPI3_MOSI" : 5,
|
||||
"PD6:USART2_RX" : 7,
|
||||
"PD7:DFSDM1_CKIN1" : 6,
|
||||
"PD7:DFSDM1_DATIN4" : 3,
|
||||
"PD7:EVENTOUT" : 15,
|
||||
"PD7:FMC_NE1" : 12,
|
||||
"PD7:I2S1_SDO" : 5,
|
||||
"PD7:OCTOSPIM_P1_IO7" : 10,
|
||||
"PD7:SDMMC2_CMD" : 11,
|
||||
"PD7:SPI1_MOSI" : 5,
|
||||
"PD7:USART2_CK" : 7,
|
||||
"PD8:DFSDM1_CKIN3" : 3,
|
||||
"PD8:EVENTOUT" : 15,
|
||||
"PD8:FMC_D13" : 12,
|
||||
"PD8:FMC_DA13" : 12,
|
||||
"PD8:USART3_TX" : 7,
|
||||
"PD9:DFSDM1_DATIN3" : 3,
|
||||
"PD9:EVENTOUT" : 15,
|
||||
"PD9:FMC_D14" : 12,
|
||||
"PD9:FMC_DA14" : 12,
|
||||
"PD9:USART3_RX" : 7,
|
||||
"PD10:DFSDM1_CKOUT" : 3,
|
||||
"PD10:DFSDM2_CKOUT" : 4,
|
||||
"PD10:EVENTOUT" : 15,
|
||||
"PD10:FMC_D15" : 12,
|
||||
"PD10:FMC_DA15" : 12,
|
||||
"PD10:LTDC_B3" : 14,
|
||||
"PD10:USART3_CK" : 7,
|
||||
"PD11:EVENTOUT" : 15,
|
||||
"PD11:FMC_A16" : 12,
|
||||
"PD11:FMC_CLE" : 12,
|
||||
"PD11:I2C4_SMBA" : 4,
|
||||
"PD11:LPTIM2_IN2" : 3,
|
||||
"PD11:OCTOSPIM_P1_IO0" : 9,
|
||||
"PD11:SAI2_SD_A" : 10,
|
||||
"PD11:USART3_CTS" : 7,
|
||||
"PD11:USART3_NSS" : 7,
|
||||
"PD12:DCMI_D12" : 13,
|
||||
"PD12:EVENTOUT" : 15,
|
||||
"PD12:FMC_A17" : 12,
|
||||
"PD12:FMC_ALE" : 12,
|
||||
"PD12:I2C4_SCL" : 4,
|
||||
"PD12:LPTIM1_IN1" : 1,
|
||||
"PD12:LPTIM2_IN1" : 3,
|
||||
"PD12:OCTOSPIM_P1_IO1" : 9,
|
||||
"PD12:PSSI_D12" : 13,
|
||||
"PD12:SAI2_FS_A" : 10,
|
||||
"PD12:TIM4_CH1" : 2,
|
||||
"PD12:USART3_DE" : 7,
|
||||
"PD12:USART3_RTS" : 7,
|
||||
"PD13:DCMI_D13" : 13,
|
||||
"PD13:EVENTOUT" : 15,
|
||||
"PD13:FMC_A18" : 12,
|
||||
"PD13:I2C4_SDA" : 4,
|
||||
"PD13:LPTIM1_OUT" : 1,
|
||||
"PD13:OCTOSPIM_P1_IO3" : 9,
|
||||
"PD13:PSSI_D13" : 13,
|
||||
"PD13:SAI2_SCK_A" : 10,
|
||||
"PD13:TIM4_CH2" : 2,
|
||||
"PD13:UART9_DE" : 11,
|
||||
"PD13:UART9_RTS" : 11,
|
||||
"PD14:EVENTOUT" : 15,
|
||||
"PD14:FMC_D0" : 12,
|
||||
"PD14:FMC_DA0" : 12,
|
||||
"PD14:TIM4_CH3" : 2,
|
||||
"PD14:UART8_CTS" : 8,
|
||||
"PD14:UART9_RX" : 11,
|
||||
"PD15:EVENTOUT" : 15,
|
||||
"PD15:FMC_D1" : 12,
|
||||
"PD15:FMC_DA1" : 12,
|
||||
"PD15:TIM4_CH4" : 2,
|
||||
"PD15:UART8_DE" : 8,
|
||||
"PD15:UART8_RTS" : 8,
|
||||
"PD15:UART9_TX" : 11,
|
||||
"PE0:DCMI_D2" : 13,
|
||||
"PE0:EVENTOUT" : 15,
|
||||
"PE0:FMC_NBL0" : 12,
|
||||
"PE0:LPTIM1_ETR" : 1,
|
||||
"PE0:LPTIM2_ETR" : 4,
|
||||
"PE0:LTDC_R0" : 14,
|
||||
"PE0:PSSI_D2" : 13,
|
||||
"PE0:SAI2_MCLK_A" : 10,
|
||||
"PE0:TIM4_ETR" : 2,
|
||||
"PE0:UART8_RX" : 8,
|
||||
"PE1:DCMI_D3" : 13,
|
||||
"PE1:EVENTOUT" : 15,
|
||||
"PE1:FMC_NBL1" : 12,
|
||||
"PE1:LPTIM1_IN2" : 1,
|
||||
"PE1:LTDC_R6" : 14,
|
||||
"PE1:PSSI_D3" : 13,
|
||||
"PE1:UART8_TX" : 8,
|
||||
"PE2:DEBUG_TRACECLK" : 0,
|
||||
"PE2:EVENTOUT" : 15,
|
||||
"PE2:FMC_A23" : 12,
|
||||
"PE2:OCTOSPIM_P1_IO2" : 9,
|
||||
"PE2:SAI1_CK1" : 2,
|
||||
"PE2:SAI1_MCLK_A" : 6,
|
||||
"PE2:SPI4_SCK" : 5,
|
||||
"PE2:USART10_RX" : 11,
|
||||
"PE3:DEBUG_TRACED0" : 0,
|
||||
"PE3:EVENTOUT" : 15,
|
||||
"PE3:FMC_A19" : 12,
|
||||
"PE3:SAI1_SD_B" : 6,
|
||||
"PE3:TIM15_BKIN" : 4,
|
||||
"PE3:USART10_TX" : 11,
|
||||
"PE4:DCMI_D4" : 13,
|
||||
"PE4:DEBUG_TRACED1" : 0,
|
||||
"PE4:DFSDM1_DATIN3" : 3,
|
||||
"PE4:EVENTOUT" : 15,
|
||||
"PE4:FMC_A20" : 12,
|
||||
"PE4:LTDC_B0" : 14,
|
||||
"PE4:PSSI_D4" : 13,
|
||||
"PE4:SAI1_D2" : 2,
|
||||
"PE4:SAI1_FS_A" : 6,
|
||||
"PE4:SPI4_NSS" : 5,
|
||||
"PE4:TIM15_CH1N" : 4,
|
||||
"PE5:DCMI_D6" : 13,
|
||||
"PE5:DEBUG_TRACED2" : 0,
|
||||
"PE5:DFSDM1_CKIN3" : 3,
|
||||
"PE5:EVENTOUT" : 15,
|
||||
"PE5:FMC_A21" : 12,
|
||||
"PE5:LTDC_G0" : 14,
|
||||
"PE5:PSSI_D6" : 13,
|
||||
"PE5:SAI1_CK2" : 2,
|
||||
"PE5:SAI1_SCK_A" : 6,
|
||||
"PE5:SPI4_MISO" : 5,
|
||||
"PE5:TIM15_CH1" : 4,
|
||||
"PE6:DCMI_D7" : 13,
|
||||
"PE6:DEBUG_TRACED3" : 0,
|
||||
"PE6:EVENTOUT" : 15,
|
||||
"PE6:FMC_A22" : 12,
|
||||
"PE6:LTDC_G1" : 14,
|
||||
"PE6:PSSI_D7" : 13,
|
||||
"PE6:SAI1_D1" : 2,
|
||||
"PE6:SAI1_SD_A" : 6,
|
||||
"PE6:SAI2_MCLK_B" : 10,
|
||||
"PE6:SPI4_MOSI" : 5,
|
||||
"PE6:TIM15_CH2" : 4,
|
||||
"PE6:TIM1_BKIN2" : 1,
|
||||
"PE6:TIM1_BKIN2_COMP1" : 11,
|
||||
"PE6:TIM1_BKIN2_COMP2" : 11,
|
||||
"PE7:DFSDM1_DATIN2" : 3,
|
||||
"PE7:EVENTOUT" : 15,
|
||||
"PE7:FMC_D4" : 12,
|
||||
"PE7:FMC_DA4" : 12,
|
||||
"PE7:OCTOSPIM_P1_IO4" : 10,
|
||||
"PE7:TIM1_ETR" : 1,
|
||||
"PE7:UART7_RX" : 7,
|
||||
"PE8:COMP2_OUT" : 13,
|
||||
"PE8:DFSDM1_CKIN2" : 3,
|
||||
"PE8:EVENTOUT" : 15,
|
||||
"PE8:FMC_D5" : 12,
|
||||
"PE8:FMC_DA5" : 12,
|
||||
"PE8:OCTOSPIM_P1_IO5" : 10,
|
||||
"PE8:TIM1_CH1N" : 1,
|
||||
"PE8:UART7_TX" : 7,
|
||||
"PE9:DFSDM1_CKOUT" : 3,
|
||||
"PE9:EVENTOUT" : 15,
|
||||
"PE9:FMC_D6" : 12,
|
||||
"PE9:FMC_DA6" : 12,
|
||||
"PE9:OCTOSPIM_P1_IO6" : 10,
|
||||
"PE9:TIM1_CH1" : 1,
|
||||
"PE9:UART7_DE" : 7,
|
||||
"PE9:UART7_RTS" : 7,
|
||||
"PE10:DFSDM1_DATIN4" : 3,
|
||||
"PE10:EVENTOUT" : 15,
|
||||
"PE10:FMC_D7" : 12,
|
||||
"PE10:FMC_DA7" : 12,
|
||||
"PE10:OCTOSPIM_P1_IO7" : 10,
|
||||
"PE10:TIM1_CH2N" : 1,
|
||||
"PE10:UART7_CTS" : 7,
|
||||
"PE11:DFSDM1_CKIN4" : 3,
|
||||
"PE11:EVENTOUT" : 15,
|
||||
"PE11:FMC_D8" : 12,
|
||||
"PE11:FMC_DA8" : 12,
|
||||
"PE11:LTDC_G3" : 14,
|
||||
"PE11:OCTOSPIM_P1_NCS" : 11,
|
||||
"PE11:SAI2_SD_B" : 10,
|
||||
"PE11:SPI4_NSS" : 5,
|
||||
"PE11:TIM1_CH2" : 1,
|
||||
"PE12:COMP1_OUT" : 13,
|
||||
"PE12:DFSDM1_DATIN5" : 3,
|
||||
"PE12:EVENTOUT" : 15,
|
||||
"PE12:FMC_D9" : 12,
|
||||
"PE12:FMC_DA9" : 12,
|
||||
"PE12:LTDC_B4" : 14,
|
||||
"PE12:SAI2_SCK_B" : 10,
|
||||
"PE12:SPI4_SCK" : 5,
|
||||
"PE12:TIM1_CH3N" : 1,
|
||||
"PE13:COMP2_OUT" : 13,
|
||||
"PE13:DFSDM1_CKIN5" : 3,
|
||||
"PE13:EVENTOUT" : 15,
|
||||
"PE13:FMC_D10" : 12,
|
||||
"PE13:FMC_DA10" : 12,
|
||||
"PE13:LTDC_DE" : 14,
|
||||
"PE13:SAI2_FS_B" : 10,
|
||||
"PE13:SPI4_MISO" : 5,
|
||||
"PE13:TIM1_CH3" : 1,
|
||||
"PE14:EVENTOUT" : 15,
|
||||
"PE14:FMC_D11" : 12,
|
||||
"PE14:FMC_DA11" : 12,
|
||||
"PE14:LTDC_CLK" : 14,
|
||||
"PE14:SAI2_MCLK_B" : 10,
|
||||
"PE14:SPI4_MOSI" : 5,
|
||||
"PE14:TIM1_CH4" : 1,
|
||||
"PE15:EVENTOUT" : 15,
|
||||
"PE15:FMC_D12" : 12,
|
||||
"PE15:FMC_DA12" : 12,
|
||||
"PE15:LTDC_R7" : 14,
|
||||
"PE15:TIM1_BKIN" : 1,
|
||||
"PE15:TIM1_BKIN_COMP1" : 13,
|
||||
"PE15:TIM1_BKIN_COMP2" : 13,
|
||||
"PE15:USART10_CK" : 11,
|
||||
"PH0:EVENTOUT" : 15,
|
||||
"PH0:RCC_OSC_IN" : 0,
|
||||
"PH1:EVENTOUT" : 15,
|
||||
"PH1:RCC_OSC_OUT" : 0,
|
||||
}
|
||||
|
||||
ADC1_map = {
|
||||
# format is PIN : ADC1_CHAN
|
||||
"PF11" : 2,
|
||||
"PA6" : 3,
|
||||
"PC4" : 4,
|
||||
"PB1" : 5,
|
||||
"PF12" : 6,
|
||||
"PA7" : 7,
|
||||
"PC5" : 8,
|
||||
"PB0" : 9,
|
||||
"PC0" : 10,
|
||||
"PC1" : 11,
|
||||
"PC2" : 12,
|
||||
"PC3" : 13,
|
||||
"PA2" : 14,
|
||||
"PA3" : 15,
|
||||
"PA0" : 16,
|
||||
"PA1" : 17,
|
||||
"PA4" : 18,
|
||||
"PA5" : 19,
|
||||
}
|
||||
|
||||
ADC2_map = {
|
||||
"PF13" : 2,
|
||||
"PA6" : 3,
|
||||
"PC4" : 4,
|
||||
"PB1" : 5,
|
||||
"PF14" : 6,
|
||||
"PA7" : 7,
|
||||
"PC5" : 8,
|
||||
"PB0" : 9,
|
||||
"PC0" : 10,
|
||||
"PC1" : 11,
|
||||
"PC2" : 12,
|
||||
"PC3" : 13,
|
||||
"PA2" : 14,
|
||||
"PA3" : 15,
|
||||
"N/A" : 16,
|
||||
"N/A" : 17,
|
||||
"PA4" : 18,
|
||||
"PA5" : 19,
|
||||
}
|
||||
|
||||
ADC3_map = {
|
||||
"PF9" : 2,
|
||||
"PF7" : 3,
|
||||
"PF5" : 4,
|
||||
"PF3" : 5,
|
||||
"PF10" : 6,
|
||||
"PF8" : 7,
|
||||
"PF6" : 8,
|
||||
"PF4" : 9,
|
||||
"PH2" : 13,
|
||||
"PH3" : 14,
|
||||
"PH4" : 15,
|
||||
"PH5" : 16,
|
||||
}
|
@ -776,6 +776,7 @@ class ChibiOSHWDef(object):
|
||||
|
||||
def get_flash_pages_sizes(self):
|
||||
mcu_series = self.mcu_series
|
||||
mcu_type = self.mcu_type
|
||||
if mcu_series.startswith('STM32F4') or mcu_series.startswith('CKS32F4'):
|
||||
if self.get_config('FLASH_SIZE_KB', type=int) == 512:
|
||||
return [16, 16, 16, 16, 64, 128, 128, 128]
|
||||
@ -802,6 +803,8 @@ class ChibiOSHWDef(object):
|
||||
256, 256, 256, 256]
|
||||
else:
|
||||
raise Exception("Unsupported flash size %u" % self.get_config('FLASH_SIZE_KB', type=int))
|
||||
elif mcu_type.startswith('STM32H7A'):
|
||||
return [8] * (self.get_config('FLASH_SIZE_KB', type=int)//8)
|
||||
elif mcu_series.startswith('STM32H7'):
|
||||
return [128] * (self.get_config('FLASH_SIZE_KB', type=int)//128)
|
||||
elif mcu_series.startswith('STM32F100') or mcu_series.startswith('STM32F103'):
|
||||
@ -873,6 +876,8 @@ class ChibiOSHWDef(object):
|
||||
storage_flash_page = self.get_storage_flash_page()
|
||||
pages = self.get_flash_pages_sizes()
|
||||
page_size = pages[storage_flash_page] * 1024
|
||||
if self.intdefines.get('AP_FLASH_STORAGE_DOUBLE_PAGE', 0) == 1:
|
||||
page_size *= 2
|
||||
storage_size = self.intdefines.get('HAL_STORAGE_SIZE', None)
|
||||
if storage_size is None:
|
||||
self.error('Need HAL_STORAGE_SIZE define')
|
||||
|
Loading…
Reference in New Issue
Block a user