当前位置:网站首页>STM32 interrupt switch
STM32 interrupt switch
2022-07-03 09:52:00 【Embed it?】
Method 1
Control by bit band operation

To control the specific interruption line , change n that will do
for example :n = 1, Namely control Interrupt the line 1
#define EXx *((volatile unsigned int *)(0x42000000+((uint32_t)&EXTI->IMR-0x40000000)*32+n*4))
Method 2
Register alias operation

#define EX0_ON EXTI->IMR |= EXTI_Line0
#define EX0_OFF EXTI->IMR &= ~(EXTI_Line0)
边栏推荐
- NR PUCCH format0 sequence generation and detection mechanism
- An executable binary file contains more than machine instructions
- Design and development of biological instruments
- [male nanny style] teach you to open the first wechat applet
- Leetcode daily question (516. long palindromic subsequence)
- NR technology -- MIMO
- Programming ideas are more important than anything, not more than who can use several functions, but more than the understanding of the program
- 【順利畢業】[1]-遊覽 [學生管理信息系統]
- Nr-prach:prach format and time-frequency domain
- Vector processor 9_ Basic multilevel interconnection network
猜你喜欢

Shell logic case

How does the memory database give full play to the advantages of memory?

开学实验里要用到mysql,忘记基本的select语句怎么玩啦?补救来啦~

Embedded systems are inherently flawed. Compared with the Internet, there are so many holes that it is simply difficult to walk away from

JMX、MBean、MXBean、MBeanServer 入门

对于新入行的同学,如果你完全没有接触单片机,建议51单片机入门

Convert IP address to int

Electronic product design

uniapp 实现微信小程序全局分享及自定义分享按钮样式

Mysql database underlying foundation column
随机推荐
Leetcode daily question (2305. fair distribution of cookies)
Flink learning notes (VIII) multi stream conversion
MYSQL数据库底层基础专栏
Raspberry pie installation SciPy
内存数据库究竟是如何发挥内存优势的?
Project scope management__ Scope management plan and scope specification
Getting started with JMX, MBean, mxbean, mbeanserver
IDEA远程断点调试jar包项目
Fundamentals of Electronic Technology (III)__ Logic gate symbols in Chapter 5
我想各位朋友都应该知道学习的基本规律就是:从易到难
学习开发没有捷径,也几乎不存在带路会学的快一些的情况
Desktop icon recognition based on OpenCV
Nr-prach: access scenario and access process
Development of fire evacuation system
[graduation successful] [1] - tour [Student Management Information System]
Nr-prach:prach format and time-frequency domain
要选择那种语言为单片机编写程序呢
CEF download, compile project
How MySQL modifies null to not null
Runtime.getRuntime().gc() 和 Runtime.getRuntime().runFinalization() 的区别