123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966 |
- #ifndef _SAML11_PAC_COMPONENT_H_
- #define _SAML11_PAC_COMPONENT_H_
- #define _SAML11_PAC_COMPONENT_
- #define PAC_U2120
- #define REV_PAC 0x200
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint32_t PERID:16;
- uint32_t KEY:8;
- uint32_t :8;
- } bit;
- uint32_t reg;
- } PAC_WRCTRL_Type;
- #endif
- #define PAC_WRCTRL_OFFSET (0x00)
- #define PAC_WRCTRL_RESETVALUE _U_(0x00)
- #define PAC_WRCTRL_PERID_Pos 0
- #define PAC_WRCTRL_PERID_Msk (_U_(0xFFFF) << PAC_WRCTRL_PERID_Pos)
- #define PAC_WRCTRL_PERID(value) (PAC_WRCTRL_PERID_Msk & ((value) << PAC_WRCTRL_PERID_Pos))
- #define PAC_WRCTRL_KEY_Pos 16
- #define PAC_WRCTRL_KEY_Msk (_U_(0xFF) << PAC_WRCTRL_KEY_Pos)
- #define PAC_WRCTRL_KEY(value) (PAC_WRCTRL_KEY_Msk & ((value) << PAC_WRCTRL_KEY_Pos))
- #define PAC_WRCTRL_KEY_OFF_Val _U_(0x0)
- #define PAC_WRCTRL_KEY_CLR_Val _U_(0x1)
- #define PAC_WRCTRL_KEY_SET_Val _U_(0x2)
- #define PAC_WRCTRL_KEY_SETLCK_Val _U_(0x3)
- #define PAC_WRCTRL_KEY_SETSEC_Val _U_(0x4)
- #define PAC_WRCTRL_KEY_SETNONSEC_Val _U_(0x5)
- #define PAC_WRCTRL_KEY_SECLOCK_Val _U_(0x6)
- #define PAC_WRCTRL_KEY_OFF (PAC_WRCTRL_KEY_OFF_Val << PAC_WRCTRL_KEY_Pos)
- #define PAC_WRCTRL_KEY_CLR (PAC_WRCTRL_KEY_CLR_Val << PAC_WRCTRL_KEY_Pos)
- #define PAC_WRCTRL_KEY_SET (PAC_WRCTRL_KEY_SET_Val << PAC_WRCTRL_KEY_Pos)
- #define PAC_WRCTRL_KEY_SETLCK (PAC_WRCTRL_KEY_SETLCK_Val << PAC_WRCTRL_KEY_Pos)
- #define PAC_WRCTRL_KEY_SETSEC (PAC_WRCTRL_KEY_SETSEC_Val << PAC_WRCTRL_KEY_Pos)
- #define PAC_WRCTRL_KEY_SETNONSEC (PAC_WRCTRL_KEY_SETNONSEC_Val << PAC_WRCTRL_KEY_Pos)
- #define PAC_WRCTRL_KEY_SECLOCK (PAC_WRCTRL_KEY_SECLOCK_Val << PAC_WRCTRL_KEY_Pos)
- #define PAC_WRCTRL_MASK _U_(0xFFFFFF)
- #define PAC_WRCTRL_Msk _U_(0xFFFFFF)
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint8_t ERREO:1;
- uint8_t :7;
- } bit;
- uint8_t reg;
- } PAC_EVCTRL_Type;
- #endif
- #define PAC_EVCTRL_OFFSET (0x04)
- #define PAC_EVCTRL_RESETVALUE _U_(0x00)
- #define PAC_EVCTRL_ERREO_Pos 0
- #define PAC_EVCTRL_ERREO_Msk (_U_(0x1) << PAC_EVCTRL_ERREO_Pos)
- #define PAC_EVCTRL_ERREO PAC_EVCTRL_ERREO_Msk
- #define PAC_EVCTRL_MASK _U_(0x01)
- #define PAC_EVCTRL_Msk _U_(0x01)
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint8_t ERR:1;
- uint8_t :7;
- } bit;
- uint8_t reg;
- } PAC_INTENCLR_Type;
- #endif
- #define PAC_INTENCLR_OFFSET (0x08)
- #define PAC_INTENCLR_RESETVALUE _U_(0x00)
- #define PAC_INTENCLR_ERR_Pos 0
- #define PAC_INTENCLR_ERR_Msk (_U_(0x1) << PAC_INTENCLR_ERR_Pos)
- #define PAC_INTENCLR_ERR PAC_INTENCLR_ERR_Msk
- #define PAC_INTENCLR_MASK _U_(0x01)
- #define PAC_INTENCLR_Msk _U_(0x01)
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint8_t ERR:1;
- uint8_t :7;
- } bit;
- uint8_t reg;
- } PAC_INTENSET_Type;
- #endif
- #define PAC_INTENSET_OFFSET (0x09)
- #define PAC_INTENSET_RESETVALUE _U_(0x00)
- #define PAC_INTENSET_ERR_Pos 0
- #define PAC_INTENSET_ERR_Msk (_U_(0x1) << PAC_INTENSET_ERR_Pos)
- #define PAC_INTENSET_ERR PAC_INTENSET_ERR_Msk
- #define PAC_INTENSET_MASK _U_(0x01)
- #define PAC_INTENSET_Msk _U_(0x01)
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- __I uint32_t FLASH_:1;
- __I uint32_t HPB0_:1;
- __I uint32_t HPB1_:1;
- __I uint32_t HPB2_:1;
- __I uint32_t HSRAMCPU_:1;
- __I uint32_t HSRAMDMAC_:1;
- __I uint32_t HSRAMDSU_:1;
- __I uint32_t :25;
- } bit;
- uint32_t reg;
- } PAC_INTFLAGAHB_Type;
- #endif
- #define PAC_INTFLAGAHB_OFFSET (0x10)
- #define PAC_INTFLAGAHB_RESETVALUE _U_(0x00)
- #define PAC_INTFLAGAHB_FLASH_Pos 0
- #define PAC_INTFLAGAHB_FLASH_Msk (_U_(0x1) << PAC_INTFLAGAHB_FLASH_Pos)
- #define PAC_INTFLAGAHB_FLASH PAC_INTFLAGAHB_FLASH_Msk
- #define PAC_INTFLAGAHB_HPB0_Pos 1
- #define PAC_INTFLAGAHB_HPB0_Msk (_U_(0x1) << PAC_INTFLAGAHB_HPB0_Pos)
- #define PAC_INTFLAGAHB_HPB0 PAC_INTFLAGAHB_HPB0_Msk
- #define PAC_INTFLAGAHB_HPB1_Pos 2
- #define PAC_INTFLAGAHB_HPB1_Msk (_U_(0x1) << PAC_INTFLAGAHB_HPB1_Pos)
- #define PAC_INTFLAGAHB_HPB1 PAC_INTFLAGAHB_HPB1_Msk
- #define PAC_INTFLAGAHB_HPB2_Pos 3
- #define PAC_INTFLAGAHB_HPB2_Msk (_U_(0x1) << PAC_INTFLAGAHB_HPB2_Pos)
- #define PAC_INTFLAGAHB_HPB2 PAC_INTFLAGAHB_HPB2_Msk
- #define PAC_INTFLAGAHB_HSRAMCPU_Pos 4
- #define PAC_INTFLAGAHB_HSRAMCPU_Msk (_U_(0x1) << PAC_INTFLAGAHB_HSRAMCPU_Pos)
- #define PAC_INTFLAGAHB_HSRAMCPU PAC_INTFLAGAHB_HSRAMCPU_Msk
- #define PAC_INTFLAGAHB_HSRAMDMAC_Pos 5
- #define PAC_INTFLAGAHB_HSRAMDMAC_Msk (_U_(0x1) << PAC_INTFLAGAHB_HSRAMDMAC_Pos)
- #define PAC_INTFLAGAHB_HSRAMDMAC PAC_INTFLAGAHB_HSRAMDMAC_Msk
- #define PAC_INTFLAGAHB_HSRAMDSU_Pos 6
- #define PAC_INTFLAGAHB_HSRAMDSU_Msk (_U_(0x1) << PAC_INTFLAGAHB_HSRAMDSU_Pos)
- #define PAC_INTFLAGAHB_HSRAMDSU PAC_INTFLAGAHB_HSRAMDSU_Msk
- #define PAC_INTFLAGAHB_MASK _U_(0x7F)
- #define PAC_INTFLAGAHB_Msk _U_(0x7F)
- #define PAC_INTFLAGAHB_HPB_Pos 1
- #define PAC_INTFLAGAHB_HPB_Msk (_U_(0x7) << PAC_INTFLAGAHB_HPB_Pos)
- #define PAC_INTFLAGAHB_HPB(value) (PAC_INTFLAGAHB_HPB_Msk & ((value) << PAC_INTFLAGAHB_HPB_Pos))
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- __I uint32_t PAC_:1;
- __I uint32_t PM_:1;
- __I uint32_t MCLK_:1;
- __I uint32_t RSTC_:1;
- __I uint32_t OSCCTRL_:1;
- __I uint32_t OSC32KCTRL_:1;
- __I uint32_t SUPC_:1;
- __I uint32_t GCLK_:1;
- __I uint32_t WDT_:1;
- __I uint32_t RTC_:1;
- __I uint32_t EIC_:1;
- __I uint32_t FREQM_:1;
- __I uint32_t PORT_:1;
- __I uint32_t AC_:1;
- __I uint32_t :18;
- } bit;
- uint32_t reg;
- } PAC_INTFLAGA_Type;
- #endif
- #define PAC_INTFLAGA_OFFSET (0x14)
- #define PAC_INTFLAGA_RESETVALUE _U_(0x00)
- #define PAC_INTFLAGA_PAC_Pos 0
- #define PAC_INTFLAGA_PAC_Msk (_U_(0x1) << PAC_INTFLAGA_PAC_Pos)
- #define PAC_INTFLAGA_PAC PAC_INTFLAGA_PAC_Msk
- #define PAC_INTFLAGA_PM_Pos 1
- #define PAC_INTFLAGA_PM_Msk (_U_(0x1) << PAC_INTFLAGA_PM_Pos)
- #define PAC_INTFLAGA_PM PAC_INTFLAGA_PM_Msk
- #define PAC_INTFLAGA_MCLK_Pos 2
- #define PAC_INTFLAGA_MCLK_Msk (_U_(0x1) << PAC_INTFLAGA_MCLK_Pos)
- #define PAC_INTFLAGA_MCLK PAC_INTFLAGA_MCLK_Msk
- #define PAC_INTFLAGA_RSTC_Pos 3
- #define PAC_INTFLAGA_RSTC_Msk (_U_(0x1) << PAC_INTFLAGA_RSTC_Pos)
- #define PAC_INTFLAGA_RSTC PAC_INTFLAGA_RSTC_Msk
- #define PAC_INTFLAGA_OSCCTRL_Pos 4
- #define PAC_INTFLAGA_OSCCTRL_Msk (_U_(0x1) << PAC_INTFLAGA_OSCCTRL_Pos)
- #define PAC_INTFLAGA_OSCCTRL PAC_INTFLAGA_OSCCTRL_Msk
- #define PAC_INTFLAGA_OSC32KCTRL_Pos 5
- #define PAC_INTFLAGA_OSC32KCTRL_Msk (_U_(0x1) << PAC_INTFLAGA_OSC32KCTRL_Pos)
- #define PAC_INTFLAGA_OSC32KCTRL PAC_INTFLAGA_OSC32KCTRL_Msk
- #define PAC_INTFLAGA_SUPC_Pos 6
- #define PAC_INTFLAGA_SUPC_Msk (_U_(0x1) << PAC_INTFLAGA_SUPC_Pos)
- #define PAC_INTFLAGA_SUPC PAC_INTFLAGA_SUPC_Msk
- #define PAC_INTFLAGA_GCLK_Pos 7
- #define PAC_INTFLAGA_GCLK_Msk (_U_(0x1) << PAC_INTFLAGA_GCLK_Pos)
- #define PAC_INTFLAGA_GCLK PAC_INTFLAGA_GCLK_Msk
- #define PAC_INTFLAGA_WDT_Pos 8
- #define PAC_INTFLAGA_WDT_Msk (_U_(0x1) << PAC_INTFLAGA_WDT_Pos)
- #define PAC_INTFLAGA_WDT PAC_INTFLAGA_WDT_Msk
- #define PAC_INTFLAGA_RTC_Pos 9
- #define PAC_INTFLAGA_RTC_Msk (_U_(0x1) << PAC_INTFLAGA_RTC_Pos)
- #define PAC_INTFLAGA_RTC PAC_INTFLAGA_RTC_Msk
- #define PAC_INTFLAGA_EIC_Pos 10
- #define PAC_INTFLAGA_EIC_Msk (_U_(0x1) << PAC_INTFLAGA_EIC_Pos)
- #define PAC_INTFLAGA_EIC PAC_INTFLAGA_EIC_Msk
- #define PAC_INTFLAGA_FREQM_Pos 11
- #define PAC_INTFLAGA_FREQM_Msk (_U_(0x1) << PAC_INTFLAGA_FREQM_Pos)
- #define PAC_INTFLAGA_FREQM PAC_INTFLAGA_FREQM_Msk
- #define PAC_INTFLAGA_PORT_Pos 12
- #define PAC_INTFLAGA_PORT_Msk (_U_(0x1) << PAC_INTFLAGA_PORT_Pos)
- #define PAC_INTFLAGA_PORT PAC_INTFLAGA_PORT_Msk
- #define PAC_INTFLAGA_AC_Pos 13
- #define PAC_INTFLAGA_AC_Msk (_U_(0x1) << PAC_INTFLAGA_AC_Pos)
- #define PAC_INTFLAGA_AC PAC_INTFLAGA_AC_Msk
- #define PAC_INTFLAGA_MASK _U_(0x3FFF)
- #define PAC_INTFLAGA_Msk _U_(0x3FFF)
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- __I uint32_t IDAU_:1;
- __I uint32_t DSU_:1;
- __I uint32_t NVMCTRL_:1;
- __I uint32_t DMAC_:1;
- __I uint32_t :28;
- } bit;
- uint32_t reg;
- } PAC_INTFLAGB_Type;
- #endif
- #define PAC_INTFLAGB_OFFSET (0x18)
- #define PAC_INTFLAGB_RESETVALUE _U_(0x00)
- #define PAC_INTFLAGB_IDAU_Pos 0
- #define PAC_INTFLAGB_IDAU_Msk (_U_(0x1) << PAC_INTFLAGB_IDAU_Pos)
- #define PAC_INTFLAGB_IDAU PAC_INTFLAGB_IDAU_Msk
- #define PAC_INTFLAGB_DSU_Pos 1
- #define PAC_INTFLAGB_DSU_Msk (_U_(0x1) << PAC_INTFLAGB_DSU_Pos)
- #define PAC_INTFLAGB_DSU PAC_INTFLAGB_DSU_Msk
- #define PAC_INTFLAGB_NVMCTRL_Pos 2
- #define PAC_INTFLAGB_NVMCTRL_Msk (_U_(0x1) << PAC_INTFLAGB_NVMCTRL_Pos)
- #define PAC_INTFLAGB_NVMCTRL PAC_INTFLAGB_NVMCTRL_Msk
- #define PAC_INTFLAGB_DMAC_Pos 3
- #define PAC_INTFLAGB_DMAC_Msk (_U_(0x1) << PAC_INTFLAGB_DMAC_Pos)
- #define PAC_INTFLAGB_DMAC PAC_INTFLAGB_DMAC_Msk
- #define PAC_INTFLAGB_MASK _U_(0x0F)
- #define PAC_INTFLAGB_Msk _U_(0x0F)
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- __I uint32_t EVSYS_:1;
- __I uint32_t SERCOM0_:1;
- __I uint32_t SERCOM1_:1;
- __I uint32_t SERCOM2_:1;
- __I uint32_t TC0_:1;
- __I uint32_t TC1_:1;
- __I uint32_t TC2_:1;
- __I uint32_t ADC_:1;
- __I uint32_t DAC_:1;
- __I uint32_t PTC_:1;
- __I uint32_t TRNG_:1;
- __I uint32_t CCL_:1;
- __I uint32_t OPAMP_:1;
- __I uint32_t TRAM_:1;
- __I uint32_t :18;
- } bit;
- uint32_t reg;
- } PAC_INTFLAGC_Type;
- #endif
- #define PAC_INTFLAGC_OFFSET (0x1C)
- #define PAC_INTFLAGC_RESETVALUE _U_(0x00)
- #define PAC_INTFLAGC_EVSYS_Pos 0
- #define PAC_INTFLAGC_EVSYS_Msk (_U_(0x1) << PAC_INTFLAGC_EVSYS_Pos)
- #define PAC_INTFLAGC_EVSYS PAC_INTFLAGC_EVSYS_Msk
- #define PAC_INTFLAGC_SERCOM0_Pos 1
- #define PAC_INTFLAGC_SERCOM0_Msk (_U_(0x1) << PAC_INTFLAGC_SERCOM0_Pos)
- #define PAC_INTFLAGC_SERCOM0 PAC_INTFLAGC_SERCOM0_Msk
- #define PAC_INTFLAGC_SERCOM1_Pos 2
- #define PAC_INTFLAGC_SERCOM1_Msk (_U_(0x1) << PAC_INTFLAGC_SERCOM1_Pos)
- #define PAC_INTFLAGC_SERCOM1 PAC_INTFLAGC_SERCOM1_Msk
- #define PAC_INTFLAGC_SERCOM2_Pos 3
- #define PAC_INTFLAGC_SERCOM2_Msk (_U_(0x1) << PAC_INTFLAGC_SERCOM2_Pos)
- #define PAC_INTFLAGC_SERCOM2 PAC_INTFLAGC_SERCOM2_Msk
- #define PAC_INTFLAGC_TC0_Pos 4
- #define PAC_INTFLAGC_TC0_Msk (_U_(0x1) << PAC_INTFLAGC_TC0_Pos)
- #define PAC_INTFLAGC_TC0 PAC_INTFLAGC_TC0_Msk
- #define PAC_INTFLAGC_TC1_Pos 5
- #define PAC_INTFLAGC_TC1_Msk (_U_(0x1) << PAC_INTFLAGC_TC1_Pos)
- #define PAC_INTFLAGC_TC1 PAC_INTFLAGC_TC1_Msk
- #define PAC_INTFLAGC_TC2_Pos 6
- #define PAC_INTFLAGC_TC2_Msk (_U_(0x1) << PAC_INTFLAGC_TC2_Pos)
- #define PAC_INTFLAGC_TC2 PAC_INTFLAGC_TC2_Msk
- #define PAC_INTFLAGC_ADC_Pos 7
- #define PAC_INTFLAGC_ADC_Msk (_U_(0x1) << PAC_INTFLAGC_ADC_Pos)
- #define PAC_INTFLAGC_ADC PAC_INTFLAGC_ADC_Msk
- #define PAC_INTFLAGC_DAC_Pos 8
- #define PAC_INTFLAGC_DAC_Msk (_U_(0x1) << PAC_INTFLAGC_DAC_Pos)
- #define PAC_INTFLAGC_DAC PAC_INTFLAGC_DAC_Msk
- #define PAC_INTFLAGC_PTC_Pos 9
- #define PAC_INTFLAGC_PTC_Msk (_U_(0x1) << PAC_INTFLAGC_PTC_Pos)
- #define PAC_INTFLAGC_PTC PAC_INTFLAGC_PTC_Msk
- #define PAC_INTFLAGC_TRNG_Pos 10
- #define PAC_INTFLAGC_TRNG_Msk (_U_(0x1) << PAC_INTFLAGC_TRNG_Pos)
- #define PAC_INTFLAGC_TRNG PAC_INTFLAGC_TRNG_Msk
- #define PAC_INTFLAGC_CCL_Pos 11
- #define PAC_INTFLAGC_CCL_Msk (_U_(0x1) << PAC_INTFLAGC_CCL_Pos)
- #define PAC_INTFLAGC_CCL PAC_INTFLAGC_CCL_Msk
- #define PAC_INTFLAGC_OPAMP_Pos 12
- #define PAC_INTFLAGC_OPAMP_Msk (_U_(0x1) << PAC_INTFLAGC_OPAMP_Pos)
- #define PAC_INTFLAGC_OPAMP PAC_INTFLAGC_OPAMP_Msk
- #define PAC_INTFLAGC_TRAM_Pos 13
- #define PAC_INTFLAGC_TRAM_Msk (_U_(0x1) << PAC_INTFLAGC_TRAM_Pos)
- #define PAC_INTFLAGC_TRAM PAC_INTFLAGC_TRAM_Msk
- #define PAC_INTFLAGC_MASK _U_(0x3FFF)
- #define PAC_INTFLAGC_Msk _U_(0x3FFF)
- #define PAC_INTFLAGC_SERCOM_Pos 1
- #define PAC_INTFLAGC_SERCOM_Msk (_U_(0x7) << PAC_INTFLAGC_SERCOM_Pos)
- #define PAC_INTFLAGC_SERCOM(value) (PAC_INTFLAGC_SERCOM_Msk & ((value) << PAC_INTFLAGC_SERCOM_Pos))
- #define PAC_INTFLAGC_TC_Pos 4
- #define PAC_INTFLAGC_TC_Msk (_U_(0x7) << PAC_INTFLAGC_TC_Pos)
- #define PAC_INTFLAGC_TC(value) (PAC_INTFLAGC_TC_Msk & ((value) << PAC_INTFLAGC_TC_Pos))
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint32_t PAC_:1;
- uint32_t PM_:1;
- uint32_t MCLK_:1;
- uint32_t RSTC_:1;
- uint32_t OSCCTRL_:1;
- uint32_t OSC32KCTRL_:1;
- uint32_t SUPC_:1;
- uint32_t GCLK_:1;
- uint32_t WDT_:1;
- uint32_t RTC_:1;
- uint32_t EIC_:1;
- uint32_t FREQM_:1;
- uint32_t PORT_:1;
- uint32_t AC_:1;
- uint32_t :18;
- } bit;
- uint32_t reg;
- } PAC_STATUSA_Type;
- #endif
- #define PAC_STATUSA_OFFSET (0x34)
- #define PAC_STATUSA_RESETVALUE _U_(0xC000)
- #define PAC_STATUSA_PAC_Pos 0
- #define PAC_STATUSA_PAC_Msk (_U_(0x1) << PAC_STATUSA_PAC_Pos)
- #define PAC_STATUSA_PAC PAC_STATUSA_PAC_Msk
- #define PAC_STATUSA_PM_Pos 1
- #define PAC_STATUSA_PM_Msk (_U_(0x1) << PAC_STATUSA_PM_Pos)
- #define PAC_STATUSA_PM PAC_STATUSA_PM_Msk
- #define PAC_STATUSA_MCLK_Pos 2
- #define PAC_STATUSA_MCLK_Msk (_U_(0x1) << PAC_STATUSA_MCLK_Pos)
- #define PAC_STATUSA_MCLK PAC_STATUSA_MCLK_Msk
- #define PAC_STATUSA_RSTC_Pos 3
- #define PAC_STATUSA_RSTC_Msk (_U_(0x1) << PAC_STATUSA_RSTC_Pos)
- #define PAC_STATUSA_RSTC PAC_STATUSA_RSTC_Msk
- #define PAC_STATUSA_OSCCTRL_Pos 4
- #define PAC_STATUSA_OSCCTRL_Msk (_U_(0x1) << PAC_STATUSA_OSCCTRL_Pos)
- #define PAC_STATUSA_OSCCTRL PAC_STATUSA_OSCCTRL_Msk
- #define PAC_STATUSA_OSC32KCTRL_Pos 5
- #define PAC_STATUSA_OSC32KCTRL_Msk (_U_(0x1) << PAC_STATUSA_OSC32KCTRL_Pos)
- #define PAC_STATUSA_OSC32KCTRL PAC_STATUSA_OSC32KCTRL_Msk
- #define PAC_STATUSA_SUPC_Pos 6
- #define PAC_STATUSA_SUPC_Msk (_U_(0x1) << PAC_STATUSA_SUPC_Pos)
- #define PAC_STATUSA_SUPC PAC_STATUSA_SUPC_Msk
- #define PAC_STATUSA_GCLK_Pos 7
- #define PAC_STATUSA_GCLK_Msk (_U_(0x1) << PAC_STATUSA_GCLK_Pos)
- #define PAC_STATUSA_GCLK PAC_STATUSA_GCLK_Msk
- #define PAC_STATUSA_WDT_Pos 8
- #define PAC_STATUSA_WDT_Msk (_U_(0x1) << PAC_STATUSA_WDT_Pos)
- #define PAC_STATUSA_WDT PAC_STATUSA_WDT_Msk
- #define PAC_STATUSA_RTC_Pos 9
- #define PAC_STATUSA_RTC_Msk (_U_(0x1) << PAC_STATUSA_RTC_Pos)
- #define PAC_STATUSA_RTC PAC_STATUSA_RTC_Msk
- #define PAC_STATUSA_EIC_Pos 10
- #define PAC_STATUSA_EIC_Msk (_U_(0x1) << PAC_STATUSA_EIC_Pos)
- #define PAC_STATUSA_EIC PAC_STATUSA_EIC_Msk
- #define PAC_STATUSA_FREQM_Pos 11
- #define PAC_STATUSA_FREQM_Msk (_U_(0x1) << PAC_STATUSA_FREQM_Pos)
- #define PAC_STATUSA_FREQM PAC_STATUSA_FREQM_Msk
- #define PAC_STATUSA_PORT_Pos 12
- #define PAC_STATUSA_PORT_Msk (_U_(0x1) << PAC_STATUSA_PORT_Pos)
- #define PAC_STATUSA_PORT PAC_STATUSA_PORT_Msk
- #define PAC_STATUSA_AC_Pos 13
- #define PAC_STATUSA_AC_Msk (_U_(0x1) << PAC_STATUSA_AC_Pos)
- #define PAC_STATUSA_AC PAC_STATUSA_AC_Msk
- #define PAC_STATUSA_MASK _U_(0x3FFF)
- #define PAC_STATUSA_Msk _U_(0x3FFF)
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint32_t IDAU_:1;
- uint32_t DSU_:1;
- uint32_t NVMCTRL_:1;
- uint32_t DMAC_:1;
- uint32_t :28;
- } bit;
- uint32_t reg;
- } PAC_STATUSB_Type;
- #endif
- #define PAC_STATUSB_OFFSET (0x38)
- #define PAC_STATUSB_RESETVALUE _U_(0x02)
- #define PAC_STATUSB_IDAU_Pos 0
- #define PAC_STATUSB_IDAU_Msk (_U_(0x1) << PAC_STATUSB_IDAU_Pos)
- #define PAC_STATUSB_IDAU PAC_STATUSB_IDAU_Msk
- #define PAC_STATUSB_DSU_Pos 1
- #define PAC_STATUSB_DSU_Msk (_U_(0x1) << PAC_STATUSB_DSU_Pos)
- #define PAC_STATUSB_DSU PAC_STATUSB_DSU_Msk
- #define PAC_STATUSB_NVMCTRL_Pos 2
- #define PAC_STATUSB_NVMCTRL_Msk (_U_(0x1) << PAC_STATUSB_NVMCTRL_Pos)
- #define PAC_STATUSB_NVMCTRL PAC_STATUSB_NVMCTRL_Msk
- #define PAC_STATUSB_DMAC_Pos 3
- #define PAC_STATUSB_DMAC_Msk (_U_(0x1) << PAC_STATUSB_DMAC_Pos)
- #define PAC_STATUSB_DMAC PAC_STATUSB_DMAC_Msk
- #define PAC_STATUSB_MASK _U_(0x0F)
- #define PAC_STATUSB_Msk _U_(0x0F)
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint32_t EVSYS_:1;
- uint32_t SERCOM0_:1;
- uint32_t SERCOM1_:1;
- uint32_t SERCOM2_:1;
- uint32_t TC0_:1;
- uint32_t TC1_:1;
- uint32_t TC2_:1;
- uint32_t ADC_:1;
- uint32_t DAC_:1;
- uint32_t PTC_:1;
- uint32_t TRNG_:1;
- uint32_t CCL_:1;
- uint32_t OPAMP_:1;
- uint32_t TRAM_:1;
- uint32_t :18;
- } bit;
- uint32_t reg;
- } PAC_STATUSC_Type;
- #endif
- #define PAC_STATUSC_OFFSET (0x3C)
- #define PAC_STATUSC_RESETVALUE _U_(0x00)
- #define PAC_STATUSC_EVSYS_Pos 0
- #define PAC_STATUSC_EVSYS_Msk (_U_(0x1) << PAC_STATUSC_EVSYS_Pos)
- #define PAC_STATUSC_EVSYS PAC_STATUSC_EVSYS_Msk
- #define PAC_STATUSC_SERCOM0_Pos 1
- #define PAC_STATUSC_SERCOM0_Msk (_U_(0x1) << PAC_STATUSC_SERCOM0_Pos)
- #define PAC_STATUSC_SERCOM0 PAC_STATUSC_SERCOM0_Msk
- #define PAC_STATUSC_SERCOM1_Pos 2
- #define PAC_STATUSC_SERCOM1_Msk (_U_(0x1) << PAC_STATUSC_SERCOM1_Pos)
- #define PAC_STATUSC_SERCOM1 PAC_STATUSC_SERCOM1_Msk
- #define PAC_STATUSC_SERCOM2_Pos 3
- #define PAC_STATUSC_SERCOM2_Msk (_U_(0x1) << PAC_STATUSC_SERCOM2_Pos)
- #define PAC_STATUSC_SERCOM2 PAC_STATUSC_SERCOM2_Msk
- #define PAC_STATUSC_TC0_Pos 4
- #define PAC_STATUSC_TC0_Msk (_U_(0x1) << PAC_STATUSC_TC0_Pos)
- #define PAC_STATUSC_TC0 PAC_STATUSC_TC0_Msk
- #define PAC_STATUSC_TC1_Pos 5
- #define PAC_STATUSC_TC1_Msk (_U_(0x1) << PAC_STATUSC_TC1_Pos)
- #define PAC_STATUSC_TC1 PAC_STATUSC_TC1_Msk
- #define PAC_STATUSC_TC2_Pos 6
- #define PAC_STATUSC_TC2_Msk (_U_(0x1) << PAC_STATUSC_TC2_Pos)
- #define PAC_STATUSC_TC2 PAC_STATUSC_TC2_Msk
- #define PAC_STATUSC_ADC_Pos 7
- #define PAC_STATUSC_ADC_Msk (_U_(0x1) << PAC_STATUSC_ADC_Pos)
- #define PAC_STATUSC_ADC PAC_STATUSC_ADC_Msk
- #define PAC_STATUSC_DAC_Pos 8
- #define PAC_STATUSC_DAC_Msk (_U_(0x1) << PAC_STATUSC_DAC_Pos)
- #define PAC_STATUSC_DAC PAC_STATUSC_DAC_Msk
- #define PAC_STATUSC_PTC_Pos 9
- #define PAC_STATUSC_PTC_Msk (_U_(0x1) << PAC_STATUSC_PTC_Pos)
- #define PAC_STATUSC_PTC PAC_STATUSC_PTC_Msk
- #define PAC_STATUSC_TRNG_Pos 10
- #define PAC_STATUSC_TRNG_Msk (_U_(0x1) << PAC_STATUSC_TRNG_Pos)
- #define PAC_STATUSC_TRNG PAC_STATUSC_TRNG_Msk
- #define PAC_STATUSC_CCL_Pos 11
- #define PAC_STATUSC_CCL_Msk (_U_(0x1) << PAC_STATUSC_CCL_Pos)
- #define PAC_STATUSC_CCL PAC_STATUSC_CCL_Msk
- #define PAC_STATUSC_OPAMP_Pos 12
- #define PAC_STATUSC_OPAMP_Msk (_U_(0x1) << PAC_STATUSC_OPAMP_Pos)
- #define PAC_STATUSC_OPAMP PAC_STATUSC_OPAMP_Msk
- #define PAC_STATUSC_TRAM_Pos 13
- #define PAC_STATUSC_TRAM_Msk (_U_(0x1) << PAC_STATUSC_TRAM_Pos)
- #define PAC_STATUSC_TRAM PAC_STATUSC_TRAM_Msk
- #define PAC_STATUSC_MASK _U_(0x3FFF)
- #define PAC_STATUSC_Msk _U_(0x3FFF)
- #define PAC_STATUSC_SERCOM_Pos 1
- #define PAC_STATUSC_SERCOM_Msk (_U_(0x7) << PAC_STATUSC_SERCOM_Pos)
- #define PAC_STATUSC_SERCOM(value) (PAC_STATUSC_SERCOM_Msk & ((value) << PAC_STATUSC_SERCOM_Pos))
- #define PAC_STATUSC_TC_Pos 4
- #define PAC_STATUSC_TC_Msk (_U_(0x7) << PAC_STATUSC_TC_Pos)
- #define PAC_STATUSC_TC(value) (PAC_STATUSC_TC_Msk & ((value) << PAC_STATUSC_TC_Pos))
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint32_t PAC_:1;
- uint32_t PM_:1;
- uint32_t MCLK_:1;
- uint32_t RSTC_:1;
- uint32_t OSCCTRL_:1;
- uint32_t OSC32KCTRL_:1;
- uint32_t SUPC_:1;
- uint32_t GCLK_:1;
- uint32_t WDT_:1;
- uint32_t RTC_:1;
- uint32_t EIC_:1;
- uint32_t FREQM_:1;
- uint32_t PORT_:1;
- uint32_t AC_:1;
- uint32_t :18;
- } bit;
- uint32_t reg;
- } PAC_NONSECA_Type;
- #endif
- #define PAC_NONSECA_OFFSET (0x54)
- #define PAC_NONSECA_RESETVALUE _U_(0x00)
- #define PAC_NONSECA_PAC_Pos 0
- #define PAC_NONSECA_PAC_Msk (_U_(0x1) << PAC_NONSECA_PAC_Pos)
- #define PAC_NONSECA_PAC PAC_NONSECA_PAC_Msk
- #define PAC_NONSECA_PM_Pos 1
- #define PAC_NONSECA_PM_Msk (_U_(0x1) << PAC_NONSECA_PM_Pos)
- #define PAC_NONSECA_PM PAC_NONSECA_PM_Msk
- #define PAC_NONSECA_MCLK_Pos 2
- #define PAC_NONSECA_MCLK_Msk (_U_(0x1) << PAC_NONSECA_MCLK_Pos)
- #define PAC_NONSECA_MCLK PAC_NONSECA_MCLK_Msk
- #define PAC_NONSECA_RSTC_Pos 3
- #define PAC_NONSECA_RSTC_Msk (_U_(0x1) << PAC_NONSECA_RSTC_Pos)
- #define PAC_NONSECA_RSTC PAC_NONSECA_RSTC_Msk
- #define PAC_NONSECA_OSCCTRL_Pos 4
- #define PAC_NONSECA_OSCCTRL_Msk (_U_(0x1) << PAC_NONSECA_OSCCTRL_Pos)
- #define PAC_NONSECA_OSCCTRL PAC_NONSECA_OSCCTRL_Msk
- #define PAC_NONSECA_OSC32KCTRL_Pos 5
- #define PAC_NONSECA_OSC32KCTRL_Msk (_U_(0x1) << PAC_NONSECA_OSC32KCTRL_Pos)
- #define PAC_NONSECA_OSC32KCTRL PAC_NONSECA_OSC32KCTRL_Msk
- #define PAC_NONSECA_SUPC_Pos 6
- #define PAC_NONSECA_SUPC_Msk (_U_(0x1) << PAC_NONSECA_SUPC_Pos)
- #define PAC_NONSECA_SUPC PAC_NONSECA_SUPC_Msk
- #define PAC_NONSECA_GCLK_Pos 7
- #define PAC_NONSECA_GCLK_Msk (_U_(0x1) << PAC_NONSECA_GCLK_Pos)
- #define PAC_NONSECA_GCLK PAC_NONSECA_GCLK_Msk
- #define PAC_NONSECA_WDT_Pos 8
- #define PAC_NONSECA_WDT_Msk (_U_(0x1) << PAC_NONSECA_WDT_Pos)
- #define PAC_NONSECA_WDT PAC_NONSECA_WDT_Msk
- #define PAC_NONSECA_RTC_Pos 9
- #define PAC_NONSECA_RTC_Msk (_U_(0x1) << PAC_NONSECA_RTC_Pos)
- #define PAC_NONSECA_RTC PAC_NONSECA_RTC_Msk
- #define PAC_NONSECA_EIC_Pos 10
- #define PAC_NONSECA_EIC_Msk (_U_(0x1) << PAC_NONSECA_EIC_Pos)
- #define PAC_NONSECA_EIC PAC_NONSECA_EIC_Msk
- #define PAC_NONSECA_FREQM_Pos 11
- #define PAC_NONSECA_FREQM_Msk (_U_(0x1) << PAC_NONSECA_FREQM_Pos)
- #define PAC_NONSECA_FREQM PAC_NONSECA_FREQM_Msk
- #define PAC_NONSECA_PORT_Pos 12
- #define PAC_NONSECA_PORT_Msk (_U_(0x1) << PAC_NONSECA_PORT_Pos)
- #define PAC_NONSECA_PORT PAC_NONSECA_PORT_Msk
- #define PAC_NONSECA_AC_Pos 13
- #define PAC_NONSECA_AC_Msk (_U_(0x1) << PAC_NONSECA_AC_Pos)
- #define PAC_NONSECA_AC PAC_NONSECA_AC_Msk
- #define PAC_NONSECA_MASK _U_(0x3FFF)
- #define PAC_NONSECA_Msk _U_(0x3FFF)
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint32_t IDAU_:1;
- uint32_t DSU_:1;
- uint32_t NVMCTRL_:1;
- uint32_t DMAC_:1;
- uint32_t :28;
- } bit;
- uint32_t reg;
- } PAC_NONSECB_Type;
- #endif
- #define PAC_NONSECB_OFFSET (0x58)
- #define PAC_NONSECB_RESETVALUE _U_(0x02)
- #define PAC_NONSECB_IDAU_Pos 0
- #define PAC_NONSECB_IDAU_Msk (_U_(0x1) << PAC_NONSECB_IDAU_Pos)
- #define PAC_NONSECB_IDAU PAC_NONSECB_IDAU_Msk
- #define PAC_NONSECB_DSU_Pos 1
- #define PAC_NONSECB_DSU_Msk (_U_(0x1) << PAC_NONSECB_DSU_Pos)
- #define PAC_NONSECB_DSU PAC_NONSECB_DSU_Msk
- #define PAC_NONSECB_NVMCTRL_Pos 2
- #define PAC_NONSECB_NVMCTRL_Msk (_U_(0x1) << PAC_NONSECB_NVMCTRL_Pos)
- #define PAC_NONSECB_NVMCTRL PAC_NONSECB_NVMCTRL_Msk
- #define PAC_NONSECB_DMAC_Pos 3
- #define PAC_NONSECB_DMAC_Msk (_U_(0x1) << PAC_NONSECB_DMAC_Pos)
- #define PAC_NONSECB_DMAC PAC_NONSECB_DMAC_Msk
- #define PAC_NONSECB_MASK _U_(0x0F)
- #define PAC_NONSECB_Msk _U_(0x0F)
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint32_t EVSYS_:1;
- uint32_t SERCOM0_:1;
- uint32_t SERCOM1_:1;
- uint32_t SERCOM2_:1;
- uint32_t TC0_:1;
- uint32_t TC1_:1;
- uint32_t TC2_:1;
- uint32_t ADC_:1;
- uint32_t DAC_:1;
- uint32_t PTC_:1;
- uint32_t TRNG_:1;
- uint32_t CCL_:1;
- uint32_t OPAMP_:1;
- uint32_t TRAM_:1;
- uint32_t :18;
- } bit;
- uint32_t reg;
- } PAC_NONSECC_Type;
- #endif
- #define PAC_NONSECC_OFFSET (0x5C)
- #define PAC_NONSECC_RESETVALUE _U_(0x00)
- #define PAC_NONSECC_EVSYS_Pos 0
- #define PAC_NONSECC_EVSYS_Msk (_U_(0x1) << PAC_NONSECC_EVSYS_Pos)
- #define PAC_NONSECC_EVSYS PAC_NONSECC_EVSYS_Msk
- #define PAC_NONSECC_SERCOM0_Pos 1
- #define PAC_NONSECC_SERCOM0_Msk (_U_(0x1) << PAC_NONSECC_SERCOM0_Pos)
- #define PAC_NONSECC_SERCOM0 PAC_NONSECC_SERCOM0_Msk
- #define PAC_NONSECC_SERCOM1_Pos 2
- #define PAC_NONSECC_SERCOM1_Msk (_U_(0x1) << PAC_NONSECC_SERCOM1_Pos)
- #define PAC_NONSECC_SERCOM1 PAC_NONSECC_SERCOM1_Msk
- #define PAC_NONSECC_SERCOM2_Pos 3
- #define PAC_NONSECC_SERCOM2_Msk (_U_(0x1) << PAC_NONSECC_SERCOM2_Pos)
- #define PAC_NONSECC_SERCOM2 PAC_NONSECC_SERCOM2_Msk
- #define PAC_NONSECC_TC0_Pos 4
- #define PAC_NONSECC_TC0_Msk (_U_(0x1) << PAC_NONSECC_TC0_Pos)
- #define PAC_NONSECC_TC0 PAC_NONSECC_TC0_Msk
- #define PAC_NONSECC_TC1_Pos 5
- #define PAC_NONSECC_TC1_Msk (_U_(0x1) << PAC_NONSECC_TC1_Pos)
- #define PAC_NONSECC_TC1 PAC_NONSECC_TC1_Msk
- #define PAC_NONSECC_TC2_Pos 6
- #define PAC_NONSECC_TC2_Msk (_U_(0x1) << PAC_NONSECC_TC2_Pos)
- #define PAC_NONSECC_TC2 PAC_NONSECC_TC2_Msk
- #define PAC_NONSECC_ADC_Pos 7
- #define PAC_NONSECC_ADC_Msk (_U_(0x1) << PAC_NONSECC_ADC_Pos)
- #define PAC_NONSECC_ADC PAC_NONSECC_ADC_Msk
- #define PAC_NONSECC_DAC_Pos 8
- #define PAC_NONSECC_DAC_Msk (_U_(0x1) << PAC_NONSECC_DAC_Pos)
- #define PAC_NONSECC_DAC PAC_NONSECC_DAC_Msk
- #define PAC_NONSECC_PTC_Pos 9
- #define PAC_NONSECC_PTC_Msk (_U_(0x1) << PAC_NONSECC_PTC_Pos)
- #define PAC_NONSECC_PTC PAC_NONSECC_PTC_Msk
- #define PAC_NONSECC_TRNG_Pos 10
- #define PAC_NONSECC_TRNG_Msk (_U_(0x1) << PAC_NONSECC_TRNG_Pos)
- #define PAC_NONSECC_TRNG PAC_NONSECC_TRNG_Msk
- #define PAC_NONSECC_CCL_Pos 11
- #define PAC_NONSECC_CCL_Msk (_U_(0x1) << PAC_NONSECC_CCL_Pos)
- #define PAC_NONSECC_CCL PAC_NONSECC_CCL_Msk
- #define PAC_NONSECC_OPAMP_Pos 12
- #define PAC_NONSECC_OPAMP_Msk (_U_(0x1) << PAC_NONSECC_OPAMP_Pos)
- #define PAC_NONSECC_OPAMP PAC_NONSECC_OPAMP_Msk
- #define PAC_NONSECC_TRAM_Pos 13
- #define PAC_NONSECC_TRAM_Msk (_U_(0x1) << PAC_NONSECC_TRAM_Pos)
- #define PAC_NONSECC_TRAM PAC_NONSECC_TRAM_Msk
- #define PAC_NONSECC_MASK _U_(0x3FFF)
- #define PAC_NONSECC_Msk _U_(0x3FFF)
- #define PAC_NONSECC_SERCOM_Pos 1
- #define PAC_NONSECC_SERCOM_Msk (_U_(0x7) << PAC_NONSECC_SERCOM_Pos)
- #define PAC_NONSECC_SERCOM(value) (PAC_NONSECC_SERCOM_Msk & ((value) << PAC_NONSECC_SERCOM_Pos))
- #define PAC_NONSECC_TC_Pos 4
- #define PAC_NONSECC_TC_Msk (_U_(0x7) << PAC_NONSECC_TC_Pos)
- #define PAC_NONSECC_TC(value) (PAC_NONSECC_TC_Msk & ((value) << PAC_NONSECC_TC_Pos))
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint32_t PAC_:1;
- uint32_t PM_:1;
- uint32_t MCLK_:1;
- uint32_t RSTC_:1;
- uint32_t OSCCTRL_:1;
- uint32_t OSC32KCTRL_:1;
- uint32_t SUPC_:1;
- uint32_t GCLK_:1;
- uint32_t WDT_:1;
- uint32_t RTC_:1;
- uint32_t EIC_:1;
- uint32_t FREQM_:1;
- uint32_t PORT_:1;
- uint32_t AC_:1;
- uint32_t :18;
- } bit;
- uint32_t reg;
- } PAC_SECLOCKA_Type;
- #endif
- #define PAC_SECLOCKA_OFFSET (0x74)
- #define PAC_SECLOCKA_RESETVALUE _U_(0x00)
- #define PAC_SECLOCKA_PAC_Pos 0
- #define PAC_SECLOCKA_PAC_Msk (_U_(0x1) << PAC_SECLOCKA_PAC_Pos)
- #define PAC_SECLOCKA_PAC PAC_SECLOCKA_PAC_Msk
- #define PAC_SECLOCKA_PM_Pos 1
- #define PAC_SECLOCKA_PM_Msk (_U_(0x1) << PAC_SECLOCKA_PM_Pos)
- #define PAC_SECLOCKA_PM PAC_SECLOCKA_PM_Msk
- #define PAC_SECLOCKA_MCLK_Pos 2
- #define PAC_SECLOCKA_MCLK_Msk (_U_(0x1) << PAC_SECLOCKA_MCLK_Pos)
- #define PAC_SECLOCKA_MCLK PAC_SECLOCKA_MCLK_Msk
- #define PAC_SECLOCKA_RSTC_Pos 3
- #define PAC_SECLOCKA_RSTC_Msk (_U_(0x1) << PAC_SECLOCKA_RSTC_Pos)
- #define PAC_SECLOCKA_RSTC PAC_SECLOCKA_RSTC_Msk
- #define PAC_SECLOCKA_OSCCTRL_Pos 4
- #define PAC_SECLOCKA_OSCCTRL_Msk (_U_(0x1) << PAC_SECLOCKA_OSCCTRL_Pos)
- #define PAC_SECLOCKA_OSCCTRL PAC_SECLOCKA_OSCCTRL_Msk
- #define PAC_SECLOCKA_OSC32KCTRL_Pos 5
- #define PAC_SECLOCKA_OSC32KCTRL_Msk (_U_(0x1) << PAC_SECLOCKA_OSC32KCTRL_Pos)
- #define PAC_SECLOCKA_OSC32KCTRL PAC_SECLOCKA_OSC32KCTRL_Msk
- #define PAC_SECLOCKA_SUPC_Pos 6
- #define PAC_SECLOCKA_SUPC_Msk (_U_(0x1) << PAC_SECLOCKA_SUPC_Pos)
- #define PAC_SECLOCKA_SUPC PAC_SECLOCKA_SUPC_Msk
- #define PAC_SECLOCKA_GCLK_Pos 7
- #define PAC_SECLOCKA_GCLK_Msk (_U_(0x1) << PAC_SECLOCKA_GCLK_Pos)
- #define PAC_SECLOCKA_GCLK PAC_SECLOCKA_GCLK_Msk
- #define PAC_SECLOCKA_WDT_Pos 8
- #define PAC_SECLOCKA_WDT_Msk (_U_(0x1) << PAC_SECLOCKA_WDT_Pos)
- #define PAC_SECLOCKA_WDT PAC_SECLOCKA_WDT_Msk
- #define PAC_SECLOCKA_RTC_Pos 9
- #define PAC_SECLOCKA_RTC_Msk (_U_(0x1) << PAC_SECLOCKA_RTC_Pos)
- #define PAC_SECLOCKA_RTC PAC_SECLOCKA_RTC_Msk
- #define PAC_SECLOCKA_EIC_Pos 10
- #define PAC_SECLOCKA_EIC_Msk (_U_(0x1) << PAC_SECLOCKA_EIC_Pos)
- #define PAC_SECLOCKA_EIC PAC_SECLOCKA_EIC_Msk
- #define PAC_SECLOCKA_FREQM_Pos 11
- #define PAC_SECLOCKA_FREQM_Msk (_U_(0x1) << PAC_SECLOCKA_FREQM_Pos)
- #define PAC_SECLOCKA_FREQM PAC_SECLOCKA_FREQM_Msk
- #define PAC_SECLOCKA_PORT_Pos 12
- #define PAC_SECLOCKA_PORT_Msk (_U_(0x1) << PAC_SECLOCKA_PORT_Pos)
- #define PAC_SECLOCKA_PORT PAC_SECLOCKA_PORT_Msk
- #define PAC_SECLOCKA_AC_Pos 13
- #define PAC_SECLOCKA_AC_Msk (_U_(0x1) << PAC_SECLOCKA_AC_Pos)
- #define PAC_SECLOCKA_AC PAC_SECLOCKA_AC_Msk
- #define PAC_SECLOCKA_MASK _U_(0x3FFF)
- #define PAC_SECLOCKA_Msk _U_(0x3FFF)
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint32_t IDAU_:1;
- uint32_t DSU_:1;
- uint32_t NVMCTRL_:1;
- uint32_t DMAC_:1;
- uint32_t :28;
- } bit;
- uint32_t reg;
- } PAC_SECLOCKB_Type;
- #endif
- #define PAC_SECLOCKB_OFFSET (0x78)
- #define PAC_SECLOCKB_RESETVALUE _U_(0x03)
- #define PAC_SECLOCKB_IDAU_Pos 0
- #define PAC_SECLOCKB_IDAU_Msk (_U_(0x1) << PAC_SECLOCKB_IDAU_Pos)
- #define PAC_SECLOCKB_IDAU PAC_SECLOCKB_IDAU_Msk
- #define PAC_SECLOCKB_DSU_Pos 1
- #define PAC_SECLOCKB_DSU_Msk (_U_(0x1) << PAC_SECLOCKB_DSU_Pos)
- #define PAC_SECLOCKB_DSU PAC_SECLOCKB_DSU_Msk
- #define PAC_SECLOCKB_NVMCTRL_Pos 2
- #define PAC_SECLOCKB_NVMCTRL_Msk (_U_(0x1) << PAC_SECLOCKB_NVMCTRL_Pos)
- #define PAC_SECLOCKB_NVMCTRL PAC_SECLOCKB_NVMCTRL_Msk
- #define PAC_SECLOCKB_DMAC_Pos 3
- #define PAC_SECLOCKB_DMAC_Msk (_U_(0x1) << PAC_SECLOCKB_DMAC_Pos)
- #define PAC_SECLOCKB_DMAC PAC_SECLOCKB_DMAC_Msk
- #define PAC_SECLOCKB_MASK _U_(0x0F)
- #define PAC_SECLOCKB_Msk _U_(0x0F)
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint32_t EVSYS_:1;
- uint32_t SERCOM0_:1;
- uint32_t SERCOM1_:1;
- uint32_t SERCOM2_:1;
- uint32_t TC0_:1;
- uint32_t TC1_:1;
- uint32_t TC2_:1;
- uint32_t ADC_:1;
- uint32_t DAC_:1;
- uint32_t PTC_:1;
- uint32_t TRNG_:1;
- uint32_t CCL_:1;
- uint32_t OPAMP_:1;
- uint32_t TRAM_:1;
- uint32_t :18;
- } bit;
- uint32_t reg;
- } PAC_SECLOCKC_Type;
- #endif
- #define PAC_SECLOCKC_OFFSET (0x7C)
- #define PAC_SECLOCKC_RESETVALUE _U_(0x00)
- #define PAC_SECLOCKC_EVSYS_Pos 0
- #define PAC_SECLOCKC_EVSYS_Msk (_U_(0x1) << PAC_SECLOCKC_EVSYS_Pos)
- #define PAC_SECLOCKC_EVSYS PAC_SECLOCKC_EVSYS_Msk
- #define PAC_SECLOCKC_SERCOM0_Pos 1
- #define PAC_SECLOCKC_SERCOM0_Msk (_U_(0x1) << PAC_SECLOCKC_SERCOM0_Pos)
- #define PAC_SECLOCKC_SERCOM0 PAC_SECLOCKC_SERCOM0_Msk
- #define PAC_SECLOCKC_SERCOM1_Pos 2
- #define PAC_SECLOCKC_SERCOM1_Msk (_U_(0x1) << PAC_SECLOCKC_SERCOM1_Pos)
- #define PAC_SECLOCKC_SERCOM1 PAC_SECLOCKC_SERCOM1_Msk
- #define PAC_SECLOCKC_SERCOM2_Pos 3
- #define PAC_SECLOCKC_SERCOM2_Msk (_U_(0x1) << PAC_SECLOCKC_SERCOM2_Pos)
- #define PAC_SECLOCKC_SERCOM2 PAC_SECLOCKC_SERCOM2_Msk
- #define PAC_SECLOCKC_TC0_Pos 4
- #define PAC_SECLOCKC_TC0_Msk (_U_(0x1) << PAC_SECLOCKC_TC0_Pos)
- #define PAC_SECLOCKC_TC0 PAC_SECLOCKC_TC0_Msk
- #define PAC_SECLOCKC_TC1_Pos 5
- #define PAC_SECLOCKC_TC1_Msk (_U_(0x1) << PAC_SECLOCKC_TC1_Pos)
- #define PAC_SECLOCKC_TC1 PAC_SECLOCKC_TC1_Msk
- #define PAC_SECLOCKC_TC2_Pos 6
- #define PAC_SECLOCKC_TC2_Msk (_U_(0x1) << PAC_SECLOCKC_TC2_Pos)
- #define PAC_SECLOCKC_TC2 PAC_SECLOCKC_TC2_Msk
- #define PAC_SECLOCKC_ADC_Pos 7
- #define PAC_SECLOCKC_ADC_Msk (_U_(0x1) << PAC_SECLOCKC_ADC_Pos)
- #define PAC_SECLOCKC_ADC PAC_SECLOCKC_ADC_Msk
- #define PAC_SECLOCKC_DAC_Pos 8
- #define PAC_SECLOCKC_DAC_Msk (_U_(0x1) << PAC_SECLOCKC_DAC_Pos)
- #define PAC_SECLOCKC_DAC PAC_SECLOCKC_DAC_Msk
- #define PAC_SECLOCKC_PTC_Pos 9
- #define PAC_SECLOCKC_PTC_Msk (_U_(0x1) << PAC_SECLOCKC_PTC_Pos)
- #define PAC_SECLOCKC_PTC PAC_SECLOCKC_PTC_Msk
- #define PAC_SECLOCKC_TRNG_Pos 10
- #define PAC_SECLOCKC_TRNG_Msk (_U_(0x1) << PAC_SECLOCKC_TRNG_Pos)
- #define PAC_SECLOCKC_TRNG PAC_SECLOCKC_TRNG_Msk
- #define PAC_SECLOCKC_CCL_Pos 11
- #define PAC_SECLOCKC_CCL_Msk (_U_(0x1) << PAC_SECLOCKC_CCL_Pos)
- #define PAC_SECLOCKC_CCL PAC_SECLOCKC_CCL_Msk
- #define PAC_SECLOCKC_OPAMP_Pos 12
- #define PAC_SECLOCKC_OPAMP_Msk (_U_(0x1) << PAC_SECLOCKC_OPAMP_Pos)
- #define PAC_SECLOCKC_OPAMP PAC_SECLOCKC_OPAMP_Msk
- #define PAC_SECLOCKC_TRAM_Pos 13
- #define PAC_SECLOCKC_TRAM_Msk (_U_(0x1) << PAC_SECLOCKC_TRAM_Pos)
- #define PAC_SECLOCKC_TRAM PAC_SECLOCKC_TRAM_Msk
- #define PAC_SECLOCKC_MASK _U_(0x3FFF)
- #define PAC_SECLOCKC_Msk _U_(0x3FFF)
- #define PAC_SECLOCKC_SERCOM_Pos 1
- #define PAC_SECLOCKC_SERCOM_Msk (_U_(0x7) << PAC_SECLOCKC_SERCOM_Pos)
- #define PAC_SECLOCKC_SERCOM(value) (PAC_SECLOCKC_SERCOM_Msk & ((value) << PAC_SECLOCKC_SERCOM_Pos))
- #define PAC_SECLOCKC_TC_Pos 4
- #define PAC_SECLOCKC_TC_Msk (_U_(0x7) << PAC_SECLOCKC_TC_Pos)
- #define PAC_SECLOCKC_TC(value) (PAC_SECLOCKC_TC_Msk & ((value) << PAC_SECLOCKC_TC_Pos))
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef struct {
- __IO PAC_WRCTRL_Type WRCTRL;
- __IO PAC_EVCTRL_Type EVCTRL;
- __I uint8_t Reserved1[3];
- __IO PAC_INTENCLR_Type INTENCLR;
- __IO PAC_INTENSET_Type INTENSET;
- __I uint8_t Reserved2[6];
- __IO PAC_INTFLAGAHB_Type INTFLAGAHB;
- __IO PAC_INTFLAGA_Type INTFLAGA;
- __IO PAC_INTFLAGB_Type INTFLAGB;
- __IO PAC_INTFLAGC_Type INTFLAGC;
- __I uint8_t Reserved3[20];
- __I PAC_STATUSA_Type STATUSA;
- __I PAC_STATUSB_Type STATUSB;
- __I PAC_STATUSC_Type STATUSC;
- __I uint8_t Reserved4[20];
- __I PAC_NONSECA_Type NONSECA;
- __I PAC_NONSECB_Type NONSECB;
- __I PAC_NONSECC_Type NONSECC;
- __I uint8_t Reserved5[20];
- __I PAC_SECLOCKA_Type SECLOCKA;
- __I PAC_SECLOCKB_Type SECLOCKB;
- __I PAC_SECLOCKC_Type SECLOCKC;
- } Pac;
- #endif
- #endif
|