SAME54P20A Test Project
ramecc.h
Go to the documentation of this file.
1 
30 #ifndef _SAME54_RAMECC_INSTANCE_
31 #define _SAME54_RAMECC_INSTANCE_
32 
33 /* ========== Register definition for RAMECC peripheral ========== */
34 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
35 #define REG_RAMECC_INTENCLR (0x41020000)
36 #define REG_RAMECC_INTENSET (0x41020001)
37 #define REG_RAMECC_INTFLAG (0x41020002)
38 #define REG_RAMECC_STATUS (0x41020003)
39 #define REG_RAMECC_ERRADDR (0x41020004)
40 #define REG_RAMECC_DBGCTRL (0x4102000F)
41 #else
42 #define REG_RAMECC_INTENCLR (*(RwReg8 *)0x41020000UL)
43 #define REG_RAMECC_INTENSET (*(RwReg8 *)0x41020001UL)
44 #define REG_RAMECC_INTFLAG (*(RwReg8 *)0x41020002UL)
45 #define REG_RAMECC_STATUS (*(RoReg8 *)0x41020003UL)
46 #define REG_RAMECC_ERRADDR (*(RoReg *)0x41020004UL)
47 #define REG_RAMECC_DBGCTRL (*(RwReg8 *)0x4102000FUL)
48 #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
49 
50 /* ========== Instance parameters for RAMECC peripheral ========== */
51 #define RAMECC_RAMADDR_BITS 13 // Number of RAM address bits
52 #define RAMECC_RAMBANK_NUM 4 // Number of RAM banks
53 
54 #endif /* _SAME54_RAMECC_INSTANCE_ */