Files
Matthieu A. dfb6d60093 Add possibility to redefine SD detection pin irq handlers at application level (#74)
Add configuration macro to allow interrupt handlers related to SD
detection pin to be deactivated at compile time without changing the
source code.

Description
-----------
The way STM32F4xx and STM32F7xx ports handle interrupts related to SD
detection pin is a bit limiting for 2 reasons:

- the implementation may use a GPIO outside of EXTI10 to 15 range
- the implementation may need GPIOs in EXTI10 to 15 range for other
purpose

The idea here is to give the possibility to a user to handle this
interrupt - if needed - at application level without changing the
library source code. This PR introduces
`ffconfigSDIO_DRIVER_DEFINES_SD_DETECTION_INTERRUPT_HANDLER` macro.
There is also a modification applied to STM32F4xx and STM32F7xx ports to
surround `HAL_GPIO_EXTI_Callback` and `EXTI15_10_IRQHandler` with this
newly defined macro.

FYI - related to [this discussion on the
forum](https://forums.freertos.org/t/freertos-fat-redefinition-of-irq-handler-in-stm32fx-port/22231/1).

Test Steps
-----------
Integrate the content of this PR in my project to check that functions
can be defined at application level without conflicts.

Checklist:
----------
- [x] I have tested my changes. No regression in existing tests.
- [ ] I have modified and/or added unit-tests to cover the code changes
in this Pull Request.

Related Issue
-----------
https://forums.freertos.org/t/freertos-fat-redefinition-of-irq-handler-in-stm32fx-port/22231/1

By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
2025-05-22 12:13:34 +05:30
..
2023-12-05 17:34:02 -08:00