The new start
This commit is contained in:
73
08/01_freertos_template/Drivers/DshanMCU-F103/driver_irq.c
Normal file
73
08/01_freertos_template/Drivers/DshanMCU-F103/driver_irq.c
Normal file
@@ -0,0 +1,73 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
/*
|
||||
* Copyright (c) 2008-2023 100askTeam : Dongshan WEI <weidongshan@qq.com>
|
||||
* Discourse: https://forums.100ask.net
|
||||
*/
|
||||
|
||||
|
||||
/* Copyright (C) 2008-2023 深圳百问网科技有限公司
|
||||
* All rights reserved
|
||||
*
|
||||
*
|
||||
* 免责声明: 百问网编写的文档,仅供学员学习使用,可以转发或引用(请保留作者信息),禁止用于商业用途!
|
||||
* 免责声明: 百问网编写的程序,可以用于商业用途,但百问网不承担任何后果!
|
||||
*
|
||||
* 摘要:
|
||||
* 本程序遵循GPL V3协议,使用请遵循协议许可
|
||||
* 本程序所用的开发板: DShanMCU-F103
|
||||
* 百问网嵌入式学习平台:https://www.100ask.net
|
||||
* 百问网技术交流社区: https://forums.100ask.net
|
||||
* 百问网官方B站: https://space.bilibili.com/275908810
|
||||
* 百问网官方淘宝: https://100ask.taobao.com
|
||||
* 联系我们(E-mail): weidongshan@qq.com
|
||||
*
|
||||
* 版权所有,盗版必究。
|
||||
*
|
||||
* 修改历史 版本号 作者 修改内容
|
||||
*-----------------------------------------------------
|
||||
* 2023.08.04 v01 百问科技 创建文件
|
||||
*-----------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include "driver_timer.h"
|
||||
#include "stm32f1xx_hal.h"
|
||||
#include "tim.h"
|
||||
|
||||
extern void IRReceiver_IRQ_Callback(void);
|
||||
extern void RotaryEncoder_IRQ_Callback(void);
|
||||
|
||||
/**********************************************************************
|
||||
* 函数名称: HAL_GPIO_EXTI_Callback
|
||||
* 功能描述: 外部中断的中断回调函数
|
||||
* 输入参数: 无
|
||||
* 输出参数: 无
|
||||
* 返 回 值: 无
|
||||
* 修改日期: 版本号 修改人 修改内容
|
||||
* -----------------------------------------------
|
||||
* 2023/08/04 V1.0 韦东山 创建
|
||||
***********************************************************************/
|
||||
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
|
||||
{
|
||||
switch (GPIO_Pin)
|
||||
{
|
||||
case GPIO_PIN_10:
|
||||
{
|
||||
IRReceiver_IRQ_Callback();
|
||||
break;
|
||||
}
|
||||
|
||||
case GPIO_PIN_12:
|
||||
{
|
||||
RotaryEncoder_IRQ_Callback();
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user