当前位置:网站首页>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
边栏推荐
- Machine learning: gradient descent method
- C language - keyword 1
- 虚拟人的产业发展现状
- Publicity of the second batch of shortlisted enterprises! Annual Top100 smart network supplier selection
- try-with-resources 中的一个坑,注意避让
- The profound meaning of unlimited ecological development in Poka -- Multidimensional Interpretation of parallel chain
- KT6368A蓝牙双模透传芯片软件版本选型说明
- Several classes of manual transactions
- 嵌入式开发:技巧和窍门——干净地从引导加载程序跳转到应用程序代码
- 揭秘B站,程序员穿女装敲代码,效率更高是真的吗?
猜你喜欢

Rotate the square array of two-dimensional array clockwise by 90 °

60 divine vs Code plug-ins!!

These map operations in guava have reduced my code by 50%

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

Datakit agent realizes unified data aggregation in LAN

性能测试工具wrk安装使用详解

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

一个女孩子居然做了十年硬件。。。

Ansible basic configuration

985 test engineer is hanged. Who is more important in terms of education and experience?
随机推荐
波卡生态发展不设限的奥义——多维解读平行链
The leader of ERP software in printing industry
KT6368A蓝牙芯片的主从机之前透传功能说明,2.4G跳频自动连接
PostMan工具介绍及安装使用
TCP RTT measurement tips
Servlet details
是真干不过00后,给我卷的崩溃,想离职了...
CV2 package guide times could not find a version that satisfies the requirement CV2 (from versions: none)
关于自动控制原理资料更新
985 test engineer is hanged. Who is more important in terms of education and experience?
磁盘的结构
leetcode_ one thousand three hundred and sixty-five
揭秘B站,程序员穿女装敲代码,效率更高是真的吗?
Excel布局
leetcode_ 1470_ 2021.10.12
短视频商城系统,scroll-view如何自适应页面剩余高度
华大4A0GPIO设置
How to grab the mobile phone bag for analysis? Fiddler artifact may help you!
leetcode-201_ 2021_ 10_ seventeen
[notes of Wu Enda] convolutional neural network