📄 macro.h
字号:
#ifndef __MACRO_h__
#define __MACRO_h__
//================================================================
//Function: INT of CPU
#define INT_OFF() asm("int off\n")
#define INT_IRQ() asm("int irq\n")
#define INT_FIQ() asm("int fiq\n")
#define INT_FIQ_IRQ() asm("int fiq,irq\n")
//================================================================
//Function: Disable IRQ Flag of CPU
#define Disable_IRQ() asm("irq off\n")
#define IRQ_OFF() asm("irq off\n")
//================================================================
//Function: Enable IRQ Flag of CPU
#define Enable_IRQ() asm("irq on\n")
#define IRQ_ON() asm("irq on\n")
//================================================================
//Function: Disable FIQ Flag of CPU
#define Disable_FIQ() asm("fiq off\n")
#define FIQ_OFF() asm("fiq off\n")
//================================================================
//Function: Enable FIQ Flag of CPU
#define Enable_FIQ() asm("fiq on\n")
#define FIQ_ON() asm("fiq on\n")
//================================================================
//Function: Disable Movement Flag of FIR DSP Operation
#define Disable_FIRMOV() asm("fir_mov off\n")
//================================================================
//Function: Enable Movement Flag of FIR DSP Operation
#define Enable_FIRMOV() asm("fir_mov on\n")
//================================================================
//Function: Make CPU software interrupt (break)
#define SoftwareInterrupt() asm("break\n")
//================================================================
//Function: Make CPU no operation
#define NOP() asm("nop\n")
#define WatchdogClr() P_Watchdog_Clear=0x0001
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -