40 lines
680 B
C
40 lines
680 B
C
#ifndef RM48X50_H
|
|
#define RM48X50_H
|
|
|
|
#include <system.h>
|
|
#include <sys_vim.h>
|
|
|
|
#define USERMODE 0x10
|
|
#define FIQMODE 0x11
|
|
#define IRQMODE 0x12
|
|
#define SVCMODE 0x13
|
|
#define ABORTMODE 0x17
|
|
#define UNDEFMODE 0x1b
|
|
#define MODEMASK 0x1f
|
|
#define NOINT 0xc0
|
|
|
|
struct rt_hw_register
|
|
{
|
|
unsigned long r0;
|
|
unsigned long r1;
|
|
unsigned long r2;
|
|
unsigned long r3;
|
|
unsigned long r4;
|
|
unsigned long r5;
|
|
unsigned long r6;
|
|
unsigned long r7;
|
|
unsigned long r8;
|
|
unsigned long r9;
|
|
unsigned long r10;
|
|
unsigned long fp;
|
|
unsigned long ip;
|
|
unsigned long sp;
|
|
unsigned long lr;
|
|
unsigned long pc;
|
|
unsigned long cpsr;
|
|
unsigned long ORIG_r0;
|
|
};
|
|
|
|
#endif /* end of include guard: RM48X50_H */
|
|
|