当前位置:网站首页>04A interrupt configuration
04A interrupt configuration
2022-06-24 22:16:00 【Paper tape】
stc_irq_signin_config_t stcIrqSigninCfg;// Interrupt configuration // Declare an interrupt variable
///* Let's see what's inside
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 Interrupt number
enIRQn Interrupt priority
pfnCallback Callback function
*
The next step is to register a
/* Register error IRQ handler && configure NVIC. */
stcIrqSigninCfg.enIRQn = USART_UNIT_ERR_INT_IRQn;// Interrupt priority
stcIrqSigninCfg.enIntSrc = USART_UNIT_ERR_INT_SRC;// Interrupt number
stcIrqSigninCfg.pfnCallback = &USART_RxErr_IrqCallback;
InstalIrqHandler(&stcIrqSigninCfg, DDL_IRQ_PRIORITY_DEFAULT);About how to define the interrupt number
1. First corresponds to the pin
2. Find the corresponding event
INT_USART6_EI
INT_USART6_RI
INT_USART6_TI
INT_USART6_TCI
INT_USART6_RTO
边栏推荐
- Shutter precautions for using typedef
- “阿里健康”们的逻辑早就变了
- PyCharm 中出现Cannot find reference ‘imread‘ in ‘__init__.py‘
- Collapse code using region
- Excel布局
- A girl has been making hardware for ten years. 。。
- 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
- 使用region折叠代码
- Flutter 如何使用在线转码工具将 JSON 转为 Model
- 虚拟人的产业发展现状
猜你喜欢

How to refine permissions to buttons?

Multithreaded finalization

Redis+caffeine two-level cache enables smooth access speed

DAO 中常见的投票治理方式

Practice of hierarchical management based on kubesphere

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

Graduation design of phase 6 of the construction practice camp

Reduce the pip to the specified version (upgrade the PIP through pycharm, and then reduce it to the original version)

Servlet详解

try-with-resources 中的一个坑,注意避让
随机推荐
【无标题】
学习笔记23--多传感器信息融合基础理论(上)
Collective search + drawing creation
Maximum flow problem
揭秘B站,程序员穿女装敲代码,效率更高是真的吗?
嵌入式开发:技巧和窍门——干净地从引导加载程序跳转到应用程序代码
[200 opencv routines] 209 Color image segmentation in HSV color space
Flutter 如何使用在线转码工具将 JSON 转为 Model
Short video mall system, how does scroll view adapt to the remaining height of the page
如何抓手机的包进行分析,Fiddler神器或许能帮到您!
“阿里健康”们的逻辑早就变了
拖动拖动拖动
Two implementation methods of stack
04A中断的配置
How to resolve the 35 year old crisis? Sharing of 20 years' technical experience of chief architect of Huawei cloud database
leetcode_ 191_ 2021-10-15
刷题笔记(十八)--二叉树:公共祖先问题
专科出身,2年进苏宁,5年跳阿里,论我是怎么快速晋升的?
EasyBypass
Redis+caffeine two-level cache enables smooth access speed