I recommend looking at stm32-data if you are looking to expand on this.
Query the CubeMX database from the command line. Currently only supports querying pins.
Example:
``` $ cr -- stm32h743zitx tim1
Pin Use Mode PA0 TIM15BKIN AF4 PA1 TIM15CH1N AF4 PA10 TIM1CH3 AF1 PA11 TIM1CH4 AF1 PA12 TIM1ETR AF1 PA2 TIM15CH1 AF4 PA3 TIM15CH2 AF4 PA6 TIM13CH1 AF9 PA6 TIM1BKIN AF1 PA6 TIM1BKINCOMP1 AF12 PA6 TIM1BKINCOMP2 AF12 PA7 TIM14CH1 AF9 PA7 TIM1CH1N AF1 PA8 TIM1CH1 AF1 PA9 TIM1CH2 AF1 PB0 TIM1CH2N AF1 PB1 TIM1CH3N AF1 PB12 TIM1BKIN AF1 PB12 TIM1BKINCOMP1 AF13 PB12 TIM1BKINCOMP2 AF13 PB13 TIM1CH1N AF1 PB14 TIM12CH1 AF2 PB14 TIM1CH2N AF1 PB15 TIM12CH2 AF2 PB15 TIM1CH3N AF1 PB4 (NJTRST) TIM16BKIN AF1 PB5 TIM17BKIN AF1 PB6 TIM16CH1N AF1 PB7 TIM17CH1N AF1 PB8 TIM16CH1 AF1 PB9 TIM17CH1 AF1 PD12 LPTIM1IN1 AF1 PD13 LPTIM1OUT AF1 PE0 LPTIM1ETR AF1 PE1 LPTIM1IN2 AF1 PE10 TIM1CH2N AF1 PE11 TIM1CH2 AF1 PE12 TIM1CH3N AF1 PE13 TIM1CH3 AF1 PE14 TIM1CH4 AF1 PE15 TIM1BKIN AF1 PE15 TIM1BKINCOMP1 AF13 PE15 TIM1BKINCOMP2 AF13 PE3 TIM15BKIN AF4 PE4 TIM15CH1N AF4 PE5 TIM15CH1 AF4 PE6 TIM15CH2 AF4 PE6 TIM1BKIN2 AF1 PE6 TIM1BKIN2COMP1 AF11 PE6 TIM1BKIN2COMP2 AF11 PE7 TIM1ETR AF1 PE8 TIM1CH1N AF1 PE9 TIM1CH1 AF1 PF10 TIM16BKIN AF1 PF6 TIM16CH1 AF1 PF7 TIM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