arm.h

来自「Leon3 & GPLIB libraries for CYGWIN/UNIX」· C头文件 代码 · 共 33 行

H
33
字号
#ifndef ARM_PROCESSOR_HEADER
#define ARM_PROCESSOR_HEADER

/*******************************************************************************
 * Functions for enabling/disabling IRQ and FIQ in the ARM core by changing
 * the I and F bits of the CPSR.
 */
void EnableIRQ(void);
void DisableIRQ(void);

void EnableFIQ(void);
void DisableFIQ(void);

/*******************************************************************************
 * Functions for setting the location of the stack for FIQ and IRQ modes of the
 * ARM core.
 *
 * Note:
 *  You may need to modify the values for TOP_OF_MEMORY and the stack sizes in
 *  file int_stack.s to suit your design/software requirements.
 */
void SetupFIQStack(void);
void SetupIRQStack(void);

/*******************************************************************************
 * Functions for setting the IRQ/FIQ vectors.
 * These function take the address of the handler as argument.
 */
void SetIRQHandler(unsigned int routine);
void SetFIQHandler(unsigned int routine);

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?