suikan4github / murasaki

STM32 HAL class library
MIT License
17 stars 3 forks source link

STM32G0 misses EXTI because of HAL incompatibility. #117

Closed suikan4github closed 3 years ago

suikan4github commented 4 years ago

Describe the bug A HAL incompatibility prevents to catch the EXTI of Murasaki.

Expected behavior This problem is fixed by Issue #113. Need to track the problem.

suikan4github commented 4 years ago

The fix is installed here.

/*
 * Following callback is to fix the incompatibility of the STM32G0 EXTI implementation.
 * See  https://github.com/suikan4github/murasaki/issues/123
 */

void HAL_GPIO_EXTI_Rising_Callback(uint16_t GPIO_Pin) {
    HAL_GPIO_EXTI_Callback(GPIO_Pin);
}

/*
 * Following callback is to fix the incompatibility of the STM32G0 EXTI implementation.
 * See  https://github.com/suikan4github/murasaki/issues/123
 */
void HAL_GPIO_EXTI_Falling_Callback(uint16_t GPIO_Pin) {
    HAL_GPIO_EXTI_Callback(GPIO_Pin);

}
suikan4github commented 3 years ago

This is already merged and published as v3.0.0