Skip to content

void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) #2

@MastVi

Description

@MastVi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions