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_EFM32HG_STK3400/efm32hg_mtb.h@121:672067c3ada4, 2016-04-14 (annotated)
- Committer:
- elijahorr
- Date:
- Thu Apr 14 07:28:54 2016 +0000
- Revision:
- 121:672067c3ada4
- Parent:
- 113:f141b2784e32
.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 98:8ab26030e058 | 1 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 2 | * @file efm32hg_mtb.h |
Kojto | 98:8ab26030e058 | 3 | * @brief EFM32HG_MTB 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 EFM32HG_MTB |
Kojto | 98:8ab26030e058 | 38 | * @{ |
Kojto | 98:8ab26030e058 | 39 | * @brief EFM32HG_MTB Register Declaration |
Kojto | 98:8ab26030e058 | 40 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 41 | typedef struct |
Kojto | 98:8ab26030e058 | 42 | { |
Kojto | 98:8ab26030e058 | 43 | __IO uint32_t POSITION; /**< MTB Trace Position Register. */ |
Kojto | 98:8ab26030e058 | 44 | __IO uint32_t MASTER; /**< MTB Trace Control Register */ |
Kojto | 98:8ab26030e058 | 45 | __IO uint32_t FLOW; /**< MTB Trace Flow Register */ |
Kojto | 98:8ab26030e058 | 46 | __IO uint32_t BASE; /**< MTB Trace Base Register */ |
Kojto | 98:8ab26030e058 | 47 | } MTB_TypeDef; /** @} */ |
Kojto | 98:8ab26030e058 | 48 | |
Kojto | 98:8ab26030e058 | 49 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 50 | * @defgroup EFM32HG_MTB_BitFields |
Kojto | 98:8ab26030e058 | 51 | * @{ |
Kojto | 98:8ab26030e058 | 52 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 53 | |
Kojto | 98:8ab26030e058 | 54 | /* Bit fields for MTB POSITION */ |
Kojto | 98:8ab26030e058 | 55 | #define _MTB_POSITION_RESETVALUE 0x00000000UL /**< Default value for MTB_POSITION */ |
Kojto | 98:8ab26030e058 | 56 | #define _MTB_POSITION_MASK 0xFFFFFFFCUL /**< Mask for MTB_POSITION */ |
Kojto | 98:8ab26030e058 | 57 | #define MTB_POSITION_WRAP (0x1UL << 2) /**< Trace wrap bit. */ |
Kojto | 98:8ab26030e058 | 58 | #define _MTB_POSITION_WRAP_SHIFT 2 /**< Shift value for MTB_WRAP */ |
Kojto | 98:8ab26030e058 | 59 | #define _MTB_POSITION_WRAP_MASK 0x4UL /**< Bit mask for MTB_WRAP */ |
Kojto | 98:8ab26030e058 | 60 | #define _MTB_POSITION_WRAP_DEFAULT 0x00000000UL /**< Mode DEFAULT for MTB_POSITION */ |
Kojto | 98:8ab26030e058 | 61 | #define MTB_POSITION_WRAP_DEFAULT (_MTB_POSITION_WRAP_DEFAULT << 2) /**< Shifted mode DEFAULT for MTB_POSITION */ |
Kojto | 98:8ab26030e058 | 62 | #define _MTB_POSITION_POINTER_SHIFT 3 /**< Shift value for MTB_POINTER */ |
Kojto | 98:8ab26030e058 | 63 | #define _MTB_POSITION_POINTER_MASK 0xFFFFFFF8UL /**< Bit mask for MTB_POINTER */ |
Kojto | 98:8ab26030e058 | 64 | #define _MTB_POSITION_POINTER_DEFAULT 0x00000000UL /**< Mode DEFAULT for MTB_POSITION */ |
Kojto | 98:8ab26030e058 | 65 | #define MTB_POSITION_POINTER_DEFAULT (_MTB_POSITION_POINTER_DEFAULT << 3) /**< Shifted mode DEFAULT for MTB_POSITION */ |
Kojto | 98:8ab26030e058 | 66 | |
Kojto | 98:8ab26030e058 | 67 | /* Bit fields for MTB MASTER */ |
Kojto | 98:8ab26030e058 | 68 | #define _MTB_MASTER_RESETVALUE 0x00000000UL /**< Default value for MTB_MASTER */ |
Kojto | 98:8ab26030e058 | 69 | #define _MTB_MASTER_MASK 0x8000027FUL /**< Mask for MTB_MASTER */ |
Kojto | 98:8ab26030e058 | 70 | #define _MTB_MASTER_MASK_SHIFT 0 /**< Shift value for MTB_MASK */ |
Kojto | 98:8ab26030e058 | 71 | #define _MTB_MASTER_MASK_MASK 0x1FUL /**< Bit mask for MTB_MASK */ |
Kojto | 98:8ab26030e058 | 72 | #define _MTB_MASTER_MASK_DEFAULT 0x00000000UL /**< Mode DEFAULT for MTB_MASTER */ |
Kojto | 98:8ab26030e058 | 73 | #define MTB_MASTER_MASK_DEFAULT (_MTB_MASTER_MASK_DEFAULT << 0) /**< Shifted mode DEFAULT for MTB_MASTER */ |
Kojto | 98:8ab26030e058 | 74 | #define MTB_MASTER_TSTARTEN (0x1UL << 5) /**< Trace start input enable. */ |
Kojto | 98:8ab26030e058 | 75 | #define _MTB_MASTER_TSTARTEN_SHIFT 5 /**< Shift value for MTB_TSTARTEN */ |
Kojto | 98:8ab26030e058 | 76 | #define _MTB_MASTER_TSTARTEN_MASK 0x20UL /**< Bit mask for MTB_TSTARTEN */ |
Kojto | 98:8ab26030e058 | 77 | #define _MTB_MASTER_TSTARTEN_DEFAULT 0x00000000UL /**< Mode DEFAULT for MTB_MASTER */ |
Kojto | 98:8ab26030e058 | 78 | #define MTB_MASTER_TSTARTEN_DEFAULT (_MTB_MASTER_TSTARTEN_DEFAULT << 5) /**< Shifted mode DEFAULT for MTB_MASTER */ |
Kojto | 98:8ab26030e058 | 79 | #define MTB_MASTER_TSTOPEN (0x1UL << 6) /**< Trace stop input enable. */ |
Kojto | 98:8ab26030e058 | 80 | #define _MTB_MASTER_TSTOPEN_SHIFT 6 /**< Shift value for MTB_TSTOPEN */ |
Kojto | 98:8ab26030e058 | 81 | #define _MTB_MASTER_TSTOPEN_MASK 0x40UL /**< Bit mask for MTB_TSTOPEN */ |
Kojto | 98:8ab26030e058 | 82 | #define _MTB_MASTER_TSTOPEN_DEFAULT 0x00000000UL /**< Mode DEFAULT for MTB_MASTER */ |
Kojto | 98:8ab26030e058 | 83 | #define MTB_MASTER_TSTOPEN_DEFAULT (_MTB_MASTER_TSTOPEN_DEFAULT << 6) /**< Shifted mode DEFAULT for MTB_MASTER */ |
Kojto | 98:8ab26030e058 | 84 | #define MTB_MASTER_HALTREQ (0x1UL << 9) /**< Halt request bit. */ |
Kojto | 98:8ab26030e058 | 85 | #define _MTB_MASTER_HALTREQ_SHIFT 9 /**< Shift value for MTB_HALTREQ */ |
Kojto | 98:8ab26030e058 | 86 | #define _MTB_MASTER_HALTREQ_MASK 0x200UL /**< Bit mask for MTB_HALTREQ */ |
Kojto | 98:8ab26030e058 | 87 | #define _MTB_MASTER_HALTREQ_DEFAULT 0x00000000UL /**< Mode DEFAULT for MTB_MASTER */ |
Kojto | 98:8ab26030e058 | 88 | #define MTB_MASTER_HALTREQ_DEFAULT (_MTB_MASTER_HALTREQ_DEFAULT << 9) /**< Shifted mode DEFAULT for MTB_MASTER */ |
Kojto | 98:8ab26030e058 | 89 | #define MTB_MASTER_EN (0x1UL << 31) /**< Main trace enable bit. */ |
Kojto | 98:8ab26030e058 | 90 | #define _MTB_MASTER_EN_SHIFT 31 /**< Shift value for MTB_EN */ |
Kojto | 98:8ab26030e058 | 91 | #define _MTB_MASTER_EN_MASK 0x80000000UL /**< Bit mask for MTB_EN */ |
Kojto | 98:8ab26030e058 | 92 | #define _MTB_MASTER_EN_DEFAULT 0x00000000UL /**< Mode DEFAULT for MTB_MASTER */ |
Kojto | 98:8ab26030e058 | 93 | #define MTB_MASTER_EN_DEFAULT (_MTB_MASTER_EN_DEFAULT << 31) /**< Shifted mode DEFAULT for MTB_MASTER */ |
Kojto | 98:8ab26030e058 | 94 | |
Kojto | 98:8ab26030e058 | 95 | /* Bit fields for MTB FLOW */ |
Kojto | 98:8ab26030e058 | 96 | #define _MTB_FLOW_RESETVALUE 0x00000000UL /**< Default value for MTB_FLOW */ |
Kojto | 98:8ab26030e058 | 97 | #define _MTB_FLOW_MASK 0xFFFFFFFBUL /**< Mask for MTB_FLOW */ |
Kojto | 98:8ab26030e058 | 98 | #define MTB_FLOW_AUTOSTOP (0x1UL << 0) /**< AUTOSTOP enable. */ |
Kojto | 98:8ab26030e058 | 99 | #define _MTB_FLOW_AUTOSTOP_SHIFT 0 /**< Shift value for MTB_AUTOSTOP */ |
Kojto | 98:8ab26030e058 | 100 | #define _MTB_FLOW_AUTOSTOP_MASK 0x1UL /**< Bit mask for MTB_AUTOSTOP */ |
Kojto | 98:8ab26030e058 | 101 | #define _MTB_FLOW_AUTOSTOP_DEFAULT 0x00000000UL /**< Mode DEFAULT for MTB_FLOW */ |
Kojto | 98:8ab26030e058 | 102 | #define MTB_FLOW_AUTOSTOP_DEFAULT (_MTB_FLOW_AUTOSTOP_DEFAULT << 0) /**< Shifted mode DEFAULT for MTB_FLOW */ |
Kojto | 98:8ab26030e058 | 103 | #define MTB_FLOW_AUTOHALT (0x1UL << 1) /**< AUTOHALT enable. */ |
Kojto | 98:8ab26030e058 | 104 | #define _MTB_FLOW_AUTOHALT_SHIFT 1 /**< Shift value for MTB_AUTOHALT */ |
Kojto | 98:8ab26030e058 | 105 | #define _MTB_FLOW_AUTOHALT_MASK 0x2UL /**< Bit mask for MTB_AUTOHALT */ |
Kojto | 98:8ab26030e058 | 106 | #define _MTB_FLOW_AUTOHALT_DEFAULT 0x00000000UL /**< Mode DEFAULT for MTB_FLOW */ |
Kojto | 98:8ab26030e058 | 107 | #define MTB_FLOW_AUTOHALT_DEFAULT (_MTB_FLOW_AUTOHALT_DEFAULT << 1) /**< Shifted mode DEFAULT for MTB_FLOW */ |
Kojto | 98:8ab26030e058 | 108 | #define _MTB_FLOW_WATERMARK_SHIFT 3 /**< Shift value for MTB_WATERMARK */ |
Kojto | 98:8ab26030e058 | 109 | #define _MTB_FLOW_WATERMARK_MASK 0xFFFFFFF8UL /**< Bit mask for MTB_WATERMARK */ |
Kojto | 98:8ab26030e058 | 110 | #define _MTB_FLOW_WATERMARK_DEFAULT 0x00000000UL /**< Mode DEFAULT for MTB_FLOW */ |
Kojto | 98:8ab26030e058 | 111 | #define MTB_FLOW_WATERMARK_DEFAULT (_MTB_FLOW_WATERMARK_DEFAULT << 3) /**< Shifted mode DEFAULT for MTB_FLOW */ |
Kojto | 98:8ab26030e058 | 112 | |
Kojto | 98:8ab26030e058 | 113 | /* Bit fields for MTB BASE */ |
Kojto | 98:8ab26030e058 | 114 | #define _MTB_BASE_RESETVALUE 0x20000000UL /**< Default value for MTB_BASE */ |
Kojto | 98:8ab26030e058 | 115 | #define _MTB_BASE_MASK 0xFFFFFFFFUL /**< Mask for MTB_BASE */ |
Kojto | 98:8ab26030e058 | 116 | #define _MTB_BASE_BASE_SHIFT 0 /**< Shift value for MTB_BASE */ |
Kojto | 98:8ab26030e058 | 117 | #define _MTB_BASE_BASE_MASK 0xFFFFFFFFUL /**< Bit mask for MTB_BASE */ |
Kojto | 98:8ab26030e058 | 118 | #define _MTB_BASE_BASE_DEFAULT 0x20000000UL /**< Mode DEFAULT for MTB_BASE */ |
Kojto | 98:8ab26030e058 | 119 | #define MTB_BASE_BASE_DEFAULT (_MTB_BASE_BASE_DEFAULT << 0) /**< Shifted mode DEFAULT for MTB_BASE */ |
Kojto | 98:8ab26030e058 | 120 | |
Kojto | 98:8ab26030e058 | 121 | /** @} End of group EFM32HG_MTB */ |
Kojto | 113:f141b2784e32 | 122 | /** @} End of group Parts */ |
Kojto | 98:8ab26030e058 | 123 |