当前位置:网站首页>04A中断的配置
04A中断的配置
2022-06-24 19:31:00 【纸带】
stc_irq_signin_config_t stcIrqSigninCfg;//中断的配置//声明一个中断变量
///*来看一下内部有啥
typedef struct
{
en_int_src_t enIntSrc; /*!< Peripheral interrupt number, can be any value @ref en_int_src_t */
IRQn_Type enIRQn; /*!< Peripheral IRQ type, can be Int000_IRQn~Int127_IRQn @ref IRQn_Type */
func_ptr_t pfnCallback;/*!< Callback function for corresponding peripheral IRQ */
} stc_irq_signin_config_t;
**
enIntSrc中断号
enIRQn 中断优先级
pfnCallback 回调函数
*
紧接着要注册一个
/* Register error IRQ handler && configure NVIC. */
stcIrqSigninCfg.enIRQn = USART_UNIT_ERR_INT_IRQn;//中断优先级
stcIrqSigninCfg.enIntSrc = USART_UNIT_ERR_INT_SRC;//中断号
stcIrqSigninCfg.pfnCallback = &USART_RxErr_IrqCallback;
InstalIrqHandler(&stcIrqSigninCfg, DDL_IRQ_PRIORITY_DEFAULT);关于如何明确中断号的这一个事情
1.首先和管脚相对应
2.找到相对应的事件
INT_USART6_EI
INT_USART6_RI
INT_USART6_TI
INT_USART6_TCI
INT_USART6_RTO
边栏推荐
- Application practice | massive data, second level analysis! Flink+doris build a real-time data warehouse scheme
- C language - keyword 1
- The process from troubleshooting to problem solving: the browser suddenly failed to access the web page, error code: 0x80004005, and the final positioning: "when the computer turns on the hotspot, the
- How does flutter use the online transcoding tool to convert JSON to model
- Elegant custom ThreadPoolExecutor thread pool
- Yida technology signed a contract with seven wolves to help the digital transformation of "Chinese men's wear leader"
- 权限想要细化到按钮,怎么做?
- [notes of Wu Enda] multivariable linear regression
- Collapse code using region
- 直播软件app开发,左右自动滑动的轮播图广告
猜你喜欢

机器学习:线性回归

Development trend and path of SaaS industry in China

Application practice | massive data, second level analysis! Flink+doris build a real-time data warehouse scheme

Balanced binary search tree

leetcode_ 191_ 2021-10-15

系统测试主要步骤

Yida technology signed a contract with seven wolves to help the digital transformation of "Chinese men's wear leader"

How to achieve energy conservation and environmental protection of full-color outdoor LED display

【OpenCV 例程200篇】209. HSV 颜色空间的彩色图像分割

Junior college background, 2 years in Suning, 5 years in Ali. How can I get promoted quickly?
随机推荐
Suspend component and asynchronous component
平衡二叉搜索树
Elegant custom ThreadPoolExecutor thread pool
Yida technology signed a contract with seven wolves to help the digital transformation of "Chinese men's wear leader"
Mysql 通过表明获取字段以及注释
03--- antireflective film
Implementation of heap sort and quick sort principle
Practice of hierarchical management based on kubesphere
Multithreaded finalization
socket(1)
嵌入式开发:技巧和窍门——干净地从引导加载程序跳转到应用程序代码
[featured] how do you design unified login with multiple accounts?
Machine learning: linear regression
Several classes of manual transactions
Summary of papers on traveling salesman problem (TSP)
直播软件app开发,左右自动滑动的轮播图广告
Want to be a test leader, do you know these 6 skills?
Rotate the square array of two-dimensional array clockwise by 90 °
最大流问题
PostMan工具介绍及安装使用