当前位置:网站首页>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
边栏推荐
- 01--- conditions for interference of two trains of waves at the meeting place
- Collapse code using region
- cv2导包时报Could not find a version that satisfies the requirement cv2 (from versions: none)
- What aspects should we start with in the feasibility analysis of dry goods?
- How to resolve the 35 year old crisis? Sharing of 20 years' technical experience of chief architect of Huawei cloud database
- Filtered data analysis
- In the era of industrial Internet, there is no Internet in the traditional sense
- 揭秘B站,程序员穿女装敲代码,效率更高是真的吗?
- 60 个神级 VS Code 插件!!
- Cannot find reference 'imread' in 'appears in pycharm__ init__. py‘
猜你喜欢

如何提取网页中的日期?

Flutter 如何使用在线转码工具将 JSON 转为 Model

985 test engineer is hanged. Who is more important in terms of education and experience?

系统测试主要步骤

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

The logic of "Ali health" has long changed
![[200 opencv routines] 209 Color image segmentation in HSV color space](/img/fa/9a40015cbcf9c78808f147e510be4c.jpg)
[200 opencv routines] 209 Color image segmentation in HSV color space

树莓派初步使用

Réduire le PIP à la version spécifiée (mettre à jour le PIP avec pycharm avant de le réduire à la version originale)

Information update on automatic control principle
随机推荐
如何抓手机的包进行分析,Fiddler神器或许能帮到您!
How does flutter use the online transcoding tool to convert JSON to model
降低pip到指定版本(通过cmp升级pip,在降低到原来版本)
EasyBypass
短视频商城系统,scroll-view如何自适应页面剩余高度
I really can't do it. After 00, I collapsed and wanted to leave
60 个神级 VS Code 插件!!
火狐拖放后,总会默认打开百度搜索,如果是图片,则会打开图片。
985 test engineer is hanged. Who is more important in terms of education and experience?
Several classes of manual transactions
Binary search tree template
leetcode:55. Jumping game [classic greed]
印刷行业的ERP软件的领头羊
CV2 package guide times could not find a version that satisfies the requirement CV2 (from versions: none)
【OpenCV 例程200篇】209. HSV 颜色空间的彩色图像分割
Xinlou: Huawei's seven-year building journey of sports health
Ideal L9, new trend of intelligent cockpit
Learning notes 23-- basic theory of multi-sensor information fusion (Part I)
[notes of Wu Enda] multivariable linear regression
Want to be a test leader, do you know these 6 skills?