STM32_tutorials icon indicating copy to clipboard operation
STM32_tutorials copied to clipboard

void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)

Open MastVi opened this issue 4 years ago • 0 comments

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

MastVi avatar Feb 06 '22 03:02 MastVi