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_dmactrl.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_dmactrl.h |
Kojto | 98:8ab26030e058 | 3 | * @brief EFM32ZG_DMACTRL 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 | 113:f141b2784e32 | 32 | /**************************************************************************//** |
Kojto | 113:f141b2784e32 | 33 | * @addtogroup Parts |
Kojto | 113:f141b2784e32 | 34 | * @{ |
Kojto | 113:f141b2784e32 | 35 | ******************************************************************************/ |
Kojto | 98:8ab26030e058 | 36 | |
Kojto | 98:8ab26030e058 | 37 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 38 | * @defgroup EFM32ZG_DMACTRL_BitFields |
Kojto | 98:8ab26030e058 | 39 | * @{ |
Kojto | 98:8ab26030e058 | 40 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 41 | #define _DMA_CTRL_DST_INC_MASK 0xC0000000UL /**< Data increment for destination, bit mask */ |
Kojto | 98:8ab26030e058 | 42 | #define _DMA_CTRL_DST_INC_SHIFT 30 /**< Data increment for destination, shift value */ |
Kojto | 98:8ab26030e058 | 43 | #define _DMA_CTRL_DST_INC_BYTE 0x00 /**< Byte/8-bit increment */ |
Kojto | 98:8ab26030e058 | 44 | #define _DMA_CTRL_DST_INC_HALFWORD 0x01 /**< Half word/16-bit increment */ |
Kojto | 98:8ab26030e058 | 45 | #define _DMA_CTRL_DST_INC_WORD 0x02 /**< Word/32-bit increment */ |
Kojto | 98:8ab26030e058 | 46 | #define _DMA_CTRL_DST_INC_NONE 0x03 /**< No increment */ |
Kojto | 98:8ab26030e058 | 47 | #define DMA_CTRL_DST_INC_BYTE 0x00000000UL /**< Byte/8-bit increment */ |
Kojto | 98:8ab26030e058 | 48 | #define DMA_CTRL_DST_INC_HALFWORD 0x40000000UL /**< Half word/16-bit increment */ |
Kojto | 98:8ab26030e058 | 49 | #define DMA_CTRL_DST_INC_WORD 0x80000000UL /**< Word/32-bit increment */ |
Kojto | 98:8ab26030e058 | 50 | #define DMA_CTRL_DST_INC_NONE 0xC0000000UL /**< No increment */ |
Kojto | 98:8ab26030e058 | 51 | #define _DMA_CTRL_DST_SIZE_MASK 0x30000000UL /**< Data size for destination - MUST be the same as source, bit mask */ |
Kojto | 98:8ab26030e058 | 52 | #define _DMA_CTRL_DST_SIZE_SHIFT 28 /**< Data size for destination - MUST be the same as source, shift value */ |
Kojto | 98:8ab26030e058 | 53 | #define _DMA_CTRL_DST_SIZE_BYTE 0x00 /**< Byte/8-bit data size */ |
Kojto | 98:8ab26030e058 | 54 | #define _DMA_CTRL_DST_SIZE_HALFWORD 0x01 /**< Half word/16-bit data size */ |
Kojto | 98:8ab26030e058 | 55 | #define _DMA_CTRL_DST_SIZE_WORD 0x02 /**< Word/32-bit data size */ |
Kojto | 98:8ab26030e058 | 56 | #define _DMA_CTRL_DST_SIZE_RSVD 0x03 /**< Reserved */ |
Kojto | 98:8ab26030e058 | 57 | #define DMA_CTRL_DST_SIZE_BYTE 0x00000000UL /**< Byte/8-bit data size */ |
Kojto | 98:8ab26030e058 | 58 | #define DMA_CTRL_DST_SIZE_HALFWORD 0x10000000UL /**< Half word/16-bit data size */ |
Kojto | 98:8ab26030e058 | 59 | #define DMA_CTRL_DST_SIZE_WORD 0x20000000UL /**< Word/32-bit data size */ |
Kojto | 98:8ab26030e058 | 60 | #define DMA_CTRL_DST_SIZE_RSVD 0x30000000UL /**< Reserved - do not use */ |
Kojto | 98:8ab26030e058 | 61 | #define _DMA_CTRL_SRC_INC_MASK 0x0C000000UL /**< Data increment for source, bit mask */ |
Kojto | 98:8ab26030e058 | 62 | #define _DMA_CTRL_SRC_INC_SHIFT 26 /**< Data increment for source, shift value */ |
Kojto | 98:8ab26030e058 | 63 | #define _DMA_CTRL_SRC_INC_BYTE 0x00 /**< Byte/8-bit increment */ |
Kojto | 98:8ab26030e058 | 64 | #define _DMA_CTRL_SRC_INC_HALFWORD 0x01 /**< Half word/16-bit increment */ |
Kojto | 98:8ab26030e058 | 65 | #define _DMA_CTRL_SRC_INC_WORD 0x02 /**< Word/32-bit increment */ |
Kojto | 98:8ab26030e058 | 66 | #define _DMA_CTRL_SRC_INC_NONE 0x03 /**< No increment */ |
Kojto | 98:8ab26030e058 | 67 | #define DMA_CTRL_SRC_INC_BYTE 0x00000000UL /**< Byte/8-bit increment */ |
Kojto | 98:8ab26030e058 | 68 | #define DMA_CTRL_SRC_INC_HALFWORD 0x04000000UL /**< Half word/16-bit increment */ |
Kojto | 98:8ab26030e058 | 69 | #define DMA_CTRL_SRC_INC_WORD 0x08000000UL /**< Word/32-bit increment */ |
Kojto | 98:8ab26030e058 | 70 | #define DMA_CTRL_SRC_INC_NONE 0x0C000000UL /**< No increment */ |
Kojto | 98:8ab26030e058 | 71 | #define _DMA_CTRL_SRC_SIZE_MASK 0x03000000UL /**< Data size for source - MUST be the same as destination, bit mask */ |
Kojto | 98:8ab26030e058 | 72 | #define _DMA_CTRL_SRC_SIZE_SHIFT 24 /**< Data size for source - MUST be the same as destination, shift value */ |
Kojto | 98:8ab26030e058 | 73 | #define _DMA_CTRL_SRC_SIZE_BYTE 0x00 /**< Byte/8-bit data size */ |
Kojto | 98:8ab26030e058 | 74 | #define _DMA_CTRL_SRC_SIZE_HALFWORD 0x01 /**< Half word/16-bit data size */ |
Kojto | 98:8ab26030e058 | 75 | #define _DMA_CTRL_SRC_SIZE_WORD 0x02 /**< Word/32-bit data size */ |
Kojto | 98:8ab26030e058 | 76 | #define _DMA_CTRL_SRC_SIZE_RSVD 0x03 /**< Reserved */ |
Kojto | 98:8ab26030e058 | 77 | #define DMA_CTRL_SRC_SIZE_BYTE 0x00000000UL /**< Byte/8-bit data size */ |
Kojto | 98:8ab26030e058 | 78 | #define DMA_CTRL_SRC_SIZE_HALFWORD 0x01000000UL /**< Half word/16-bit data size */ |
Kojto | 98:8ab26030e058 | 79 | #define DMA_CTRL_SRC_SIZE_WORD 0x02000000UL /**< Word/32-bit data size */ |
Kojto | 98:8ab26030e058 | 80 | #define DMA_CTRL_SRC_SIZE_RSVD 0x03000000UL /**< Reserved - do not use */ |
Kojto | 98:8ab26030e058 | 81 | #define _DMA_CTRL_DST_PROT_CTRL_MASK 0x00E00000UL /**< Protection flag for destination, bit mask */ |
Kojto | 98:8ab26030e058 | 82 | #define _DMA_CTRL_DST_PROT_CTRL_SHIFT 21 /**< Protection flag for destination, shift value */ |
Kojto | 98:8ab26030e058 | 83 | #define DMA_CTRL_DST_PROT_PRIVILEGED 0x00200000UL /**< Privileged mode for destination */ |
Kojto | 98:8ab26030e058 | 84 | #define DMA_CTRL_DST_PROT_NON_PRIVILEGED 0x00000000UL /**< Non-privileged mode for estination */ |
Kojto | 98:8ab26030e058 | 85 | #define _DMA_CTRL_SRC_PROT_CTRL_MASK 0x001C0000UL /**< Protection flag for source, bit mask */ |
Kojto | 98:8ab26030e058 | 86 | #define _DMA_CTRL_SRC_PROT_CTRL_SHIFT 18 /**< Protection flag for source, shift value */ |
Kojto | 98:8ab26030e058 | 87 | #define DMA_CTRL_SRC_PROT_PRIVILEGED 0x00040000UL /**< Privileged mode for destination */ |
Kojto | 98:8ab26030e058 | 88 | #define DMA_CTRL_SRC_PROT_NON_PRIVILEGED 0x00000000UL /**< Non-privileged mode for estination */ |
Kojto | 98:8ab26030e058 | 89 | #define _DMA_CTRL_PROT_NON_PRIVILEGED 0x00 /**< Protection bits to indicate non-privileged access */ |
Kojto | 98:8ab26030e058 | 90 | #define _DMA_CTRL_PROT_PRIVILEGED 0x01 /**< Protection bits to indicate privileged access */ |
Kojto | 98:8ab26030e058 | 91 | #define _DMA_CTRL_R_POWER_MASK 0x0003C000UL /**< DMA arbitration mask */ |
Kojto | 98:8ab26030e058 | 92 | #define _DMA_CTRL_R_POWER_SHIFT 14 /**< Number of DMA cycles before controller does new arbitration in 2^R */ |
Kojto | 98:8ab26030e058 | 93 | #define _DMA_CTRL_R_POWER_1 0x00 /**< Arbitrate after each transfer */ |
Kojto | 98:8ab26030e058 | 94 | #define _DMA_CTRL_R_POWER_2 0x01 /**< Arbitrate after every 2 transfers */ |
Kojto | 98:8ab26030e058 | 95 | #define _DMA_CTRL_R_POWER_4 0x02 /**< Arbitrate after every 4 transfers */ |
Kojto | 98:8ab26030e058 | 96 | #define _DMA_CTRL_R_POWER_8 0x03 /**< Arbitrate after every 8 transfers */ |
Kojto | 98:8ab26030e058 | 97 | #define _DMA_CTRL_R_POWER_16 0x04 /**< Arbitrate after every 16 transfers */ |
Kojto | 98:8ab26030e058 | 98 | #define _DMA_CTRL_R_POWER_32 0x05 /**< Arbitrate after every 32 transfers */ |
Kojto | 98:8ab26030e058 | 99 | #define _DMA_CTRL_R_POWER_64 0x06 /**< Arbitrate after every 64 transfers */ |
Kojto | 98:8ab26030e058 | 100 | #define _DMA_CTRL_R_POWER_128 0x07 /**< Arbitrate after every 128 transfers */ |
Kojto | 98:8ab26030e058 | 101 | #define _DMA_CTRL_R_POWER_256 0x08 /**< Arbitrate after every 256 transfers */ |
Kojto | 98:8ab26030e058 | 102 | #define _DMA_CTRL_R_POWER_512 0x09 /**< Arbitrate after every 512 transfers */ |
Kojto | 98:8ab26030e058 | 103 | #define _DMA_CTRL_R_POWER_1024 0x0a /**< Arbitrate after every 1024 transfers */ |
Kojto | 98:8ab26030e058 | 104 | #define DMA_CTRL_R_POWER_1 0x00000000UL /**< Arbitrate after each transfer */ |
Kojto | 98:8ab26030e058 | 105 | #define DMA_CTRL_R_POWER_2 0x00004000UL /**< Arbitrate after every 2 transfers */ |
Kojto | 98:8ab26030e058 | 106 | #define DMA_CTRL_R_POWER_4 0x00008000UL /**< Arbitrate after every 4 transfers */ |
Kojto | 98:8ab26030e058 | 107 | #define DMA_CTRL_R_POWER_8 0x0000c000UL /**< Arbitrate after every 8 transfers */ |
Kojto | 98:8ab26030e058 | 108 | #define DMA_CTRL_R_POWER_16 0x00010000UL /**< Arbitrate after every 16 transfers */ |
Kojto | 98:8ab26030e058 | 109 | #define DMA_CTRL_R_POWER_32 0x00014000UL /**< Arbitrate after every 32 transfers */ |
Kojto | 98:8ab26030e058 | 110 | #define DMA_CTRL_R_POWER_64 0x00018000UL /**< Arbitrate after every 64 transfers */ |
Kojto | 98:8ab26030e058 | 111 | #define DMA_CTRL_R_POWER_128 0x0001c000UL /**< Arbitrate after every 128 transfers */ |
Kojto | 98:8ab26030e058 | 112 | #define DMA_CTRL_R_POWER_256 0x00020000UL /**< Arbitrate after every 256 transfers */ |
Kojto | 98:8ab26030e058 | 113 | #define DMA_CTRL_R_POWER_512 0x00024000UL /**< Arbitrate after every 512 transfers */ |
Kojto | 98:8ab26030e058 | 114 | #define DMA_CTRL_R_POWER_1024 0x00028000UL /**< Arbitrate after every 1024 transfers */ |
Kojto | 98:8ab26030e058 | 115 | #define _DMA_CTRL_N_MINUS_1_MASK 0x00003FF0UL /**< Number of DMA transfers minus 1, bit mask. See PL230 documentation */ |
Kojto | 98:8ab26030e058 | 116 | #define _DMA_CTRL_N_MINUS_1_SHIFT 4 /**< Number of DMA transfers minus 1, shift mask. See PL230 documentation */ |
Kojto | 98:8ab26030e058 | 117 | #define _DMA_CTRL_NEXT_USEBURST_MASK 0x00000008UL /**< DMA useburst_set[C] is 1 when using scatter-gather DMA and using alternate data */ |
Kojto | 98:8ab26030e058 | 118 | #define _DMA_CTRL_NEXT_USEBURST_SHIFT 3 /**< DMA useburst shift */ |
Kojto | 98:8ab26030e058 | 119 | #define _DMA_CTRL_CYCLE_CTRL_MASK 0x00000007UL /**< DMA Cycle control bit mask - basic/auto/ping-poing/scath-gath */ |
Kojto | 98:8ab26030e058 | 120 | #define _DMA_CTRL_CYCLE_CTRL_SHIFT 0 /**< DMA Cycle control bit shift */ |
Kojto | 98:8ab26030e058 | 121 | #define _DMA_CTRL_CYCLE_CTRL_INVALID 0x00 /**< Invalid cycle type */ |
Kojto | 98:8ab26030e058 | 122 | #define _DMA_CTRL_CYCLE_CTRL_BASIC 0x01 /**< Basic cycle type */ |
Kojto | 98:8ab26030e058 | 123 | #define _DMA_CTRL_CYCLE_CTRL_AUTO 0x02 /**< Auto cycle type */ |
Kojto | 98:8ab26030e058 | 124 | #define _DMA_CTRL_CYCLE_CTRL_PINGPONG 0x03 /**< PingPong cycle type */ |
Kojto | 98:8ab26030e058 | 125 | #define _DMA_CTRL_CYCLE_CTRL_MEM_SCATTER_GATHER 0x04 /**< Memory scatter gather cycle type */ |
Kojto | 98:8ab26030e058 | 126 | #define _DMA_CTRL_CYCLE_CTRL_MEM_SCATTER_GATHER_ALT 0x05 /**< Memory scatter gather using alternate structure */ |
Kojto | 98:8ab26030e058 | 127 | #define _DMA_CTRL_CYCLE_CTRL_PER_SCATTER_GATHER 0x06 /**< Peripheral scatter gather cycle type */ |
Kojto | 98:8ab26030e058 | 128 | #define _DMA_CTRL_CYCLE_CTRL_PER_SCATTER_GATHER_ALT 0x07 /**< Peripheral scatter gather cycle type using alternate structure */ |
Kojto | 98:8ab26030e058 | 129 | #define DMA_CTRL_CYCLE_CTRL_INVALID 0x00000000UL /**< Invalid cycle type */ |
Kojto | 98:8ab26030e058 | 130 | #define DMA_CTRL_CYCLE_CTRL_BASIC 0x00000001UL /**< Basic cycle type */ |
Kojto | 98:8ab26030e058 | 131 | #define DMA_CTRL_CYCLE_CTRL_AUTO 0x00000002UL /**< Auto cycle type */ |
Kojto | 98:8ab26030e058 | 132 | #define DMA_CTRL_CYCLE_CTRL_PINGPONG 0x00000003UL /**< PingPong cycle type */ |
Kojto | 98:8ab26030e058 | 133 | #define DMA_CTRL_CYCLE_CTRL_MEM_SCATTER_GATHER 0x000000004UL /**< Memory scatter gather cycle type */ |
Kojto | 98:8ab26030e058 | 134 | #define DMA_CTRL_CYCLE_CTRL_MEM_SCATTER_GATHER_ALT 0x000000005UL /**< Memory scatter gather using alternate structure */ |
Kojto | 98:8ab26030e058 | 135 | #define DMA_CTRL_CYCLE_CTRL_PER_SCATTER_GATHER 0x000000006UL /**< Peripheral scatter gather cycle type */ |
Kojto | 98:8ab26030e058 | 136 | #define DMA_CTRL_CYCLE_CTRL_PER_SCATTER_GATHER_ALT 0x000000007UL /**< Peripheral scatter gather cycle type using alternate structure */ |
Kojto | 98:8ab26030e058 | 137 | |
Kojto | 98:8ab26030e058 | 138 | /** @} End of group EFM32ZG_DMA */ |
Kojto | 113:f141b2784e32 | 139 | /** @} End of group Parts */ |
Kojto | 98:8ab26030e058 | 140 |