问题描述
stm32CubeIDE | stm32F446Re-Nucleo
我正在尝试通过本教程[STM32CubeIDE基础-12 FreeRTOS基础实验室]
因此,我想在板[PIN PC13]的蓝色按钮上添加一个外部中断,该中断使用“具有下降沿触发检测的外部中断模式”
Device Configuration tool
。当我转到STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c
文件时,他在视频中使用的回调函数[在27:15] void HAL_GPIO_EXT1_Falling_Callback(uint16_t GPIO_Pin)
不存在。这有关系吗?有谁知道解决方法或如何进行下降沿触发?
谢谢!
这是文件应包含的部分。
/**
* @brief This function handles EXTI interrupt request.
* @param GPIO_Pin Specifies the pins connected EXTI line
* @retval None
*/
void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)
{
/* EXTI line interrupt detected */
if(__HAL_GPIO_EXTI_GET_IT(GPIO_Pin) != RESET)
{
__HAL_GPIO_EXTI_CLEAR_IT(GPIO_Pin);
HAL_GPIO_EXTI_Callback(GPIO_Pin);
}
}
/**
* @brief EXTI line detection callbacks.
* @param GPIO_Pin Specifies the pins connected 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
*/
}
/**
* @}
*/
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)