Repostiory containing DAPLink source code with Reset Pin workaround for HANI_IOT board.
Upstream: https://github.com/ARMmbed/DAPLink
source/hic_hal/atmel/sam3u2c/component/pmc.h@0:01f31e923fe2, 2020-04-07 (annotated)
- Committer:
- Pawel Zarembski
- Date:
- Tue Apr 07 12:55:42 2020 +0200
- Revision:
- 0:01f31e923fe2
hani: DAPLink with reset workaround
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Pawel Zarembski |
0:01f31e923fe2 | 1 | /* ---------------------------------------------------------------------------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 2 | /* Atmel Microcontroller Software Support */ |
Pawel Zarembski |
0:01f31e923fe2 | 3 | /* SAM Software Package License */ |
Pawel Zarembski |
0:01f31e923fe2 | 4 | /* ---------------------------------------------------------------------------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 5 | /* Copyright (c) %copyright_year%, Atmel Corporation */ |
Pawel Zarembski |
0:01f31e923fe2 | 6 | /* */ |
Pawel Zarembski |
0:01f31e923fe2 | 7 | /* All rights reserved. */ |
Pawel Zarembski |
0:01f31e923fe2 | 8 | /* */ |
Pawel Zarembski |
0:01f31e923fe2 | 9 | /* Redistribution and use in source and binary forms, with or without */ |
Pawel Zarembski |
0:01f31e923fe2 | 10 | /* modification, are permitted provided that the following condition is met: */ |
Pawel Zarembski |
0:01f31e923fe2 | 11 | /* */ |
Pawel Zarembski |
0:01f31e923fe2 | 12 | /* - Redistributions of source code must retain the above copyright notice, */ |
Pawel Zarembski |
0:01f31e923fe2 | 13 | /* this list of conditions and the disclaimer below. */ |
Pawel Zarembski |
0:01f31e923fe2 | 14 | /* */ |
Pawel Zarembski |
0:01f31e923fe2 | 15 | /* Atmel's name may not be used to endorse or promote products derived from */ |
Pawel Zarembski |
0:01f31e923fe2 | 16 | /* this software without specific prior written permission. */ |
Pawel Zarembski |
0:01f31e923fe2 | 17 | /* */ |
Pawel Zarembski |
0:01f31e923fe2 | 18 | /* DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR */ |
Pawel Zarembski |
0:01f31e923fe2 | 19 | /* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ |
Pawel Zarembski |
0:01f31e923fe2 | 20 | /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE */ |
Pawel Zarembski |
0:01f31e923fe2 | 21 | /* DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, */ |
Pawel Zarembski |
0:01f31e923fe2 | 22 | /* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */ |
Pawel Zarembski |
0:01f31e923fe2 | 23 | /* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, */ |
Pawel Zarembski |
0:01f31e923fe2 | 24 | /* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */ |
Pawel Zarembski |
0:01f31e923fe2 | 25 | /* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */ |
Pawel Zarembski |
0:01f31e923fe2 | 26 | /* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */ |
Pawel Zarembski |
0:01f31e923fe2 | 27 | /* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ |
Pawel Zarembski |
0:01f31e923fe2 | 28 | /* ---------------------------------------------------------------------------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 29 | |
Pawel Zarembski |
0:01f31e923fe2 | 30 | #ifndef _SAM3U_PMC_COMPONENT_ |
Pawel Zarembski |
0:01f31e923fe2 | 31 | #define _SAM3U_PMC_COMPONENT_ |
Pawel Zarembski |
0:01f31e923fe2 | 32 | |
Pawel Zarembski |
0:01f31e923fe2 | 33 | /* ============================================================================= */ |
Pawel Zarembski |
0:01f31e923fe2 | 34 | /** SOFTWARE API DEFINITION FOR Power Management Controller */ |
Pawel Zarembski |
0:01f31e923fe2 | 35 | /* ============================================================================= */ |
Pawel Zarembski |
0:01f31e923fe2 | 36 | /** \addtogroup SAM3U_PMC Power Management Controller */ |
Pawel Zarembski |
0:01f31e923fe2 | 37 | /*@{*/ |
Pawel Zarembski |
0:01f31e923fe2 | 38 | |
Pawel Zarembski |
0:01f31e923fe2 | 39 | #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) |
Pawel Zarembski |
0:01f31e923fe2 | 40 | /** \brief Pmc hardware registers */ |
Pawel Zarembski |
0:01f31e923fe2 | 41 | typedef struct { |
Pawel Zarembski |
0:01f31e923fe2 | 42 | WoReg PMC_SCER; /**< \brief (Pmc Offset: 0x0000) System Clock Enable Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 43 | WoReg PMC_SCDR; /**< \brief (Pmc Offset: 0x0004) System Clock Disable Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 44 | RoReg PMC_SCSR; /**< \brief (Pmc Offset: 0x0008) System Clock Status Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 45 | RoReg Reserved1[1]; |
Pawel Zarembski |
0:01f31e923fe2 | 46 | WoReg PMC_PCER0; /**< \brief (Pmc Offset: 0x0010) Peripheral Clock Enable Register 0 */ |
Pawel Zarembski |
0:01f31e923fe2 | 47 | WoReg PMC_PCDR0; /**< \brief (Pmc Offset: 0x0014) Peripheral Clock Disable Register 0 */ |
Pawel Zarembski |
0:01f31e923fe2 | 48 | RoReg PMC_PCSR0; /**< \brief (Pmc Offset: 0x0018) Peripheral Clock Status Register 0 */ |
Pawel Zarembski |
0:01f31e923fe2 | 49 | RwReg CKGR_UCKR; /**< \brief (Pmc Offset: 0x001C) UTMI Clock Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 50 | RwReg CKGR_MOR; /**< \brief (Pmc Offset: 0x0020) Main Oscillator Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 51 | RoReg CKGR_MCFR; /**< \brief (Pmc Offset: 0x0024) Main Clock Frequency Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 52 | RwReg CKGR_PLLAR; /**< \brief (Pmc Offset: 0x0028) PLLA Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 53 | RoReg Reserved2[1]; |
Pawel Zarembski |
0:01f31e923fe2 | 54 | RwReg PMC_MCKR; /**< \brief (Pmc Offset: 0x0030) Master Clock Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 55 | RoReg Reserved3[3]; |
Pawel Zarembski |
0:01f31e923fe2 | 56 | RwReg PMC_PCK[3]; /**< \brief (Pmc Offset: 0x0040) Programmable Clock 0 Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 57 | RoReg Reserved4[5]; |
Pawel Zarembski |
0:01f31e923fe2 | 58 | WoReg PMC_IER; /**< \brief (Pmc Offset: 0x0060) Interrupt Enable Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 59 | WoReg PMC_IDR; /**< \brief (Pmc Offset: 0x0064) Interrupt Disable Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 60 | RoReg PMC_SR; /**< \brief (Pmc Offset: 0x0068) Status Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 61 | RoReg PMC_IMR; /**< \brief (Pmc Offset: 0x006C) Interrupt Mask Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 62 | RwReg PMC_FSMR; /**< \brief (Pmc Offset: 0x0070) Fast Startup Mode Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 63 | RwReg PMC_FSPR; /**< \brief (Pmc Offset: 0x0074) Fast Startup Polarity Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 64 | WoReg PMC_FOCR; /**< \brief (Pmc Offset: 0x0078) Fault Output Clear Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 65 | RoReg Reserved5[26]; |
Pawel Zarembski |
0:01f31e923fe2 | 66 | RwReg PMC_WPMR; /**< \brief (Pmc Offset: 0x00E4) Write Protect Mode Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 67 | RoReg PMC_WPSR; /**< \brief (Pmc Offset: 0x00E8) Write Protect Status Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 68 | } Pmc; |
Pawel Zarembski |
0:01f31e923fe2 | 69 | #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ |
Pawel Zarembski |
0:01f31e923fe2 | 70 | /* -------- PMC_SCER : (PMC Offset: 0x0000) System Clock Enable Register -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 71 | #define PMC_SCER_PCK0 (0x1u << 8) /**< \brief (PMC_SCER) Programmable Clock 0 Output Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 72 | #define PMC_SCER_PCK1 (0x1u << 9) /**< \brief (PMC_SCER) Programmable Clock 1 Output Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 73 | #define PMC_SCER_PCK2 (0x1u << 10) /**< \brief (PMC_SCER) Programmable Clock 2 Output Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 74 | /* -------- PMC_SCDR : (PMC Offset: 0x0004) System Clock Disable Register -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 75 | #define PMC_SCDR_PCK0 (0x1u << 8) /**< \brief (PMC_SCDR) Programmable Clock 0 Output Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 76 | #define PMC_SCDR_PCK1 (0x1u << 9) /**< \brief (PMC_SCDR) Programmable Clock 1 Output Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 77 | #define PMC_SCDR_PCK2 (0x1u << 10) /**< \brief (PMC_SCDR) Programmable Clock 2 Output Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 78 | /* -------- PMC_SCSR : (PMC Offset: 0x0008) System Clock Status Register -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 79 | #define PMC_SCSR_PCK0 (0x1u << 8) /**< \brief (PMC_SCSR) Programmable Clock 0 Output Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 80 | #define PMC_SCSR_PCK1 (0x1u << 9) /**< \brief (PMC_SCSR) Programmable Clock 1 Output Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 81 | #define PMC_SCSR_PCK2 (0x1u << 10) /**< \brief (PMC_SCSR) Programmable Clock 2 Output Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 82 | /* -------- PMC_PCER0 : (PMC Offset: 0x0010) Peripheral Clock Enable Register 0 -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 83 | #define PMC_PCER0_PID2 (0x1u << 2) /**< \brief (PMC_PCER0) Peripheral Clock 2 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 84 | #define PMC_PCER0_PID3 (0x1u << 3) /**< \brief (PMC_PCER0) Peripheral Clock 3 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 85 | #define PMC_PCER0_PID4 (0x1u << 4) /**< \brief (PMC_PCER0) Peripheral Clock 4 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 86 | #define PMC_PCER0_PID5 (0x1u << 5) /**< \brief (PMC_PCER0) Peripheral Clock 5 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 87 | #define PMC_PCER0_PID6 (0x1u << 6) /**< \brief (PMC_PCER0) Peripheral Clock 6 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 88 | #define PMC_PCER0_PID7 (0x1u << 7) /**< \brief (PMC_PCER0) Peripheral Clock 7 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 89 | #define PMC_PCER0_PID8 (0x1u << 8) /**< \brief (PMC_PCER0) Peripheral Clock 8 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 90 | #define PMC_PCER0_PID9 (0x1u << 9) /**< \brief (PMC_PCER0) Peripheral Clock 9 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 91 | #define PMC_PCER0_PID10 (0x1u << 10) /**< \brief (PMC_PCER0) Peripheral Clock 10 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 92 | #define PMC_PCER0_PID11 (0x1u << 11) /**< \brief (PMC_PCER0) Peripheral Clock 11 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 93 | #define PMC_PCER0_PID12 (0x1u << 12) /**< \brief (PMC_PCER0) Peripheral Clock 12 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 94 | #define PMC_PCER0_PID13 (0x1u << 13) /**< \brief (PMC_PCER0) Peripheral Clock 13 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 95 | #define PMC_PCER0_PID14 (0x1u << 14) /**< \brief (PMC_PCER0) Peripheral Clock 14 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 96 | #define PMC_PCER0_PID15 (0x1u << 15) /**< \brief (PMC_PCER0) Peripheral Clock 15 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 97 | #define PMC_PCER0_PID16 (0x1u << 16) /**< \brief (PMC_PCER0) Peripheral Clock 16 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 98 | #define PMC_PCER0_PID18 (0x1u << 18) /**< \brief (PMC_PCER0) Peripheral Clock 18 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 99 | #define PMC_PCER0_PID19 (0x1u << 19) /**< \brief (PMC_PCER0) Peripheral Clock 19 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 100 | #define PMC_PCER0_PID20 (0x1u << 20) /**< \brief (PMC_PCER0) Peripheral Clock 20 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 101 | #define PMC_PCER0_PID21 (0x1u << 21) /**< \brief (PMC_PCER0) Peripheral Clock 21 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 102 | #define PMC_PCER0_PID22 (0x1u << 22) /**< \brief (PMC_PCER0) Peripheral Clock 22 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 103 | #define PMC_PCER0_PID23 (0x1u << 23) /**< \brief (PMC_PCER0) Peripheral Clock 23 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 104 | #define PMC_PCER0_PID24 (0x1u << 24) /**< \brief (PMC_PCER0) Peripheral Clock 24 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 105 | #define PMC_PCER0_PID25 (0x1u << 25) /**< \brief (PMC_PCER0) Peripheral Clock 25 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 106 | #define PMC_PCER0_PID26 (0x1u << 26) /**< \brief (PMC_PCER0) Peripheral Clock 26 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 107 | #define PMC_PCER0_PID27 (0x1u << 27) /**< \brief (PMC_PCER0) Peripheral Clock 27 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 108 | #define PMC_PCER0_PID28 (0x1u << 28) /**< \brief (PMC_PCER0) Peripheral Clock 28 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 109 | #define PMC_PCER0_PID29 (0x1u << 29) /**< \brief (PMC_PCER0) Peripheral Clock 29 Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 110 | /* -------- PMC_PCDR0 : (PMC Offset: 0x0014) Peripheral Clock Disable Register 0 -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 111 | #define PMC_PCDR0_PID2 (0x1u << 2) /**< \brief (PMC_PCDR0) Peripheral Clock 2 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 112 | #define PMC_PCDR0_PID3 (0x1u << 3) /**< \brief (PMC_PCDR0) Peripheral Clock 3 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 113 | #define PMC_PCDR0_PID4 (0x1u << 4) /**< \brief (PMC_PCDR0) Peripheral Clock 4 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 114 | #define PMC_PCDR0_PID5 (0x1u << 5) /**< \brief (PMC_PCDR0) Peripheral Clock 5 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 115 | #define PMC_PCDR0_PID6 (0x1u << 6) /**< \brief (PMC_PCDR0) Peripheral Clock 6 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 116 | #define PMC_PCDR0_PID7 (0x1u << 7) /**< \brief (PMC_PCDR0) Peripheral Clock 7 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 117 | #define PMC_PCDR0_PID8 (0x1u << 8) /**< \brief (PMC_PCDR0) Peripheral Clock 8 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 118 | #define PMC_PCDR0_PID9 (0x1u << 9) /**< \brief (PMC_PCDR0) Peripheral Clock 9 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 119 | #define PMC_PCDR0_PID10 (0x1u << 10) /**< \brief (PMC_PCDR0) Peripheral Clock 10 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 120 | #define PMC_PCDR0_PID11 (0x1u << 11) /**< \brief (PMC_PCDR0) Peripheral Clock 11 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 121 | #define PMC_PCDR0_PID12 (0x1u << 12) /**< \brief (PMC_PCDR0) Peripheral Clock 12 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 122 | #define PMC_PCDR0_PID13 (0x1u << 13) /**< \brief (PMC_PCDR0) Peripheral Clock 13 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 123 | #define PMC_PCDR0_PID14 (0x1u << 14) /**< \brief (PMC_PCDR0) Peripheral Clock 14 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 124 | #define PMC_PCDR0_PID15 (0x1u << 15) /**< \brief (PMC_PCDR0) Peripheral Clock 15 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 125 | #define PMC_PCDR0_PID16 (0x1u << 16) /**< \brief (PMC_PCDR0) Peripheral Clock 16 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 126 | #define PMC_PCDR0_PID18 (0x1u << 18) /**< \brief (PMC_PCDR0) Peripheral Clock 18 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 127 | #define PMC_PCDR0_PID19 (0x1u << 19) /**< \brief (PMC_PCDR0) Peripheral Clock 19 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 128 | #define PMC_PCDR0_PID20 (0x1u << 20) /**< \brief (PMC_PCDR0) Peripheral Clock 20 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 129 | #define PMC_PCDR0_PID21 (0x1u << 21) /**< \brief (PMC_PCDR0) Peripheral Clock 21 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 130 | #define PMC_PCDR0_PID22 (0x1u << 22) /**< \brief (PMC_PCDR0) Peripheral Clock 22 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 131 | #define PMC_PCDR0_PID23 (0x1u << 23) /**< \brief (PMC_PCDR0) Peripheral Clock 23 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 132 | #define PMC_PCDR0_PID24 (0x1u << 24) /**< \brief (PMC_PCDR0) Peripheral Clock 24 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 133 | #define PMC_PCDR0_PID25 (0x1u << 25) /**< \brief (PMC_PCDR0) Peripheral Clock 25 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 134 | #define PMC_PCDR0_PID26 (0x1u << 26) /**< \brief (PMC_PCDR0) Peripheral Clock 26 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 135 | #define PMC_PCDR0_PID27 (0x1u << 27) /**< \brief (PMC_PCDR0) Peripheral Clock 27 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 136 | #define PMC_PCDR0_PID28 (0x1u << 28) /**< \brief (PMC_PCDR0) Peripheral Clock 28 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 137 | #define PMC_PCDR0_PID29 (0x1u << 29) /**< \brief (PMC_PCDR0) Peripheral Clock 29 Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 138 | /* -------- PMC_PCSR0 : (PMC Offset: 0x0018) Peripheral Clock Status Register 0 -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 139 | #define PMC_PCSR0_PID2 (0x1u << 2) /**< \brief (PMC_PCSR0) Peripheral Clock 2 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 140 | #define PMC_PCSR0_PID3 (0x1u << 3) /**< \brief (PMC_PCSR0) Peripheral Clock 3 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 141 | #define PMC_PCSR0_PID4 (0x1u << 4) /**< \brief (PMC_PCSR0) Peripheral Clock 4 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 142 | #define PMC_PCSR0_PID5 (0x1u << 5) /**< \brief (PMC_PCSR0) Peripheral Clock 5 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 143 | #define PMC_PCSR0_PID6 (0x1u << 6) /**< \brief (PMC_PCSR0) Peripheral Clock 6 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 144 | #define PMC_PCSR0_PID7 (0x1u << 7) /**< \brief (PMC_PCSR0) Peripheral Clock 7 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 145 | #define PMC_PCSR0_PID8 (0x1u << 8) /**< \brief (PMC_PCSR0) Peripheral Clock 8 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 146 | #define PMC_PCSR0_PID9 (0x1u << 9) /**< \brief (PMC_PCSR0) Peripheral Clock 9 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 147 | #define PMC_PCSR0_PID10 (0x1u << 10) /**< \brief (PMC_PCSR0) Peripheral Clock 10 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 148 | #define PMC_PCSR0_PID11 (0x1u << 11) /**< \brief (PMC_PCSR0) Peripheral Clock 11 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 149 | #define PMC_PCSR0_PID12 (0x1u << 12) /**< \brief (PMC_PCSR0) Peripheral Clock 12 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 150 | #define PMC_PCSR0_PID13 (0x1u << 13) /**< \brief (PMC_PCSR0) Peripheral Clock 13 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 151 | #define PMC_PCSR0_PID14 (0x1u << 14) /**< \brief (PMC_PCSR0) Peripheral Clock 14 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 152 | #define PMC_PCSR0_PID15 (0x1u << 15) /**< \brief (PMC_PCSR0) Peripheral Clock 15 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 153 | #define PMC_PCSR0_PID16 (0x1u << 16) /**< \brief (PMC_PCSR0) Peripheral Clock 16 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 154 | #define PMC_PCSR0_PID18 (0x1u << 18) /**< \brief (PMC_PCSR0) Peripheral Clock 18 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 155 | #define PMC_PCSR0_PID19 (0x1u << 19) /**< \brief (PMC_PCSR0) Peripheral Clock 19 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 156 | #define PMC_PCSR0_PID20 (0x1u << 20) /**< \brief (PMC_PCSR0) Peripheral Clock 20 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 157 | #define PMC_PCSR0_PID21 (0x1u << 21) /**< \brief (PMC_PCSR0) Peripheral Clock 21 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 158 | #define PMC_PCSR0_PID22 (0x1u << 22) /**< \brief (PMC_PCSR0) Peripheral Clock 22 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 159 | #define PMC_PCSR0_PID23 (0x1u << 23) /**< \brief (PMC_PCSR0) Peripheral Clock 23 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 160 | #define PMC_PCSR0_PID24 (0x1u << 24) /**< \brief (PMC_PCSR0) Peripheral Clock 24 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 161 | #define PMC_PCSR0_PID25 (0x1u << 25) /**< \brief (PMC_PCSR0) Peripheral Clock 25 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 162 | #define PMC_PCSR0_PID26 (0x1u << 26) /**< \brief (PMC_PCSR0) Peripheral Clock 26 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 163 | #define PMC_PCSR0_PID27 (0x1u << 27) /**< \brief (PMC_PCSR0) Peripheral Clock 27 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 164 | #define PMC_PCSR0_PID28 (0x1u << 28) /**< \brief (PMC_PCSR0) Peripheral Clock 28 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 165 | #define PMC_PCSR0_PID29 (0x1u << 29) /**< \brief (PMC_PCSR0) Peripheral Clock 29 Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 166 | /* -------- CKGR_UCKR : (PMC Offset: 0x001C) UTMI Clock Register -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 167 | #define CKGR_UCKR_UPLLEN (0x1u << 16) /**< \brief (CKGR_UCKR) UTMI PLL Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 168 | #define CKGR_UCKR_UPLLCOUNT_Pos 20 |
Pawel Zarembski |
0:01f31e923fe2 | 169 | #define CKGR_UCKR_UPLLCOUNT_Msk (0xfu << CKGR_UCKR_UPLLCOUNT_Pos) /**< \brief (CKGR_UCKR) UTMI PLL Start-up Time */ |
Pawel Zarembski |
0:01f31e923fe2 | 170 | #define CKGR_UCKR_UPLLCOUNT(value) ((CKGR_UCKR_UPLLCOUNT_Msk & ((value) << CKGR_UCKR_UPLLCOUNT_Pos))) |
Pawel Zarembski |
0:01f31e923fe2 | 171 | /* -------- CKGR_MOR : (PMC Offset: 0x0020) Main Oscillator Register -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 172 | #define CKGR_MOR_MOSCXTEN (0x1u << 0) /**< \brief (CKGR_MOR) Main Crystal Oscillator Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 173 | #define CKGR_MOR_MOSCXTBY (0x1u << 1) /**< \brief (CKGR_MOR) Main Crystal Oscillator Bypass */ |
Pawel Zarembski |
0:01f31e923fe2 | 174 | #define CKGR_MOR_MOSCRCEN (0x1u << 3) /**< \brief (CKGR_MOR) Main On-Chip RC Oscillator Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 175 | #define CKGR_MOR_MOSCRCF_Pos 4 |
Pawel Zarembski |
0:01f31e923fe2 | 176 | #define CKGR_MOR_MOSCRCF_Msk (0x7u << CKGR_MOR_MOSCRCF_Pos) /**< \brief (CKGR_MOR) Main On-Chip RC Oscillator Frequency Selection */ |
Pawel Zarembski |
0:01f31e923fe2 | 177 | #define CKGR_MOR_MOSCRCF_4_MHz (0x0u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 4 MHz (default) */ |
Pawel Zarembski |
0:01f31e923fe2 | 178 | #define CKGR_MOR_MOSCRCF_8_MHz (0x1u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 8 MHz */ |
Pawel Zarembski |
0:01f31e923fe2 | 179 | #define CKGR_MOR_MOSCRCF_12_MHz (0x2u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 12 MHz */ |
Pawel Zarembski |
0:01f31e923fe2 | 180 | #define CKGR_MOR_MOSCXTST_Pos 8 |
Pawel Zarembski |
0:01f31e923fe2 | 181 | #define CKGR_MOR_MOSCXTST_Msk (0xffu << CKGR_MOR_MOSCXTST_Pos) /**< \brief (CKGR_MOR) Main Crystal Oscillator Start-up Time */ |
Pawel Zarembski |
0:01f31e923fe2 | 182 | #define CKGR_MOR_MOSCXTST(value) ((CKGR_MOR_MOSCXTST_Msk & ((value) << CKGR_MOR_MOSCXTST_Pos))) |
Pawel Zarembski |
0:01f31e923fe2 | 183 | #define CKGR_MOR_KEY_Pos 16 |
Pawel Zarembski |
0:01f31e923fe2 | 184 | #define CKGR_MOR_KEY_Msk (0xffu << CKGR_MOR_KEY_Pos) /**< \brief (CKGR_MOR) Password */ |
Pawel Zarembski |
0:01f31e923fe2 | 185 | #define CKGR_MOR_KEY(value) ((CKGR_MOR_KEY_Msk & ((value) << CKGR_MOR_KEY_Pos))) |
Pawel Zarembski |
0:01f31e923fe2 | 186 | #define CKGR_MOR_MOSCSEL (0x1u << 24) /**< \brief (CKGR_MOR) Main Oscillator Selection */ |
Pawel Zarembski |
0:01f31e923fe2 | 187 | #define CKGR_MOR_CFDEN (0x1u << 25) /**< \brief (CKGR_MOR) Clock Failure Detector Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 188 | /* -------- CKGR_MCFR : (PMC Offset: 0x0024) Main Clock Frequency Register -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 189 | #define CKGR_MCFR_MAINF_Pos 0 |
Pawel Zarembski |
0:01f31e923fe2 | 190 | #define CKGR_MCFR_MAINF_Msk (0xffffu << CKGR_MCFR_MAINF_Pos) /**< \brief (CKGR_MCFR) Main Clock Frequency */ |
Pawel Zarembski |
0:01f31e923fe2 | 191 | #define CKGR_MCFR_MAINFRDY (0x1u << 16) /**< \brief (CKGR_MCFR) Main Clock Ready */ |
Pawel Zarembski |
0:01f31e923fe2 | 192 | /* -------- CKGR_PLLAR : (PMC Offset: 0x0028) PLLA Register -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 193 | #define CKGR_PLLAR_DIVA_Pos 0 |
Pawel Zarembski |
0:01f31e923fe2 | 194 | #define CKGR_PLLAR_DIVA_Msk (0xffu << CKGR_PLLAR_DIVA_Pos) /**< \brief (CKGR_PLLAR) Divider */ |
Pawel Zarembski |
0:01f31e923fe2 | 195 | #define CKGR_PLLAR_DIVA(value) ((CKGR_PLLAR_DIVA_Msk & ((value) << CKGR_PLLAR_DIVA_Pos))) |
Pawel Zarembski |
0:01f31e923fe2 | 196 | #define CKGR_PLLAR_PLLACOUNT_Pos 8 |
Pawel Zarembski |
0:01f31e923fe2 | 197 | #define CKGR_PLLAR_PLLACOUNT_Msk (0x3fu << CKGR_PLLAR_PLLACOUNT_Pos) /**< \brief (CKGR_PLLAR) PLLA Counter */ |
Pawel Zarembski |
0:01f31e923fe2 | 198 | #define CKGR_PLLAR_PLLACOUNT(value) ((CKGR_PLLAR_PLLACOUNT_Msk & ((value) << CKGR_PLLAR_PLLACOUNT_Pos))) |
Pawel Zarembski |
0:01f31e923fe2 | 199 | #define CKGR_PLLAR_MULA_Pos 16 |
Pawel Zarembski |
0:01f31e923fe2 | 200 | #define CKGR_PLLAR_MULA_Msk (0x7ffu << CKGR_PLLAR_MULA_Pos) /**< \brief (CKGR_PLLAR) PLLA Multiplier */ |
Pawel Zarembski |
0:01f31e923fe2 | 201 | #define CKGR_PLLAR_MULA(value) ((CKGR_PLLAR_MULA_Msk & ((value) << CKGR_PLLAR_MULA_Pos))) |
Pawel Zarembski |
0:01f31e923fe2 | 202 | #define CKGR_PLLAR_ONE (0x1u << 29) /**< \brief (CKGR_PLLAR) Must Be Set to 1 */ |
Pawel Zarembski |
0:01f31e923fe2 | 203 | /* -------- PMC_MCKR : (PMC Offset: 0x0030) Master Clock Register -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 204 | #define PMC_MCKR_CSS_Pos 0 |
Pawel Zarembski |
0:01f31e923fe2 | 205 | #define PMC_MCKR_CSS_Msk (0x3u << PMC_MCKR_CSS_Pos) /**< \brief (PMC_MCKR) Master Clock Source Selection */ |
Pawel Zarembski |
0:01f31e923fe2 | 206 | #define PMC_MCKR_CSS_SLOW_CLK (0x0u << 0) /**< \brief (PMC_MCKR) Slow Clock is selected */ |
Pawel Zarembski |
0:01f31e923fe2 | 207 | #define PMC_MCKR_CSS_MAIN_CLK (0x1u << 0) /**< \brief (PMC_MCKR) Main Clock is selected */ |
Pawel Zarembski |
0:01f31e923fe2 | 208 | #define PMC_MCKR_CSS_PLLA_CLK (0x2u << 0) /**< \brief (PMC_MCKR) PLLA Clock is selected */ |
Pawel Zarembski |
0:01f31e923fe2 | 209 | #define PMC_MCKR_CSS_UPLL_CLK (0x3u << 0) /**< \brief (PMC_MCKR) UPLLClock is selected */ |
Pawel Zarembski |
0:01f31e923fe2 | 210 | #define PMC_MCKR_PRES_Pos 4 |
Pawel Zarembski |
0:01f31e923fe2 | 211 | #define PMC_MCKR_PRES_Msk (0x7u << PMC_MCKR_PRES_Pos) /**< \brief (PMC_MCKR) Processor Clock Prescaler */ |
Pawel Zarembski |
0:01f31e923fe2 | 212 | #define PMC_MCKR_PRES_CLK_1 (0x0u << 4) /**< \brief (PMC_MCKR) Selected clock */ |
Pawel Zarembski |
0:01f31e923fe2 | 213 | #define PMC_MCKR_PRES_CLK_2 (0x1u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 2 */ |
Pawel Zarembski |
0:01f31e923fe2 | 214 | #define PMC_MCKR_PRES_CLK_4 (0x2u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 4 */ |
Pawel Zarembski |
0:01f31e923fe2 | 215 | #define PMC_MCKR_PRES_CLK_8 (0x3u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 8 */ |
Pawel Zarembski |
0:01f31e923fe2 | 216 | #define PMC_MCKR_PRES_CLK_16 (0x4u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 16 */ |
Pawel Zarembski |
0:01f31e923fe2 | 217 | #define PMC_MCKR_PRES_CLK_32 (0x5u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 32 */ |
Pawel Zarembski |
0:01f31e923fe2 | 218 | #define PMC_MCKR_PRES_CLK_64 (0x6u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 64 */ |
Pawel Zarembski |
0:01f31e923fe2 | 219 | #define PMC_MCKR_PRES_CLK_3 (0x7u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 3 */ |
Pawel Zarembski |
0:01f31e923fe2 | 220 | #define PMC_MCKR_PLLADIV2 (0x1u << 12) /**< \brief (PMC_MCKR) PLLA Divisor by 2 */ |
Pawel Zarembski |
0:01f31e923fe2 | 221 | #define PMC_MCKR_UPLLDIV2 (0x1u << 13) /**< \brief (PMC_MCKR) UPLL Divisor by 2 */ |
Pawel Zarembski |
0:01f31e923fe2 | 222 | /* -------- PMC_PCK[3] : (PMC Offset: 0x0040) Programmable Clock 0 Register -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 223 | #define PMC_PCK_CSS_Pos 0 |
Pawel Zarembski |
0:01f31e923fe2 | 224 | #define PMC_PCK_CSS_Msk (0x7u << PMC_PCK_CSS_Pos) /**< \brief (PMC_PCK[3]) Master Clock Source Selection */ |
Pawel Zarembski |
0:01f31e923fe2 | 225 | #define PMC_PCK_CSS_SLOW_CLK (0x0u << 0) /**< \brief (PMC_PCK[3]) Slow Clock is selected */ |
Pawel Zarembski |
0:01f31e923fe2 | 226 | #define PMC_PCK_CSS_MAIN_CLK (0x1u << 0) /**< \brief (PMC_PCK[3]) Main Clock is selected */ |
Pawel Zarembski |
0:01f31e923fe2 | 227 | #define PMC_PCK_CSS_PLLA_CLK (0x2u << 0) /**< \brief (PMC_PCK[3]) PLLA Clock is selected */ |
Pawel Zarembski |
0:01f31e923fe2 | 228 | #define PMC_PCK_CSS_UPLL_CLK (0x3u << 0) /**< \brief (PMC_PCK[3]) UPLL Clock is selected */ |
Pawel Zarembski |
0:01f31e923fe2 | 229 | #define PMC_PCK_CSS_MCK (0x4u << 0) /**< \brief (PMC_PCK[3]) Master Clock is selected */ |
Pawel Zarembski |
0:01f31e923fe2 | 230 | #define PMC_PCK_PRES_Pos 4 |
Pawel Zarembski |
0:01f31e923fe2 | 231 | #define PMC_PCK_PRES_Msk (0x7u << PMC_PCK_PRES_Pos) /**< \brief (PMC_PCK[3]) Programmable Clock Prescaler */ |
Pawel Zarembski |
0:01f31e923fe2 | 232 | #define PMC_PCK_PRES_CLK_1 (0x0u << 4) /**< \brief (PMC_PCK[3]) Selected clock */ |
Pawel Zarembski |
0:01f31e923fe2 | 233 | #define PMC_PCK_PRES_CLK_2 (0x1u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 2 */ |
Pawel Zarembski |
0:01f31e923fe2 | 234 | #define PMC_PCK_PRES_CLK_4 (0x2u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 4 */ |
Pawel Zarembski |
0:01f31e923fe2 | 235 | #define PMC_PCK_PRES_CLK_8 (0x3u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 8 */ |
Pawel Zarembski |
0:01f31e923fe2 | 236 | #define PMC_PCK_PRES_CLK_16 (0x4u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 16 */ |
Pawel Zarembski |
0:01f31e923fe2 | 237 | #define PMC_PCK_PRES_CLK_32 (0x5u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 32 */ |
Pawel Zarembski |
0:01f31e923fe2 | 238 | #define PMC_PCK_PRES_CLK_64 (0x6u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 64 */ |
Pawel Zarembski |
0:01f31e923fe2 | 239 | /* -------- PMC_IER : (PMC Offset: 0x0060) Interrupt Enable Register -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 240 | #define PMC_IER_MOSCXTS (0x1u << 0) /**< \brief (PMC_IER) Main Crystal Oscillator Status Interrupt Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 241 | #define PMC_IER_LOCKA (0x1u << 1) /**< \brief (PMC_IER) PLLA Lock Interrupt Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 242 | #define PMC_IER_MCKRDY (0x1u << 3) /**< \brief (PMC_IER) Master Clock Ready Interrupt Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 243 | #define PMC_IER_LOCKU (0x1u << 6) /**< \brief (PMC_IER) UTMI PLL Lock Interrupt Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 244 | #define PMC_IER_PCKRDY0 (0x1u << 8) /**< \brief (PMC_IER) Programmable Clock Ready 0 Interrupt Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 245 | #define PMC_IER_PCKRDY1 (0x1u << 9) /**< \brief (PMC_IER) Programmable Clock Ready 1 Interrupt Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 246 | #define PMC_IER_PCKRDY2 (0x1u << 10) /**< \brief (PMC_IER) Programmable Clock Ready 2 Interrupt Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 247 | #define PMC_IER_MOSCSELS (0x1u << 16) /**< \brief (PMC_IER) Main Oscillator Selection Status Interrupt Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 248 | #define PMC_IER_MOSCRCS (0x1u << 17) /**< \brief (PMC_IER) Main On-Chip RC Status Interrupt Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 249 | #define PMC_IER_CFDEV (0x1u << 18) /**< \brief (PMC_IER) Clock Failure Detector Event Interrupt Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 250 | /* -------- PMC_IDR : (PMC Offset: 0x0064) Interrupt Disable Register -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 251 | #define PMC_IDR_MOSCXTS (0x1u << 0) /**< \brief (PMC_IDR) Main Crystal Oscillator Status Interrupt Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 252 | #define PMC_IDR_LOCKA (0x1u << 1) /**< \brief (PMC_IDR) PLLA Lock Interrupt Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 253 | #define PMC_IDR_MCKRDY (0x1u << 3) /**< \brief (PMC_IDR) Master Clock Ready Interrupt Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 254 | #define PMC_IDR_LOCKU (0x1u << 6) /**< \brief (PMC_IDR) UTMI PLL Lock Interrupt Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 255 | #define PMC_IDR_PCKRDY0 (0x1u << 8) /**< \brief (PMC_IDR) Programmable Clock Ready 0 Interrupt Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 256 | #define PMC_IDR_PCKRDY1 (0x1u << 9) /**< \brief (PMC_IDR) Programmable Clock Ready 1 Interrupt Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 257 | #define PMC_IDR_PCKRDY2 (0x1u << 10) /**< \brief (PMC_IDR) Programmable Clock Ready 2 Interrupt Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 258 | #define PMC_IDR_MOSCSELS (0x1u << 16) /**< \brief (PMC_IDR) Main Oscillator Selection Status Interrupt Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 259 | #define PMC_IDR_MOSCRCS (0x1u << 17) /**< \brief (PMC_IDR) Main On-Chip RC Status Interrupt Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 260 | #define PMC_IDR_CFDEV (0x1u << 18) /**< \brief (PMC_IDR) Clock Failure Detector Event Interrupt Disable */ |
Pawel Zarembski |
0:01f31e923fe2 | 261 | /* -------- PMC_SR : (PMC Offset: 0x0068) Status Register -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 262 | #define PMC_SR_MOSCXTS (0x1u << 0) /**< \brief (PMC_SR) Main XTAL Oscillator Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 263 | #define PMC_SR_LOCKA (0x1u << 1) /**< \brief (PMC_SR) PLLA Lock Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 264 | #define PMC_SR_MCKRDY (0x1u << 3) /**< \brief (PMC_SR) Master Clock Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 265 | #define PMC_SR_LOCKU (0x1u << 6) /**< \brief (PMC_SR) UTMI PLL Lock Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 266 | #define PMC_SR_OSCSELS (0x1u << 7) /**< \brief (PMC_SR) Slow Clock Oscillator Selection */ |
Pawel Zarembski |
0:01f31e923fe2 | 267 | #define PMC_SR_PCKRDY0 (0x1u << 8) /**< \brief (PMC_SR) Programmable Clock Ready Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 268 | #define PMC_SR_PCKRDY1 (0x1u << 9) /**< \brief (PMC_SR) Programmable Clock Ready Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 269 | #define PMC_SR_PCKRDY2 (0x1u << 10) /**< \brief (PMC_SR) Programmable Clock Ready Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 270 | #define PMC_SR_MOSCSELS (0x1u << 16) /**< \brief (PMC_SR) Main Oscillator Selection Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 271 | #define PMC_SR_MOSCRCS (0x1u << 17) /**< \brief (PMC_SR) Main On-Chip RC Oscillator Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 272 | #define PMC_SR_CFDEV (0x1u << 18) /**< \brief (PMC_SR) Clock Failure Detector Event */ |
Pawel Zarembski |
0:01f31e923fe2 | 273 | #define PMC_SR_CFDS (0x1u << 19) /**< \brief (PMC_SR) Clock Failure Detector Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 274 | #define PMC_SR_FOS (0x1u << 20) /**< \brief (PMC_SR) Clock Failure Detector Fault Output Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 275 | /* -------- PMC_IMR : (PMC Offset: 0x006C) Interrupt Mask Register -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 276 | #define PMC_IMR_MOSCXTS (0x1u << 0) /**< \brief (PMC_IMR) Main Crystal Oscillator Status Interrupt Mask */ |
Pawel Zarembski |
0:01f31e923fe2 | 277 | #define PMC_IMR_LOCKA (0x1u << 1) /**< \brief (PMC_IMR) PLLA Lock Interrupt Mask */ |
Pawel Zarembski |
0:01f31e923fe2 | 278 | #define PMC_IMR_MCKRDY (0x1u << 3) /**< \brief (PMC_IMR) Master Clock Ready Interrupt Mask */ |
Pawel Zarembski |
0:01f31e923fe2 | 279 | #define PMC_IMR_LOCKU (0x1u << 6) /**< \brief (PMC_IMR) UTMI PLL Lock Interrupt Mask */ |
Pawel Zarembski |
0:01f31e923fe2 | 280 | #define PMC_IMR_PCKRDY0 (0x1u << 8) /**< \brief (PMC_IMR) Programmable Clock Ready 0 Interrupt Mask */ |
Pawel Zarembski |
0:01f31e923fe2 | 281 | #define PMC_IMR_PCKRDY1 (0x1u << 9) /**< \brief (PMC_IMR) Programmable Clock Ready 1 Interrupt Mask */ |
Pawel Zarembski |
0:01f31e923fe2 | 282 | #define PMC_IMR_PCKRDY2 (0x1u << 10) /**< \brief (PMC_IMR) Programmable Clock Ready 2 Interrupt Mask */ |
Pawel Zarembski |
0:01f31e923fe2 | 283 | #define PMC_IMR_MOSCSELS (0x1u << 16) /**< \brief (PMC_IMR) Main Oscillator Selection Status Interrupt Mask */ |
Pawel Zarembski |
0:01f31e923fe2 | 284 | #define PMC_IMR_MOSCRCS (0x1u << 17) /**< \brief (PMC_IMR) Main On-Chip RC Status Interrupt Mask */ |
Pawel Zarembski |
0:01f31e923fe2 | 285 | #define PMC_IMR_CFDEV (0x1u << 18) /**< \brief (PMC_IMR) Clock Failure Detector Event Interrupt Mask */ |
Pawel Zarembski |
0:01f31e923fe2 | 286 | /* -------- PMC_FSMR : (PMC Offset: 0x0070) Fast Startup Mode Register -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 287 | #define PMC_FSMR_FSTT0 (0x1u << 0) /**< \brief (PMC_FSMR) Fast Startup Input Enable 0 */ |
Pawel Zarembski |
0:01f31e923fe2 | 288 | #define PMC_FSMR_FSTT1 (0x1u << 1) /**< \brief (PMC_FSMR) Fast Startup Input Enable 1 */ |
Pawel Zarembski |
0:01f31e923fe2 | 289 | #define PMC_FSMR_FSTT2 (0x1u << 2) /**< \brief (PMC_FSMR) Fast Startup Input Enable 2 */ |
Pawel Zarembski |
0:01f31e923fe2 | 290 | #define PMC_FSMR_FSTT3 (0x1u << 3) /**< \brief (PMC_FSMR) Fast Startup Input Enable 3 */ |
Pawel Zarembski |
0:01f31e923fe2 | 291 | #define PMC_FSMR_FSTT4 (0x1u << 4) /**< \brief (PMC_FSMR) Fast Startup Input Enable 4 */ |
Pawel Zarembski |
0:01f31e923fe2 | 292 | #define PMC_FSMR_FSTT5 (0x1u << 5) /**< \brief (PMC_FSMR) Fast Startup Input Enable 5 */ |
Pawel Zarembski |
0:01f31e923fe2 | 293 | #define PMC_FSMR_FSTT6 (0x1u << 6) /**< \brief (PMC_FSMR) Fast Startup Input Enable 6 */ |
Pawel Zarembski |
0:01f31e923fe2 | 294 | #define PMC_FSMR_FSTT7 (0x1u << 7) /**< \brief (PMC_FSMR) Fast Startup Input Enable 7 */ |
Pawel Zarembski |
0:01f31e923fe2 | 295 | #define PMC_FSMR_FSTT8 (0x1u << 8) /**< \brief (PMC_FSMR) Fast Startup Input Enable 8 */ |
Pawel Zarembski |
0:01f31e923fe2 | 296 | #define PMC_FSMR_FSTT9 (0x1u << 9) /**< \brief (PMC_FSMR) Fast Startup Input Enable 9 */ |
Pawel Zarembski |
0:01f31e923fe2 | 297 | #define PMC_FSMR_FSTT10 (0x1u << 10) /**< \brief (PMC_FSMR) Fast Startup Input Enable 10 */ |
Pawel Zarembski |
0:01f31e923fe2 | 298 | #define PMC_FSMR_FSTT11 (0x1u << 11) /**< \brief (PMC_FSMR) Fast Startup Input Enable 11 */ |
Pawel Zarembski |
0:01f31e923fe2 | 299 | #define PMC_FSMR_FSTT12 (0x1u << 12) /**< \brief (PMC_FSMR) Fast Startup Input Enable 12 */ |
Pawel Zarembski |
0:01f31e923fe2 | 300 | #define PMC_FSMR_FSTT13 (0x1u << 13) /**< \brief (PMC_FSMR) Fast Startup Input Enable 13 */ |
Pawel Zarembski |
0:01f31e923fe2 | 301 | #define PMC_FSMR_FSTT14 (0x1u << 14) /**< \brief (PMC_FSMR) Fast Startup Input Enable 14 */ |
Pawel Zarembski |
0:01f31e923fe2 | 302 | #define PMC_FSMR_FSTT15 (0x1u << 15) /**< \brief (PMC_FSMR) Fast Startup Input Enable 15 */ |
Pawel Zarembski |
0:01f31e923fe2 | 303 | #define PMC_FSMR_RTTAL (0x1u << 16) /**< \brief (PMC_FSMR) RTT Alarm Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 304 | #define PMC_FSMR_RTCAL (0x1u << 17) /**< \brief (PMC_FSMR) RTC Alarm Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 305 | #define PMC_FSMR_USBAL (0x1u << 18) /**< \brief (PMC_FSMR) USB Alarm Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 306 | #define PMC_FSMR_LPM (0x1u << 20) /**< \brief (PMC_FSMR) Low Power Mode */ |
Pawel Zarembski |
0:01f31e923fe2 | 307 | /* -------- PMC_FSPR : (PMC Offset: 0x0074) Fast Startup Polarity Register -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 308 | #define PMC_FSPR_FSTP0 (0x1u << 0) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ |
Pawel Zarembski |
0:01f31e923fe2 | 309 | #define PMC_FSPR_FSTP1 (0x1u << 1) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ |
Pawel Zarembski |
0:01f31e923fe2 | 310 | #define PMC_FSPR_FSTP2 (0x1u << 2) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ |
Pawel Zarembski |
0:01f31e923fe2 | 311 | #define PMC_FSPR_FSTP3 (0x1u << 3) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ |
Pawel Zarembski |
0:01f31e923fe2 | 312 | #define PMC_FSPR_FSTP4 (0x1u << 4) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ |
Pawel Zarembski |
0:01f31e923fe2 | 313 | #define PMC_FSPR_FSTP5 (0x1u << 5) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ |
Pawel Zarembski |
0:01f31e923fe2 | 314 | #define PMC_FSPR_FSTP6 (0x1u << 6) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ |
Pawel Zarembski |
0:01f31e923fe2 | 315 | #define PMC_FSPR_FSTP7 (0x1u << 7) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ |
Pawel Zarembski |
0:01f31e923fe2 | 316 | #define PMC_FSPR_FSTP8 (0x1u << 8) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ |
Pawel Zarembski |
0:01f31e923fe2 | 317 | #define PMC_FSPR_FSTP9 (0x1u << 9) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ |
Pawel Zarembski |
0:01f31e923fe2 | 318 | #define PMC_FSPR_FSTP10 (0x1u << 10) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ |
Pawel Zarembski |
0:01f31e923fe2 | 319 | #define PMC_FSPR_FSTP11 (0x1u << 11) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ |
Pawel Zarembski |
0:01f31e923fe2 | 320 | #define PMC_FSPR_FSTP12 (0x1u << 12) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ |
Pawel Zarembski |
0:01f31e923fe2 | 321 | #define PMC_FSPR_FSTP13 (0x1u << 13) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ |
Pawel Zarembski |
0:01f31e923fe2 | 322 | #define PMC_FSPR_FSTP14 (0x1u << 14) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ |
Pawel Zarembski |
0:01f31e923fe2 | 323 | #define PMC_FSPR_FSTP15 (0x1u << 15) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ |
Pawel Zarembski |
0:01f31e923fe2 | 324 | /* -------- PMC_FOCR : (PMC Offset: 0x0078) Fault Output Clear Register -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 325 | #define PMC_FOCR_FOCLR (0x1u << 0) /**< \brief (PMC_FOCR) Fault Output Clear */ |
Pawel Zarembski |
0:01f31e923fe2 | 326 | /* -------- PMC_WPMR : (PMC Offset: 0x00E4) Write Protect Mode Register -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 327 | #define PMC_WPMR_WPEN (0x1u << 0) /**< \brief (PMC_WPMR) Write Protect Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 328 | #define PMC_WPMR_WPKEY_Pos 8 |
Pawel Zarembski |
0:01f31e923fe2 | 329 | #define PMC_WPMR_WPKEY_Msk (0xffffffu << PMC_WPMR_WPKEY_Pos) /**< \brief (PMC_WPMR) Write Protect KEY */ |
Pawel Zarembski |
0:01f31e923fe2 | 330 | #define PMC_WPMR_WPKEY(value) ((PMC_WPMR_WPKEY_Msk & ((value) << PMC_WPMR_WPKEY_Pos))) |
Pawel Zarembski |
0:01f31e923fe2 | 331 | /* -------- PMC_WPSR : (PMC Offset: 0x00E8) Write Protect Status Register -------- */ |
Pawel Zarembski |
0:01f31e923fe2 | 332 | #define PMC_WPSR_WPVS (0x1u << 0) /**< \brief (PMC_WPSR) Write Protect Violation Status */ |
Pawel Zarembski |
0:01f31e923fe2 | 333 | #define PMC_WPSR_WPVSRC_Pos 8 |
Pawel Zarembski |
0:01f31e923fe2 | 334 | #define PMC_WPSR_WPVSRC_Msk (0xffffu << PMC_WPSR_WPVSRC_Pos) /**< \brief (PMC_WPSR) Write Protect Violation Source */ |
Pawel Zarembski |
0:01f31e923fe2 | 335 | |
Pawel Zarembski |
0:01f31e923fe2 | 336 | /*@}*/ |
Pawel Zarembski |
0:01f31e923fe2 | 337 | |
Pawel Zarembski |
0:01f31e923fe2 | 338 | |
Pawel Zarembski |
0:01f31e923fe2 | 339 | #endif /* _SAM3U_PMC_COMPONENT_ */ |