TOUCH GFX :: EXTI Callback, multiple definition ERROR.
Hi, Thank you for reading it.
I made project using TouchGFX.
I want to use a EXTI Falling Edge. (it will be use IRQ)
I add the weak function. please see my code
app_freertos.c
void HAL_GPIO_EXTI_Falling_Callback(uint16_t GPIO_Pin) {
UNUSED(GPIO_Pin);
}
when compile, I have following error.
TouchGFX/Target/STM32TouchController.cpp:53: multiple definition of `HAL_GPIO_EXTI_Falling_Callback'
So, I open the target source file.
STM32TouchController.cpp
extern "C" void HAL_GPIO_EXTI_Falling_Callback(uint16_t GPIO_Pin)
{
if (GPIO_Pin == TS_INT_PIN)
{
if (_initialized)
{
if (BSP_TS_GetState(0, &state) != BSP_ERROR_NONE)
{
assert(0 && "Failed to read TS state");
}
}
}
}
same name functions are in a one project.
So I disabled the funtion in STM32TouchController.cpp.
Then I can not touch anything in display.
please let me know how to avoid the error and to work two function (touch and irq falling edge exti).
thanks
