123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- #ifndef _SAML11_TC2_INSTANCE_H_
- #define _SAML11_TC2_INSTANCE_H_
- #if (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- #define REG_TC2_CTRLA (0x42001800)
- #define REG_TC2_CTRLBCLR (0x42001804)
- #define REG_TC2_CTRLBSET (0x42001805)
- #define REG_TC2_EVCTRL (0x42001806)
- #define REG_TC2_INTENCLR (0x42001808)
- #define REG_TC2_INTENSET (0x42001809)
- #define REG_TC2_INTFLAG (0x4200180A)
- #define REG_TC2_STATUS (0x4200180B)
- #define REG_TC2_WAVE (0x4200180C)
- #define REG_TC2_DRVCTRL (0x4200180D)
- #define REG_TC2_DBGCTRL (0x4200180F)
- #define REG_TC2_SYNCBUSY (0x42001810)
- #define REG_TC2_COUNT8_COUNT (0x42001814)
- #define REG_TC2_COUNT8_PER (0x4200181B)
- #define REG_TC2_COUNT8_CC (0x4200181C)
- #define REG_TC2_COUNT8_CC0 (0x4200181C)
- #define REG_TC2_COUNT8_CC1 (0x4200181D)
- #define REG_TC2_COUNT8_PERBUF (0x4200182F)
- #define REG_TC2_COUNT8_CCBUF (0x42001830)
- #define REG_TC2_COUNT8_CCBUF0 (0x42001830)
- #define REG_TC2_COUNT8_CCBUF1 (0x42001831)
- #define REG_TC2_COUNT16_COUNT (0x42001814)
- #define REG_TC2_COUNT16_PER (0x4200181A)
- #define REG_TC2_COUNT16_CC (0x4200181C)
- #define REG_TC2_COUNT16_CC0 (0x4200181C)
- #define REG_TC2_COUNT16_CC1 (0x4200181E)
- #define REG_TC2_COUNT16_PERBUF (0x4200182E)
- #define REG_TC2_COUNT16_CCBUF (0x42001830)
- #define REG_TC2_COUNT16_CCBUF0 (0x42001830)
- #define REG_TC2_COUNT16_CCBUF1 (0x42001832)
- #define REG_TC2_COUNT32_COUNT (0x42001814)
- #define REG_TC2_COUNT32_PER (0x42001818)
- #define REG_TC2_COUNT32_CC (0x4200181C)
- #define REG_TC2_COUNT32_CC0 (0x4200181C)
- #define REG_TC2_COUNT32_CC1 (0x42001820)
- #define REG_TC2_COUNT32_PERBUF (0x4200182C)
- #define REG_TC2_COUNT32_CCBUF (0x42001830)
- #define REG_TC2_COUNT32_CCBUF0 (0x42001830)
- #define REG_TC2_COUNT32_CCBUF1 (0x42001834)
- #else
- #define REG_TC2_CTRLA (*(__IO uint32_t*)0x42001800U)
- #define REG_TC2_CTRLBCLR (*(__IO uint8_t*)0x42001804U)
- #define REG_TC2_CTRLBSET (*(__IO uint8_t*)0x42001805U)
- #define REG_TC2_EVCTRL (*(__IO uint16_t*)0x42001806U)
- #define REG_TC2_INTENCLR (*(__IO uint8_t*)0x42001808U)
- #define REG_TC2_INTENSET (*(__IO uint8_t*)0x42001809U)
- #define REG_TC2_INTFLAG (*(__IO uint8_t*)0x4200180AU)
- #define REG_TC2_STATUS (*(__IO uint8_t*)0x4200180BU)
- #define REG_TC2_WAVE (*(__IO uint8_t*)0x4200180CU)
- #define REG_TC2_DRVCTRL (*(__IO uint8_t*)0x4200180DU)
- #define REG_TC2_DBGCTRL (*(__IO uint8_t*)0x4200180FU)
- #define REG_TC2_SYNCBUSY (*(__I uint32_t*)0x42001810U)
- #define REG_TC2_COUNT8_COUNT (*(__IO uint8_t*)0x42001814U)
- #define REG_TC2_COUNT8_PER (*(__IO uint8_t*)0x4200181BU)
- #define REG_TC2_COUNT8_CC (*(__IO uint8_t*)0x4200181CU)
- #define REG_TC2_COUNT8_CC0 (*(__IO uint8_t*)0x4200181CU)
- #define REG_TC2_COUNT8_CC1 (*(__IO uint8_t*)0x4200181DU)
- #define REG_TC2_COUNT8_PERBUF (*(__IO uint8_t*)0x4200182FU)
- #define REG_TC2_COUNT8_CCBUF (*(__IO uint8_t*)0x42001830U)
- #define REG_TC2_COUNT8_CCBUF0 (*(__IO uint8_t*)0x42001830U)
- #define REG_TC2_COUNT8_CCBUF1 (*(__IO uint8_t*)0x42001831U)
- #define REG_TC2_COUNT16_COUNT (*(__IO uint16_t*)0x42001814U)
- #define REG_TC2_COUNT16_PER (*(__IO uint16_t*)0x4200181AU)
- #define REG_TC2_COUNT16_CC (*(__IO uint16_t*)0x4200181CU)
- #define REG_TC2_COUNT16_CC0 (*(__IO uint16_t*)0x4200181CU)
- #define REG_TC2_COUNT16_CC1 (*(__IO uint16_t*)0x4200181EU)
- #define REG_TC2_COUNT16_PERBUF (*(__IO uint16_t*)0x4200182EU)
- #define REG_TC2_COUNT16_CCBUF (*(__IO uint16_t*)0x42001830U)
- #define REG_TC2_COUNT16_CCBUF0 (*(__IO uint16_t*)0x42001830U)
- #define REG_TC2_COUNT16_CCBUF1 (*(__IO uint16_t*)0x42001832U)
- #define REG_TC2_COUNT32_COUNT (*(__IO uint32_t*)0x42001814U)
- #define REG_TC2_COUNT32_PER (*(__IO uint32_t*)0x42001818U)
- #define REG_TC2_COUNT32_CC (*(__IO uint32_t*)0x4200181CU)
- #define REG_TC2_COUNT32_CC0 (*(__IO uint32_t*)0x4200181CU)
- #define REG_TC2_COUNT32_CC1 (*(__IO uint32_t*)0x42001820U)
- #define REG_TC2_COUNT32_PERBUF (*(__IO uint32_t*)0x4200182CU)
- #define REG_TC2_COUNT32_CCBUF (*(__IO uint32_t*)0x42001830U)
- #define REG_TC2_COUNT32_CCBUF0 (*(__IO uint32_t*)0x42001830U)
- #define REG_TC2_COUNT32_CCBUF1 (*(__IO uint32_t*)0x42001834U)
- #endif
- #define TC2_CC_NUM 2
- #define TC2_DMAC_ID_OVF 16
- #define TC2_EXT 1
- #define TC2_GCLK_ID 15
- #define TC2_MASTER_SLAVE_MODE 0
- #define TC2_OW_NUM 2
- #define TC2_INSTANCE_ID 70
- #endif
|