stm32: Add optimized stm32h7_gpio.c

Add optimized gpio functions for stm32h7 - caching the ODR register
can notably improve the performance of the gpio_out_toggle() code.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2025-03-11 10:56:17 -04:00
parent 1f5783a250
commit 0d27195fd4
4 changed files with 176 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ config STM32_SELECT
select HAVE_GPIO_HARD_PWM if MACH_STM32F070 || MACH_STM32F072 || MACH_STM32F1 || MACH_STM32F4 || MACH_STM32F7 || MACH_STM32G0 || MACH_STM32H7
select HAVE_STRICT_TIMING
select HAVE_CHIPID
select HAVE_STEPPER_OPTIMIZED_BOTH_EDGE
select HAVE_STEPPER_OPTIMIZED_BOTH_EDGE if !MACH_STM32H7
select HAVE_BOOTLOADER_REQUEST
select HAVE_LIMITED_CODE_SIZE if FLASH_SIZE < 0x10000