GAEHWILER Reto e31f0f37f1 arch/arm/src/stm32h7/stm32_ethernet.c: Fix for network lock downs
Fix for network lock downs due to not freed buffers
2020-03-03 09:33:18 -06:00

4813 lines
102 KiB
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
if ARCH_CHIP_STM32H7
comment "STM32 H7 Configuration Options"
choice
prompt "STM32 H7 Chip Selection"
default ARCH_CHIP_STM32H743ZI
depends on ARCH_CHIP_STM32H7
config ARCH_CHIP_STM32H743ZI
bool "STM32H743ZI"
select STM32H7_STM32H7X3XX
select STM32H7_FLASH_CONFIG_I
# TODO: IO_CONFIG
---help---
STM32 H7 Cortex M7, 2048 FLASH, 1024K Kb SRAM
config ARCH_CHIP_STM32H747XI
bool "STM32H747XI"
select STM32H7_STM32H7X7XX
select STM32H7_FLASH_CONFIG_I
# TODO: IO_CONFIG
---help---
Dual core STM32 H7 Cortex M7+M4, 2048 FLASH, 1024K Kb SRAM
endchoice # STM32 H7 Chip Selection
config STM32H7_STM32H7X3XX
bool
default n
select ARCH_HAVE_FPU
select ARCH_HAVE_DPFPU
select ARCH_HAVE_SDIO_DELAYED_INVLDT
select ARMV7M_HAVE_ICACHE
select ARMV7M_HAVE_DCACHE
select ARMV7M_HAVE_ITCM
select ARMV7M_HAVE_DTCM
select STM32H7_HAVE_ETHERNET
select STM32H7_HAVE_FMC
select STM32H7_HAVE_SPI4
select STM32H7_HAVE_SPI5
select STM32H7_HAVE_SPI6
bool
default n
config STM32H7_STM32H7X7XX
bool
default n
select ARCH_HAVE_FPU
select ARCH_HAVE_DPFPU
select ARCH_HAVE_SDIO_DELAYED_INVLDT
select ARMV7M_HAVE_ICACHE
select ARMV7M_HAVE_DCACHE
select ARMV7M_HAVE_ITCM
select ARMV7M_HAVE_DTCM
select STM32H7_HAVE_ETHERNET
select STM32H7_HAVE_FMC
select STM32H7_HAVE_SPI4
select STM32H7_HAVE_SPI5
select STM32H7_HAVE_SPI6
bool
default n
config STM32H7_FLASH_CONFIG_B
bool
default n
config STM32H7_FLASH_CONFIG_G
bool
default n
config STM32H7_FLASH_CONFIG_I
bool
default n
choice
prompt "Override Flash Size Designator"
depends on ARCH_CHIP_STM32H7
default STM32H7_FLASH_OVERRIDE_DEFAULT
---help---
STM32H7 series parts numbering (sans the package type) ends with a
letter that designates the FLASH size.
Designator Size in KiB
B 128
G 1024
I 2048
This configuration option defaults to using the configuration based
on that designator or the default smaller size if there is no last
character designator is present in the STM32 Chip Selection.
Examples:
If the STM32H743ZI is chosen, the Flash configuration would be
'I', if a variant of the part is released in the future one
could simply select another designator here.
If an STM32H7xxx Series parts is chosen the default Flash
configuration will be set herein and can be changed.
config STM32H7_FLASH_OVERRIDE_DEFAULT
bool "Default"
config STM32H7_FLASH_OVERRIDE_B
bool "B 128KiB"
config STM32H7_FLASH_OVERRIDE_G
bool "G 1048KiB"
config STM32H7_FLASH_OVERRIDE_I
bool "I 2048KiB"
endchoice # "Override Flash Size Designator"
config STM32H7_AXI_SRAM_CORRUPTION_WAR
bool "Errata 2.2.9 Reading from AXI SRAM data read corruption Workaround"
default y
---help---
Enable workaround for Reading from AXI SRAM may lead to data read
corruption. See ES0392 Rev 6.
Read data may be corrupted when the following conditions are met:
- Several read transactions are performed to the AXI SRAM,
- and a master delays its data acceptance while a new transfer is
requested
This workaround will set the READ_ISS_OVERRIDE bit in the
AXI_TARG7_FN_MOD register. This will reduce the read issuing capability
of the SRAM to 1 at AXI interconnect level and avoid data corruption.
config STM32H7_PROGMEM
bool "Flash progmem support"
default n
---help---
Add progmem support, start block and end block options are provided to
obtain an uniform flash memory mapping.
menu "STM32H7 Peripheral Selection"
# These "hidden" settings determine is a peripheral option is available for the
# selection MCU
config STM32H7_HAVE_ETHERNET
bool
default n
config STM32H7_HAVE_FMC
bool
default n
config STM32H7_HAVE_SPI4
bool
default n
config STM32H7_HAVE_SPI5
bool
default n
config STM32H7_HAVE_SPI6
bool
default n
# These "hidden" settings are the OR of individual peripheral selections
# indicating that the general capability is required.
config STM32H7_ADC
bool
default n
config STM32H7_CAN
bool
default n
config STM32H7_DAC
bool
default n
config STM32H7_DMA
bool
default n
config STM32H7_I2C
bool
default n
config STM32H7_SAI
bool
default n
config STM32H7_SDMMC
bool
default n
config STM32H7_SPI
bool
default n
config STM32H7_TIM
bool
default n
config STM32H7_RTC
bool "RTC"
default n
select RTC
config STM32H7_PWR
bool "PWR"
default n
config STM32H7_PWM
bool
default n
config STM32H7_USART
bool
default n
# These are the peripheral selections proper
config STM32H7_ADC1
bool "ADC1"
default n
select STM32H7_ADC
config STM32H7_ADC2
bool "ADC2"
default n
select STM32H7_ADC
config STM32H7_ADC3
bool "ADC3"
default n
select STM32H7_ADC
config STM32H7_CRC
bool "CRC"
default n
config STM32H7_BKPSRAM
bool "Enable BKP RAM Domain"
select STM32H7_PWR
default n
config STM32H7_DMA1
bool "DMA1"
default n
select STM32H7_DMA
select ARCH_DMA
config STM32H7_DMA2
bool "DMA2"
default n
select STM32H7_DMA
select ARCH_DMA
config STM32H7_MDMA
bool "MDMA"
default n
depends on EXPERIMENTAL
select STM32H7_DMA
select ARCH_DMA
config STM32H7_BDMA
bool "BDMA"
default n
depends on EXPERIMENTAL
select STM32H7_DMA
select ARCH_DMA
config STM32H7_ETHMAC
bool "Ethernet MAC"
default n
depends on STM32H7_HAVE_ETHERNET
select NETDEVICES
select ARCH_HAVE_PHY
config STM32H7_FMC
bool "FMC"
default n
depends on STM32H7_HAVE_FMC
config STM32H7_OTGFS
bool "OTG FS"
default n
select USBHOST_HAVE_ASYNCH if USBHOST
config STM32H7_OTGHS
bool "OTG HS"
default n
depends on EXPERIMENTAL
select USBHOST_HAVE_ASYNCH if USBHOST
config STM32H7_OTG_SOFOUTPUT
bool "OTG SOF output"
default n
config STM32H7_OTG_USBREGEN
bool "Enable USB voltage regulator"
default n
config STM32H7_QUADSPI
bool "QuadSPI"
default n
config STM32H7_USBDEV_REGDEBUG
bool "OTG USBDEV REGDEBUG"
default n
depends on USBDEV
config STM32H7_USBHOST_REGDEBUG
bool "OTG USBHOST REGDEBUG"
default n
depends on USBHOST
config STM32H7_USBHOST_PKTDUMP
bool "OTG USBHOST PKTDUMP"
default n
depends on USBHOST
config STM32H7_SDMMC1
bool "SDMMC1"
default n
select STM32H7_SDMMC
select ARCH_HAVE_SDIO
select ARCH_HAVE_SDIOWAIT_WRCOMPLETE
select ARCH_HAVE_SDIO_PREFLIGHT
select SDIO_BLOCKSETUP
config STM32H7_SDMMC2
bool "SDMMC2"
default n
select STM32H7_SDMMC
select ARCH_HAVE_SDIO
select ARCH_HAVE_SDIOWAIT_WRCOMPLETE
select ARCH_HAVE_SDIO_PREFLIGHT
select SDIO_BLOCKSETUP
config STM32H7_IWDG
bool "IWDG"
default n
select WATCHDOG
config STM32H7_WWDG
bool "WWDG"
default n
select WATCHDOG
menu "STM32H7 I2C Selection"
config STM32H7_I2C1
bool "I2C1"
default n
select STM32H7_I2C
config STM32H7_I2C2
bool "I2C2"
default n
select STM32H7_I2C
config STM32H7_I2C3
bool "I2C3"
default n
select STM32H7_I2C
config STM32H7_I2C4
bool "I2C4"
default n
select STM32H7_I2C
endmenu # STM32H7 I2C Selection
menu "STM32H7 SPI Selection"
config STM32H7_SPI1
bool "SPI1"
default n
depends on EXPERIMENTAL
select SPI
select STM32H7_SPI
config STM32H7_SPI2
bool "SPI2"
default n
depends on EXPERIMENTAL
select SPI
select STM32H7_SPI
config STM32H7_SPI3
bool "SPI3"
default n
depends on EXPERIMENTAL
select SPI
select STM32H7_SPI
config STM32H7_SPI4
bool "SPI4"
default n
depends on STM32H7_HAVE_SPI4 && EXPERIMENTAL
select SPI
select STM32H7_SPI
config STM32H7_SPI5
bool "SPI5"
default n
depends on STM32H7_HAVE_SPI5 && EXPERIMENTAL
select SPI
select STM32H7_SPI
config STM32H7_SPI6
bool "SPI6"
default n
depends on STM32H7_HAVE_SPI6 && EXPERIMENTAL
select SPI
select STM32H7_SPI
config STM32H7_SYSCFG
bool "SYSCFG"
default y
endmenu # STM32H7 SPI Selection
menu "STM32H7 Timer Selection"
config STM32H7_TIM1
bool "TIM1"
default n
select STM32H7_TIM
config STM32H7_TIM2
bool "TIM2"
default n
select STM32H7_TIM
config STM32H7_TIM3
bool "TIM3"
default n
select STM32H7_TIM
config STM32H7_TIM4
bool "TIM4"
default n
select STM32H7_TIM
config STM32H7_TIM5
bool "TIM5"
default n
select STM32H7_TIM
config STM32H7_TIM6
bool "TIM6"
default n
select STM32H7_TIM
config STM32H7_TIM7
bool "TIM7"
default n
select STM32H7_TIM
config STM32H7_TIM8
bool "TIM8"
default n
select STM32H7_TIM
config STM32H7_TIM12
bool "TIM12"
default n
select STM32H7_TIM
config STM32H7_TIM13
bool "TIM13"
default n
select STM32H7_TIM
config STM32H7_TIM14
bool "TIM14"
default n
select STM32H7_TIM
config STM32H7_TIM15
bool "TIM15"
default n
select STM32H7_TIM
config STM32H7_TIM16
bool "TIM16"
default n
select STM32H7_TIM
config STM32H7_TIM17
bool "TIM17"
default n
select STM32H7_TIM
endmenu # STM32H7 Timer Selection
menu "STM32H7 U[S]ART Selection"
config STM32H7_USART1
bool "USART1"
default n
select USART1_SERIALDRIVER
select ARCH_HAVE_SERIAL_TERMIOS
select STM32H7_USART
config STM32H7_USART2
bool "USART2"
default n
select USART2_SERIALDRIVER
select ARCH_HAVE_SERIAL_TERMIOS
select STM32H7_USART
config STM32H7_USART3
bool "USART3"
default n
select ARCH_HAVE_SERIAL_TERMIOS
select USART3_SERIALDRIVER
select STM32H7_USART
config STM32H7_UART4
bool "UART4"
default n
select ARCH_HAVE_SERIAL_TERMIOS
select UART4_SERIALDRIVER
select STM32H7_USART
config STM32H7_UART5
bool "UART5"
default n
select ARCH_HAVE_SERIAL_TERMIOS
select UART5_SERIALDRIVER
select STM32H7_USART
config STM32H7_USART6
bool "USART6"
default n
select ARCH_HAVE_SERIAL_TERMIOS
select USART6_SERIALDRIVER
select STM32H7_USART
config STM32H7_UART7
bool "UART7"
default n
select ARCH_HAVE_SERIAL_TERMIOS
select UART7_SERIALDRIVER
select STM32H7_USART
config STM32H7_UART8
bool "UART8"
default n
select ARCH_HAVE_SERIAL_TERMIOS
select UART8_SERIALDRIVER
select STM32H7_USART
endmenu # STM32H7 U[S]ART Selection
endmenu # STM32H7 Peripheral Selection
menu "I2C Configuration"
depends on STM32H7_I2C
config STM32H7_I2C_DYNTIMEO
bool "Use dynamic timeouts"
default n
depends on STM32H7_I2C
config STM32H7_I2C_DYNTIMEO_USECPERBYTE
int "Timeout Microseconds per Byte"
default 500
depends on STM32H7_I2C_DYNTIMEO
config STM32H7_I2C_DYNTIMEO_STARTSTOP
int "Timeout for Start/Stop (Milliseconds)"
default 1000
depends on STM32H7_I2C_DYNTIMEO
config STM32H7_I2CTIMEOSEC
int "Timeout seconds"
default 0
depends on STM32H7_I2C
config STM32H7_I2CTIMEOMS
int "Timeout Milliseconds"
default 500
depends on STM32H7_I2C && !STM32H7_I2C_DYNTIMEO
config STM32H7_I2CTIMEOTICKS
int "Timeout for Done and Stop (ticks)"
default 500
depends on STM32H7_I2C && !STM32H7_I2C_DYNTIMEO
endmenu # "I2C Configuration"
menu "SPI Configuration"
depends on STM32H7_SPI
config STM32H7_SPI_INTERRUPTS
bool "Interrupt driver SPI"
default n
---help---
Select to enable interrupt driven SPI support. Non-interrupt-driven,
poll-waiting is recommended if the interrupt rate would be to high in
the interrupt driven case.
config STM32H7_SPI_DMA
bool "SPI DMA"
default n
---help---
Use DMA to improve SPI transfer performance. Cannot be used with STM32H7_SPI_INTERRUPT.
config STM32H7_SPI_DMATHRESHOLD
int "SPI DMA threshold"
default 4
depends on STM32H7_SPI_DMA
---help---
When SPI DMA is enabled, small DMA transfers will still be performed
by polling logic. But we need a threshold value to determine what
is small.
endmenu # "SPI Configuration"
menu "U[S]ART Configuration"
depends on STM32H7_USART
if STM32H7_USART1
config USART1_RS485
bool "RS-485 on USART1"
default n
---help---
Enable RS-485 interface on USART1. Your board config will have to
provide GPIO_USART1_RS485_DIR pin definition.
config USART1_RS485_DIR_POLARITY
int "USART1 RS-485 DIR pin polarity"
default 1
range 0 1
depends on USART1_RS485
---help---
Polarity of DIR pin for RS-485 on USART1. Set to state on DIR pin which
enables TX (0 - low / nTXEN, 1 - high / TXEN).
config USART1_RXFIFO_THRES
int "USART1 Rx FIFO Threshold"
default 3
range 0 5
---help---
Select the Rx FIFO threshold:
0 -> 1/8 full
1 -> 1/4 full
2 -> 1/2 full
3 -> 3/4 full
4 -> 7/8 full
5 -> Full
Higher values mean lower interrupt rates and better CPU performance.
Lower values may be needed at high BAUD rates to prevent Rx data
overrun errors.
endif # STM32H7_USART1
if STM32H7_USART2
config USART2_RS485
bool "RS-485 on USART2"
default n
---help---
Enable RS-485 interface on USART2. Your board config will have to
provide GPIO_USART2_RS485_DIR pin definition.
config USART2_RS485_DIR_POLARITY
int "USART2 RS-485 DIR pin polarity"
default 1
range 0 1
depends on USART2_RS485
---help---
Polarity of DIR pin for RS-485 on USART2. Set to state on DIR pin which
enables TX (0 - low / nTXEN, 1 - high / TXEN).
config USART2_RXFIFO_THRES
int "USART2 Rx FIFO Threshold"
default 3
range 0 5
---help---
Select the Rx FIFO threshold:
0 -> 1/8 full
1 -> 1/4 full
2 -> 1/2 full
3 -> 3/4 full
4 -> 7/8 full
5 -> Full
Higher values mean lower interrupt rates and better CPU performance.
Lower values may be needed at high BAUD rates to prevent Rx data
overrun errors.
endif # STM32H7_USART2
if STM32H7_USART3
config USART3_RS485
bool "RS-485 on USART3"
default n
---help---
Enable RS-485 interface on USART3. Your board config will have to
provide GPIO_USART3_RS485_DIR pin definition.
config USART3_RS485_DIR_POLARITY
int "USART3 RS-485 DIR pin polarity"
default 1
range 0 1
depends on USART3_RS485
---help---
Polarity of DIR pin for RS-485 on USART3. Set to state on DIR pin which
enables TX (0 - low / nTXEN, 1 - high / TXEN).
config USART3_RXFIFO_THRES
int "USART3 Rx FIFO Threshold"
default 3
range 0 5
---help---
Select the Rx FIFO threshold:
0 -> 1/8 full
1 -> 1/4 full
2 -> 1/2 full
3 -> 3/4 full
4 -> 7/8 full
5 -> Full
Higher values mean lower interrupt rates and better CPU performance.
Lower values may be needed at high BAUD rates to prevent Rx data
overrun errors.
endif # STM32H7_USART3
if STM32H7_UART4
config UART4_RS485
bool "RS-485 on UART4"
default n
---help---
Enable RS-485 interface on UART4. Your board config will have to
provide GPIO_UART4_RS485_DIR pin definition.
config UART4_RS485_DIR_POLARITY
int "UART4 RS-485 DIR pin polarity"
default 1
range 0 1
depends on UART4_RS485
---help---
Polarity of DIR pin for RS-485 on UART4. Set to state on DIR pin which
enables TX (0 - low / nTXEN, 1 - high / TXEN).
config UART4_RXFIFO_THRES
int "UART4 Rx FIFO Threshold"
default 3
range 0 5
---help---
Select the Rx FIFO threshold:
0 -> 1/8 full
1 -> 1/4 full
2 -> 1/2 full
3 -> 3/4 full
4 -> 7/8 full
5 -> Full
Higher values mean lower interrupt rates and better CPU performance.
Lower values may be needed at high BAUD rates to prevent Rx data
overrun errors.
endif # STM32H7_UART4
if STM32H7_UART5
config UART5_RS485
bool "RS-485 on UART5"
default n
---help---
Enable RS-485 interface on UART5. Your board config will have to
provide GPIO_UART5_RS485_DIR pin definition.
config UART5_RS485_DIR_POLARITY
int "UART5 RS-485 DIR pin polarity"
default 1
range 0 1
depends on UART5_RS485
---help---
Polarity of DIR pin for RS-485 on UART5. Set to state on DIR pin which
enables TX (0 - low / nTXEN, 1 - high / TXEN).
config UART5_RXFIFO_THRES
int "UART5 Rx FIFO Threshold"
default 3
range 0 5
---help---
Select the Rx FIFO threshold:
0 -> 1/8 full
1 -> 1/4 full
2 -> 1/2 full
3 -> 3/4 full
4 -> 7/8 full
5 -> Full
Higher values mean lower interrupt rates and better CPU performance.
Lower values may be needed at high BAUD rates to prevent Rx data
overrun errors.
endif # STM32H7_UART5
if STM32H7_USART6
config USART6_RS485
bool "RS-485 on USART6"
default n
---help---
Enable RS-485 interface on USART6. Your board config will have to
provide GPIO_USART6_RS485_DIR pin definition.
config USART6_RS485_DIR_POLARITY
int "USART6 RS-485 DIR pin polarity"
default 1
range 0 1
depends on USART6_RS485
---help---
Polarity of DIR pin for RS-485 on USART6. Set to state on DIR pin which
enables TX (0 - low / nTXEN, 1 - high / TXEN).
config USART6_RXFIFO_THRES
int "USART6 Rx FIFO Threshold"
default 3
range 0 5
---help---
Select the Rx FIFO threshold:
0 -> 1/8 full
1 -> 1/4 full
2 -> 1/2 full
3 -> 3/4 full
4 -> 7/8 full
5 -> Full
Higher values mean lower interrupt rates and better CPU performance.
Lower values may be needed at high BAUD rates to prevent Rx data
overrun errors.
endif # STM32H7_USART
if STM32H7_UART7
config UART7_RS485
bool "RS-485 on UART7"
default n
---help---
Enable RS-485 interface on UART7. Your board config will have to
provide GPIO_UART7_RS485_DIR pin definition.
config UART7_RS485_DIR_POLARITY
int "UART7 RS-485 DIR pin polarity"
default 1
range 0 1
depends on UART7_RS485
---help---
Polarity of DIR pin for RS-485 on UART7. Set to state on DIR pin which
enables TX (0 - low / nTXEN, 1 - high / TXEN).
config UART7_RXFIFO_THRES
int "UART7 Rx FIFO Threshold"
default 3
range 0 5
---help---
Select the Rx FIFO threshold:
0 -> 1/8 full
1 -> 1/4 full
2 -> 1/2 full
3 -> 3/4 full
4 -> 7/8 full
5 -> Full
Higher values mean lower interrupt rates and better CPU performance.
Lower values may be needed at high BAUD rates to prevent Rx data
overrun errors.
endif # STM32H7_UART7
if STM32H7_UART8
config UART8_RS485
bool "RS-485 on UART8"
default n
---help---
Enable RS-485 interface on UART8. Your board config will have to
provide GPIO_UART8_RS485_DIR pin definition.
config UART8_RS485_DIR_POLARITY
int "UART8 RS-485 DIR pin polarity"
default 1
range 0 1
depends on UART8_RS485
---help---
Polarity of DIR pin for RS-485 on UART8. Set to state on DIR pin which
enables TX (0 - low / nTXEN, 1 - high / TXEN).
config UART8_RXFIFO_THRES
int "UART8 Rx FIFO Threshold"
default 3
range 0 5
---help---
Select the Rx FIFO threshold:
0 -> 1/8 full
1 -> 1/4 full
2 -> 1/2 full
3 -> 3/4 full
4 -> 7/8 full
5 -> Full
Higher values mean lower interrupt rates and better CPU performance.
Lower values may be needed at high BAUD rates to prevent Rx data
overrun errors.
endif # STM32H7_UART8
config STM32H7_SERIAL_DISABLE_REORDERING
bool "Disable reordering of ttySx devices."
default n
---help---
NuttX per default reorders the serial ports (/dev/ttySx) so that the
console is always on /dev/ttyS0. If more than one UART is in use this
can, however, have the side-effect that all port mappings
(hardware USART1 -> /dev/ttyS0) change if the console is moved to another
UART. This is in particular relevant if a project uses the USB console
in some boards and a serial console in other boards, but does not
want the side effect of having all serial port names change when just
the console is moved from serial to USB.
config STM32H7_FLOWCONTROL_BROKEN
bool "Use Software UART RTS flow control"
depends on SERIAL_IFLOWCONTROL_WATERMARKS
default n
---help---
Enable UART RTS flow control using Software. Because STM
Current STM32 have broken HW based RTS behavior (they assert
nRTS after every byte received) Enable this setting workaround
this issue by using software based management of RTS
config STM32H7_USART_BREAKS
bool "Add TIOxSBRK to support sending Breaks"
default n
---help---
Add TIOCxBRK routines to send a line break per the STM32 manual, the
break will be a pulse based on the value M. This is not a BSD compatible
break.
config STM32H7_SERIALBRK_BSDCOMPAT
bool "Use GPIO To send Break"
depends on STM32H7_USART_BREAKS
default n
---help---
Enable using GPIO on the TX pin to send a BSD compatible break:
TIOCSBRK will start the break and TIOCCBRK will end the break.
The current STM32 U[S]ARTS have no way to leave the break (TX=LOW)
on because the SW starts the break and then the HW automatically clears
the break. This makes it is difficult to sent a long break.
config STM32H7_USART_SINGLEWIRE
bool "Single Wire Support"
default n
depends on STM32H7_USART
---help---
Enable single wire UART support. The option enables support for the
TIOCSSINGLEWIRE ioctl in the STM32H7 serial driver.
config STM32H7_USART_INVERT
bool "Signal Invert Support"
default n
depends on STM32H7_USART
---help---
Enable signal inversion UART support. The option enables support for the
TIOCSINVERT ioctl in the STM32H7 serial driver.
config STM32H7_USART_SWAP
bool "Swap RX/TX pins support"
default n
depends on STM32H7_USART
---help---
Enable RX/TX pin swapping support. The option enables support for the
TIOCSSWAP ioctl in the STM32H7 serial driver.
if PM
config STM32H7_PM_SERIAL_ACTIVITY
int "PM serial activity"
default 10
---help---
PM activity reported to power management logic on every serial
interrupt.
endif # PM
endmenu # U[S]ART Configuration
menu "SD/MMC Configuration"
depends on STM32H7_SDMMC
config STM32H7_SDMMC_XFRDEBUG
bool "SDMMC transfer debug"
depends on DEBUG_FS_INFO
default n
---help---
Enable special debug instrumentation analyze SDMMC data transfers.
This logic is as non-invasive as possible: It samples SDMMC
registers at key points in the data transfer and then dumps all of
the registers at the end of the transfer. If DEBUG_DMA is also
enabled, then DMA register will be collected as well. Requires also
DEBUG_FS and CONFIG_DEBUG_INFO.
config STM32H7_SDMMC_IDMA
bool "Support IDMA data transfers"
default y
select SDIO_DMA
---help---
Support IDMA data transfers.
menu "SDMMC1 Configuration"
depends on STM32H7_SDMMC1
config SDMMC1_WIDTH_D1_ONLY
bool "Use D1 only on SDMMC1"
default n
---help---
Select 1-bit transfer mode. Default: 4-bit transfer mode.
config SDMMC1_SDIO_MODE
bool "SDIO Card Support"
default n
---help---
Build in additional support needed only for SDIO cards (vs. SD
memory cards)
config SDMMC1_SDIO_PULLUP
bool "Enable internal Pull-Ups"
default n
---help---
If you are using an external SDCard module that does not have the
pull-up resistors for the SDIO interface (like the Gadgeteer SD Card
Module) then enable this option to activate the internal pull-up
resistors.
endmenu # "SDMMC1 Configuration"
menu "SDMMC2 Configuration"
depends on STM32H7_SDMMC2
config SDMMC2_WIDTH_D1_ONLY
bool "Use D1 only on SDMMC2"
default n
---help---
Select 1-bit transfer mode. Default: 4-bit transfer mode.
config SDMMC2_SDIO_MODE
bool "SDIO Card Support"
default n
---help---
Build in additional support needed only for SDIO cards (vs. SD
memory cards)
config SDMMC2_SDIO_PULLUP
bool "Enable internal Pull-Ups"
default n
---help---
If you are using an external SDCard module that does not have the
pull-up resistors for the SDIO interface (like the Gadgeteer SD Card
Module) then enable this option to activate the internal pull-up
resistors.
endmenu # "SDMMC2 Configuration"
endmenu # "SD/MMC Configuration"
if STM32H7_BKPSRAM
config STM32H7_BBSRAM
bool "BBSRAM File Support"
default n
config STM32H7_BBSRAM_FILES
int "Max Files to support in BBSRAM"
default 4
depends on STM32H7_BBSRAM
config STM32H7_SAVE_CRASHDUMP
bool "Enable Saving Panic to BBSRAM"
default n
depends on STM32H7_BBSRAM
endif # STM32H7_BKPSRAM
config STM32H7_HAVE_RTC_SUBSECONDS
bool
select ARCH_HAVE_RTC_SUBSECONDS
default y
menu "RTC Configuration"
depends on STM32H7_RTC
config STM32H7_RTC_MAGIC_REG
int "BKP register"
default 0
range 0 31
---help---
The BKP register used to store/check the Magic value to determine if
RTC is already setup
config STM32H7_RTC_MAGIC
hex "RTC Magic 1"
default 0xfacefeed
---help---
Value used as Magic to determine if the RTC is already setup
config STM32H7_RTC_MAGIC_TIME_SET
hex "RTC Magic 2"
default 0xf00dface
---help---
Value used as Magic to determine if the RTC has been setup and has
time set
choice
prompt "RTC clock source"
default STM32H7_RTC_LSECLOCK
config STM32H7_RTC_HSECLOCK
bool "HSE clock"
---help---
Drive the RTC with the HSE clock, divided down to 1MHz.
config STM32H7_RTC_LSECLOCK
bool "LSE clock"
---help---
Drive the RTC with the LSE clock
config STM32H7_RTC_LSICLOCK
bool "LSI clock"
---help---
Drive the RTC with the LSI clock
endchoice #"RTC clock source"
if STM32H7_RTC_LSECLOCK
config STM32H7_RTC_LSECLOCK_START_DRV_CAPABILITY
int "LSE oscillator drive capability level at LSE start-up"
default 0
range 0 3
---help---
0 = Low drive capability (default)
1 = Medium high drive capability
2 = Medium low drive capability
3 = High drive capability
config STM32H7_RTC_LSECLOCK_RUN_DRV_CAPABILITY
int "LSE oscillator drive capability level after LSE start-up"
default 0
range 0 3
---help---
0 = Low drive capability (default)
1 = Medium high drive capability
2 = Medium low drive capability
3 = High drive capability
endif # STM32H7_RTC_LSECLOCK
endmenu # RTC Configuration
config STM32H7_EXTERNAL_RAM
bool "External RAM on FMC"
default n
depends on STM32H7_FMC
select ARCH_HAVE_HEAP2
---help---
In addition to internal SDRAM, external RAM may be available through the FMC.
menu "QuadSPI Configuration"
depends on STM32H7_QUADSPI
config STM32H7_QSPI_FLASH_SIZE
int "Size of attached serial flash, bytes"
default 16777216
range 1 2147483648
---help---
The STM32H7 QSPI peripheral requires the size of the Flash be specified
config STM32H7_QSPI_FIFO_THESHOLD
int "Number of bytes before asserting FIFO threshold flag"
default 4
range 1 16
---help---
The STM32H7 QSPI peripheral requires that the FIFO threshold be specified
I would leave it at the default value of 4 unless you know what you are doing.
config STM32H7_QSPI_CSHT
int "Number of cycles Chip Select must be inactive between transactions"
default 1
range 1 8
---help---
The STM32H7 QSPI peripheral requires that it be specified the minimum number
of AHB cycles that Chip Select be held inactive between transactions.
choice
prompt "Transfer technique"
default STM32H7_QSPI_DMA
---help---
You can choose between using polling, interrupts, or DMA to transfer data
over the QSPI interface.
config STM32H7_QSPI_POLLING
bool "Polling"
---help---
Use conventional register I/O with status polling to transfer data.
config STM32H7_QSPI_INTERRUPTS
bool "Interrupts"
---help---
User interrupt driven I/O transfers.
config STM32H7_QSPI_DMA
bool "DMA"
depends on STM32H7_DMA
---help---
Use DMA to improve QSPI transfer performance.
endchoice
choice
prompt "Bank selection"
default STM32H7_QSPI_MODE_BANK1
---help---
You can choose between using polling, interrupts, or DMA to transfer data
over the QSPI interface.
config STM32H7_QSPI_MODE_BANK1
bool "Bank 1"
config STM32H7_QSPI_MODE_BANK2
bool "Bank 2"
config STM32H7_QSPI_MODE_DUAL
bool "Dual Bank"
endchoice
choice
prompt "DMA Priority"
default STM32H7_QSPI_DMAPRIORITY_MEDIUM
depends on STM32H7_DMA
---help---
The DMA controller supports priority levels. You are probably fine
with the default of 'medium' except for special cases. In the event
of contention between to channels at the same priority, the lower
numbered channel has hardware priority over the higher numbered one.
config STM32H7_QSPI_DMAPRIORITY_VERYHIGH
bool "Very High priority"
depends on STM32H7_DMA
---help---
'Highest' priority.
config STM32H7_QSPI_DMAPRIORITY_HIGH
bool "High priority"
depends on STM32H7_DMA
---help---
'High' priority.
config STM32H7_QSPI_DMAPRIORITY_MEDIUM
bool "Medium priority"
depends on STM32H7_DMA
---help---
'Medium' priority.
config STM32H7_QSPI_DMAPRIORITY_LOW
bool "Low priority"
depends on STM32H7_DMA
---help---
'Low' priority.
endchoice
config STM32H7_QSPI_DMATHRESHOLD
int "QSPI DMA threshold"
default 4
depends on STM32H7_QSPI_DMA
---help---
When QSPI DMA is enabled, small DMA transfers will still be performed
by polling logic. This value is the threshold below which transfers
will still be performed by conventional register status polling.
config STM32H7_QSPI_DMADEBUG
bool "QSPI DMA transfer debug"
depends on STM32H7_QSPI_DMA && DEBUG_SPI && DEBUG_DMA
default n
---help---
Enable special debug instrumentation to analyze QSPI DMA data transfers.
This logic is as non-invasive as possible: It samples DMA
registers at key points in the data transfer and then dumps all of
the registers at the end of the transfer.
config STM32H7_QSPI_REGDEBUG
bool "QSPI Register level debug"
depends on DEBUG_SPI_INFO
default n
---help---
Output detailed register-level QSPI device debug information.
Requires also CONFIG_DEBUG_SPI_INFO.
endmenu
config STM32H7_CUSTOM_CLOCKCONFIG
bool "Custom clock configuration"
default n
---help---
Enables special, board-specific STM32 clock configuration.
config STM32H7_DTCMEXCLUDE
bool "Exclude DTCM SRAM from the heap"
default y if ELF
depends on ARMV7M_HAVE_DTCM
---help---
Exclude DTCM SRAM from the HEAP because it appears to be impossible
to execute ELF modules from DTCM RAM (REVISIT!).
config STM32H7_DTCM_PROCFS
bool "DTCM SRAM PROCFS support"
default n
depends on ARMV7M_DTCM && FS_PROCFS
---help---
Select to build in support for /proc/dtcm. Reading from /proc/dtcm
will provide statistics about DTCM memory use similar to what you
would get from mallinfo() for the user heap.
config STM32H7_DMACAPABLE
bool "Workaround non-DMA capable memory"
depends on ARCH_DMA
default n
---help---
This option enables the DMA interface stm32_dmacapable that can be
used to check if it is possible to do DMA from the selected address.
Drivers then may use this information to determine if they should
attempt the DMA or fall back to a different transfer method.
menu "Timer Configuration"
config STM32H7_PWM_LL_OPS
bool "PWM low-level operations"
default n
---help---
Enable low-level PWM ops.
config STM32H7_TIM1_PWM
bool "TIM1 PWM"
default n
depends on STM32H7_TIM1
select ARCH_HAVE_PWM_PULSECOUNT
select STM32H7_PWM
---help---
Reserve timer 1 for use by PWM
Timer devices may be used for different purposes. One special purpose is
to generate modulated outputs for such things as motor control. If STM32H7_TIM1
is defined then THIS following may also be defined to indicate that
the timer is intended to be used for pulsed output modulation.
if STM32H7_TIM1_PWM
config STM32H7_TIM1_MODE
int "TIM1 Mode"
default 0
range 0 4
---help---
Specifies the timer mode.
config STM32H7_TIM1_LOCK
int "TIM1 Lock Level Configuration"
default 0
range 0 3
---help---
Timer 1 lock level configuration
config STM32H7_TIM1_TDTS
int "TIM1 t_DTS Division"
default 0
range 0 2
---help---
Timer 1 dead-time and sampling clock (t_DTS) division
config STM32H7_TIM1_DEADTIME
int "TIM1 Initial Dead-time"
default 0
range 0 255
---help---
Timer 1 initial dead-time
if STM32H7_PWM_MULTICHAN
config STM32H7_TIM1_CHANNEL1
bool "TIM1 Channel 1"
default n
---help---
Enables channel 1.
if STM32H7_TIM1_CHANNEL1
config STM32H7_TIM1_CH1MODE
int "TIM1 Channel 1 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM1_CH1OUT
bool "TIM1 Channel 1 Output"
default n
---help---
Enables channel 1 output.
config STM32H7_TIM1_CH1NOUT
bool "TIM1 Channel 1 Complementary Output"
default n
---help---
Enables channel 1 Complementary Output.
endif # STM32H7_TIM1_CHANNEL1
config STM32H7_TIM1_CHANNEL2
bool "TIM1 Channel 2"
default n
---help---
Enables channel 2.
if STM32H7_TIM1_CHANNEL2
config STM32H7_TIM1_CH2MODE
int "TIM1 Channel 2 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM1_CH2OUT
bool "TIM1 Channel 2 Output"
default n
---help---
Enables channel 2 output.
config STM32H7_TIM1_CH2NOUT
bool "TIM1 Channel 2 Complementary Output"
default n
---help---
Enables channel 2 Complementary Output.
endif # STM32H7_TIM1_CHANNEL2
config STM32H7_TIM1_CHANNEL3
bool "TIM1 Channel 3"
default n
---help---
Enables channel 3.
if STM32H7_TIM1_CHANNEL3
config STM32H7_TIM1_CH3MODE
int "TIM1 Channel 3 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM1_CH3OUT
bool "TIM1 Channel 3 Output"
default n
---help---
Enables channel 3 output.
config STM32H7_TIM1_CH3NOUT
bool "TIM1 Channel 3 Complementary Output"
default n
---help---
Enables channel 3 Complementary Output.
endif # STM32H7_TIM1_CHANNEL3
config STM32H7_TIM1_CHANNEL4
bool "TIM1 Channel 4"
default n
---help---
Enables channel 4.
if STM32H7_TIM1_CHANNEL4
config STM32H7_TIM1_CH4MODE
int "TIM1 Channel 4 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM1_CH4OUT
bool "TIM1 Channel 4 Output"
default n
---help---
Enables channel 4 output.
endif # STM32H7_TIM1_CHANNEL4
config STM32H7_TIM1_CHANNEL5
bool "TIM1 Channel 5 (internal)"
default n
---help---
Enables channel 5 (no available externaly)
if STM32H7_TIM1_CHANNEL5
config STM32H7_TIM1_CH5MODE
int "TIM1 Channel 5 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM1_CH5OUT
bool "TIM1 Channel 5 Output"
default n
---help---
Enables channel 5 output.
endif # STM32H7_TIM1_CHANNEL5
config STM32H7_TIM1_CHANNEL6
bool "TIM1 Channel 6 (internal)"
default n
---help---
Enables channel 6 (no available externaly)
if STM32H7_TIM1_CHANNEL6
config STM32H7_TIM1_CH6MODE
int "TIM1 Channel 6 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM1_CH6OUT
bool "TIM1 Channel 6 Output"
default n
---help---
Enables channel 6 output.
endif # STM32H7_TIM1_CHANNEL6
endif # STM32H7_PWM_MULTICHAN
if !STM32H7_PWM_MULTICHAN
config STM32H7_TIM1_CHANNEL
int "TIM1 PWM Output Channel"
default 1
range 1 4
---help---
If TIM1 is enabled for PWM usage, you also need specifies the timer output
channel {1,..,4}
if STM32H7_TIM1_CHANNEL = 1
config STM32H7_TIM1_CH1OUT
bool "TIM1 Channel 1 Output"
default n
---help---
Enables channel 1 output.
config STM32H7_TIM1_CH1NOUT
bool "TIM1 Channel 1 Complementary Output"
default n
---help---
Enables channel 1 Complementary Output.
endif # STM32H7_TIM1_CHANNEL = 1
if STM32H7_TIM1_CHANNEL = 2
config STM32H7_TIM1_CH2OUT
bool "TIM1 Channel 2 Output"
default n
---help---
Enables channel 2 output.
config STM32H7_TIM1_CH2NOUT
bool "TIM1 Channel 2 Complementary Output"
default n
---help---
Enables channel 2 Complementary Output.
endif # STM32H7_TIM1_CHANNEL = 2
if STM32H7_TIM1_CHANNEL = 3
config STM32H7_TIM1_CH3OUT
bool "TIM1 Channel 3 Output"
default n
---help---
Enables channel 3 output.
config STM32H7_TIM1_CH3NOUT
bool "TIM1 Channel 3 Complementary Output"
default n
---help---
Enables channel 3 Complementary Output.
endif # STM32H7_TIM1_CHANNEL = 3
if STM32H7_TIM1_CHANNEL = 4
config STM32H7_TIM1_CH4OUT
bool "TIM1 Channel 4 Output"
default n
---help---
Enables channel 4 output.
endif # STM32H7_TIM1_CHANNEL = 4
config STM32H7_TIM1_CHMODE
int "TIM1 Channel Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
endif # !STM32H7_PWM_MULTICHAN
endif # STM32H7_TIM1_PWM
config STM32H7_TIM2_PWM
bool "TIM2 PWM"
default n
depends on STM32H7_TIM2
select ARCH_HAVE_PWM_PULSECOUNT
select STM32H7_PWM
---help---
Reserve timer 2 for use by PWM
Timer devices may be used for different purposes. One special purpose is
to generate modulated outputs for such things as motor control. If STM32H7_TIM2
is defined then THIS following may also be defined to indicate that
the timer is intended to be used for pulsed output modulation.
if STM32H7_TIM2_PWM
config STM32H7_TIM2_MODE
int "TIM2 Mode"
default 0
range 0 4
---help---
Specifies the timer mode.
if STM32H7_PWM_MULTICHAN
config STM32H7_TIM2_CHANNEL1
bool "TIM2 Channel 1"
default n
---help---
Enables channel 1.
if STM32H7_TIM2_CHANNEL1
config STM32H7_TIM2_CH1MODE
int "TIM2 Channel 1 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM2_CH1OUT
bool "TIM2 Channel 1 Output"
default n
---help---
Enables channel 1 output.
endif # STM32H7_TIM2_CHANNEL1
config STM32H7_TIM2_CHANNEL2
bool "TIM2 Channel 2"
default n
---help---
Enables channel 2.
if STM32H7_TIM2_CHANNEL2
config STM32H7_TIM2_CH2MODE
int "TIM2 Channel 2 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM2_CH2OUT
bool "TIM2 Channel 2 Output"
default n
---help---
Enables channel 2 output.
endif # STM32H7_TIM2_CHANNEL2
config STM32H7_TIM2_CHANNEL3
bool "TIM2 Channel 3"
default n
---help---
Enables channel 3.
if STM32H7_TIM2_CHANNEL3
config STM32H7_TIM2_CH3MODE
int "TIM2 Channel 3 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM2_CH3OUT
bool "TIM2 Channel 3 Output"
default n
---help---
Enables channel 3 output.
endif # STM32H7_TIM2_CHANNEL3
config STM32H7_TIM2_CHANNEL4
bool "TIM2 Channel 4"
default n
---help---
Enables channel 4.
if STM32H7_TIM2_CHANNEL4
config STM32H7_TIM2_CH4MODE
int "TIM2 Channel 4 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM2_CH4OUT
bool "TIM2 Channel 4 Output"
default n
---help---
Enables channel 4 output.
endif # STM32H7_TIM2_CHANNEL4
endif # STM32H7_PWM_MULTICHAN
if !STM32H7_PWM_MULTICHAN
config STM32H7_TIM2_CHANNEL
int "TIM2 PWM Output Channel"
default 1
range 1 4
---help---
If TIM2 is enabled for PWM usage, you also need specifies the timer output
channel {1,..,4}
if STM32H7_TIM2_CHANNEL = 1
config STM32H7_TIM2_CH1OUT
bool "TIM2 Channel 1 Output"
default n
---help---
Enables channel 1 output.
endif # STM32H7_TIM2_CHANNEL = 1
if STM32H7_TIM2_CHANNEL = 2
config STM32H7_TIM2_CH2OUT
bool "TIM2 Channel 2 Output"
default n
---help---
Enables channel 2 output.
endif # STM32H7_TIM2_CHANNEL = 2
if STM32H7_TIM2_CHANNEL = 3
config STM32H7_TIM2_CH3OUT
bool "TIM2 Channel 3 Output"
default n
---help---
Enables channel 3 output.
endif # STM32H7_TIM2_CHANNEL = 3
if STM32H7_TIM2_CHANNEL = 4
config STM32H7_TIM2_CH4OUT
bool "TIM2 Channel 4 Output"
default n
---help---
Enables channel 4 output.
endif # STM32H7_TIM2_CHANNEL = 4
config STM32H7_TIM2_CHMODE
int "TIM2 Channel Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
endif # !STM32H7_PWM_MULTICHAN
endif # STM32H7_TIM2_PWM
config STM32H7_TIM3_PWM
bool "TIM3 PWM"
default n
depends on STM32H7_TIM3
select ARCH_HAVE_PWM_PULSECOUNT
select STM32H7_PWM
---help---
Reserve timer 3 for use by PWM
Timer devices may be used for different purposes. One special purpose is
to generate modulated outputs for such things as motor control. If STM32H7_TIM3
is defined then THIS following may also be defined to indicate that
the timer is intended to be used for pulsed output modulation.
if STM32H7_TIM3_PWM
config STM32H7_TIM3_MODE
int "TIM3 Mode"
default 0
range 0 4
---help---
Specifies the timer mode.
if STM32H7_PWM_MULTICHAN
config STM32H7_TIM3_CHANNEL1
bool "TIM3 Channel 1"
default n
---help---
Enables channel 1.
if STM32H7_TIM3_CHANNEL1
config STM32H7_TIM3_CH1MODE
int "TIM3 Channel 1 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM3_CH1OUT
bool "TIM3 Channel 1 Output"
default n
---help---
Enables channel 1 output.
endif # STM32H7_TIM3_CHANNEL1
config STM32H7_TIM3_CHANNEL2
bool "TIM3 Channel 2"
default n
---help---
Enables channel 2.
if STM32H7_TIM3_CHANNEL2
config STM32H7_TIM3_CH2MODE
int "TIM3 Channel 2 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM3_CH2OUT
bool "TIM3 Channel 2 Output"
default n
---help---
Enables channel 2 output.
endif # STM32H7_TIM3_CHANNEL2
config STM32H7_TIM3_CHANNEL3
bool "TIM3 Channel 3"
default n
---help---
Enables channel 3.
if STM32H7_TIM3_CHANNEL3
config STM32H7_TIM3_CH3MODE
int "TIM3 Channel 3 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM3_CH3OUT
bool "TIM3 Channel 3 Output"
default n
---help---
Enables channel 3 output.
endif # STM32H7_TIM3_CHANNEL3
config STM32H7_TIM3_CHANNEL4
bool "TIM3 Channel 4"
default n
---help---
Enables channel 4.
if STM32H7_TIM3_CHANNEL4
config STM32H7_TIM3_CH4MODE
int "TIM3 Channel 4 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM3_CH4OUT
bool "TIM3 Channel 4 Output"
default n
---help---
Enables channel 4 output.
endif # STM32H7_TIM3_CHANNEL4
endif # STM32H7_PWM_MULTICHAN
if !STM32H7_PWM_MULTICHAN
config STM32H7_TIM3_CHANNEL
int "TIM3 PWM Output Channel"
default 1
range 1 4
---help---
If TIM3 is enabled for PWM usage, you also need specifies the timer output
channel {1,..,4}
if STM32H7_TIM3_CHANNEL = 1
config STM32H7_TIM3_CH1OUT
bool "TIM3 Channel 1 Output"
default n
---help---
Enables channel 1 output.
endif # STM32H7_TIM3_CHANNEL = 1
if STM32H7_TIM3_CHANNEL = 2
config STM32H7_TIM3_CH2OUT
bool "TIM3 Channel 2 Output"
default n
---help---
Enables channel 2 output.
endif # STM32H7_TIM3_CHANNEL = 2
if STM32H7_TIM3_CHANNEL = 3
config STM32H7_TIM3_CH3OUT
bool "TIM3 Channel 3 Output"
default n
---help---
Enables channel 3 output.
endif # STM32H7_TIM3_CHANNEL = 3
if STM32H7_TIM3_CHANNEL = 4
config STM32H7_TIM3_CH4OUT
bool "TIM3 Channel 4 Output"
default n
---help---
Enables channel 4 output.
endif # STM32H7_TIM3_CHANNEL = 4
config STM32H7_TIM3_CHMODE
int "TIM3 Channel Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
endif # !STM32H7_PWM_MULTICHAN
endif # STM32H7_TIM3_PWM
config STM32H7_TIM4_PWM
bool "TIM4 PWM"
default n
depends on STM32H7_TIM4
select ARCH_HAVE_PWM_PULSECOUNT
select STM32H7_PWM
---help---
Reserve timer 4 for use by PWM
Timer devices may be used for different purposes. One special purpose is
to generate modulated outputs for such things as motor control. If STM32H7_TIM4
is defined then THIS following may also be defined to indicate that
the timer is intended to be used for pulsed output modulation.
if STM32H7_TIM4_PWM
config STM32H7_TIM4_MODE
int "TIM4 Mode"
default 0
range 0 4
---help---
Specifies the timer mode.
if STM32H7_PWM_MULTICHAN
config STM32H7_TIM4_CHANNEL1
bool "TIM4 Channel 1"
default n
---help---
Enables channel 1.
if STM32H7_TIM4_CHANNEL1
config STM32H7_TIM4_CH1MODE
int "TIM4 Channel 1 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM4_CH1OUT
bool "TIM4 Channel 1 Output"
default n
---help---
Enables channel 1 output.
endif # STM32H7_TIM4_CHANNEL1
config STM32H7_TIM4_CHANNEL2
bool "TIM4 Channel 2"
default n
---help---
Enables channel 2.
if STM32H7_TIM4_CHANNEL2
config STM32H7_TIM4_CH2MODE
int "TIM4 Channel 2 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM4_CH2OUT
bool "TIM4 Channel 2 Output"
default n
---help---
Enables channel 2 output.
endif # STM32H7_TIM4_CHANNEL2
config STM32H7_TIM4_CHANNEL3
bool "TIM4 Channel 3"
default n
---help---
Enables channel 3.
if STM32H7_TIM4_CHANNEL3
config STM32H7_TIM4_CH3MODE
int "TIM4 Channel 3 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM4_CH3OUT
bool "TIM4 Channel 3 Output"
default n
---help---
Enables channel 3 output.
endif # STM32H7_TIM4_CHANNEL3
config STM32H7_TIM4_CHANNEL4
bool "TIM4 Channel 4"
default n
---help---
Enables channel 4.
if STM32H7_TIM4_CHANNEL4
config STM32H7_TIM4_CH4MODE
int "TIM4 Channel 4 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM4_CH4OUT
bool "TIM4 Channel 4 Output"
default n
---help---
Enables channel 4 output.
endif # STM32H7_TIM4_CHANNEL4
endif # STM32H7_PWM_MULTICHAN
if !STM32H7_PWM_MULTICHAN
config STM32H7_TIM4_CHANNEL
int "TIM4 PWM Output Channel"
default 1
range 1 4
---help---
If TIM4 is enabled for PWM usage, you also need specifies the timer output
channel {1,..,4}
if STM32H7_TIM4_CHANNEL = 1
config STM32H7_TIM4_CH1OUT
bool "TIM4 Channel 1 Output"
default n
---help---
Enables channel 1 output.
endif # STM32H7_TIM4_CHANNEL = 1
if STM32H7_TIM4_CHANNEL = 2
config STM32H7_TIM4_CH2OUT
bool "TIM4 Channel 2 Output"
default n
---help---
Enables channel 2 output.
endif # STM32H7_TIM4_CHANNEL = 2
if STM32H7_TIM4_CHANNEL = 3
config STM32H7_TIM4_CH3OUT
bool "TIM4 Channel 3 Output"
default n
---help---
Enables channel 3 output.
endif # STM32H7_TIM4_CHANNEL = 3
if STM32H7_TIM4_CHANNEL = 4
config STM32H7_TIM4_CH4OUT
bool "TIM4 Channel 4 Output"
default n
---help---
Enables channel 4 output.
endif # STM32H7_TIM4_CHANNEL = 4
config STM32H7_TIM4_CHMODE
int "TIM4 Channel Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
endif # !STM32H7_PWM_MULTICHAN
endif # STM32H7_TIM4_PWM
config STM32H7_TIM5_PWM
bool "TIM5 PWM"
default n
depends on STM32H7_TIM5
select ARCH_HAVE_PWM_PULSECOUNT
select STM32H7_PWM
---help---
Reserve timer 5 for use by PWM
Timer devices may be used for different purposes. One special purpose is
to generate modulated outputs for such things as motor control. If STM32H7_TIM5
is defined then THIS following may also be defined to indicate that
the timer is intended to be used for pulsed output modulation.
if STM32H7_TIM5_PWM
config STM32H7_TIM5_MODE
int "TIM5 Mode"
default 0
range 0 4
---help---
Specifies the timer mode.
if STM32H7_PWM_MULTICHAN
config STM32H7_TIM5_CHANNEL1
bool "TIM5 Channel 1"
default n
---help---
Enables channel 1.
if STM32H7_TIM5_CHANNEL1
config STM32H7_TIM5_CH1MODE
int "TIM5 Channel 1 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM5_CH1OUT
bool "TIM5 Channel 1 Output"
default n
---help---
Enables channel 1 output.
endif # STM32H7_TIM5_CHANNEL1
config STM32H7_TIM5_CHANNEL2
bool "TIM5 Channel 2"
default n
---help---
Enables channel 2.
if STM32H7_TIM5_CHANNEL2
config STM32H7_TIM5_CH2MODE
int "TIM5 Channel 2 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM5_CH2OUT
bool "TIM5 Channel 2 Output"
default n
---help---
Enables channel 2 output.
endif # STM32H7_TIM5_CHANNEL2
config STM32H7_TIM5_CHANNEL3
bool "TIM5 Channel 3"
default n
---help---
Enables channel 3.
if STM32H7_TIM5_CHANNEL3
config STM32H7_TIM5_CH3MODE
int "TIM5 Channel 3 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM5_CH3OUT
bool "TIM5 Channel 3 Output"
default n
---help---
Enables channel 3 output.
endif # STM32H7_TIM5_CHANNEL3
config STM32H7_TIM5_CHANNEL4
bool "TIM5 Channel 4"
default n
---help---
Enables channel 4.
if STM32H7_TIM5_CHANNEL4
config STM32H7_TIM5_CH4MODE
int "TIM5 Channel 4 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM5_CH4OUT
bool "TIM5 Channel 4 Output"
default n
---help---
Enables channel 4 output.
endif # STM32H7_TIM5_CHANNEL4
endif # STM32H7_PWM_MULTICHAN
if !STM32H7_PWM_MULTICHAN
config STM32H7_TIM5_CHANNEL
int "TIM5 PWM Output Channel"
default 1
range 1 4
---help---
If TIM5 is enabled for PWM usage, you also need specifies the timer output
channel {1,..,4}
if STM32H7_TIM5_CHANNEL = 1
config STM32H7_TIM5_CH1OUT
bool "TIM5 Channel 1 Output"
default n
---help---
Enables channel 1 output.
endif # STM32H7_TIM5_CHANNEL = 1
if STM32H7_TIM5_CHANNEL = 2
config STM32H7_TIM5_CH2OUT
bool "TIM5 Channel 2 Output"
default n
---help---
Enables channel 2 output.
endif # STM32H7_TIM5_CHANNEL = 2
if STM32H7_TIM5_CHANNEL = 3
config STM32H7_TIM5_CH3OUT
bool "TIM5 Channel 3 Output"
default n
---help---
Enables channel 3 output.
endif # STM32H7_TIM5_CHANNEL = 3
if STM32H7_TIM5_CHANNEL = 4
config STM32H7_TIM5_CH4OUT
bool "TIM5 Channel 4 Output"
default n
---help---
Enables channel 4 output.
endif # STM32H7_TIM5_CHANNEL = 4
config STM32H7_TIM5_CHMODE
int "TIM5 Channel Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
endif # !STM32H7_PWM_MULTICHAN
endif # STM32H7_TIM5_PWM
config STM32H7_TIM8_PWM
bool "TIM8 PWM"
default n
depends on STM32H7_TIM8
select ARCH_HAVE_PWM_PULSECOUNT
select STM32H7_PWM
---help---
Reserve timer 8 for use by PWM
Timer devices may be used for different purposes. One special purpose is
to generate modulated outputs for such things as motor control. If STM32H7_TIM8
is defined then THIS following may also be defined to indicate that
the timer is intended to be used for pulsed output modulation.
if STM32H7_TIM8_PWM
config STM32H7_TIM8_MODE
int "TIM8 Mode"
default 0
range 0 4
---help---
Specifies the timer mode.
config STM32H7_TIM8_LOCK
int "TIM8 Lock Level Configuration"
default 0
range 0 3
---help---
Timer 8 lock level configuration
config STM32H7_TIM8_DEADTIME
int "TIM8 Initial Dead-time"
default 0
range 0 255
---help---
Timer 8 initial dead-time
config STM32H7_TIM8_TDTS
int "TIM8 t_DTS Division"
default 0
range 0 2
---help---
Timer 8 dead-time and sampling clock (t_DTS) division
if STM32H7_PWM_MULTICHAN
config STM32H7_TIM8_CHANNEL1
bool "TIM8 Channel 1"
default n
---help---
Enables channel 1.
if STM32H7_TIM8_CHANNEL1
config STM32H7_TIM8_CH1MODE
int "TIM8 Channel 1 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM8_CH1OUT
bool "TIM8 Channel 1 Output"
default n
---help---
Enables channel 1 output.
config STM32H7_TIM8_CH1NOUT
bool "TIM8 Channel 1 Complementary Output"
default n
---help---
Enables channel 1 Complementary Output.
endif # STM32H7_TIM8_CHANNEL1
config STM32H7_TIM8_CHANNEL2
bool "TIM8 Channel 2"
default n
---help---
Enables channel 2.
if STM32H7_TIM8_CHANNEL2
config STM32H7_TIM8_CH2MODE
int "TIM8 Channel 2 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM8_CH2OUT
bool "TIM8 Channel 2 Output"
default n
---help---
Enables channel 2 output.
config STM32H7_TIM8_CH2NOUT
bool "TIM8 Channel 2 Complementary Output"
default n
---help---
Enables channel 2 Complementary Output.
endif # STM32H7_TIM8_CHANNEL2
config STM32H7_TIM8_CHANNEL3
bool "TIM8 Channel 3"
default n
---help---
Enables channel 3.
if STM32H7_TIM8_CHANNEL3
config STM32H7_TIM8_CH3MODE
int "TIM8 Channel 3 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM8_CH3OUT
bool "TIM8 Channel 3 Output"
default n
---help---
Enables channel 3 output.
config STM32H7_TIM8_CH3NOUT
bool "TIM8 Channel 3 Complementary Output"
default n
---help---
Enables channel 3 Complementary Output.
endif # STM32H7_TIM8_CHANNEL3
config STM32H7_TIM8_CHANNEL4
bool "TIM8 Channel 4"
default n
---help---
Enables channel 4.
if STM32H7_TIM8_CHANNEL4
config STM32H7_TIM8_CH4MODE
int "TIM8 Channel 4 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM8_CH4OUT
bool "TIM8 Channel 4 Output"
default n
---help---
Enables channel 4 output.
endif # STM32H7_TIM8_CHANNEL4
config STM32H7_TIM8_CHANNEL5
bool "TIM8 Channel 5 (internal)"
default n
---help---
Enables channel 5 (no available externaly)
if STM32H7_TIM8_CHANNEL5
config STM32H7_TIM8_CH5MODE
int "TIM8 Channel 5 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM8_CH5OUT
bool "TIM8 Channel 5 Output"
default n
---help---
Enables channel 5 output.
endif # STM32H7_TIM8_CHANNEL5
config STM32H7_TIM8_CHANNEL6
bool "TIM8 Channel 6 (internal)"
default n
---help---
Enables channel 6 (no available externaly)
if STM32H7_TIM8_CHANNEL6
config STM32H7_TIM8_CH6MODE
int "TIM8 Channel 6 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM8_CH6OUT
bool "TIM8 Channel 6 Output"
default n
---help---
Enables channel 6 output.
endif # STM32H7_TIM8_CHANNEL6
endif # STM32H7_PWM_MULTICHAN
if !STM32H7_PWM_MULTICHAN
config STM32H7_TIM8_CHANNEL
int "TIM8 PWM Output Channel"
default 1
range 1 4
---help---
If TIM8 is enabled for PWM usage, you also need specifies the timer output
channel {1,..,4}
if STM32H7_TIM8_CHANNEL = 1
config STM32H7_TIM8_CH1OUT
bool "TIM8 Channel 1 Output"
default n
---help---
Enables channel 1 output.
config STM32H7_TIM8_CH1NOUT
bool "TIM8 Channel 1 Complementary Output"
default n
---help---
Enables channel 1 Complementary Output.
endif # STM32H7_TIM8_CHANNEL = 1
if STM32H7_TIM8_CHANNEL = 2
config STM32H7_TIM8_CH2OUT
bool "TIM8 Channel 2 Output"
default n
---help---
Enables channel 2 output.
config STM32H7_TIM8_CH2NOUT
bool "TIM8 Channel 2 Complementary Output"
default n
---help---
Enables channel 2 Complementary Output.
endif # STM32H7_TIM8_CHANNEL = 2
if STM32H7_TIM8_CHANNEL = 3
config STM32H7_TIM8_CH3OUT
bool "TIM8 Channel 3 Output"
default n
---help---
Enables channel 3 output.
config STM32H7_TIM8_CH3NOUT
bool "TIM8 Channel 3 Complementary Output"
default n
---help---
Enables channel 3 Complementary Output.
endif # STM32H7_TIM8_CHANNEL = 3
if STM32H7_TIM8_CHANNEL = 4
config STM32H7_TIM8_CH4OUT
bool "TIM8 Channel 4 Output"
default n
---help---
Enables channel 4 output.
endif # STM32H7_TIM8_CHANNEL = 4
config STM32H7_TIM8_CHMODE
int "TIM8 Channel Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
endif # !STM32H7_PWM_MULTICHAN
endif # STM32H7_TIM8_PWM
config STM32H7_TIM12_PWM
bool "TIM12 PWM"
default n
depends on STM32H7_TIM12
select ARCH_HAVE_PWM_PULSECOUNT
select STM32H7_PWM
---help---
Reserve timer 12 for use by PWM
Timer devices may be used for different purposes. One special purpose is
to generate modulated outputs for such things as motor control. If STM32H7_TIM12
is defined then THIS following may also be defined to indicate that
the timer is intended to be used for pulsed output modulation.
if STM32H7_TIM12_PWM
if STM32H7_PWM_MULTICHAN
config STM32H7_TIM12_CHANNEL1
bool "TIM12 Channel 1"
default n
---help---
Enables channel 1.
if STM32H7_TIM12_CHANNEL1
config STM32H7_TIM12_CH1MODE
int "TIM12 Channel 1 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM12_CH1OUT
bool "TIM12 Channel 1 Output"
default n
---help---
Enables channel 1 output.
endif # STM32H7_TIM12_CHANNEL1
config STM32H7_TIM12_CHANNEL2
bool "TIM12 Channel 2"
default n
---help---
Enables channel 2.
if STM32H7_TIM12_CHANNEL2
config STM32H7_TIM12_CH2MODE
int "TIM12 Channel 2 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM12_CH2OUT
bool "TIM12 Channel 2 Output"
default n
---help---
Enables channel 2 output.
endif # STM32H7_TIM12_CHANNEL2
endif # STM32H7_PWM_MULTICHAN
if !STM32H7_PWM_MULTICHAN
config STM32H7_TIM12_CHANNEL
int "TIM12 PWM Output Channel"
default 1
range 1 2
---help---
If TIM12 is enabled for PWM usage, you also need specifies the timer output
channel {1,2}
if STM32H7_TIM12_CHANNEL = 1
config STM32H7_TIM12_CH1OUT
bool "TIM12 Channel 1 Output"
default n
---help---
Enables channel 1 output.
endif # STM32H7_TIM12_CHANNEL = 1
if STM32H7_TIM12_CHANNEL = 2
config STM32H7_TIM12_CH2OUT
bool "TIM12 Channel 2 Output"
default n
---help---
Enables channel 2 output.
endif # STM32H7_TIM12_CHANNEL = 2
config STM32H7_TIM12_CHMODE
int "TIM12 Channel Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
endif # !STM32H7_PWM_MULTICHAN
endif # STM32H7_TIM12_PWM
config STM32H7_TIM13_PWM
bool "TIM13 PWM"
default n
depends on STM32H7_TIM13
select ARCH_HAVE_PWM_PULSECOUNT
select STM32H7_PWM
---help---
Reserve timer 13 for use by PWM
Timer devices may be used for different purposes. One special purpose is
to generate modulated outputs for such things as motor control. If STM32H7_TIM13
is defined then THIS following may also be defined to indicate that
the timer is intended to be used for pulsed output modulation.
if STM32H7_TIM13_PWM
if STM32H7_PWM_MULTICHAN
config STM32H7_TIM13_CHANNEL1
bool "TIM13 Channel 1"
default n
---help---
Enables channel 1.
if STM32H7_TIM13_CHANNEL1
config STM32H7_TIM13_CH1MODE
int "TIM13 Channel 1 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM13_CH1OUT
bool "TIM13 Channel 1 Output"
default n
---help---
Enables channel 1 output.
endif # STM32H7_TIM13_CHANNEL1
endif # STM32H7_PWM_MULTICHAN
if !STM32H7_PWM_MULTICHAN
config STM32H7_TIM13_CHANNEL
int "TIM13 PWM Output Channel"
default 1
range 1 1
---help---
If TIM13 is enabled for PWM usage, you also need specifies the timer output
channel {1}
if STM32H7_TIM13_CHANNEL = 1
config STM32H7_TIM13_CH1OUT
bool "TIM13 Channel 1 Output"
default n
---help---
Enables channel 1 output.
endif # STM32H7_TIM13_CHANNEL = 1
config STM32H7_TIM13_CHMODE
int "TIM13 Channel Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
endif # !STM32H7_PWM_MULTICHAN
endif # STM32H7_TIM13_PWM
config STM32H7_TIM14_PWM
bool "TIM14 PWM"
default n
depends on STM32H7_TIM14
select ARCH_HAVE_PWM_PULSECOUNT
select STM32H7_PWM
---help---
Reserve timer 14 for use by PWM
Timer devices may be used for different purposes. One special purpose is
to generate modulated outputs for such things as motor control. If STM32H7_TIM14
is defined then THIS following may also be defined to indicate that
the timer is intended to be used for pulsed output modulation.
if STM32H7_TIM14_PWM
if STM32H7_PWM_MULTICHAN
config STM32H7_TIM14_CHANNEL1
bool "TIM14 Channel 1"
default n
---help---
Enables channel 1.
if STM32H7_TIM14_CHANNEL1
config STM32H7_TIM14_CH1MODE
int "TIM14 Channel 1 Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM14_CH1OUT
bool "TIM14 Channel 1 Output"
default n
---help---
Enables channel 1 output.
endif # STM32H7_TIM14_CHANNEL1
endif # STM32H7_PWM_MULTICHAN
if !STM32H7_PWM_MULTICHAN
config STM32H7_TIM14_CHANNEL
int "TIM14 PWM Output Channel"
default 1
range 1 1
---help---
If TIM14 is enabled for PWM usage, you also need specifies the timer output
channel {1}
if STM32H7_TIM14_CHANNEL = 1
config STM32H7_TIM14_CH1OUT
bool "TIM14 Channel 1 Output"
default n
---help---
Enables channel 1 output.
endif # STM32H7_TIM14_CHANNEL = 1
config STM32H7_TIM14_CHMODE
int "TIM14 Channel Mode"
default 6
range 0 11
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
endif # !STM32H7_PWM_MULTICHAN
endif # STM32H7_TIM14_PWM
config STM32H7_TIM15_PWM
bool "TIM15 PWM"
default n
depends on STM32H7_TIM15
select STM32H7_PWM
---help---
Reserve timer 15 for use by PWM
Timer devices may be used for different purposes. One special purpose is
to generate modulated outputs for such things as motor control. If STM32H7_TIM15
is defined then THIS following may also be defined to indicate that
the timer is intended to be used for pulsed output modulation.
if STM32H7_TIM15_PWM
config STM32H7_TIM15_LOCK
int "TIM15 Lock Level Configuration"
default 0
range 0 3
---help---
Timer 15 lock level configuration
config STM32H7_TIM15_TDTS
int "TIM15 t_DTS Division"
default 0
range 0 2
---help---
Timer 15 dead-time and sampling clock (t_DTS) division
config STM32H7_TIM15_DEADTIME
int "TIM15 Initial Dead-time"
default 0
range 0 255
---help---
Timer 15 initial dead-time
if STM32H7_PWM_MULTICHAN
config STM32H7_TIM15_CHANNEL1
bool "TIM15 Channel 1"
default n
---help---
Enables channel 1.
if STM32H7_TIM15_CHANNEL1
config STM32H7_TIM15_CH1MODE
int "TIM15 Channel 1 Mode"
default 6
range 0 9
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM15_CH1OUT
bool "TIM15 Channel 1 Output"
default n
---help---
Enables channel 1 output.
config STM32H7_TIM15_CH1NOUT
bool "TIM15 Channel 1 Complementary Output"
default n
---help---
Enables channel 1 Complementary Output.
endif # STM32H7_TIM15_CHANNEL1
config STM32H7_TIM15_CHANNEL2
bool "TIM15 Channel 2"
default n
---help---
Enables channel 2.
if STM32H7_TIM15_CHANNEL2
config STM32H7_TIM15_CH2MODE
int "TIM15 Channel 2 Mode"
default 6
range 0 9
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM15_CH2OUT
bool "TIM15 Channel 2 Output"
default n
---help---
Enables channel 2 output.
endif # STM32H7_TIM15_CHANNEL2
endif # STM32H7_PWM_MULTICHAN
if !STM32H7_PWM_MULTICHAN
config STM32H7_TIM15_CHANNEL
int "TIM15 PWM Output Channel"
default 1
range 1 2
---help---
If TIM15 is enabled for PWM usage, you also need specifies the timer output
channel {1,2}
if STM32H7_TIM15_CHANNEL = 1
config STM32H7_TIM15_CH1OUT
bool "TIM15 Channel 1 Output"
default n
---help---
Enables channel 1 output.
config STM32H7_TIM15_CH1NOUT
bool "TIM15 Channel 1 Complementary Output"
default n
---help---
Enables channel 1 Complementary Output.
endif # STM32H7_TIM15_CHANNEL = 1
if STM32H7_TIM15_CHANNEL = 2
config STM32H7_TIM15_CH2OUT
bool "TIM15 Channel 2 Output"
default n
---help---
Enables channel 2 output.
config STM32H7_TIM15_CH2NOUT
bool "TIM15 Channel 2 Complementary Output"
default n
---help---
Enables channel 2 Complementary Output.
endif # STM32H7_TIM15_CHANNEL = 2
config STM32H7_TIM15_CHMODE
int "TIM15 Channel Mode"
default 6
range 0 9
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
endif # !STM32H7_PWM_MULTICHAN
endif # STM32H7_TIM15_PWM
config STM32H7_TIM16_PWM
bool "TIM16 PWM"
default n
depends on STM32H7_TIM16
select STM32H7_PWM
---help---
Reserve timer 16 for use by PWM
Timer devices may be used for different purposes. One special purpose is
to generate modulated outputs for such things as motor control. If STM32H7_TIM16
is defined then THIS following may also be defined to indicate that
the timer is intended to be used for pulsed output modulation.
if STM32H7_TIM16_PWM
config STM32H7_TIM16_LOCK
int "TIM16 Lock Level Configuration"
default 0
range 0 3
---help---
Timer 16 lock level configuration
config STM32H7_TIM16_TDTS
int "TIM16 t_DTS division"
default 0
range 0 2
---help---
Timer 16 dead-time and sampling clock (t_DTS) division
config STM32H7_TIM16_DEADTIME
int "TIM16 Initial Dead-time"
default 0
range 0 255
---help---
Timer 16 initial dead-time
if STM32H7_PWM_MULTICHAN
config STM32H7_TIM16_CHANNEL1
bool "TIM16 Channel 1"
default n
---help---
Enables channel 1.
if STM32H7_TIM16_CHANNEL1
config STM32H7_TIM16_CH1MODE
int "TIM16 Channel 1 Mode"
default 6
range 0 7
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM16_CH1OUT
bool "TIM16 Channel 1 Output"
default n
---help---
Enables channel 1 output.
endif # STM32H7_TIM16_CHANNEL1
endif # STM32H7_PWM_MULTICHAN
if !STM32H7_PWM_MULTICHAN
config STM32H7_TIM16_CHANNEL
int "TIM16 PWM Output Channel"
default 1
range 1 1
---help---
If TIM16 is enabled for PWM usage, you also need specifies the timer output
channel {1}
if STM32H7_TIM16_CHANNEL = 1
config STM32H7_TIM16_CH1OUT
bool "TIM16 Channel 1 Output"
default n
---help---
Enables channel 1 output.
endif # STM32H7_TIM16_CHANNEL = 1
config STM32H7_TIM16_CHMODE
int "TIM16 Channel Mode"
default 6
range 0 7
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
endif # !STM32H7_PWM_MULTICHAN
endif # STM32H7_TIM16_PWM
config STM32H7_TIM17_PWM
bool "TIM17 PWM"
default n
depends on STM32H7_TIM17
select STM32H7_PWM
---help---
Reserve timer 17 for use by PWM
Timer devices may be used for different purposes. One special purpose is
to generate modulated outputs for such things as motor control. If STM32H7_TIM17
is defined then THIS following may also be defined to indicate that
the timer is intended to be used for pulsed output modulation.
if STM32H7_TIM17_PWM
config STM32H7_TIM17_LOCK
int "TIM17 Lock Level Configuration"
default 0
range 0 3
---help---
Timer 17 lock level configuration
config STM32H7_TIM17_TDTS
int "TIM17 t_DTS Division"
default 0
range 0 2
---help---
Timer 17 dead-time and sampling clock (t_DTS) division
config STM32H7_TIM17_DEADTIME
int "TIM17 Initial Dead-time"
default 0
range 0 255
---help---
Timer 17 initial dead-time
if STM32H7_PWM_MULTICHAN
config STM32H7_TIM17_CHANNEL1
bool "TIM17 Channel 1"
default n
---help---
Enables channel 1.
if STM32H7_TIM17_CHANNEL1
config STM32H7_TIM17_CH1MODE
int "TIM17 Channel 1 Mode"
default 6
range 0 7
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
config STM32H7_TIM17_CH1OUT
bool "TIM17 Channel 1 Output"
default n
---help---
Enables channel 1 output.
endif # STM32H7_TIM17_CHANNEL1
endif # STM32H7_PWM_MULTICHAN
if !STM32H7_PWM_MULTICHAN
config STM32H7_TIM17_CHANNEL
int "TIM17 PWM Output Channel"
default 1
range 1 1
---help---
If TIM17 is enabled for PWM usage, you also need specifies the timer output
channel {1}
if STM32H7_TIM17_CHANNEL = 1
config STM32H7_TIM17_CH1OUT
bool "TIM17 Channel 1 Output"
default n
---help---
Enables channel 1 output.
endif # STM32H7_TIM17_CHANNEL = 1
config STM32H7_TIM17_CHMODE
int "TIM17 Channel Mode"
default 6
range 0 7
---help---
Specifies the channel mode. See enum stm32_pwm_chanmode_e in stm32_pwm.h.
endif # !STM32H7_PWM_MULTICHAN
endif # STM32H7_TIM17_PWM
config STM32H7_PWM_MULTICHAN
bool "PWM Multiple Output Channels"
default n
depends on STM32H7_TIM1_PWM || STM32H7_TIM2_PWM || STM32H7_TIM3_PWM || STM32H7_TIM4_PWM || STM32H7_TIM5_PWM || STM32H7_TIM8_PWM || STM32H7_TIM12_PWM || STM32H7_TIM15_PWM
select ARCH_HAVE_PWM_MULTICHAN
---help---
Specifies that the PWM driver supports multiple output
channels per timer.
config STM32H7_TIM1_ADC
bool "TIM1 ADC"
default n
depends on STM32H7_TIM1 && STM32H7_ADC
---help---
Reserve timer 1 for use by an ADC
Timer devices may be used for different purposes. If STM32H7_TIM1 is
defined then the following may also be defined to indicate that the
timer is intended to be used for ADC conversion. Note that ADC usage
requires two definition: Not only do you have to assign the timer
for used by the ADC, but then you also have to configure which ADC
channel it is assigned to.
choice
prompt "Select ADC for use with TIM1"
default STM32H7_TIM1_ADC1
depends on STM32H7_TIM1_ADC
config STM32H7_TIM1_ADC1
bool "Use TIM1 for ADC1"
depends on STM32H7_ADC1
select STM32H7_HAVE_ADC1_TIMER
---help---
Reserve TIM1 to trigger ADC1
config STM32H7_TIM1_ADC2
bool "Use TIM1 for ADC2"
depends on STM32H7_ADC2
select STM32H7_HAVE_ADC2_TIMER
---help---
Reserve TIM1 to trigger ADC2
config STM32H7_TIM1_ADC3
bool "Use TIM1 for ADC3"
depends on STM32H7_ADC3
select STM32H7_HAVE_ADC3_TIMER
---help---
Reserve TIM1 to trigger ADC3
endchoice
config STM32H7_TIM2_ADC
bool "TIM2 ADC"
default n
depends on STM32H7_TIM2 && STM32H7_ADC
---help---
Reserve timer 2 for use by an ADC
Timer devices may be used for different purposes. If STM32H7_TIM2 is
defined then the following may also be defined to indicate that the
timer is intended to be used for ADC conversion. Note that ADC usage
requires two definition: Not only do you have to assign the timer
for used by the ADC, but then you also have to configure which ADC
channel it is assigned to.
choice
prompt "Select ADC for use with TIM2"
default STM32H7_TIM2_ADC1
depends on STM32H7_TIM2_ADC
config STM32H7_TIM2_ADC1
bool "Use TIM2 for ADC1"
depends on STM32H7_ADC1
select STM32H7_HAVE_ADC1_TIMER
---help---
Reserve TIM2 to trigger ADC1
config STM32H7_TIM2_ADC2
bool "Use TIM2 for ADC2"
depends on STM32H7_ADC2
select STM32H7_HAVE_ADC2_TIMER
---help---
Reserve TIM2 to trigger ADC2
config STM32H7_TIM2_ADC3
bool "Use TIM2 for ADC3"
depends on STM32H7_ADC3
select STM32H7_HAVE_ADC3_TIMER
---help---
Reserve TIM2 to trigger ADC3
endchoice
config STM32H7_TIM3_ADC
bool "TIM3 ADC"
default n
depends on STM32H7_TIM3 && STM32H7_ADC
---help---
Reserve timer 3 for use by an ADC
Timer devices may be used for different purposes. If STM32H7_TIM3 is
defined then the following may also be defined to indicate that the
timer is intended to be used for ADC conversion. Note that ADC usage
requires two definition: Not only do you have to assign the timer
for used by the ADC, but then you also have to configure which ADC
channel it is assigned to.
choice
prompt "Select ADC for use with TIM3"
default STM32H7_TIM3_ADC1
depends on STM32H7_TIM3_ADC
config STM32H7_TIM3_ADC1
bool "Use TIM3 for ADC1"
depends on STM32H7_ADC1
select STM32H7_HAVE_ADC1_TIMER
---help---
Reserve TIM3 to trigger ADC1
config STM32H7_TIM3_ADC2
bool "Use TIM3 for ADC2"
depends on STM32H7_ADC2
select STM32H7_HAVE_ADC2_TIMER
---help---
Reserve TIM3 to trigger ADC2
config STM32H7_TIM3_ADC3
bool "Use TIM3 for ADC3"
depends on STM32H7_ADC3
select STM32H7_HAVE_ADC3_TIMER
---help---
Reserve TIM3 to trigger ADC3
endchoice
config STM32H7_TIM4_ADC
bool "TIM4 ADC"
default n
depends on STM32H7_TIM4 && STM32H7_ADC
---help---
Reserve timer 4 for use by ADC
Timer devices may be used for different purposes. If STM32H7_TIM4 is
defined then the following may also be defined to indicate that the
timer is intended to be used for ADC conversion. Note that ADC usage
requires two definition: Not only do you have to assign the timer
for used by the ADC, but then you also have to configure which ADC
channel it is assigned to.
choice
prompt "Select ADC for use with TIM4"
default STM32H7_TIM4_ADC1
depends on STM32H7_TIM4_ADC
config STM32H7_TIM4_ADC1
bool "Use TIM4 for ADC1"
depends on STM32H7_ADC1
select STM32H7_HAVE_ADC1_TIMER
---help---
Reserve TIM4 to trigger ADC1
config STM32H7_TIM4_ADC2
bool "Use TIM4 for ADC2"
depends on STM32H7_ADC2
select STM32H7_HAVE_ADC2_TIMER
---help---
Reserve TIM4 to trigger ADC2
config STM32H7_TIM4_ADC3
bool "Use TIM4 for ADC3"
depends on STM32H7_ADC3
select STM32H7_HAVE_ADC3_TIMER
---help---
Reserve TIM4 to trigger ADC3
endchoice
config STM32H7_TIM6_ADC
bool "TIM6 ADC"
default n
depends on STM32H7_TIM6 && STM32H7_ADC
---help---
Reserve timer 6 for use by ADC
Timer devices may be used for different purposes. If STM32H7_TIM6 is
defined then the following may also be defined to indicate that the
timer is intended to be used for ADC conversion. Note that ADC usage
requires two definition: Not only do you have to assign the timer
for used by the ADC, but then you also have to configure which ADC
channel it is assigned to.
choice
prompt "Select ADC for use with TIM6"
default STM32H7_TIM6_ADC1
depends on STM32H7_TIM6_ADC
config STM32H7_TIM6_ADC1
bool "Use TIM6 for ADC1"
depends on STM32H7_ADC1
select STM32H7_HAVE_ADC1_TIMER
---help---
Reserve TIM6 to trigger ADC1
config STM32H7_TIM6_ADC2
bool "Use TIM6 for ADC2"
depends on STM32H7_ADC2
select STM32H7_HAVE_ADC2_TIMER
---help---
Reserve TIM6 to trigger ADC2
config STM32H7_TIM6_ADC3
bool "Use TIM6 for ADC3"
depends on STM32H7_ADC3
select STM32H7_HAVE_ADC3_TIMER
---help---
Reserve TIM6 to trigger ADC3
endchoice
config STM32H7_TIM8_ADC
bool "TIM8 ADC"
default n
depends on STM32H7_TIM8 && STM32H7_ADC
---help---
Reserve timer 8 for use by ADC
Timer devices may be used for different purposes. If STM32H7_TIM8 is
defined then the following may also be defined to indicate that the
timer is intended to be used for ADC conversion. Note that ADC usage
requires two definition: Not only do you have to assign the timer
for used by the ADC, but then you also have to configure which ADC
channel it is assigned to.
choice
prompt "Select ADC for use with TIM8"
default STM32H7_TIM8_ADC1
depends on STM32H7_TIM8_ADC
config STM32H7_TIM8_ADC1
bool "Use TIM8 for ADC1"
depends on STM32H7_ADC1
select STM32H7_HAVE_ADC1_TIMER
---help---
Reserve TIM8 to trigger ADC1
config STM32H7_TIM8_ADC2
bool "Use TIM8 for ADC2"
depends on STM32H7_ADC2
select STM32H7_HAVE_ADC2_TIMER
---help---
Reserve TIM8 to trigger ADC2
config STM32H7_TIM8_ADC3
bool "Use TIM8 for ADC3"
depends on STM32H7_ADC3
select STM32H7_HAVE_ADC3_TIMER
---help---
Reserve TIM8 to trigger ADC3
endchoice
config STM32H7_TIM15_ADC
bool "TIM15 ADC"
default n
depends on STM32H7_TIM15 && STM32H7_ADC
---help---
Reserve timer 15 for use by ADC
Timer devices may be used for different purposes. If STM32H7_TIM15 is
defined then the following may also be defined to indicate that the
timer is intended to be used for ADC conversion. Note that ADC usage
requires two definition: Not only do you have to assign the timer
for used by the ADC, but then you also have to configure which ADC
channel it is assigned to.
choice
prompt "Select ADC for use with TIM15"
default STM32H7_TIM15_ADC1
depends on STM32H7_TIM15_ADC
config STM32H7_TIM15_ADC1
bool "Use TIM15 for ADC1"
depends on STM32H7_ADC1
select STM32H7_HAVE_ADC1_TIMER
---help---
Reserve TIM15 to trigger ADC1
config STM32H7_TIM15_ADC2
bool "Use TIM15 for ADC2"
depends on STM32H7_ADC2
select STM32H7_HAVE_ADC2_TIMER
---help---
Reserve TIM15 to trigger ADC2
config STM32H7_TIM15_ADC3
bool "Use TIM15 for ADC3"
depends on STM32H7_ADC3
select STM32H7_HAVE_ADC3_TIMER
---help---
Reserve TIM15 to trigger ADC3
endchoice
config STM32H7_HAVE_ADC1_TIMER
bool
config STM32H7_HAVE_ADC2_TIMER
bool
config STM32H7_HAVE_ADC3_TIMER
bool
config STM32H7_ADC1_SAMPLE_FREQUENCY
int "ADC1 Sampling Frequency"
default 100
depends on STM32H7_HAVE_ADC1_TIMER
---help---
ADC1 sampling frequency. Default: 100Hz
config STM32H7_ADC1_TIMTRIG
int "ADC1 Timer Trigger"
default 0
range 0 4
depends on STM32H7_HAVE_ADC1_TIMER
---help---
Values 0:CC1 1:CC2 2:CC3 3:CC4 4:TRGO
config STM32H7_ADC2_SAMPLE_FREQUENCY
int "ADC2 Sampling Frequency"
default 100
depends on STM32H7_HAVE_ADC2_TIMER
---help---
ADC2 sampling frequency. Default: 100Hz
config STM32H7_ADC2_TIMTRIG
int "ADC2 Timer Trigger"
default 0
range 0 4
depends on STM32H7_HAVE_ADC2_TIMER
---help---
Values 0:CC1 1:CC2 2:CC3 3:CC4 4:TRGO
config STM32H7_ADC3_SAMPLE_FREQUENCY
int "ADC3 Sampling Frequency"
default 100
depends on STM32H7_HAVE_ADC3_TIMER
---help---
ADC3 sampling frequency. Default: 100Hz
config STM32H7_ADC3_TIMTRIG
int "ADC3 Timer Trigger"
default 0
range 0 4
depends on STM32H7_HAVE_ADC3_TIMER
---help---
Values 0:CC1 1:CC2 2:CC3 3:CC4 4:TRGO
config STM32H7_TIM1_CAP
bool "TIM1 Capture"
default n
depends on STM32H7_TIM1
---help---
Reserve timer 1 for use by Capture
Timer devices may be used for different purposes. One special purpose is
to capture input.
config STM32H7_TIM2_CAP
bool "TIM2 Capture"
default n
depends on STM32H7_TIM2
---help---
Reserve timer 2 for use by Capture
Timer devices may be used for different purposes. One special purpose is
to capture input.
config STM32H7_TIM3_CAP
bool "TIM3 Capture"
default n
depends on STM32H7_TIM3
---help---
Reserve timer 3 for use by Capture
Timer devices may be used for different purposes. One special purpose is
to capture input.
config STM32H7_TIM4_CAP
bool "TIM4 Capture"
default n
depends on STM32H7_TIM4
---help---
Reserve timer 4 for use by Capture
Timer devices may be used for different purposes. One special purpose is
to capture input.
config STM32H7_TIM5_CAP
bool "TIM5 Capture"
default n
depends on STM32H7_TIM5
---help---
Reserve timer 5 for use by Capture
Timer devices may be used for different purposes. One special purpose is
to capture input.
config STM32H7_TIM8_CAP
bool "TIM8 Capture"
default n
depends on STM32H7_TIM8
---help---
Reserve timer 8 for use by Capture
Timer devices may be used for different purposes. One special purpose is
to capture input.
config STM32H7_TIM12_CAP
bool "TIM12 Capture"
default n
depends on STM32H7_TIM12
---help---
Reserve timer 12 for use by Capture
Timer devices may be used for different purposes. One special purpose is
to capture input.
config STM32H7_TIM13_CAP
bool "TIM13 Capture"
default n
depends on STM32H7_TIM13
---help---
Reserve timer 13 for use by Capture
Timer devices may be used for different purposes. One special purpose is
to capture input.
config STM32H7_TIM14_CAP
bool "TIM14 Capture"
default n
depends on STM32H7_TIM14
---help---
Reserve timer 14 for use by Capture
Timer devices may be used for different purposes. One special purpose is
to capture input.
config STM32H7_TIM15_CAP
bool "TIM15 Capture"
default n
depends on STM32H7_TIM15
---help---
Reserve timer 15 for use by Capture
Timer devices may be used for different purposes. One special purpose is
to capture input.
config STM32H7_TIM16_CAP
bool "TIM16 Capture"
default n
depends on STM32H7_TIM16
---help---
Reserve timer 16 for use by Capture
Timer devices may be used for different purposes. One special purpose is
to capture input.
config STM32H7_TIM17_CAP
bool "TIM14 Capture"
default n
depends on STM32H7_TIM17
---help---
Reserve timer 17 for use by Capture
Timer devices may be used for different purposes. One special purpose is
to capture input.
menu "STM32 TIMx Outputs Configuration"
config STM32H7_TIM1_CH1POL
int "TIM1 Channel 1 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM1_CH1OUT
---help---
TIM1 Channel 1 output polarity
config STM32H7_TIM1_CH1IDLE
int "TIM1 Channel 1 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM1_CH1OUT
---help---
TIM1 Channel 1 output IDLE
config STM32H7_TIM1_CH1NPOL
int "TIM1 Channel 1 Complementary Output polarity"
default 0
range 0 1
depends on STM32H7_TIM1_CH1NOUT
---help---
TIM1 Channel 1 Complementary Output polarity
config STM32H7_TIM1_CH1NIDLE
int "TIM1 Channel 1 Complementary Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM1_CH1NOUT
---help---
TIM1 Channel 1 Complementary Output IDLE
config STM32H7_TIM1_CH2POL
int "TIM1 Channel 2 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM1_CH2OUT
---help---
TIM1 Channel 2 output polarity
config STM32H7_TIM1_CH2IDLE
int "TIM1 Channel 2 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM1_CH2OUT
---help---
TIM1 Channel 2 output IDLE
config STM32H7_TIM1_CH2NPOL
int "TIM1 Channel 2 Complementary Output polarity"
default 0
range 0 1
depends on STM32H7_TIM1_CH2NOUT
---help---
TIM1 Channel 2 Complementary Output polarity
config STM32H7_TIM1_CH2NIDLE
int "TIM1 Channel 2 Complementary Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM1_CH2NOUT
---help---
TIM1 Channel 2 Complementary Output IDLE
config STM32H7_TIM1_CH3POL
int "TIM1 Channel 3 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM1_CH3OUT
---help---
TIM1 Channel 3 output polarity
config STM32H7_TIM1_CH3IDLE
int "TIM1 Channel 3 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM1_CH3OUT
---help---
TIM1 Channel 3 output IDLE
config STM32H7_TIM1_CH3NPOL
int "TIM1 Channel 3 Complementary Output polarity"
default 0
range 0 1
depends on STM32H7_TIM1_CH3NOUT
---help---
TIM1 Channel 3 Complementary Output polarity
config STM32H7_TIM1_CH3NIDLE
int "TIM1 Channel 3 Complementary Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM1_CH3NOUT
---help---
TIM1 Channel 3 Complementary Output IDLE
config STM32H7_TIM1_CH4POL
int "TIM1 Channel 4 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM1_CH4OUT
---help---
TIM1 Channel 4 output polarity
config STM32H7_TIM1_CH4IDLE
int "TIM1 Channel 4 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM1_CH4OUT
---help---
TIM1 Channel 4 output IDLE
config STM32H7_TIM1_CH5POL
int "TIM1 Channel 5 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM1_CH5OUT
---help---
TIM1 Channel 5 output polarity
config STM32H7_TIM1_CH5IDLE
int "TIM1 Channel 5 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM1_CH5OUT
---help---
TIM1 Channel 5 output IDLE
config STM32H7_TIM1_CH6POL
int "TIM1 Channel 6 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM1_CH6OUT
---help---
TIM1 Channel 6 output polarity
config STM32H7_TIM1_CH6IDLE
int "TIM1 Channel 6 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM1_CH6OUT
---help---
TIM1 Channel 6 output IDLE
config STM32H7_TIM2_CH1POL
int "TIM2 Channel 1 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM2_CH1OUT
---help---
TIM2 Channel 1 output polarity
config STM32H7_TIM2_CH1IDLE
int "TIM2 Channel 1 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM2_CH1OUT
---help---
TIM2 Channel 1 output IDLE
config STM32H7_TIM2_CH2POL
int "TIM2 Channel 2 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM2_CH2OUT
---help---
TIM2 Channel 2 output polarity
config STM32H7_TIM2_CH2IDLE
int "TIM2 Channel 2 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM2_CH2OUT
---help---
TIM2 Channel 2 output IDLE
config STM32H7_TIM2_CH3POL
int "TIM2 Channel 3 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM2_CH3OUT
---help---
TIM2 Channel 3 output polarity
config STM32H7_TIM2_CH3IDLE
int "TIM2 Channel 3 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM2_CH3OUT
---help---
TIM2 Channel 3 output IDLE
config STM32H7_TIM2_CH4POL
int "TIM2 Channel 4 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM2_CH4OUT
---help---
TIM2 Channel 4 output polarity
config STM32H7_TIM2_CH4IDLE
int "TIM2 Channel 4 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM2_CH4OUT
---help---
TIM2 Channel 4 output IDLE
config STM32H7_TIM3_CH1POL
int "TIM3 Channel 1 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM3_CH1OUT
---help---
TIM3 Channel 1 output polarity
config STM32H7_TIM3_CH1IDLE
int "TIM3 Channel 1 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM3_CH1OUT
---help---
TIM3 Channel 1 output IDLE
config STM32H7_TIM3_CH2POL
int "TIM3 Channel 2 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM3_CH2OUT
---help---
TIM3 Channel 2 output polarity
config STM32H7_TIM3_CH2IDLE
int "TIM3 Channel 2 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM3_CH2OUT
---help---
TIM3 Channel 2 output IDLE
config STM32H7_TIM3_CH3POL
int "TIM3 Channel 3 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM3_CH3OUT
---help---
TIM3 Channel 3 output polarity
config STM32H7_TIM3_CH3IDLE
int "TIM3 Channel 3 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM3_CH3OUT
---help---
TIM3 Channel 3 output IDLE
config STM32H7_TIM3_CH4POL
int "TIM3 Channel 4 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM3_CH4OUT
---help---
TIM3 Channel 4 output polarity
config STM32H7_TIM3_CH4IDLE
int "TIM3 Channel 4 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM3_CH4OUT
---help---
TIM3 Channel 4 output IDLE
config STM32H7_TIM4_CH1POL
int "TIM4 Channel 1 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM4_CH1OUT
---help---
TIM4 Channel 1 output polarity
config STM32H7_TIM4_CH1IDLE
int "TIM4 Channel 1 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM4_CH1OUT
---help---
TIM4 Channel 1 output IDLE
config STM32H7_TIM4_CH2POL
int "TIM4 Channel 2 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM4_CH2OUT
---help---
TIM4 Channel 2 output polarity
config STM32H7_TIM4_CH2IDLE
int "TIM4 Channel 2 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM4_CH2OUT
---help---
TIM4 Channel 2 output IDLE
config STM32H7_TIM4_CH3POL
int "TIM4 Channel 3 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM4_CH3OUT
---help---
TIM4 Channel 3 output polarity
config STM32H7_TIM4_CH3IDLE
int "TIM4 Channel 3 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM4_CH3OUT
---help---
TIM4 Channel 3 output IDLE
config STM32H7_TIM4_CH4POL
int "TIM4 Channel 4 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM4_CH4OUT
---help---
TIM4 Channel 4 output polarity
config STM32H7_TIM4_CH4IDLE
int "TIM4 Channel 4 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM4_CH4OUT
---help---
TIM4 Channel 4 output IDLE
config STM32H7_TIM5_CH1POL
int "TIM5 Channel 1 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM5_CH1OUT
---help---
TIM5 Channel 1 output polarity
config STM32H7_TIM5_CH1IDLE
int "TIM5 Channel 1 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM5_CH1OUT
---help---
TIM5 Channel 1 output IDLE
config STM32H7_TIM5_CH2POL
int "TIM5 Channel 2 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM5_CH2OUT
---help---
TIM5 Channel 2 output polarity
config STM32H7_TIM5_CH2IDLE
int "TIM5 Channel 2 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM5_CH2OUT
---help---
TIM5 Channel 2 output IDLE
config STM32H7_TIM5_CH3POL
int "TIM5 Channel 3 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM5_CH3OUT
---help---
TIM5 Channel 3 output polarity
config STM32H7_TIM5_CH3IDLE
int "TIM5 Channel 3 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM5_CH3OUT
---help---
TIM5 Channel 3 output IDLE
config STM32H7_TIM5_CH4POL
int "TIM5 Channel 4 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM5_CH4OUT
---help---
TIM5 Channel 4 output polarity
config STM32H7_TIM5_CH4IDLE
int "TIM5 Channel 4 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM5_CH4OUT
---help---
TIM5 Channel 4 output IDLE
config STM32H7_TIM8_CH1POL
int "TIM8 Channel 1 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM8_CH1OUT
---help---
TIM8 Channel 1 output polarity
config STM32H7_TIM8_CH1IDLE
int "TIM8 Channel 1 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM8_CH1OUT
---help---
TIM8 Channel 1 output IDLE
config STM32H7_TIM8_CH1NPOL
int "TIM8 Channel 1 Complementary Output polarity"
default 0
range 0 1
depends on STM32H7_TIM8_CH1NOUT
---help---
TIM8 Channel 1 Complementary Output polarity
config STM32H7_TIM8_CH1NIDLE
int "TIM8 Channel 1 Complementary Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM8_CH1NOUT
---help---
TIM8 Channel 1 Complementary Output IDLE
config STM32H7_TIM8_CH2POL
int "TIM8 Channel 2 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM8_CH2OUT
---help---
TIM8 Channel 2 output polarity
config STM32H7_TIM8_CH2IDLE
int "TIM8 Channel 2 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM8_CH2OUT
---help---
TIM8 Channel 2 output IDLE
config STM32H7_TIM8_CH2NPOL
int "TIM8 Channel 2 Complementary Output polarity"
default 0
range 0 1
depends on STM32H7_TIM8_CH2NOUT
---help---
TIM8 Channel 2 Complementary Output polarity
config STM32H7_TIM8_CH2NIDLE
int "TIM8 Channel 2 Complementary Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM8_CH2NOUT
---help---
TIM8 Channel 2 Complementary Output IDLE
config STM32H7_TIM8_CH3POL
int "TIM8 Channel 3 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM8_CH3OUT
---help---
TIM8 Channel 3 output polarity
config STM32H7_TIM8_CH3IDLE
int "TIM8 Channel 3 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM8_CH3OUT
---help---
TIM8 Channel 3 output IDLE
config STM32H7_TIM8_CH3NPOL
int "TIM8 Channel 3 Complementary Output polarity"
default 0
range 0 1
depends on STM32H7_TIM8_CH3NOUT
---help---
TIM8 Channel 3 Complementary Output polarity
config STM32H7_TIM8_CH3NIDLE
int "TIM8 Channel 3 Complementary Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM8_CH3NOUT
---help---
TIM8 Channel 3 Complementary Output IDLE
config STM32H7_TIM8_CH4POL
int "TIM8 Channel 4 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM8_CH4OUT
---help---
TIM8 Channel 4 output polarity
config STM32H7_TIM8_CH4IDLE
int "TIM8 Channel 4 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM8_CH4OUT
---help---
TIM8 Channel 4 output IDLE
config STM32H7_TIM8_CH5POL
int "TIM8 Channel 5 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM8_CH5OUT
---help---
TIM8 Channel 5 output polarity
config STM32H7_TIM8_CH5IDLE
int "TIM8 Channel 5 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM8_CH5OUT
---help---
TIM8 Channel 5 output IDLE
config STM32H7_TIM8_CH6POL
int "TIM8 Channel 6 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM8_CH6OUT
---help---
TIM8 Channel 6 output polarity
config STM32H7_TIM8_CH6IDLE
int "TIM8 Channel 6 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM8_CH6OUT
---help---
TIM8 Channel 6 output IDLE
config STM32H7_TIM12_CH1POL
int "TIM12 Channel 1 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM12_CH1OUT
---help---
TIM12 Channel 1 output polarity
config STM32H7_TIM12_CH1IDLE
int "TIM12 Channel 1 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM12_CH1OUT
---help---
TIM12 Channel 1 output IDLE
config STM32H7_TIM12_CH2POL
int "TIM12 Channel 2 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM12_CH2OUT
---help---
TIM12 Channel 2 output polarity
config STM32H7_TIM12_CH2IDLE
int "TIM12 Channel 2 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM12_CH2OUT
---help---
TIM12 Channel 2 output IDLE
config STM32H7_TIM13_CH1POL
int "TIM13 Channel 1 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM13_CH1OUT
---help---
TIM13 Channel 1 output polarity
config STM32H7_TIM13_CH1IDLE
int "TIM13 Channel 1 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM13_CH1OUT
---help---
TIM13 Channel 1 output IDLE
config STM32H7_TIM14_CH1POL
int "TIM14 Channel 1 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM14_CH1OUT
---help---
TIM14 Channel 1 output polarity
config STM32H7_TIM14_CH1IDLE
int "TIM14 Channel 1 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM14_CH1OUT
---help---
TIM14 Channel 1 output IDLE
config STM32H7_TIM15_CH1POL
int "TIM15 Channel 1 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM15_CH1OUT
---help---
TIM15 Channel 1 output polarity
config STM32H7_TIM15_CH1IDLE
int "TIM15 Channel 1 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM15_CH1OUT
---help---
TIM15 Channel 1 output IDLE
config STM32H7_TIM15_CH1NPOL
int "TIM15 Channel 1 Complementary Output polarity"
default 0
range 0 1
depends on STM32H7_TIM15_CH1NOUT
---help---
TIM15 Channel 1 Complementary Output polarity
config STM32H7_TIM15_CH1NIDLE
int "TIM15 Channel 1 Complementary Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM15_CH1NOUT
---help---
TIM15 Channel 1 Complementary Output IDLE
config STM32H7_TIM15_CH2POL
int "TIM15 Channel 2 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM15_CH2OUT
---help---
TIM15 Channel 2 output polarity
config STM32H7_TIM15_CH2IDLE
int "TIM15 Channel 2 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM15_CH2OUT
---help---
TIM15 Channel 2 output IDLE
config STM32H7_TIM15_CH2NPOL
int "TIM15 Channel 2 Complementary Output polarity"
default 0
range 0 1
depends on STM32H7_TIM15_CH2NOUT
---help---
TIM15 Channel 2 Complementary Output polarity
config STM32H7_TIM15_CH2NIDLE
int "TIM15 Channel 2 Complementary Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM15_CH2NOUT
---help---
TIM15 Channel 2 Complementary Output IDLE
config STM32H7_TIM16_CH1POL
int "TIM16 Channel 1 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM16_CH1OUT
---help---
TIM16 Channel 1 output polarity
config STM32H7_TIM16_CH1IDLE
int "TIM16 Channel 1 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM16_CH1OUT
---help---
TIM16 Channel 1 output IDLE
config STM32H7_TIM17_CH1POL
int "TIM17 Channel 1 Output polarity"
default 0
range 0 1
depends on STM32H7_TIM17_CH1OUT
---help---
TIM17 Channel 1 output polarity
config STM32H7_TIM17_CH1IDLE
int "TIM17 Channel 1 Output IDLE"
default 0
range 0 1
depends on STM32H7_TIM17_CH1OUT
---help---
TIM17 Channel 1 output IDLE
endmenu #STM32 TIMx Outputs Configuration
endmenu # Timer Configuration
menu "Ethernet MAC configuration"
depends on STM32H7_ETHMAC
config STM32H7_PHYADDR
int "PHY address"
default 0
---help---
The 5-bit address of the PHY on the board. Default: 1
config STM32H7_PHYINIT
bool "Board-specific PHY Initialization"
default n
---help---
Some boards require specialized initialization of the PHY before it can be used.
This may include such things as configuring GPIOs, resetting the PHY, etc. If
STM32H7_PHYINIT is defined in the configuration then the board specific logic must
provide stm32_phyinitialize(); The STM32 Ethernet driver will call this function
one time before it first uses the PHY.
config STM32H7_MII
bool "Use MII interface"
default n
---help---
Support Ethernet MII interface.
choice
prompt "MII clock configuration"
default STM32H7_MII_EXTCLK
depends on STM32H7_MII
config STM32H7_MII_MCO1
bool "Use MC01 as MII clock"
---help---
Use MCO1 to clock the MII interface.
config STM32H7_MII_MCO2
bool "Use MC02 as MII clock"
---help---
Use MCO2 to clock the MII interface.
config STM32H7_MII_EXTCLK
bool "External MII clock"
---help---
Clocking is provided by external logic.
endchoice
config STM32H7_AUTONEG
bool "Use autonegotiation"
default y
---help---
Use PHY autonegotiation to determine speed and mode
config STM32H7_ETH_NRXDESC
int "Number of RX descriptors"
default 8
---help---
Number of RX DMA descriptors to use.
config STM32H7_ETH_NTXDESC
int "Number of TX descriptors"
default 4
---help---
Number of TX DMA descriptors to use.
config STM32H7_ETHFD
bool "Full duplex"
default n
depends on !STM32H7_AUTONEG
---help---
If STM32H7_AUTONEG is not defined, then this may be defined to select full duplex
mode. Default: half-duplex
config STM32H7_ETH100MBPS
bool "100 Mbps"
default n
depends on !STM32H7_AUTONEG
---help---
If STM32H7_AUTONEG is not defined, then this may be defined to select 100 MBps
speed. Default: 10 Mbps
config STM32H7_PHYSR
int "PHY Status Register Address (decimal)"
depends on STM32H7_AUTONEG
---help---
This must be provided if STM32H7_AUTONEG is defined. The PHY status register
address may diff from PHY to PHY. This configuration sets the address of
the PHY status register.
config STM32H7_PHYSR_ALTCONFIG
bool "PHY Status Alternate Bit Layout"
default n
depends on STM32H7_AUTONEG
---help---
Different PHYs present speed and mode information in different ways. Some
will present separate information for speed and mode (this is the default).
Those PHYs, for example, may provide a 10/100 Mbps indication and a separate
full/half duplex indication. This options selects an alternative representation
where speed and mode information are combined. This might mean, for example,
separate bits for 10HD, 100HD, 10FD and 100FD.
config STM32H7_PHYSR_SPEED
hex "PHY Speed Mask"
depends on STM32H7_AUTONEG && !STM32H7_PHYSR_ALTCONFIG
---help---
This must be provided if STM32H7_AUTONEG is defined. This provides bit mask
for isolating the 10 or 100MBps speed indication.
config STM32H7_PHYSR_100MBPS
hex "PHY 100Mbps Speed Value"
depends on STM32H7_AUTONEG && !STM32H7_PHYSR_ALTCONFIG
---help---
This must be provided if STM32H7_AUTONEG is defined. This provides the value
of the speed bit(s) indicating 100MBps speed.
config STM32H7_PHYSR_MODE
hex "PHY Mode Mask"
depends on STM32H7_AUTONEG && !STM32H7_PHYSR_ALTCONFIG
---help---
This must be provided if STM32H7_AUTONEG is defined. This provide bit mask
for isolating the full or half duplex mode bits.
config STM32H7_PHYSR_FULLDUPLEX
hex "PHY Full Duplex Mode Value"
depends on STM32H7_AUTONEG && !STM32H7_PHYSR_ALTCONFIG
---help---
This must be provided if STM32H7_AUTONEG is defined. This provides the
value of the mode bits indicating full duplex mode.
config STM32H7_PHYSR_ALTMODE
hex "PHY Mode Mask"
depends on STM32H7_AUTONEG && STM32H7_PHYSR_ALTCONFIG
---help---
This must be provided if STM32H7_AUTONEG is defined. This provide bit mask
for isolating the speed and full/half duplex mode bits.
config STM32H7_PHYSR_10HD
hex "10MBase-T Half Duplex Value"
depends on STM32H7_AUTONEG && STM32H7_PHYSR_ALTCONFIG
---help---
This must be provided if STM32H7_AUTONEG is defined. This is the value
under the bit mask that represents the 10Mbps, half duplex setting.
config STM32H7_PHYSR_100HD
hex "100Base-T Half Duplex Value"
depends on STM32H7_AUTONEG && STM32H7_PHYSR_ALTCONFIG
---help---
This must be provided if STM32H7_AUTONEG is defined. This is the value
under the bit mask that represents the 100Mbps, half duplex setting.
config STM32H7_PHYSR_10FD
hex "10Base-T Full Duplex Value"
depends on STM32H7_AUTONEG && STM32H7_PHYSR_ALTCONFIG
---help---
This must be provided if STM32H7_AUTONEG is defined. This is the value
under the bit mask that represents the 10Mbps, full duplex setting.
config STM32H7_PHYSR_100FD
hex "100Base-T Full Duplex Value"
depends on STM32H7_AUTONEG && STM32H7_PHYSR_ALTCONFIG
---help---
This must be provided if STM32H7_AUTONEG is defined. This is the value
under the bit mask that represents the 100Mbps, full duplex setting.
config STM32H7_ETH_PTP
bool "Precision Time Protocol (PTP)"
default n
---help---
Precision Time Protocol (PTP). Not supported but some hooks are indicated
with this condition.
config STM32H7_RMII
bool
default y if !STM32H7_MII
choice
prompt "RMII clock configuration"
default STM32H7_RMII_EXTCLK
depends on STM32H7_RMII
config STM32H7_RMII_MCO1
bool "Use MC01 as RMII clock"
---help---
Use MCO1 to clock the RMII interface.
config STM32H7_RMII_MCO2
bool "Use MC02 as RMII clock"
---help---
Use MCO2 to clock the RMII interface.
config STM32H7_RMII_EXTCLK
bool "External RMII clock"
---help---
Clocking is provided by external logic.
endchoice # RMII clock configuration
config STM32H7_ETHMAC_REGDEBUG
bool "Register-Level Debug"
default n
depends on DEBUG_NET_INFO
---help---
Enable very low-level register access debug. Depends on
CONFIG_DEBUG_FEATURES.
endmenu # Ethernet MAC configuration
menu "QEncoder Driver"
depends on SENSORS_QENCODER
depends on STM32H7_TIM1 || STM32H7_TIM2 || STM32H7_TIM3 || STM32H7_TIM4 || STM32H7_TIM5 || STM32H7_TIM8
config STM32H7_TIM1_QE
bool "TIM1"
default n
depends on STM32H7_TIM1
---help---
Reserve TIM1 for use by QEncoder.
if STM32H7_TIM1_QE
config STM32H7_TIM1_QEPSC
int "TIM1 pulse prescaler"
default 1
---help---
This prescaler divides the number of recorded encoder pulses,
limiting the count rate at the expense of resolution.
endif
config STM32H7_TIM2_QE
bool "TIM2"
default n
depends on STM32H7_TIM2
---help---
Reserve TIM2 for use by QEncoder.
if STM32H7_TIM2_QE
config STM32H7_TIM2_QEPSC
int "TIM2 pulse prescaler"
default 1
---help---
This prescaler divides the number of recorded encoder pulses,
limiting the count rate at the expense of resolution.
endif
config STM32H7_TIM3_QE
bool "TIM3"
default n
depends on STM32H7_TIM3
---help---
Reserve TIM3 for use by QEncoder.
if STM32H7_TIM3_QE
config STM32H7_TIM3_QEPSC
int "TIM3 pulse prescaler"
default 1
---help---
This prescaler divides the number of recorded encoder pulses,
limiting the count rate at the expense of resolution.
endif
config STM32H7_TIM4_QE
bool "TIM4"
default n
depends on STM32H7_TIM4
---help---
Reserve TIM4 for use by QEncoder.
if STM32H7_TIM4_QE
config STM32H7_TIM4_QEPSC
int "TIM4 pulse prescaler"
default 1
---help---
This prescaler divides the number of recorded encoder pulses,
limiting the count rate at the expense of resolution.
endif
config STM32H7_TIM5_QE
bool "TIM5"
default n
depends on STM32H7_TIM5
---help---
Reserve TIM5 for use by QEncoder.
if STM32H7_TIM5_QE
config STM32H7_TIM5_QEPSC
int "TIM5 pulse prescaler"
default 1
---help---
This prescaler divides the number of recorded encoder pulses,
limiting the count rate at the expense of resolution.
endif
config STM32H7_TIM8_QE
bool "TIM8"
default n
depends on STM32H7_TIM8
---help---
Reserve TIM8 for use by QEncoder.
if STM32H7_TIM8_QE
config STM32H7_TIM8_QEPSC
int "TIM8 pulse prescaler"
default 1
---help---
This prescaler divides the number of recorded encoder pulses,
limiting the count rate at the expense of resolution.
endif
config STM32H7_QENCODER_FILTER
bool "Enable filtering on STM32 QEncoder input"
default y
choice
depends on STM32H7_QENCODER_FILTER
prompt "Input channel sampling frequency"
default STM32H7_QENCODER_SAMPLE_FDTS_4
config STM32H7_QENCODER_SAMPLE_FDTS
bool "fDTS"
config STM32H7_QENCODER_SAMPLE_CKINT
bool "fCK_INT"
config STM32H7_QENCODER_SAMPLE_FDTS_2
bool "fDTS/2"
config STM32H7_QENCODER_SAMPLE_FDTS_4
bool "fDTS/4"
config STM32H7_QENCODER_SAMPLE_FDTS_8
bool "fDTS/8"
config STM32H7_QENCODER_SAMPLE_FDTS_16
bool "fDTS/16"
config STM32H7_QENCODER_SAMPLE_FDTS_32
bool "fDTS/32"
endchoice
choice
depends on STM32H7_QENCODER_FILTER
prompt "Input channel event count"
default STM32H7_QENCODER_SAMPLE_EVENT_6
config STM32H7_QENCODER_SAMPLE_EVENT_1
depends on STM32H7_QENCODER_SAMPLE_FDTS
bool "1"
config STM32H7_QENCODER_SAMPLE_EVENT_2
depends on STM32H7_QENCODER_SAMPLE_CKINT
bool "2"
config STM32H7_QENCODER_SAMPLE_EVENT_4
depends on STM32H7_QENCODER_SAMPLE_CKINT
bool "4"
config STM32H7_QENCODER_SAMPLE_EVENT_5
depends on STM32H7_QENCODER_SAMPLE_FDTS_16 || STM32H7_QENCODER_SAMPLE_FDTS_32
bool "5"
config STM32H7_QENCODER_SAMPLE_EVENT_6
depends on !STM32H7_QENCODER_SAMPLE_FDTS && !STM32H7_QENCODER_SAMPLE_CKINT
bool "6"
config STM32H7_QENCODER_SAMPLE_EVENT_8
depends on !STM32H7_QENCODER_SAMPLE_FDTS
bool "8"
endchoice
endmenu
endif # ARCH_CHIP_STM32H7