The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_EFM32PG_STK3401/TOOLCHAIN_IAR/efm32pg1b200f256im48.h@172:65be27845400, 2019-02-20 (annotated)
- Committer:
- AnnaBridge
- Date:
- Wed Feb 20 20:53:29 2019 +0000
- Revision:
- 172:65be27845400
- Parent:
- 171:3a7713b1edbc
mbed library release version 165
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 171:3a7713b1edbc | 1 | /**************************************************************************//** |
AnnaBridge | 171:3a7713b1edbc | 2 | * @file efm32pg1b200f256im48.h |
AnnaBridge | 171:3a7713b1edbc | 3 | * @brief CMSIS Cortex-M Peripheral Access Layer Header File |
AnnaBridge | 171:3a7713b1edbc | 4 | * for EFM32PG1B200F256IM48 |
AnnaBridge | 171:3a7713b1edbc | 5 | * @version 5.1.2 |
AnnaBridge | 171:3a7713b1edbc | 6 | ****************************************************************************** |
AnnaBridge | 171:3a7713b1edbc | 7 | * @section License |
AnnaBridge | 171:3a7713b1edbc | 8 | * <b>Copyright 2017 Silicon Laboratories, Inc. http://www.silabs.com</b> |
AnnaBridge | 171:3a7713b1edbc | 9 | ****************************************************************************** |
AnnaBridge | 171:3a7713b1edbc | 10 | * |
AnnaBridge | 171:3a7713b1edbc | 11 | * Permission is granted to anyone to use this software for any purpose, |
AnnaBridge | 171:3a7713b1edbc | 12 | * including commercial applications, and to alter it and redistribute it |
AnnaBridge | 171:3a7713b1edbc | 13 | * freely, subject to the following restrictions: |
AnnaBridge | 171:3a7713b1edbc | 14 | * |
AnnaBridge | 171:3a7713b1edbc | 15 | * 1. The origin of this software must not be misrepresented; you must not |
AnnaBridge | 171:3a7713b1edbc | 16 | * claim that you wrote the original software.@n |
AnnaBridge | 171:3a7713b1edbc | 17 | * 2. Altered source versions must be plainly marked as such, and must not be |
AnnaBridge | 171:3a7713b1edbc | 18 | * misrepresented as being the original software.@n |
AnnaBridge | 171:3a7713b1edbc | 19 | * 3. This notice may not be removed or altered from any source distribution. |
AnnaBridge | 171:3a7713b1edbc | 20 | * |
AnnaBridge | 171:3a7713b1edbc | 21 | * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Laboratories, Inc. |
AnnaBridge | 171:3a7713b1edbc | 22 | * has no obligation to support this Software. Silicon Laboratories, Inc. is |
AnnaBridge | 171:3a7713b1edbc | 23 | * providing the Software "AS IS", with no express or implied warranties of any |
AnnaBridge | 171:3a7713b1edbc | 24 | * kind, including, but not limited to, any implied warranties of |
AnnaBridge | 171:3a7713b1edbc | 25 | * merchantability or fitness for any particular purpose or warranties against |
AnnaBridge | 171:3a7713b1edbc | 26 | * infringement of any proprietary rights of a third party. |
AnnaBridge | 171:3a7713b1edbc | 27 | * |
AnnaBridge | 171:3a7713b1edbc | 28 | * Silicon Laboratories, Inc. will not be liable for any consequential, |
AnnaBridge | 171:3a7713b1edbc | 29 | * incidental, or special damages, or any other relief, or for any claim by |
AnnaBridge | 171:3a7713b1edbc | 30 | * any third party, arising from your use of this Software. |
AnnaBridge | 171:3a7713b1edbc | 31 | * |
AnnaBridge | 171:3a7713b1edbc | 32 | *****************************************************************************/ |
AnnaBridge | 171:3a7713b1edbc | 33 | |
AnnaBridge | 171:3a7713b1edbc | 34 | #ifndef EFM32PG1B200F256IM48_H |
AnnaBridge | 171:3a7713b1edbc | 35 | #define EFM32PG1B200F256IM48_H |
AnnaBridge | 171:3a7713b1edbc | 36 | |
AnnaBridge | 171:3a7713b1edbc | 37 | #ifdef __cplusplus |
AnnaBridge | 171:3a7713b1edbc | 38 | extern "C" { |
AnnaBridge | 171:3a7713b1edbc | 39 | #endif |
AnnaBridge | 171:3a7713b1edbc | 40 | |
AnnaBridge | 171:3a7713b1edbc | 41 | /**************************************************************************//** |
AnnaBridge | 171:3a7713b1edbc | 42 | * @addtogroup Parts |
AnnaBridge | 171:3a7713b1edbc | 43 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 44 | *****************************************************************************/ |
AnnaBridge | 171:3a7713b1edbc | 45 | |
AnnaBridge | 171:3a7713b1edbc | 46 | /**************************************************************************//** |
AnnaBridge | 171:3a7713b1edbc | 47 | * @defgroup EFM32PG1B200F256IM48 EFM32PG1B200F256IM48 |
AnnaBridge | 171:3a7713b1edbc | 48 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 49 | *****************************************************************************/ |
AnnaBridge | 171:3a7713b1edbc | 50 | |
AnnaBridge | 171:3a7713b1edbc | 51 | /** Interrupt Number Definition */ |
AnnaBridge | 171:3a7713b1edbc | 52 | typedef enum IRQn |
AnnaBridge | 171:3a7713b1edbc | 53 | { |
AnnaBridge | 171:3a7713b1edbc | 54 | /****** Cortex-M4 Processor Exceptions Numbers ********************************************/ |
AnnaBridge | 171:3a7713b1edbc | 55 | NonMaskableInt_IRQn = -14, /*!< -14 Cortex-M4 Non Maskable Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 56 | HardFault_IRQn = -13, /*!< -13 Cortex-M4 Hard Fault Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 57 | MemoryManagement_IRQn = -12, /*!< -12 Cortex-M4 Memory Management Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 58 | BusFault_IRQn = -11, /*!< -11 Cortex-M4 Bus Fault Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 59 | UsageFault_IRQn = -10, /*!< -10 Cortex-M4 Usage Fault Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 60 | SVCall_IRQn = -5, /*!< -5 Cortex-M4 SV Call Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 61 | DebugMonitor_IRQn = -4, /*!< -4 Cortex-M4 Debug Monitor Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 62 | PendSV_IRQn = -2, /*!< -2 Cortex-M4 Pend SV Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 63 | SysTick_IRQn = -1, /*!< -1 Cortex-M4 System Tick Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 64 | |
AnnaBridge | 171:3a7713b1edbc | 65 | /****** EFM32PG1B Peripheral Interrupt Numbers ********************************************/ |
AnnaBridge | 171:3a7713b1edbc | 66 | |
AnnaBridge | 171:3a7713b1edbc | 67 | EMU_IRQn = 0, /*!< 0 EFM32 EMU Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 68 | WDOG0_IRQn = 2, /*!< 2 EFM32 WDOG0 Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 69 | LDMA_IRQn = 8, /*!< 8 EFM32 LDMA Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 70 | GPIO_EVEN_IRQn = 9, /*!< 9 EFM32 GPIO_EVEN Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 71 | TIMER0_IRQn = 10, /*!< 10 EFM32 TIMER0 Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 72 | USART0_RX_IRQn = 11, /*!< 11 EFM32 USART0_RX Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 73 | USART0_TX_IRQn = 12, /*!< 12 EFM32 USART0_TX Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 74 | ACMP0_IRQn = 13, /*!< 13 EFM32 ACMP0 Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 75 | ADC0_IRQn = 14, /*!< 14 EFM32 ADC0 Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 76 | IDAC0_IRQn = 15, /*!< 15 EFM32 IDAC0 Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 77 | I2C0_IRQn = 16, /*!< 16 EFM32 I2C0 Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 78 | GPIO_ODD_IRQn = 17, /*!< 17 EFM32 GPIO_ODD Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 79 | TIMER1_IRQn = 18, /*!< 18 EFM32 TIMER1 Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 80 | USART1_RX_IRQn = 19, /*!< 19 EFM32 USART1_RX Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 81 | USART1_TX_IRQn = 20, /*!< 20 EFM32 USART1_TX Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 82 | LEUART0_IRQn = 21, /*!< 21 EFM32 LEUART0 Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 83 | PCNT0_IRQn = 22, /*!< 22 EFM32 PCNT0 Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 84 | CMU_IRQn = 23, /*!< 23 EFM32 CMU Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 85 | MSC_IRQn = 24, /*!< 24 EFM32 MSC Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 86 | CRYPTO_IRQn = 25, /*!< 25 EFM32 CRYPTO Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 87 | LETIMER0_IRQn = 26, /*!< 26 EFM32 LETIMER0 Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 88 | RTCC_IRQn = 29, /*!< 29 EFM32 RTCC Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 89 | CRYOTIMER_IRQn = 31, /*!< 31 EFM32 CRYOTIMER Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 90 | FPUEH_IRQn = 33, /*!< 33 EFM32 FPUEH Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 91 | } IRQn_Type; |
AnnaBridge | 171:3a7713b1edbc | 92 | |
AnnaBridge | 171:3a7713b1edbc | 93 | /**************************************************************************//** |
AnnaBridge | 171:3a7713b1edbc | 94 | * @defgroup EFM32PG1B200F256IM48_Core EFM32PG1B200F256IM48 Core |
AnnaBridge | 171:3a7713b1edbc | 95 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 96 | * @brief Processor and Core Peripheral Section |
AnnaBridge | 171:3a7713b1edbc | 97 | *****************************************************************************/ |
AnnaBridge | 171:3a7713b1edbc | 98 | #define __MPU_PRESENT 1 /**< Presence of MPU */ |
AnnaBridge | 171:3a7713b1edbc | 99 | #define __FPU_PRESENT 1 /**< Presence of FPU */ |
AnnaBridge | 171:3a7713b1edbc | 100 | #define __VTOR_PRESENT 1 /**< Presence of VTOR register in SCB */ |
AnnaBridge | 171:3a7713b1edbc | 101 | #define __NVIC_PRIO_BITS 3 /**< NVIC interrupt priority bits */ |
AnnaBridge | 171:3a7713b1edbc | 102 | #define __Vendor_SysTickConfig 0 /**< Is 1 if different SysTick counter is used */ |
AnnaBridge | 171:3a7713b1edbc | 103 | |
AnnaBridge | 171:3a7713b1edbc | 104 | /** @} End of group EFM32PG1B200F256IM48_Core */ |
AnnaBridge | 171:3a7713b1edbc | 105 | |
AnnaBridge | 171:3a7713b1edbc | 106 | /**************************************************************************//** |
AnnaBridge | 171:3a7713b1edbc | 107 | * @defgroup EFM32PG1B200F256IM48_Part EFM32PG1B200F256IM48 Part |
AnnaBridge | 171:3a7713b1edbc | 108 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 109 | ******************************************************************************/ |
AnnaBridge | 171:3a7713b1edbc | 110 | |
AnnaBridge | 171:3a7713b1edbc | 111 | /** Part family */ |
AnnaBridge | 171:3a7713b1edbc | 112 | #define _EFM32_PEARL_FAMILY 1 /**< PEARL Gecko MCU Family */ |
AnnaBridge | 171:3a7713b1edbc | 113 | #define _EFM_DEVICE /**< Silicon Labs EFM-type microcontroller */ |
AnnaBridge | 171:3a7713b1edbc | 114 | #define _SILICON_LABS_32B_SERIES_1 /**< Silicon Labs series number */ |
AnnaBridge | 171:3a7713b1edbc | 115 | #define _SILICON_LABS_32B_SERIES 1 /**< Silicon Labs series number */ |
AnnaBridge | 171:3a7713b1edbc | 116 | #define _SILICON_LABS_32B_SERIES_1_CONFIG_1 /**< Series 1, Configuration 1 */ |
AnnaBridge | 171:3a7713b1edbc | 117 | #define _SILICON_LABS_32B_SERIES_1_CONFIG 1 /**< Series 1, Configuration 1 */ |
AnnaBridge | 171:3a7713b1edbc | 118 | #define _SILICON_LABS_GECKO_INTERNAL_SDID 80 /** Silicon Labs internal use only, may change any time */ |
AnnaBridge | 171:3a7713b1edbc | 119 | #define _SILICON_LABS_GECKO_INTERNAL_SDID_80 /** Silicon Labs internal use only, may change any time */ |
AnnaBridge | 171:3a7713b1edbc | 120 | #define _SILICON_LABS_32B_PLATFORM_2 /**< @deprecated Silicon Labs platform name */ |
AnnaBridge | 171:3a7713b1edbc | 121 | #define _SILICON_LABS_32B_PLATFORM 2 /**< @deprecated Silicon Labs platform name */ |
AnnaBridge | 171:3a7713b1edbc | 122 | #define _SILICON_LABS_32B_PLATFORM_2_GEN_1 /**< @deprecated Platform 2, generation 1 */ |
AnnaBridge | 171:3a7713b1edbc | 123 | #define _SILICON_LABS_32B_PLATFORM_2_GEN 1 /**< @deprecated Platform 2, generation 1 */ |
AnnaBridge | 171:3a7713b1edbc | 124 | |
AnnaBridge | 171:3a7713b1edbc | 125 | /* If part number is not defined as compiler option, define it */ |
AnnaBridge | 171:3a7713b1edbc | 126 | #if !defined(EFM32PG1B200F256IM48) |
AnnaBridge | 171:3a7713b1edbc | 127 | #define EFM32PG1B200F256IM48 1 /**< PEARL Gecko Part */ |
AnnaBridge | 171:3a7713b1edbc | 128 | #endif |
AnnaBridge | 171:3a7713b1edbc | 129 | |
AnnaBridge | 171:3a7713b1edbc | 130 | /** Configure part number */ |
AnnaBridge | 171:3a7713b1edbc | 131 | #define PART_NUMBER "EFM32PG1B200F256IM48" /**< Part Number */ |
AnnaBridge | 171:3a7713b1edbc | 132 | |
AnnaBridge | 171:3a7713b1edbc | 133 | /** Memory Base addresses and limits */ |
AnnaBridge | 171:3a7713b1edbc | 134 | #define FLASH_MEM_BASE ((uint32_t) 0x00000000UL) /**< FLASH base address */ |
AnnaBridge | 171:3a7713b1edbc | 135 | #define FLASH_MEM_SIZE ((uint32_t) 0x10000000UL) /**< FLASH available address space */ |
AnnaBridge | 171:3a7713b1edbc | 136 | #define FLASH_MEM_END ((uint32_t) 0x0FFFFFFFUL) /**< FLASH end address */ |
AnnaBridge | 171:3a7713b1edbc | 137 | #define FLASH_MEM_BITS ((uint32_t) 0x0000001CUL) /**< FLASH used bits */ |
AnnaBridge | 171:3a7713b1edbc | 138 | #define RAM_CODE_MEM_BASE ((uint32_t) 0x10000000UL) /**< RAM_CODE base address */ |
AnnaBridge | 171:3a7713b1edbc | 139 | #define RAM_CODE_MEM_SIZE ((uint32_t) 0x7C00UL) /**< RAM_CODE available address space */ |
AnnaBridge | 171:3a7713b1edbc | 140 | #define RAM_CODE_MEM_END ((uint32_t) 0x10007BFFUL) /**< RAM_CODE end address */ |
AnnaBridge | 171:3a7713b1edbc | 141 | #define RAM_CODE_MEM_BITS ((uint32_t) 0x0000000FUL) /**< RAM_CODE used bits */ |
AnnaBridge | 171:3a7713b1edbc | 142 | #define PER_BITCLR_MEM_BASE ((uint32_t) 0x44000000UL) /**< PER_BITCLR base address */ |
AnnaBridge | 171:3a7713b1edbc | 143 | #define PER_BITCLR_MEM_SIZE ((uint32_t) 0xE8000UL) /**< PER_BITCLR available address space */ |
AnnaBridge | 171:3a7713b1edbc | 144 | #define PER_BITCLR_MEM_END ((uint32_t) 0x440E7FFFUL) /**< PER_BITCLR end address */ |
AnnaBridge | 171:3a7713b1edbc | 145 | #define PER_BITCLR_MEM_BITS ((uint32_t) 0x00000014UL) /**< PER_BITCLR used bits */ |
AnnaBridge | 171:3a7713b1edbc | 146 | #define CRYPTO_BITSET_MEM_BASE ((uint32_t) 0x460F0000UL) /**< CRYPTO_BITSET base address */ |
AnnaBridge | 171:3a7713b1edbc | 147 | #define CRYPTO_BITSET_MEM_SIZE ((uint32_t) 0x400UL) /**< CRYPTO_BITSET available address space */ |
AnnaBridge | 171:3a7713b1edbc | 148 | #define CRYPTO_BITSET_MEM_END ((uint32_t) 0x460F03FFUL) /**< CRYPTO_BITSET end address */ |
AnnaBridge | 171:3a7713b1edbc | 149 | #define CRYPTO_BITSET_MEM_BITS ((uint32_t) 0x0000000AUL) /**< CRYPTO_BITSET used bits */ |
AnnaBridge | 171:3a7713b1edbc | 150 | #define CRYPTO_MEM_BASE ((uint32_t) 0x400F0000UL) /**< CRYPTO base address */ |
AnnaBridge | 171:3a7713b1edbc | 151 | #define CRYPTO_MEM_SIZE ((uint32_t) 0x400UL) /**< CRYPTO available address space */ |
AnnaBridge | 171:3a7713b1edbc | 152 | #define CRYPTO_MEM_END ((uint32_t) 0x400F03FFUL) /**< CRYPTO end address */ |
AnnaBridge | 171:3a7713b1edbc | 153 | #define CRYPTO_MEM_BITS ((uint32_t) 0x0000000AUL) /**< CRYPTO used bits */ |
AnnaBridge | 171:3a7713b1edbc | 154 | #define CRYPTO_BITCLR_MEM_BASE ((uint32_t) 0x440F0000UL) /**< CRYPTO_BITCLR base address */ |
AnnaBridge | 171:3a7713b1edbc | 155 | #define CRYPTO_BITCLR_MEM_SIZE ((uint32_t) 0x400UL) /**< CRYPTO_BITCLR available address space */ |
AnnaBridge | 171:3a7713b1edbc | 156 | #define CRYPTO_BITCLR_MEM_END ((uint32_t) 0x440F03FFUL) /**< CRYPTO_BITCLR end address */ |
AnnaBridge | 171:3a7713b1edbc | 157 | #define CRYPTO_BITCLR_MEM_BITS ((uint32_t) 0x0000000AUL) /**< CRYPTO_BITCLR used bits */ |
AnnaBridge | 171:3a7713b1edbc | 158 | #define PER_BITSET_MEM_BASE ((uint32_t) 0x46000000UL) /**< PER_BITSET base address */ |
AnnaBridge | 171:3a7713b1edbc | 159 | #define PER_BITSET_MEM_SIZE ((uint32_t) 0xE8000UL) /**< PER_BITSET available address space */ |
AnnaBridge | 171:3a7713b1edbc | 160 | #define PER_BITSET_MEM_END ((uint32_t) 0x460E7FFFUL) /**< PER_BITSET end address */ |
AnnaBridge | 171:3a7713b1edbc | 161 | #define PER_BITSET_MEM_BITS ((uint32_t) 0x00000014UL) /**< PER_BITSET used bits */ |
AnnaBridge | 171:3a7713b1edbc | 162 | #define PER_MEM_BASE ((uint32_t) 0x40000000UL) /**< PER base address */ |
AnnaBridge | 171:3a7713b1edbc | 163 | #define PER_MEM_SIZE ((uint32_t) 0xE8000UL) /**< PER available address space */ |
AnnaBridge | 171:3a7713b1edbc | 164 | #define PER_MEM_END ((uint32_t) 0x400E7FFFUL) /**< PER end address */ |
AnnaBridge | 171:3a7713b1edbc | 165 | #define PER_MEM_BITS ((uint32_t) 0x00000014UL) /**< PER used bits */ |
AnnaBridge | 171:3a7713b1edbc | 166 | #define RAM_MEM_BASE ((uint32_t) 0x20000000UL) /**< RAM base address */ |
AnnaBridge | 171:3a7713b1edbc | 167 | #define RAM_MEM_SIZE ((uint32_t) 0x7C00UL) /**< RAM available address space */ |
AnnaBridge | 171:3a7713b1edbc | 168 | #define RAM_MEM_END ((uint32_t) 0x20007BFFUL) /**< RAM end address */ |
AnnaBridge | 171:3a7713b1edbc | 169 | #define RAM_MEM_BITS ((uint32_t) 0x0000000FUL) /**< RAM used bits */ |
AnnaBridge | 171:3a7713b1edbc | 170 | |
AnnaBridge | 171:3a7713b1edbc | 171 | /** Bit banding area */ |
AnnaBridge | 171:3a7713b1edbc | 172 | #define BITBAND_PER_BASE ((uint32_t) 0x42000000UL) /**< Peripheral Address Space bit-band area */ |
AnnaBridge | 171:3a7713b1edbc | 173 | #define BITBAND_RAM_BASE ((uint32_t) 0x22000000UL) /**< SRAM Address Space bit-band area */ |
AnnaBridge | 171:3a7713b1edbc | 174 | |
AnnaBridge | 171:3a7713b1edbc | 175 | /** Flash and SRAM limits for EFM32PG1B200F256IM48 */ |
AnnaBridge | 171:3a7713b1edbc | 176 | #define FLASH_BASE (0x00000000UL) /**< Flash Base Address */ |
AnnaBridge | 171:3a7713b1edbc | 177 | #define FLASH_SIZE (0x00040000UL) /**< Available Flash Memory */ |
AnnaBridge | 171:3a7713b1edbc | 178 | #define FLASH_PAGE_SIZE 2048 /**< Flash Memory page size */ |
AnnaBridge | 171:3a7713b1edbc | 179 | #define SRAM_BASE (0x20000000UL) /**< SRAM Base Address */ |
AnnaBridge | 171:3a7713b1edbc | 180 | #define SRAM_SIZE (0x00008000UL) /**< Available SRAM Memory */ |
AnnaBridge | 171:3a7713b1edbc | 181 | #define __CM4_REV 0x001 /**< Cortex-M4 Core revision r0p1 */ |
AnnaBridge | 171:3a7713b1edbc | 182 | #define PRS_CHAN_COUNT 12 /**< Number of PRS channels */ |
AnnaBridge | 171:3a7713b1edbc | 183 | #define DMA_CHAN_COUNT 8 /**< Number of DMA channels */ |
AnnaBridge | 171:3a7713b1edbc | 184 | #define EXT_IRQ_COUNT 34 /**< Number of External (NVIC) interrupts */ |
AnnaBridge | 171:3a7713b1edbc | 185 | |
AnnaBridge | 171:3a7713b1edbc | 186 | /** AF channels connect the different on-chip peripherals with the af-mux */ |
AnnaBridge | 171:3a7713b1edbc | 187 | #define AFCHAN_MAX 72 |
AnnaBridge | 171:3a7713b1edbc | 188 | #define AFCHANLOC_MAX 32 |
AnnaBridge | 171:3a7713b1edbc | 189 | /** Analog AF channels */ |
AnnaBridge | 171:3a7713b1edbc | 190 | #define AFACHAN_MAX 61 |
AnnaBridge | 171:3a7713b1edbc | 191 | |
AnnaBridge | 171:3a7713b1edbc | 192 | /* Part number capabilities */ |
AnnaBridge | 171:3a7713b1edbc | 193 | |
AnnaBridge | 171:3a7713b1edbc | 194 | #define TIMER_PRESENT /**< TIMER is available in this part */ |
AnnaBridge | 171:3a7713b1edbc | 195 | #define TIMER_COUNT 2 /**< 2 TIMERs available */ |
AnnaBridge | 171:3a7713b1edbc | 196 | #define USART_PRESENT /**< USART is available in this part */ |
AnnaBridge | 171:3a7713b1edbc | 197 | #define USART_COUNT 2 /**< 2 USARTs available */ |
AnnaBridge | 171:3a7713b1edbc | 198 | #define LEUART_PRESENT /**< LEUART is available in this part */ |
AnnaBridge | 171:3a7713b1edbc | 199 | #define LEUART_COUNT 1 /**< 1 LEUARTs available */ |
AnnaBridge | 171:3a7713b1edbc | 200 | #define LETIMER_PRESENT /**< LETIMER is available in this part */ |
AnnaBridge | 171:3a7713b1edbc | 201 | #define LETIMER_COUNT 1 /**< 1 LETIMERs available */ |
AnnaBridge | 171:3a7713b1edbc | 202 | #define PCNT_PRESENT /**< PCNT is available in this part */ |
AnnaBridge | 171:3a7713b1edbc | 203 | #define PCNT_COUNT 1 /**< 1 PCNTs available */ |
AnnaBridge | 171:3a7713b1edbc | 204 | #define I2C_PRESENT /**< I2C is available in this part */ |
AnnaBridge | 171:3a7713b1edbc | 205 | #define I2C_COUNT 1 /**< 1 I2Cs available */ |
AnnaBridge | 171:3a7713b1edbc | 206 | #define ADC_PRESENT /**< ADC is available in this part */ |
AnnaBridge | 171:3a7713b1edbc | 207 | #define ADC_COUNT 1 /**< 1 ADCs available */ |
AnnaBridge | 171:3a7713b1edbc | 208 | #define ACMP_PRESENT /**< ACMP is available in this part */ |
AnnaBridge | 171:3a7713b1edbc | 209 | #define ACMP_COUNT 2 /**< 2 ACMPs available */ |
AnnaBridge | 171:3a7713b1edbc | 210 | #define IDAC_PRESENT /**< IDAC is available in this part */ |
AnnaBridge | 171:3a7713b1edbc | 211 | #define IDAC_COUNT 1 /**< 1 IDACs available */ |
AnnaBridge | 171:3a7713b1edbc | 212 | #define WDOG_PRESENT /**< WDOG is available in this part */ |
AnnaBridge | 171:3a7713b1edbc | 213 | #define WDOG_COUNT 1 /**< 1 WDOGs available */ |
AnnaBridge | 171:3a7713b1edbc | 214 | #define MSC_PRESENT |
AnnaBridge | 171:3a7713b1edbc | 215 | #define MSC_COUNT 1 |
AnnaBridge | 171:3a7713b1edbc | 216 | #define EMU_PRESENT |
AnnaBridge | 171:3a7713b1edbc | 217 | #define EMU_COUNT 1 |
AnnaBridge | 171:3a7713b1edbc | 218 | #define RMU_PRESENT |
AnnaBridge | 171:3a7713b1edbc | 219 | #define RMU_COUNT 1 |
AnnaBridge | 171:3a7713b1edbc | 220 | #define CMU_PRESENT |
AnnaBridge | 171:3a7713b1edbc | 221 | #define CMU_COUNT 1 |
AnnaBridge | 171:3a7713b1edbc | 222 | #define CRYPTO_PRESENT |
AnnaBridge | 171:3a7713b1edbc | 223 | #define CRYPTO_COUNT 1 |
AnnaBridge | 171:3a7713b1edbc | 224 | #define GPIO_PRESENT |
AnnaBridge | 171:3a7713b1edbc | 225 | #define GPIO_COUNT 1 |
AnnaBridge | 171:3a7713b1edbc | 226 | #define PRS_PRESENT |
AnnaBridge | 171:3a7713b1edbc | 227 | #define PRS_COUNT 1 |
AnnaBridge | 171:3a7713b1edbc | 228 | #define LDMA_PRESENT |
AnnaBridge | 171:3a7713b1edbc | 229 | #define LDMA_COUNT 1 |
AnnaBridge | 171:3a7713b1edbc | 230 | #define FPUEH_PRESENT |
AnnaBridge | 171:3a7713b1edbc | 231 | #define FPUEH_COUNT 1 |
AnnaBridge | 171:3a7713b1edbc | 232 | #define GPCRC_PRESENT |
AnnaBridge | 171:3a7713b1edbc | 233 | #define GPCRC_COUNT 1 |
AnnaBridge | 171:3a7713b1edbc | 234 | #define CRYOTIMER_PRESENT |
AnnaBridge | 171:3a7713b1edbc | 235 | #define CRYOTIMER_COUNT 1 |
AnnaBridge | 171:3a7713b1edbc | 236 | #define RTCC_PRESENT |
AnnaBridge | 171:3a7713b1edbc | 237 | #define RTCC_COUNT 1 |
AnnaBridge | 171:3a7713b1edbc | 238 | #define BOOTLOADER_PRESENT |
AnnaBridge | 171:3a7713b1edbc | 239 | #define BOOTLOADER_COUNT 1 |
AnnaBridge | 171:3a7713b1edbc | 240 | |
AnnaBridge | 171:3a7713b1edbc | 241 | #include "core_cm4.h" /* Cortex-M4 processor and core peripherals */ |
AnnaBridge | 171:3a7713b1edbc | 242 | #include "system_efm32pg1b.h" /* System Header File */ |
AnnaBridge | 171:3a7713b1edbc | 243 | |
AnnaBridge | 171:3a7713b1edbc | 244 | /** @} End of group EFM32PG1B200F256IM48_Part */ |
AnnaBridge | 171:3a7713b1edbc | 245 | |
AnnaBridge | 171:3a7713b1edbc | 246 | /**************************************************************************//** |
AnnaBridge | 171:3a7713b1edbc | 247 | * @defgroup EFM32PG1B200F256IM48_Peripheral_TypeDefs EFM32PG1B200F256IM48 Peripheral TypeDefs |
AnnaBridge | 171:3a7713b1edbc | 248 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 249 | * @brief Device Specific Peripheral Register Structures |
AnnaBridge | 171:3a7713b1edbc | 250 | *****************************************************************************/ |
AnnaBridge | 171:3a7713b1edbc | 251 | |
AnnaBridge | 171:3a7713b1edbc | 252 | #include "efm32pg1b_msc.h" |
AnnaBridge | 171:3a7713b1edbc | 253 | #include "efm32pg1b_emu.h" |
AnnaBridge | 171:3a7713b1edbc | 254 | #include "efm32pg1b_rmu.h" |
AnnaBridge | 171:3a7713b1edbc | 255 | #include "efm32pg1b_cmu.h" |
AnnaBridge | 171:3a7713b1edbc | 256 | #include "efm32pg1b_crypto.h" |
AnnaBridge | 171:3a7713b1edbc | 257 | #include "efm32pg1b_gpio_p.h" |
AnnaBridge | 171:3a7713b1edbc | 258 | #include "efm32pg1b_gpio.h" |
AnnaBridge | 171:3a7713b1edbc | 259 | #include "efm32pg1b_prs_ch.h" |
AnnaBridge | 171:3a7713b1edbc | 260 | #include "efm32pg1b_prs.h" |
AnnaBridge | 171:3a7713b1edbc | 261 | #include "efm32pg1b_ldma_ch.h" |
AnnaBridge | 171:3a7713b1edbc | 262 | #include "efm32pg1b_ldma.h" |
AnnaBridge | 171:3a7713b1edbc | 263 | #include "efm32pg1b_fpueh.h" |
AnnaBridge | 171:3a7713b1edbc | 264 | #include "efm32pg1b_gpcrc.h" |
AnnaBridge | 171:3a7713b1edbc | 265 | #include "efm32pg1b_timer_cc.h" |
AnnaBridge | 171:3a7713b1edbc | 266 | #include "efm32pg1b_timer.h" |
AnnaBridge | 171:3a7713b1edbc | 267 | #include "efm32pg1b_usart.h" |
AnnaBridge | 171:3a7713b1edbc | 268 | #include "efm32pg1b_leuart.h" |
AnnaBridge | 171:3a7713b1edbc | 269 | #include "efm32pg1b_letimer.h" |
AnnaBridge | 171:3a7713b1edbc | 270 | #include "efm32pg1b_cryotimer.h" |
AnnaBridge | 171:3a7713b1edbc | 271 | #include "efm32pg1b_pcnt.h" |
AnnaBridge | 171:3a7713b1edbc | 272 | #include "efm32pg1b_i2c.h" |
AnnaBridge | 171:3a7713b1edbc | 273 | #include "efm32pg1b_adc.h" |
AnnaBridge | 171:3a7713b1edbc | 274 | #include "efm32pg1b_acmp.h" |
AnnaBridge | 171:3a7713b1edbc | 275 | #include "efm32pg1b_idac.h" |
AnnaBridge | 171:3a7713b1edbc | 276 | #include "efm32pg1b_rtcc_cc.h" |
AnnaBridge | 171:3a7713b1edbc | 277 | #include "efm32pg1b_rtcc_ret.h" |
AnnaBridge | 171:3a7713b1edbc | 278 | #include "efm32pg1b_rtcc.h" |
AnnaBridge | 171:3a7713b1edbc | 279 | #include "efm32pg1b_wdog_pch.h" |
AnnaBridge | 171:3a7713b1edbc | 280 | #include "efm32pg1b_wdog.h" |
AnnaBridge | 171:3a7713b1edbc | 281 | #include "efm32pg1b_dma_descriptor.h" |
AnnaBridge | 171:3a7713b1edbc | 282 | #include "efm32pg1b_devinfo.h" |
AnnaBridge | 171:3a7713b1edbc | 283 | #include "efm32pg1b_romtable.h" |
AnnaBridge | 171:3a7713b1edbc | 284 | |
AnnaBridge | 171:3a7713b1edbc | 285 | /** @} End of group EFM32PG1B200F256IM48_Peripheral_TypeDefs */ |
AnnaBridge | 171:3a7713b1edbc | 286 | |
AnnaBridge | 171:3a7713b1edbc | 287 | /**************************************************************************//** |
AnnaBridge | 171:3a7713b1edbc | 288 | * @defgroup EFM32PG1B200F256IM48_Peripheral_Base EFM32PG1B200F256IM48 Peripheral Memory Map |
AnnaBridge | 171:3a7713b1edbc | 289 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 290 | *****************************************************************************/ |
AnnaBridge | 171:3a7713b1edbc | 291 | |
AnnaBridge | 171:3a7713b1edbc | 292 | #define MSC_BASE (0x400E0000UL) /**< MSC base address */ |
AnnaBridge | 171:3a7713b1edbc | 293 | #define EMU_BASE (0x400E3000UL) /**< EMU base address */ |
AnnaBridge | 171:3a7713b1edbc | 294 | #define RMU_BASE (0x400E5000UL) /**< RMU base address */ |
AnnaBridge | 171:3a7713b1edbc | 295 | #define CMU_BASE (0x400E4000UL) /**< CMU base address */ |
AnnaBridge | 171:3a7713b1edbc | 296 | #define CRYPTO_BASE (0x400F0000UL) /**< CRYPTO base address */ |
AnnaBridge | 171:3a7713b1edbc | 297 | #define GPIO_BASE (0x4000A000UL) /**< GPIO base address */ |
AnnaBridge | 171:3a7713b1edbc | 298 | #define PRS_BASE (0x400E6000UL) /**< PRS base address */ |
AnnaBridge | 171:3a7713b1edbc | 299 | #define LDMA_BASE (0x400E2000UL) /**< LDMA base address */ |
AnnaBridge | 171:3a7713b1edbc | 300 | #define FPUEH_BASE (0x400E1000UL) /**< FPUEH base address */ |
AnnaBridge | 171:3a7713b1edbc | 301 | #define GPCRC_BASE (0x4001C000UL) /**< GPCRC base address */ |
AnnaBridge | 171:3a7713b1edbc | 302 | #define TIMER0_BASE (0x40018000UL) /**< TIMER0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 303 | #define TIMER1_BASE (0x40018400UL) /**< TIMER1 base address */ |
AnnaBridge | 171:3a7713b1edbc | 304 | #define USART0_BASE (0x40010000UL) /**< USART0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 305 | #define USART1_BASE (0x40010400UL) /**< USART1 base address */ |
AnnaBridge | 171:3a7713b1edbc | 306 | #define LEUART0_BASE (0x4004A000UL) /**< LEUART0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 307 | #define LETIMER0_BASE (0x40046000UL) /**< LETIMER0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 308 | #define CRYOTIMER_BASE (0x4001E000UL) /**< CRYOTIMER base address */ |
AnnaBridge | 171:3a7713b1edbc | 309 | #define PCNT0_BASE (0x4004E000UL) /**< PCNT0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 310 | #define I2C0_BASE (0x4000C000UL) /**< I2C0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 311 | #define ADC0_BASE (0x40002000UL) /**< ADC0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 312 | #define ACMP0_BASE (0x40000000UL) /**< ACMP0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 313 | #define ACMP1_BASE (0x40000400UL) /**< ACMP1 base address */ |
AnnaBridge | 171:3a7713b1edbc | 314 | #define IDAC0_BASE (0x40006000UL) /**< IDAC0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 315 | #define RTCC_BASE (0x40042000UL) /**< RTCC base address */ |
AnnaBridge | 171:3a7713b1edbc | 316 | #define WDOG0_BASE (0x40052000UL) /**< WDOG0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 317 | #define DEVINFO_BASE (0x0FE081B0UL) /**< DEVINFO base address */ |
AnnaBridge | 171:3a7713b1edbc | 318 | #define ROMTABLE_BASE (0xE00FFFD0UL) /**< ROMTABLE base address */ |
AnnaBridge | 171:3a7713b1edbc | 319 | #define LOCKBITS_BASE (0x0FE04000UL) /**< Lock-bits page base address */ |
AnnaBridge | 171:3a7713b1edbc | 320 | #define USERDATA_BASE (0x0FE00000UL) /**< User data page base address */ |
AnnaBridge | 171:3a7713b1edbc | 321 | |
AnnaBridge | 171:3a7713b1edbc | 322 | /** @} End of group EFM32PG1B200F256IM48_Peripheral_Base */ |
AnnaBridge | 171:3a7713b1edbc | 323 | |
AnnaBridge | 171:3a7713b1edbc | 324 | /**************************************************************************//** |
AnnaBridge | 171:3a7713b1edbc | 325 | * @defgroup EFM32PG1B200F256IM48_Peripheral_Declaration EFM32PG1B200F256IM48 Peripheral Declarations |
AnnaBridge | 171:3a7713b1edbc | 326 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 327 | *****************************************************************************/ |
AnnaBridge | 171:3a7713b1edbc | 328 | |
AnnaBridge | 171:3a7713b1edbc | 329 | #define MSC ((MSC_TypeDef *) MSC_BASE) /**< MSC base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 330 | #define EMU ((EMU_TypeDef *) EMU_BASE) /**< EMU base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 331 | #define RMU ((RMU_TypeDef *) RMU_BASE) /**< RMU base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 332 | #define CMU ((CMU_TypeDef *) CMU_BASE) /**< CMU base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 333 | #define CRYPTO ((CRYPTO_TypeDef *) CRYPTO_BASE) /**< CRYPTO base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 334 | #define GPIO ((GPIO_TypeDef *) GPIO_BASE) /**< GPIO base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 335 | #define PRS ((PRS_TypeDef *) PRS_BASE) /**< PRS base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 336 | #define LDMA ((LDMA_TypeDef *) LDMA_BASE) /**< LDMA base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 337 | #define FPUEH ((FPUEH_TypeDef *) FPUEH_BASE) /**< FPUEH base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 338 | #define GPCRC ((GPCRC_TypeDef *) GPCRC_BASE) /**< GPCRC base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 339 | #define TIMER0 ((TIMER_TypeDef *) TIMER0_BASE) /**< TIMER0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 340 | #define TIMER1 ((TIMER_TypeDef *) TIMER1_BASE) /**< TIMER1 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 341 | #define USART0 ((USART_TypeDef *) USART0_BASE) /**< USART0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 342 | #define USART1 ((USART_TypeDef *) USART1_BASE) /**< USART1 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 343 | #define LEUART0 ((LEUART_TypeDef *) LEUART0_BASE) /**< LEUART0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 344 | #define LETIMER0 ((LETIMER_TypeDef *) LETIMER0_BASE) /**< LETIMER0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 345 | #define CRYOTIMER ((CRYOTIMER_TypeDef *) CRYOTIMER_BASE) /**< CRYOTIMER base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 346 | #define PCNT0 ((PCNT_TypeDef *) PCNT0_BASE) /**< PCNT0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 347 | #define I2C0 ((I2C_TypeDef *) I2C0_BASE) /**< I2C0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 348 | #define ADC0 ((ADC_TypeDef *) ADC0_BASE) /**< ADC0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 349 | #define ACMP0 ((ACMP_TypeDef *) ACMP0_BASE) /**< ACMP0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 350 | #define ACMP1 ((ACMP_TypeDef *) ACMP1_BASE) /**< ACMP1 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 351 | #define IDAC0 ((IDAC_TypeDef *) IDAC0_BASE) /**< IDAC0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 352 | #define RTCC ((RTCC_TypeDef *) RTCC_BASE) /**< RTCC base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 353 | #define WDOG0 ((WDOG_TypeDef *) WDOG0_BASE) /**< WDOG0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 354 | #define DEVINFO ((DEVINFO_TypeDef *) DEVINFO_BASE) /**< DEVINFO base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 355 | #define ROMTABLE ((ROMTABLE_TypeDef *) ROMTABLE_BASE) /**< ROMTABLE base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 356 | |
AnnaBridge | 171:3a7713b1edbc | 357 | /** @} End of group EFM32PG1B200F256IM48_Peripheral_Declaration */ |
AnnaBridge | 171:3a7713b1edbc | 358 | |
AnnaBridge | 171:3a7713b1edbc | 359 | /**************************************************************************//** |
AnnaBridge | 171:3a7713b1edbc | 360 | * @defgroup EFM32PG1B200F256IM48_Peripheral_Offsets EFM32PG1B200F256IM48 Peripheral Offsets |
AnnaBridge | 171:3a7713b1edbc | 361 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 362 | *****************************************************************************/ |
AnnaBridge | 171:3a7713b1edbc | 363 | |
AnnaBridge | 171:3a7713b1edbc | 364 | #define TIMER_OFFSET 0x400 /**< Offset in bytes between TIMER instances */ |
AnnaBridge | 171:3a7713b1edbc | 365 | #define USART_OFFSET 0x400 /**< Offset in bytes between USART instances */ |
AnnaBridge | 171:3a7713b1edbc | 366 | #define LEUART_OFFSET 0x400 /**< Offset in bytes between LEUART instances */ |
AnnaBridge | 171:3a7713b1edbc | 367 | #define LETIMER_OFFSET 0x400 /**< Offset in bytes between LETIMER instances */ |
AnnaBridge | 171:3a7713b1edbc | 368 | #define PCNT_OFFSET 0x400 /**< Offset in bytes between PCNT instances */ |
AnnaBridge | 171:3a7713b1edbc | 369 | #define I2C_OFFSET 0x400 /**< Offset in bytes between I2C instances */ |
AnnaBridge | 171:3a7713b1edbc | 370 | #define ADC_OFFSET 0x400 /**< Offset in bytes between ADC instances */ |
AnnaBridge | 171:3a7713b1edbc | 371 | #define ACMP_OFFSET 0x400 /**< Offset in bytes between ACMP instances */ |
AnnaBridge | 171:3a7713b1edbc | 372 | #define IDAC_OFFSET 0x400 /**< Offset in bytes between IDAC instances */ |
AnnaBridge | 171:3a7713b1edbc | 373 | #define WDOG_OFFSET 0x400 /**< Offset in bytes between WDOG instances */ |
AnnaBridge | 171:3a7713b1edbc | 374 | |
AnnaBridge | 171:3a7713b1edbc | 375 | /** @} End of group EFM32PG1B200F256IM48_Peripheral_Offsets */ |
AnnaBridge | 171:3a7713b1edbc | 376 | |
AnnaBridge | 171:3a7713b1edbc | 377 | |
AnnaBridge | 171:3a7713b1edbc | 378 | /**************************************************************************//** |
AnnaBridge | 171:3a7713b1edbc | 379 | * @defgroup EFM32PG1B200F256IM48_BitFields EFM32PG1B200F256IM48 Bit Fields |
AnnaBridge | 171:3a7713b1edbc | 380 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 381 | *****************************************************************************/ |
AnnaBridge | 171:3a7713b1edbc | 382 | |
AnnaBridge | 171:3a7713b1edbc | 383 | #include "efm32pg1b_prs_signals.h" |
AnnaBridge | 171:3a7713b1edbc | 384 | #include "efm32pg1b_dmareq.h" |
AnnaBridge | 171:3a7713b1edbc | 385 | |
AnnaBridge | 171:3a7713b1edbc | 386 | /**************************************************************************//** |
AnnaBridge | 171:3a7713b1edbc | 387 | * @defgroup EFM32PG1B200F256IM48_UNLOCK EFM32PG1B200F256IM48 Unlock Codes |
AnnaBridge | 171:3a7713b1edbc | 388 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 389 | *****************************************************************************/ |
AnnaBridge | 171:3a7713b1edbc | 390 | #define MSC_UNLOCK_CODE 0x1B71 /**< MSC unlock code */ |
AnnaBridge | 171:3a7713b1edbc | 391 | #define EMU_UNLOCK_CODE 0xADE8 /**< EMU unlock code */ |
AnnaBridge | 171:3a7713b1edbc | 392 | #define RMU_UNLOCK_CODE 0xE084 /**< RMU unlock code */ |
AnnaBridge | 171:3a7713b1edbc | 393 | #define CMU_UNLOCK_CODE 0x580E /**< CMU unlock code */ |
AnnaBridge | 171:3a7713b1edbc | 394 | #define GPIO_UNLOCK_CODE 0xA534 /**< GPIO unlock code */ |
AnnaBridge | 171:3a7713b1edbc | 395 | #define TIMER_UNLOCK_CODE 0xCE80 /**< TIMER unlock code */ |
AnnaBridge | 171:3a7713b1edbc | 396 | #define RTCC_UNLOCK_CODE 0xAEE8 /**< RTCC unlock code */ |
AnnaBridge | 171:3a7713b1edbc | 397 | |
AnnaBridge | 171:3a7713b1edbc | 398 | /** @} End of group EFM32PG1B200F256IM48_UNLOCK */ |
AnnaBridge | 171:3a7713b1edbc | 399 | |
AnnaBridge | 171:3a7713b1edbc | 400 | /** @} End of group EFM32PG1B200F256IM48_BitFields */ |
AnnaBridge | 171:3a7713b1edbc | 401 | |
AnnaBridge | 171:3a7713b1edbc | 402 | /**************************************************************************//** |
AnnaBridge | 171:3a7713b1edbc | 403 | * @defgroup EFM32PG1B200F256IM48_Alternate_Function EFM32PG1B200F256IM48 Alternate Function |
AnnaBridge | 171:3a7713b1edbc | 404 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 405 | *****************************************************************************/ |
AnnaBridge | 171:3a7713b1edbc | 406 | |
AnnaBridge | 171:3a7713b1edbc | 407 | #include "efm32pg1b_af_ports.h" |
AnnaBridge | 171:3a7713b1edbc | 408 | #include "efm32pg1b_af_pins.h" |
AnnaBridge | 171:3a7713b1edbc | 409 | |
AnnaBridge | 171:3a7713b1edbc | 410 | /** @} End of group EFM32PG1B200F256IM48_Alternate_Function */ |
AnnaBridge | 171:3a7713b1edbc | 411 | |
AnnaBridge | 171:3a7713b1edbc | 412 | /**************************************************************************//** |
AnnaBridge | 171:3a7713b1edbc | 413 | * @brief Set the value of a bit field within a register. |
AnnaBridge | 171:3a7713b1edbc | 414 | * |
AnnaBridge | 171:3a7713b1edbc | 415 | * @param REG |
AnnaBridge | 171:3a7713b1edbc | 416 | * The register to update |
AnnaBridge | 171:3a7713b1edbc | 417 | * @param MASK |
AnnaBridge | 171:3a7713b1edbc | 418 | * The mask for the bit field to update |
AnnaBridge | 171:3a7713b1edbc | 419 | * @param VALUE |
AnnaBridge | 171:3a7713b1edbc | 420 | * The value to write to the bit field |
AnnaBridge | 171:3a7713b1edbc | 421 | * @param OFFSET |
AnnaBridge | 171:3a7713b1edbc | 422 | * The number of bits that the field is offset within the register. |
AnnaBridge | 171:3a7713b1edbc | 423 | * 0 (zero) means LSB. |
AnnaBridge | 171:3a7713b1edbc | 424 | *****************************************************************************/ |
AnnaBridge | 171:3a7713b1edbc | 425 | #define SET_BIT_FIELD(REG, MASK, VALUE, OFFSET) \ |
AnnaBridge | 171:3a7713b1edbc | 426 | REG = ((REG) &~(MASK)) | (((VALUE) << (OFFSET)) & (MASK)); |
AnnaBridge | 171:3a7713b1edbc | 427 | |
AnnaBridge | 171:3a7713b1edbc | 428 | /** @} End of group EFM32PG1B200F256IM48 */ |
AnnaBridge | 171:3a7713b1edbc | 429 | |
AnnaBridge | 171:3a7713b1edbc | 430 | /** @} End of group Parts */ |
AnnaBridge | 171:3a7713b1edbc | 431 | |
AnnaBridge | 171:3a7713b1edbc | 432 | #ifdef __cplusplus |
AnnaBridge | 171:3a7713b1edbc | 433 | } |
AnnaBridge | 171:3a7713b1edbc | 434 | #endif |
AnnaBridge | 171:3a7713b1edbc | 435 | #endif /* EFM32PG1B200F256IM48_H */ |