123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- #ifndef _SAML11_PORT_INSTANCE_H_
- #define _SAML11_PORT_INSTANCE_H_
- #if (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- #define REG_PORT_DIR0 (0x40003000)
- #define REG_PORT_DIRCLR0 (0x40003004)
- #define REG_PORT_DIRSET0 (0x40003008)
- #define REG_PORT_DIRTGL0 (0x4000300C)
- #define REG_PORT_OUT0 (0x40003010)
- #define REG_PORT_OUTCLR0 (0x40003014)
- #define REG_PORT_OUTSET0 (0x40003018)
- #define REG_PORT_OUTTGL0 (0x4000301C)
- #define REG_PORT_IN0 (0x40003020)
- #define REG_PORT_CTRL0 (0x40003024)
- #define REG_PORT_WRCONFIG0 (0x40003028)
- #define REG_PORT_EVCTRL0 (0x4000302C)
- #define REG_PORT_PMUX0 (0x40003030)
- #define REG_PORT_PINCFG0 (0x40003040)
- #define REG_PORT_INTENCLR0 (0x40003060)
- #define REG_PORT_INTENSET0 (0x40003064)
- #define REG_PORT_INTFLAG0 (0x40003068)
- #define REG_PORT_NONSEC0 (0x4000306C)
- #define REG_PORT_NSCHK0 (0x40003070)
- #else
- #define REG_PORT_DIR0 (*(__IO uint32_t*)0x40003000U)
- #define REG_PORT_DIRCLR0 (*(__IO uint32_t*)0x40003004U)
- #define REG_PORT_DIRSET0 (*(__IO uint32_t*)0x40003008U)
- #define REG_PORT_DIRTGL0 (*(__IO uint32_t*)0x4000300CU)
- #define REG_PORT_OUT0 (*(__IO uint32_t*)0x40003010U)
- #define REG_PORT_OUTCLR0 (*(__IO uint32_t*)0x40003014U)
- #define REG_PORT_OUTSET0 (*(__IO uint32_t*)0x40003018U)
- #define REG_PORT_OUTTGL0 (*(__IO uint32_t*)0x4000301CU)
- #define REG_PORT_IN0 (*(__I uint32_t*)0x40003020U)
- #define REG_PORT_CTRL0 (*(__IO uint32_t*)0x40003024U)
- #define REG_PORT_WRCONFIG0 (*(__O uint32_t*)0x40003028U)
- #define REG_PORT_EVCTRL0 (*(__IO uint32_t*)0x4000302CU)
- #define REG_PORT_PMUX0 (*(__IO uint8_t*)0x40003030U)
- #define REG_PORT_PINCFG0 (*(__IO uint8_t*)0x40003040U)
- #define REG_PORT_INTENCLR0 (*(__IO uint32_t*)0x40003060U)
- #define REG_PORT_INTENSET0 (*(__IO uint32_t*)0x40003064U)
- #define REG_PORT_INTFLAG0 (*(__IO uint32_t*)0x40003068U)
- #define REG_PORT_NONSEC0 (*(__IO uint32_t*)0x4000306CU)
- #define REG_PORT_NSCHK0 (*(__IO uint32_t*)0x40003070U)
- #endif
- #define PORT_BITS 32
- #define PORT_DRVSTR 1
- #define PORT_EV_NUM 4
- #define PORT_GROUPS 1
- #define PORT_MSB 31
- #define PORT_ODRAIN 0
- #define PORT_PPP_IMPLEMENTED 0
- #define PORT_SECURE_IMPLEMENTED 1
- #define PORT_SLEWLIM 0
- #define PORT_INSTANCE_ID 12
- #endif
|