STM32_tutorials
STM32_tutorials copied to clipboard
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
Hi,
/**
- @brief EXTI line detection callback.
- @param GPIO_Pin Specifies the port pin connected to corresponding EXTI line.
- @retval None / __weak void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { / Prevent unused argument(s) compilation warning */ UNUSED(GPIO_Pin);
/* NOTE: This function should not be modified, when the callback is needed, the HAL_GPIO_EXTI_Callback could be implemented in the user file */ }
Great, let's write our own HAL_GPIO_EXTI_Callback then: void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { printf("oh my\n"); }
In the above code, At which pin trigger the above code function should be call?
Thanks