Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.
Dependents: 1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB
Fork of mbed by
TARGET_EFM32ZG_STK3200/efm32zg_devinfo.h@113:f141b2784e32, 2016-02-02 (annotated)
- Committer:
- Kojto
- Date:
- Tue Feb 02 14:43:35 2016 +0000
- Revision:
- 113:f141b2784e32
- Parent:
- 98:8ab26030e058
Release 113 of the mbed library
Changes:
- new targets - Silabs Perl Gecko, TY51822
- Silabs - emlib update to 4.1.0, various bugfixes as result
- STM B96B_F446VE - add async serial support
- Freescale KLXX - rtc lock fix
- LPC11U68 and LPC1549 - pwm bugfixes - duty cycle
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 98:8ab26030e058 | 1 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 2 | * @file efm32zg_devinfo.h |
Kojto | 98:8ab26030e058 | 3 | * @brief EFM32ZG_DEVINFO register and bit field definitions |
Kojto | 113:f141b2784e32 | 4 | * @version 4.2.0 |
Kojto | 98:8ab26030e058 | 5 | ****************************************************************************** |
Kojto | 98:8ab26030e058 | 6 | * @section License |
Kojto | 113:f141b2784e32 | 7 | * <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b> |
Kojto | 98:8ab26030e058 | 8 | ****************************************************************************** |
Kojto | 98:8ab26030e058 | 9 | * |
Kojto | 98:8ab26030e058 | 10 | * Permission is granted to anyone to use this software for any purpose, |
Kojto | 98:8ab26030e058 | 11 | * including commercial applications, and to alter it and redistribute it |
Kojto | 98:8ab26030e058 | 12 | * freely, subject to the following restrictions: |
Kojto | 98:8ab26030e058 | 13 | * |
Kojto | 98:8ab26030e058 | 14 | * 1. The origin of this software must not be misrepresented; you must not |
Kojto | 98:8ab26030e058 | 15 | * claim that you wrote the original software.@n |
Kojto | 98:8ab26030e058 | 16 | * 2. Altered source versions must be plainly marked as such, and must not be |
Kojto | 98:8ab26030e058 | 17 | * misrepresented as being the original software.@n |
Kojto | 98:8ab26030e058 | 18 | * 3. This notice may not be removed or altered from any source distribution. |
Kojto | 98:8ab26030e058 | 19 | * |
Kojto | 98:8ab26030e058 | 20 | * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Laboratories, Inc. |
Kojto | 98:8ab26030e058 | 21 | * has no obligation to support this Software. Silicon Laboratories, Inc. is |
Kojto | 98:8ab26030e058 | 22 | * providing the Software "AS IS", with no express or implied warranties of any |
Kojto | 98:8ab26030e058 | 23 | * kind, including, but not limited to, any implied warranties of |
Kojto | 98:8ab26030e058 | 24 | * merchantability or fitness for any particular purpose or warranties against |
Kojto | 98:8ab26030e058 | 25 | * infringement of any proprietary rights of a third party. |
Kojto | 98:8ab26030e058 | 26 | * |
Kojto | 98:8ab26030e058 | 27 | * Silicon Laboratories, Inc. will not be liable for any consequential, |
Kojto | 98:8ab26030e058 | 28 | * incidental, or special damages, or any other relief, or for any claim by |
Kojto | 98:8ab26030e058 | 29 | * any third party, arising from your use of this Software. |
Kojto | 98:8ab26030e058 | 30 | * |
Kojto | 98:8ab26030e058 | 31 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 32 | /**************************************************************************//** |
Kojto | 113:f141b2784e32 | 33 | * @addtogroup Parts |
Kojto | 113:f141b2784e32 | 34 | * @{ |
Kojto | 113:f141b2784e32 | 35 | ******************************************************************************/ |
Kojto | 113:f141b2784e32 | 36 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 37 | * @defgroup EFM32ZG_DEVINFO |
Kojto | 98:8ab26030e058 | 38 | * @{ |
Kojto | 98:8ab26030e058 | 39 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 40 | typedef struct |
Kojto | 98:8ab26030e058 | 41 | { |
Kojto | 98:8ab26030e058 | 42 | __I uint32_t CAL; /**< Calibration temperature and checksum */ |
Kojto | 98:8ab26030e058 | 43 | __I uint32_t ADC0CAL0; /**< ADC0 Calibration register 0 */ |
Kojto | 98:8ab26030e058 | 44 | __I uint32_t ADC0CAL1; /**< ADC0 Calibration register 1 */ |
Kojto | 98:8ab26030e058 | 45 | __I uint32_t ADC0CAL2; /**< ADC0 Calibration register 2 */ |
Kojto | 98:8ab26030e058 | 46 | uint32_t RESERVED0[2]; /**< Reserved */ |
Kojto | 98:8ab26030e058 | 47 | __I uint32_t IDAC0CAL0; /**< IDAC0 calibration register */ |
Kojto | 98:8ab26030e058 | 48 | uint32_t RESERVED1[2]; /**< Reserved */ |
Kojto | 98:8ab26030e058 | 49 | __I uint32_t AUXHFRCOCAL0; /**< AUXHFRCO calibration register 0 */ |
Kojto | 98:8ab26030e058 | 50 | __I uint32_t AUXHFRCOCAL1; /**< AUXHFRCO calibration register 1 */ |
Kojto | 98:8ab26030e058 | 51 | __I uint32_t HFRCOCAL0; /**< HFRCO calibration register 0 */ |
Kojto | 98:8ab26030e058 | 52 | __I uint32_t HFRCOCAL1; /**< HFRCO calibration register 1 */ |
Kojto | 98:8ab26030e058 | 53 | __I uint32_t MEMINFO; /**< Memory information */ |
Kojto | 98:8ab26030e058 | 54 | uint32_t RESERVED2[2]; /**< Reserved */ |
Kojto | 98:8ab26030e058 | 55 | __I uint32_t UNIQUEL; /**< Low 32 bits of device unique number */ |
Kojto | 98:8ab26030e058 | 56 | __I uint32_t UNIQUEH; /**< High 32 bits of device unique number */ |
Kojto | 98:8ab26030e058 | 57 | __I uint32_t MSIZE; /**< Flash and SRAM Memory size in KiloBytes */ |
Kojto | 98:8ab26030e058 | 58 | __I uint32_t PART; /**< Part description */ |
Kojto | 98:8ab26030e058 | 59 | } DEVINFO_TypeDef; /** @} */ |
Kojto | 98:8ab26030e058 | 60 | |
Kojto | 98:8ab26030e058 | 61 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 62 | * @defgroup EFM32ZG_DEVINFO_BitFields |
Kojto | 98:8ab26030e058 | 63 | * @{ |
Kojto | 98:8ab26030e058 | 64 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 65 | /* Bit fields for EFM32ZG_DEVINFO */ |
Kojto | 98:8ab26030e058 | 66 | #define _DEVINFO_CAL_CRC_MASK 0x0000FFFFUL /**< Integrity CRC checksum mask */ |
Kojto | 98:8ab26030e058 | 67 | #define _DEVINFO_CAL_CRC_SHIFT 0 /**< Integrity CRC checksum shift */ |
Kojto | 98:8ab26030e058 | 68 | #define _DEVINFO_CAL_TEMP_MASK 0x00FF0000UL /**< Calibration temperature, DegC, mask */ |
Kojto | 98:8ab26030e058 | 69 | #define _DEVINFO_CAL_TEMP_SHIFT 16 /**< Calibration temperature shift */ |
Kojto | 98:8ab26030e058 | 70 | #define _DEVINFO_ADC0CAL0_1V25_GAIN_MASK 0x00007F00UL /**< Gain for 1V25 reference, mask */ |
Kojto | 98:8ab26030e058 | 71 | #define _DEVINFO_ADC0CAL0_1V25_GAIN_SHIFT 8 /**< Gain for 1V25 reference, shift */ |
Kojto | 98:8ab26030e058 | 72 | #define _DEVINFO_ADC0CAL0_1V25_OFFSET_MASK 0x0000007FUL /**< Offset for 1V25 reference, mask */ |
Kojto | 98:8ab26030e058 | 73 | #define _DEVINFO_ADC0CAL0_1V25_OFFSET_SHIFT 0 /**< Offset for 1V25 reference, shift */ |
Kojto | 98:8ab26030e058 | 74 | #define _DEVINFO_ADC0CAL0_2V5_GAIN_MASK 0x7F000000UL /**< Gain for 2V5 reference, mask */ |
Kojto | 98:8ab26030e058 | 75 | #define _DEVINFO_ADC0CAL0_2V5_GAIN_SHIFT 24 /**< Gain for 2V5 reference, shift */ |
Kojto | 98:8ab26030e058 | 76 | #define _DEVINFO_ADC0CAL0_2V5_OFFSET_MASK 0x007F0000UL /**< Offset for 2V5 reference, mask */ |
Kojto | 98:8ab26030e058 | 77 | #define _DEVINFO_ADC0CAL0_2V5_OFFSET_SHIFT 16 /**< Offset for 2V5 reference, shift */ |
Kojto | 98:8ab26030e058 | 78 | #define _DEVINFO_ADC0CAL1_VDD_GAIN_MASK 0x00007F00UL /**< Gain for VDD reference, mask */ |
Kojto | 98:8ab26030e058 | 79 | #define _DEVINFO_ADC0CAL1_VDD_GAIN_SHIFT 8 /**< Gain for VDD reference, shift */ |
Kojto | 98:8ab26030e058 | 80 | #define _DEVINFO_ADC0CAL1_VDD_OFFSET_MASK 0x0000007FUL /**< Offset for VDD reference, mask */ |
Kojto | 98:8ab26030e058 | 81 | #define _DEVINFO_ADC0CAL1_VDD_OFFSET_SHIFT 0 /**< Offset for VDD reference, shift */ |
Kojto | 98:8ab26030e058 | 82 | #define _DEVINFO_ADC0CAL1_5VDIFF_GAIN_MASK 0x7F000000UL /**< Gain 5VDIFF for 5VDIFF reference, mask */ |
Kojto | 98:8ab26030e058 | 83 | #define _DEVINFO_ADC0CAL1_5VDIFF_GAIN_SHIFT 24 /**< Gain for 5VDIFF reference, mask */ |
Kojto | 98:8ab26030e058 | 84 | #define _DEVINFO_ADC0CAL1_5VDIFF_OFFSET_MASK 0x007F0000UL /**< Offset for 5VDIFF reference, mask */ |
Kojto | 98:8ab26030e058 | 85 | #define _DEVINFO_ADC0CAL1_5VDIFF_OFFSET_SHIFT 16 /**< Offset for 5VDIFF reference, shift */ |
Kojto | 98:8ab26030e058 | 86 | #define _DEVINFO_ADC0CAL2_2XVDDVSS_OFFSET_MASK 0x0000007FUL /**< Offset for 2XVDDVSS reference, mask */ |
Kojto | 98:8ab26030e058 | 87 | #define _DEVINFO_ADC0CAL2_2XVDDVSS_OFFSET_SHIFT 0 /**< Offset for 2XVDDVSS reference, shift */ |
Kojto | 98:8ab26030e058 | 88 | #define _DEVINFO_ADC0CAL2_TEMP1V25_MASK 0xFFF00000UL /**< Temperature reading at 1V25 reference, mask */ |
Kojto | 98:8ab26030e058 | 89 | #define _DEVINFO_ADC0CAL2_TEMP1V25_SHIFT 20 /**< Temperature reading at 1V25 reference, DegC */ |
Kojto | 98:8ab26030e058 | 90 | #define _DEVINFO_IDAC0CAL0_RANGE0_MASK 0x000000FFUL /**< Current range 0 tuning value for IDAC0 mask */ |
Kojto | 98:8ab26030e058 | 91 | #define _DEVINFO_IDAC0CAL0_RANGE0_SHIFT 0 /**< Current range 0 tuning value for IDAC0 shift */ |
Kojto | 98:8ab26030e058 | 92 | #define _DEVINFO_IDAC0CAL0_RANGE1_MASK 0x0000FF00UL /**< Current range 1 tuning value for IDAC0 mask */ |
Kojto | 98:8ab26030e058 | 93 | #define _DEVINFO_IDAC0CAL0_RANGE1_SHIFT 8 /**< Current range 1 tuning value for IDAC0 shift */ |
Kojto | 98:8ab26030e058 | 94 | #define _DEVINFO_IDAC0CAL0_RANGE2_MASK 0x00FF0000UL /**< Current range 2 tuning value for IDAC0 mask */ |
Kojto | 98:8ab26030e058 | 95 | #define _DEVINFO_IDAC0CAL0_RANGE2_SHIFT 16 /**< Current range 2 tuning value for IDAC0 shift */ |
Kojto | 98:8ab26030e058 | 96 | #define _DEVINFO_IDAC0CAL0_RANGE3_MASK 0xFF000000UL /**< Current range 3 tuning value for IDAC0 mask */ |
Kojto | 98:8ab26030e058 | 97 | #define _DEVINFO_IDAC0CAL0_RANGE3_SHIFT 24 /**< Current range 3 tuning value for IDAC0 shift */ |
Kojto | 98:8ab26030e058 | 98 | #define _DEVINFO_AUXHFRCOCAL0_BAND1_MASK 0x000000FFUL /**< 1MHz tuning value for AUXHFRCO, mask */ |
Kojto | 98:8ab26030e058 | 99 | #define _DEVINFO_AUXHFRCOCAL0_BAND1_SHIFT 0 /**< 1MHz tuning value for AUXHFRCO, shift */ |
Kojto | 98:8ab26030e058 | 100 | #define _DEVINFO_AUXHFRCOCAL0_BAND7_MASK 0x0000FF00UL /**< 7MHz tuning value for AUXHFRCO, mask */ |
Kojto | 98:8ab26030e058 | 101 | #define _DEVINFO_AUXHFRCOCAL0_BAND7_SHIFT 8 /**< 7MHz tuning value for AUXHFRCO, shift */ |
Kojto | 98:8ab26030e058 | 102 | #define _DEVINFO_AUXHFRCOCAL0_BAND11_MASK 0x00FF0000UL /**< 11MHz tuning value for AUXHFRCO, mask */ |
Kojto | 98:8ab26030e058 | 103 | #define _DEVINFO_AUXHFRCOCAL0_BAND11_SHIFT 16 /**< 11MHz tuning value for AUXHFRCO, shift */ |
Kojto | 98:8ab26030e058 | 104 | #define _DEVINFO_AUXHFRCOCAL0_BAND14_MASK 0xFF000000UL /**< 14MHz tuning value for AUXHFRCO, mask */ |
Kojto | 98:8ab26030e058 | 105 | #define _DEVINFO_AUXHFRCOCAL0_BAND14_SHIFT 24 /**< 14MHz tuning value for AUXHFRCO, shift */ |
Kojto | 98:8ab26030e058 | 106 | #define _DEVINFO_AUXHFRCOCAL1_BAND21_MASK 0x000000FFUL /**< 21MHz tuning value for AUXHFRCO, mask */ |
Kojto | 98:8ab26030e058 | 107 | #define _DEVINFO_AUXHFRCOCAL1_BAND21_SHIFT 0 /**< 21MHz tuning value for AUXHFRCO, shift */ |
Kojto | 98:8ab26030e058 | 108 | #define _DEVINFO_HFRCOCAL0_BAND1_MASK 0x000000FFUL /**< 1MHz tuning value for HFRCO, mask */ |
Kojto | 98:8ab26030e058 | 109 | #define _DEVINFO_HFRCOCAL0_BAND1_SHIFT 0 /**< 1MHz tuning value for HFRCO, shift */ |
Kojto | 98:8ab26030e058 | 110 | #define _DEVINFO_HFRCOCAL0_BAND7_MASK 0x0000FF00UL /**< 7MHz tuning value for HFRCO, mask */ |
Kojto | 98:8ab26030e058 | 111 | #define _DEVINFO_HFRCOCAL0_BAND7_SHIFT 8 /**< 7MHz tuning value for HFRCO, shift */ |
Kojto | 98:8ab26030e058 | 112 | #define _DEVINFO_HFRCOCAL0_BAND11_MASK 0x00FF0000UL /**< 11MHz tuning value for HFRCO, mask */ |
Kojto | 98:8ab26030e058 | 113 | #define _DEVINFO_HFRCOCAL0_BAND11_SHIFT 16 /**< 11MHz tuning value for HFRCO, shift */ |
Kojto | 98:8ab26030e058 | 114 | #define _DEVINFO_HFRCOCAL0_BAND14_MASK 0xFF000000UL /**< 14MHz tuning value for HFRCO, mask */ |
Kojto | 98:8ab26030e058 | 115 | #define _DEVINFO_HFRCOCAL0_BAND14_SHIFT 24 /**< 14MHz tuning value for HFRCO, shift */ |
Kojto | 98:8ab26030e058 | 116 | #define _DEVINFO_HFRCOCAL1_BAND21_MASK 0x000000FFUL /**< 21MHz tuning value for HFRCO, mask */ |
Kojto | 98:8ab26030e058 | 117 | #define _DEVINFO_HFRCOCAL1_BAND21_SHIFT 0 /**< 21MHz tuning value for HFRCO, shift */ |
Kojto | 98:8ab26030e058 | 118 | #define _DEVINFO_MEMINFO_FLASH_PAGE_SIZE_MASK 0xFF000000UL /**< Flash page size (refer to ref.man for encoding) mask */ |
Kojto | 98:8ab26030e058 | 119 | #define _DEVINFO_MEMINFO_FLASH_PAGE_SIZE_SHIFT 24 /**< Flash page size shift */ |
Kojto | 98:8ab26030e058 | 120 | #define _DEVINFO_UNIQUEL_MASK 0xFFFFFFFFUL /**< Lower part of 64-bit device unique number */ |
Kojto | 98:8ab26030e058 | 121 | #define _DEVINFO_UNIQUEL_SHIFT 0 /**< Unique Low 32-bit shift */ |
Kojto | 98:8ab26030e058 | 122 | #define _DEVINFO_UNIQUEH_MASK 0xFFFFFFFFUL /**< High part of 64-bit device unique number */ |
Kojto | 98:8ab26030e058 | 123 | #define _DEVINFO_UNIQUEH_SHIFT 0 /**< Unique High 32-bit shift */ |
Kojto | 98:8ab26030e058 | 124 | #define _DEVINFO_MSIZE_SRAM_MASK 0xFFFF0000UL /**< Flash size in kilobytes */ |
Kojto | 98:8ab26030e058 | 125 | #define _DEVINFO_MSIZE_SRAM_SHIFT 16 /**< Bit position for flash size */ |
Kojto | 98:8ab26030e058 | 126 | #define _DEVINFO_MSIZE_FLASH_MASK 0x0000FFFFUL /**< SRAM size in kilobytes */ |
Kojto | 98:8ab26030e058 | 127 | #define _DEVINFO_MSIZE_FLASH_SHIFT 0 /**< Bit position for SRAM size */ |
Kojto | 98:8ab26030e058 | 128 | #define _DEVINFO_PART_PROD_REV_MASK 0xFF000000UL /**< Production revision */ |
Kojto | 98:8ab26030e058 | 129 | #define _DEVINFO_PART_PROD_REV_SHIFT 24 /**< Bit position for production revision */ |
Kojto | 98:8ab26030e058 | 130 | #define _DEVINFO_PART_DEVICE_FAMILY_MASK 0x00FF0000UL /**< Device Family, 0x47 for Gecko */ |
Kojto | 98:8ab26030e058 | 131 | #define _DEVINFO_PART_DEVICE_FAMILY_SHIFT 16 /**< Bit position for device family */ |
Kojto | 113:f141b2784e32 | 132 | /* Legacy family #defines */ |
Kojto | 98:8ab26030e058 | 133 | #define _DEVINFO_PART_DEVICE_FAMILY_G 71 /**< Gecko Device Family */ |
Kojto | 98:8ab26030e058 | 134 | #define _DEVINFO_PART_DEVICE_FAMILY_GG 72 /**< Giant Gecko Device Family */ |
Kojto | 98:8ab26030e058 | 135 | #define _DEVINFO_PART_DEVICE_FAMILY_TG 73 /**< Tiny Gecko Device Family */ |
Kojto | 98:8ab26030e058 | 136 | #define _DEVINFO_PART_DEVICE_FAMILY_LG 74 /**< Leopard Gecko Device Family */ |
Kojto | 98:8ab26030e058 | 137 | #define _DEVINFO_PART_DEVICE_FAMILY_WG 75 /**< Wonder Gecko Device Family */ |
Kojto | 98:8ab26030e058 | 138 | #define _DEVINFO_PART_DEVICE_FAMILY_ZG 76 /**< Zero Gecko Device Family */ |
Kojto | 113:f141b2784e32 | 139 | #define _DEVINFO_PART_DEVICE_FAMILY_HG 77 /**< Happy Gecko Device Family */ |
Kojto | 113:f141b2784e32 | 140 | /* New style family #defines */ |
Kojto | 113:f141b2784e32 | 141 | #define _DEVINFO_PART_DEVICE_FAMILY_EFM32G 71 /**< Gecko Device Family */ |
Kojto | 113:f141b2784e32 | 142 | #define _DEVINFO_PART_DEVICE_FAMILY_EFM32GG 72 /**< Giant Gecko Device Family */ |
Kojto | 113:f141b2784e32 | 143 | #define _DEVINFO_PART_DEVICE_FAMILY_EFM32TG 73 /**< Tiny Gecko Device Family */ |
Kojto | 113:f141b2784e32 | 144 | #define _DEVINFO_PART_DEVICE_FAMILY_EFM32LG 74 /**< Leopard Gecko Device Family */ |
Kojto | 113:f141b2784e32 | 145 | #define _DEVINFO_PART_DEVICE_FAMILY_EFM32WG 75 /**< Wonder Gecko Device Family */ |
Kojto | 113:f141b2784e32 | 146 | #define _DEVINFO_PART_DEVICE_FAMILY_EFM32ZG 76 /**< Zero Gecko Device Family */ |
Kojto | 113:f141b2784e32 | 147 | #define _DEVINFO_PART_DEVICE_FAMILY_EFM32HG 77 /**< Happy Gecko Device Family */ |
Kojto | 113:f141b2784e32 | 148 | #define _DEVINFO_PART_DEVICE_FAMILY_EZR32WG 120 /**< EZR Wonder Gecko Device Family */ |
Kojto | 113:f141b2784e32 | 149 | #define _DEVINFO_PART_DEVICE_FAMILY_EZR32LG 121 /**< EZR Leopard Gecko Device Family */ |
Kojto | 113:f141b2784e32 | 150 | #define _DEVINFO_PART_DEVICE_FAMILY_EZR32HG 122 /**< EZR Happy Gecko Device Family */ |
Kojto | 98:8ab26030e058 | 151 | #define _DEVINFO_PART_DEVICE_NUMBER_MASK 0x0000FFFFUL /**< Device number */ |
Kojto | 98:8ab26030e058 | 152 | #define _DEVINFO_PART_DEVICE_NUMBER_SHIFT 0 /**< Bit position for device number */ |
Kojto | 98:8ab26030e058 | 153 | |
Kojto | 98:8ab26030e058 | 154 | /** @} End of group EFM32ZG_DEVINFO */ |
Kojto | 113:f141b2784e32 | 155 | /** @} End of group Parts */ |
Kojto | 98:8ab26030e058 | 156 |