SAME54P20A Test Project
eic.h
Go to the documentation of this file.
1 
30 #ifndef _SAME54_EIC_INSTANCE_
31 #define _SAME54_EIC_INSTANCE_
32 
33 /* ========== Register definition for EIC peripheral ========== */
34 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
35 #define REG_EIC_CTRLA (0x40002800)
36 #define REG_EIC_NMICTRL (0x40002801)
37 #define REG_EIC_NMIFLAG (0x40002802)
38 #define REG_EIC_SYNCBUSY (0x40002804)
39 #define REG_EIC_EVCTRL (0x40002808)
40 #define REG_EIC_INTENCLR (0x4000280C)
41 #define REG_EIC_INTENSET (0x40002810)
42 #define REG_EIC_INTFLAG (0x40002814)
43 #define REG_EIC_ASYNCH (0x40002818)
44 #define REG_EIC_CONFIG0 (0x4000281C)
45 #define REG_EIC_CONFIG1 (0x40002820)
46 #define REG_EIC_DEBOUNCEN (0x40002830)
47 #define REG_EIC_DPRESCALER (0x40002834)
48 #define REG_EIC_PINSTATE (0x40002838)
49 #else
50 #define REG_EIC_CTRLA (*(RwReg8 *)0x40002800UL)
51 #define REG_EIC_NMICTRL (*(RwReg8 *)0x40002801UL)
52 #define REG_EIC_NMIFLAG (*(RwReg16*)0x40002802UL)
53 #define REG_EIC_SYNCBUSY (*(RoReg *)0x40002804UL)
54 #define REG_EIC_EVCTRL (*(RwReg *)0x40002808UL)
55 #define REG_EIC_INTENCLR (*(RwReg *)0x4000280CUL)
56 #define REG_EIC_INTENSET (*(RwReg *)0x40002810UL)
57 #define REG_EIC_INTFLAG (*(RwReg *)0x40002814UL)
58 #define REG_EIC_ASYNCH (*(RwReg *)0x40002818UL)
59 #define REG_EIC_CONFIG0 (*(RwReg *)0x4000281CUL)
60 #define REG_EIC_CONFIG1 (*(RwReg *)0x40002820UL)
61 #define REG_EIC_DEBOUNCEN (*(RwReg *)0x40002830UL)
62 #define REG_EIC_DPRESCALER (*(RwReg *)0x40002834UL)
63 #define REG_EIC_PINSTATE (*(RoReg *)0x40002838UL)
64 #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
65 
66 /* ========== Instance parameters for EIC peripheral ========== */
67 #define EIC_EXTINT_NUM 16 // Number of external interrupts
68 #define EIC_GCLK_ID 4 // Generic Clock index
69 #define EIC_NUMBER_OF_CONFIG_REGS 2 // Number of CONFIG registers
70 #define EIC_NUMBER_OF_DPRESCALER_REGS 2 // Number of DPRESCALER pin groups
71 #define EIC_NUMBER_OF_INTERRUPTS 16 // Number of external interrupts (obsolete)
72 
73 #endif /* _SAME54_EIC_INSTANCE_ */