/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Function name: DisableInterruptFunction
description: Disable interrupts
Entry parameters: None
Exit parameters: None
Global variables:
Creation time:
Modification time:
Note: Disabling interrupts must be executed in interrupt mode, and SPSR can only be recognized in arm mode
*/
// $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ The function declared in the above prototype is used by this function to call
void DisableInterrupt(void) __arm __swi(9)
{
//uint32 t;
__asm
{
MRS R0, SPSR
ORR R0, R0, #0xc0
MSR SPSR_c, R0
}
}
/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Function name: EnableInterruptFunction
description: Enable interrupt
Entry parameters: None
Exit parameters: None
Global variables:
Creation time:
Modification time:
Note: Disabling interrupts must be executed in interrupt mode and SPSR can only be recognized in arm mode
*/
// $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ The function declared in the above prototype is used by this function to call
void EnableInterrupt(void) __arm __swi(8)
{
__asm
{
MRS R0, SPSR
BIC R0, R0, #0xc0
MSR SPSR_c, R0
}
}
Keywords:Keil
Reference address:Switch interrupt function in Keil for ARM
Function name: DisableInterruptFunction
description: Disable interrupts
Entry parameters: None
Exit parameters: None
Global variables:
Creation time:
Modification time:
Note: Disabling interrupts must be executed in interrupt mode, and SPSR can only be recognized in arm mode
*/
// $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ The function declared in the above prototype is used by this function to call
void DisableInterrupt(void) __arm __swi(9)
{
//uint32 t;
__asm
{
MRS R0, SPSR
ORR R0, R0, #0xc0
MSR SPSR_c, R0
}
}
/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Function name: EnableInterruptFunction
description: Enable interrupt
Entry parameters: None
Exit parameters: None
Global variables:
Creation time:
Modification time:
Note: Disabling interrupts must be executed in interrupt mode and SPSR can only be recognized in arm mode
*/
// $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ The function declared in the above prototype is used by this function to call
void EnableInterrupt(void) __arm __swi(8)
{
__asm
{
MRS R0, SPSR
BIC R0, R0, #0xc0
MSR SPSR_c, R0
}
}
Previous article:ARM assembly SWI instruction soft interrupt
Next article:4*4 keyboard written in ARM
- Popular Resources
- Popular amplifiers
Recommended Content
Latest Microcontroller Articles
He Limin Column
Microcontroller and Embedded Systems Bible
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
MoreSelected Circuit Diagrams
MorePopular Articles
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
MoreDaily News
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
Guess you like
- Musk asked engineers to write the code silently: tear it up after review and recreate it on the computer
- DIY an eco-bottle
- How many layers does TCP/IP have? What is the function of each layer?
- MSP430 Flash information area
- 【Silicon Labs Development Kit Review 04】_Simplicity Studio v5 printf redirection
- How to choose a wireless router to maximize the transmission rate of WIFI
- Design of interpolation filter based on FPGA
- Fundamentals of Digital Electronics (Fifth Edition)
- Arm C/C++ Compiler
- 【TI recommended course】#Lecture on basic knowledge of electronic circuits#