Repostiory containing DAPLink source code with Reset Pin workaround for HANI_IOT board.
Upstream: https://github.com/ARMmbed/DAPLink
source/hic_hal/maxim/max32620/gpio_regs.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 | * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved. |
Pawel Zarembski |
0:01f31e923fe2 | 3 | * |
Pawel Zarembski |
0:01f31e923fe2 | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
Pawel Zarembski |
0:01f31e923fe2 | 5 | * copy of this software and associated documentation files (the "Software"), |
Pawel Zarembski |
0:01f31e923fe2 | 6 | * to deal in the Software without restriction, including without limitation |
Pawel Zarembski |
0:01f31e923fe2 | 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
Pawel Zarembski |
0:01f31e923fe2 | 8 | * and/or sell copies of the Software, and to permit persons to whom the |
Pawel Zarembski |
0:01f31e923fe2 | 9 | * Software is furnished to do so, subject to the following conditions: |
Pawel Zarembski |
0:01f31e923fe2 | 10 | * |
Pawel Zarembski |
0:01f31e923fe2 | 11 | * The above copyright notice and this permission notice shall be included |
Pawel Zarembski |
0:01f31e923fe2 | 12 | * in all copies or substantial portions of the Software. |
Pawel Zarembski |
0:01f31e923fe2 | 13 | * |
Pawel Zarembski |
0:01f31e923fe2 | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
Pawel Zarembski |
0:01f31e923fe2 | 15 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
Pawel Zarembski |
0:01f31e923fe2 | 16 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
Pawel Zarembski |
0:01f31e923fe2 | 17 | * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES |
Pawel Zarembski |
0:01f31e923fe2 | 18 | * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
Pawel Zarembski |
0:01f31e923fe2 | 19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
Pawel Zarembski |
0:01f31e923fe2 | 20 | * OTHER DEALINGS IN THE SOFTWARE. |
Pawel Zarembski |
0:01f31e923fe2 | 21 | * |
Pawel Zarembski |
0:01f31e923fe2 | 22 | * Except as contained in this notice, the name of Maxim Integrated |
Pawel Zarembski |
0:01f31e923fe2 | 23 | * Products, Inc. shall not be used except as stated in the Maxim Integrated |
Pawel Zarembski |
0:01f31e923fe2 | 24 | * Products, Inc. Branding Policy. |
Pawel Zarembski |
0:01f31e923fe2 | 25 | * |
Pawel Zarembski |
0:01f31e923fe2 | 26 | * The mere transfer of this software does not imply any licenses |
Pawel Zarembski |
0:01f31e923fe2 | 27 | * of trade secrets, proprietary technology, copyrights, patents, |
Pawel Zarembski |
0:01f31e923fe2 | 28 | * trademarks, maskwork rights, or any other form of intellectual |
Pawel Zarembski |
0:01f31e923fe2 | 29 | * property whatsoever. Maxim Integrated Products, Inc. retains all |
Pawel Zarembski |
0:01f31e923fe2 | 30 | * ownership rights. |
Pawel Zarembski |
0:01f31e923fe2 | 31 | * |
Pawel Zarembski |
0:01f31e923fe2 | 32 | ******************************************************************************/ |
Pawel Zarembski |
0:01f31e923fe2 | 33 | |
Pawel Zarembski |
0:01f31e923fe2 | 34 | #ifndef _MXC_GPIO_REGS_H_ |
Pawel Zarembski |
0:01f31e923fe2 | 35 | #define _MXC_GPIO_REGS_H_ |
Pawel Zarembski |
0:01f31e923fe2 | 36 | |
Pawel Zarembski |
0:01f31e923fe2 | 37 | #ifdef __cplusplus |
Pawel Zarembski |
0:01f31e923fe2 | 38 | extern "C" { |
Pawel Zarembski |
0:01f31e923fe2 | 39 | #endif |
Pawel Zarembski |
0:01f31e923fe2 | 40 | |
Pawel Zarembski |
0:01f31e923fe2 | 41 | #include <stdint.h> |
Pawel Zarembski |
0:01f31e923fe2 | 42 | |
Pawel Zarembski |
0:01f31e923fe2 | 43 | /* |
Pawel Zarembski |
0:01f31e923fe2 | 44 | If types are not defined elsewhere (CMSIS) define them here |
Pawel Zarembski |
0:01f31e923fe2 | 45 | */ |
Pawel Zarembski |
0:01f31e923fe2 | 46 | #ifndef __IO |
Pawel Zarembski |
0:01f31e923fe2 | 47 | #define __IO volatile |
Pawel Zarembski |
0:01f31e923fe2 | 48 | #endif |
Pawel Zarembski |
0:01f31e923fe2 | 49 | #ifndef __I |
Pawel Zarembski |
0:01f31e923fe2 | 50 | #define __I volatile const |
Pawel Zarembski |
0:01f31e923fe2 | 51 | #endif |
Pawel Zarembski |
0:01f31e923fe2 | 52 | #ifndef __O |
Pawel Zarembski |
0:01f31e923fe2 | 53 | #define __O volatile |
Pawel Zarembski |
0:01f31e923fe2 | 54 | #endif |
Pawel Zarembski |
0:01f31e923fe2 | 55 | #ifndef __R |
Pawel Zarembski |
0:01f31e923fe2 | 56 | #define __R volatile const |
Pawel Zarembski |
0:01f31e923fe2 | 57 | #endif |
Pawel Zarembski |
0:01f31e923fe2 | 58 | |
Pawel Zarembski |
0:01f31e923fe2 | 59 | |
Pawel Zarembski |
0:01f31e923fe2 | 60 | /* |
Pawel Zarembski |
0:01f31e923fe2 | 61 | Typedefed structure(s) for module registers (per instance or section) with direct 32-bit |
Pawel Zarembski |
0:01f31e923fe2 | 62 | access to each register in module. |
Pawel Zarembski |
0:01f31e923fe2 | 63 | */ |
Pawel Zarembski |
0:01f31e923fe2 | 64 | |
Pawel Zarembski |
0:01f31e923fe2 | 65 | /* Offset Register Description |
Pawel Zarembski |
0:01f31e923fe2 | 66 | ============= ============================================================================ */ |
Pawel Zarembski |
0:01f31e923fe2 | 67 | typedef struct { |
Pawel Zarembski |
0:01f31e923fe2 | 68 | __IO uint32_t rst_mode[16]; /* 0x0000-0x003C Port P[0..15] Default (Power-On Reset) Output Drive Mode */ |
Pawel Zarembski |
0:01f31e923fe2 | 69 | __IO uint32_t free[16]; /* 0x0040-0x007C Port P[0..15] Free for GPIO Operation Flags */ |
Pawel Zarembski |
0:01f31e923fe2 | 70 | __IO uint32_t out_mode[16]; /* 0x0080-0x00BC Port P[0..15] Output Drive Mode */ |
Pawel Zarembski |
0:01f31e923fe2 | 71 | __IO uint32_t out_val[16]; /* 0x00C0-0x00FC Port P[0..15] GPIO Output Value */ |
Pawel Zarembski |
0:01f31e923fe2 | 72 | __IO uint32_t func_sel[16]; /* 0x0100-0x013C Port P[0..15] GPIO Function Select */ |
Pawel Zarembski |
0:01f31e923fe2 | 73 | __IO uint32_t in_mode[16]; /* 0x0140-0x017C Port P[0..15] GPIO Input Monitoring Mode */ |
Pawel Zarembski |
0:01f31e923fe2 | 74 | __IO uint32_t in_val[16]; /* 0x0180-0x01BC Port P[0..15] GPIO Input Value */ |
Pawel Zarembski |
0:01f31e923fe2 | 75 | __IO uint32_t int_mode[16]; /* 0x01C0-0x01FC Port P[0..15] Interrupt Detection Mode */ |
Pawel Zarembski |
0:01f31e923fe2 | 76 | __IO uint32_t intfl[16]; /* 0x0200-0x023C Port P[0..15] Interrupt Flags */ |
Pawel Zarembski |
0:01f31e923fe2 | 77 | __IO uint32_t inten[16]; /* 0x0240-0x027C Port P[0..15] Interrupt Enables */ |
Pawel Zarembski |
0:01f31e923fe2 | 78 | } mxc_gpio_regs_t; |
Pawel Zarembski |
0:01f31e923fe2 | 79 | |
Pawel Zarembski |
0:01f31e923fe2 | 80 | |
Pawel Zarembski |
0:01f31e923fe2 | 81 | /* |
Pawel Zarembski |
0:01f31e923fe2 | 82 | Register offsets for module GPIO. |
Pawel Zarembski |
0:01f31e923fe2 | 83 | */ |
Pawel Zarembski |
0:01f31e923fe2 | 84 | |
Pawel Zarembski |
0:01f31e923fe2 | 85 | #define MXC_R_GPIO_OFFS_RST_MODE_P0 ((uint32_t)0x00000000UL) |
Pawel Zarembski |
0:01f31e923fe2 | 86 | #define MXC_R_GPIO_OFFS_RST_MODE_P1 ((uint32_t)0x00000004UL) |
Pawel Zarembski |
0:01f31e923fe2 | 87 | #define MXC_R_GPIO_OFFS_RST_MODE_P2 ((uint32_t)0x00000008UL) |
Pawel Zarembski |
0:01f31e923fe2 | 88 | #define MXC_R_GPIO_OFFS_RST_MODE_P3 ((uint32_t)0x0000000CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 89 | #define MXC_R_GPIO_OFFS_RST_MODE_P4 ((uint32_t)0x00000010UL) |
Pawel Zarembski |
0:01f31e923fe2 | 90 | #define MXC_R_GPIO_OFFS_RST_MODE_P5 ((uint32_t)0x00000014UL) |
Pawel Zarembski |
0:01f31e923fe2 | 91 | #define MXC_R_GPIO_OFFS_RST_MODE_P6 ((uint32_t)0x00000018UL) |
Pawel Zarembski |
0:01f31e923fe2 | 92 | #define MXC_R_GPIO_OFFS_RST_MODE_P7 ((uint32_t)0x0000001CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 93 | #define MXC_R_GPIO_OFFS_RST_MODE_P8 ((uint32_t)0x00000020UL) |
Pawel Zarembski |
0:01f31e923fe2 | 94 | #define MXC_R_GPIO_OFFS_RST_MODE_P9 ((uint32_t)0x00000024UL) |
Pawel Zarembski |
0:01f31e923fe2 | 95 | #define MXC_R_GPIO_OFFS_RST_MODE_P10 ((uint32_t)0x00000028UL) |
Pawel Zarembski |
0:01f31e923fe2 | 96 | #define MXC_R_GPIO_OFFS_RST_MODE_P11 ((uint32_t)0x0000002CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 97 | #define MXC_R_GPIO_OFFS_RST_MODE_P12 ((uint32_t)0x00000030UL) |
Pawel Zarembski |
0:01f31e923fe2 | 98 | #define MXC_R_GPIO_OFFS_RST_MODE_P13 ((uint32_t)0x00000034UL) |
Pawel Zarembski |
0:01f31e923fe2 | 99 | #define MXC_R_GPIO_OFFS_RST_MODE_P14 ((uint32_t)0x00000038UL) |
Pawel Zarembski |
0:01f31e923fe2 | 100 | #define MXC_R_GPIO_OFFS_RST_MODE_P15 ((uint32_t)0x0000003CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 101 | #define MXC_R_GPIO_OFFS_FREE_P0 ((uint32_t)0x00000040UL) |
Pawel Zarembski |
0:01f31e923fe2 | 102 | #define MXC_R_GPIO_OFFS_FREE_P1 ((uint32_t)0x00000044UL) |
Pawel Zarembski |
0:01f31e923fe2 | 103 | #define MXC_R_GPIO_OFFS_FREE_P2 ((uint32_t)0x00000048UL) |
Pawel Zarembski |
0:01f31e923fe2 | 104 | #define MXC_R_GPIO_OFFS_FREE_P3 ((uint32_t)0x0000004CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 105 | #define MXC_R_GPIO_OFFS_FREE_P4 ((uint32_t)0x00000050UL) |
Pawel Zarembski |
0:01f31e923fe2 | 106 | #define MXC_R_GPIO_OFFS_FREE_P5 ((uint32_t)0x00000054UL) |
Pawel Zarembski |
0:01f31e923fe2 | 107 | #define MXC_R_GPIO_OFFS_FREE_P6 ((uint32_t)0x00000058UL) |
Pawel Zarembski |
0:01f31e923fe2 | 108 | #define MXC_R_GPIO_OFFS_FREE_P7 ((uint32_t)0x0000005CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 109 | #define MXC_R_GPIO_OFFS_FREE_P8 ((uint32_t)0x00000060UL) |
Pawel Zarembski |
0:01f31e923fe2 | 110 | #define MXC_R_GPIO_OFFS_FREE_P9 ((uint32_t)0x00000064UL) |
Pawel Zarembski |
0:01f31e923fe2 | 111 | #define MXC_R_GPIO_OFFS_FREE_P10 ((uint32_t)0x00000068UL) |
Pawel Zarembski |
0:01f31e923fe2 | 112 | #define MXC_R_GPIO_OFFS_FREE_P11 ((uint32_t)0x0000006CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 113 | #define MXC_R_GPIO_OFFS_FREE_P12 ((uint32_t)0x00000070UL) |
Pawel Zarembski |
0:01f31e923fe2 | 114 | #define MXC_R_GPIO_OFFS_FREE_P13 ((uint32_t)0x00000074UL) |
Pawel Zarembski |
0:01f31e923fe2 | 115 | #define MXC_R_GPIO_OFFS_FREE_P14 ((uint32_t)0x00000078UL) |
Pawel Zarembski |
0:01f31e923fe2 | 116 | #define MXC_R_GPIO_OFFS_FREE_P15 ((uint32_t)0x0000007CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 117 | #define MXC_R_GPIO_OFFS_OUT_MODE_P0 ((uint32_t)0x00000080UL) |
Pawel Zarembski |
0:01f31e923fe2 | 118 | #define MXC_R_GPIO_OFFS_OUT_MODE_P1 ((uint32_t)0x00000084UL) |
Pawel Zarembski |
0:01f31e923fe2 | 119 | #define MXC_R_GPIO_OFFS_OUT_MODE_P2 ((uint32_t)0x00000088UL) |
Pawel Zarembski |
0:01f31e923fe2 | 120 | #define MXC_R_GPIO_OFFS_OUT_MODE_P3 ((uint32_t)0x0000008CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 121 | #define MXC_R_GPIO_OFFS_OUT_MODE_P4 ((uint32_t)0x00000090UL) |
Pawel Zarembski |
0:01f31e923fe2 | 122 | #define MXC_R_GPIO_OFFS_OUT_MODE_P5 ((uint32_t)0x00000094UL) |
Pawel Zarembski |
0:01f31e923fe2 | 123 | #define MXC_R_GPIO_OFFS_OUT_MODE_P6 ((uint32_t)0x00000098UL) |
Pawel Zarembski |
0:01f31e923fe2 | 124 | #define MXC_R_GPIO_OFFS_OUT_MODE_P7 ((uint32_t)0x0000009CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 125 | #define MXC_R_GPIO_OFFS_OUT_MODE_P8 ((uint32_t)0x000000A0UL) |
Pawel Zarembski |
0:01f31e923fe2 | 126 | #define MXC_R_GPIO_OFFS_OUT_MODE_P9 ((uint32_t)0x000000A4UL) |
Pawel Zarembski |
0:01f31e923fe2 | 127 | #define MXC_R_GPIO_OFFS_OUT_MODE_P10 ((uint32_t)0x000000A8UL) |
Pawel Zarembski |
0:01f31e923fe2 | 128 | #define MXC_R_GPIO_OFFS_OUT_MODE_P11 ((uint32_t)0x000000ACUL) |
Pawel Zarembski |
0:01f31e923fe2 | 129 | #define MXC_R_GPIO_OFFS_OUT_MODE_P12 ((uint32_t)0x000000B0UL) |
Pawel Zarembski |
0:01f31e923fe2 | 130 | #define MXC_R_GPIO_OFFS_OUT_MODE_P13 ((uint32_t)0x000000B4UL) |
Pawel Zarembski |
0:01f31e923fe2 | 131 | #define MXC_R_GPIO_OFFS_OUT_MODE_P14 ((uint32_t)0x000000B8UL) |
Pawel Zarembski |
0:01f31e923fe2 | 132 | #define MXC_R_GPIO_OFFS_OUT_MODE_P15 ((uint32_t)0x000000BCUL) |
Pawel Zarembski |
0:01f31e923fe2 | 133 | #define MXC_R_GPIO_OFFS_OUT_VAL_P0 ((uint32_t)0x000000C0UL) |
Pawel Zarembski |
0:01f31e923fe2 | 134 | #define MXC_R_GPIO_OFFS_OUT_VAL_P1 ((uint32_t)0x000000C4UL) |
Pawel Zarembski |
0:01f31e923fe2 | 135 | #define MXC_R_GPIO_OFFS_OUT_VAL_P2 ((uint32_t)0x000000C8UL) |
Pawel Zarembski |
0:01f31e923fe2 | 136 | #define MXC_R_GPIO_OFFS_OUT_VAL_P3 ((uint32_t)0x000000CCUL) |
Pawel Zarembski |
0:01f31e923fe2 | 137 | #define MXC_R_GPIO_OFFS_OUT_VAL_P4 ((uint32_t)0x000000D0UL) |
Pawel Zarembski |
0:01f31e923fe2 | 138 | #define MXC_R_GPIO_OFFS_OUT_VAL_P5 ((uint32_t)0x000000D4UL) |
Pawel Zarembski |
0:01f31e923fe2 | 139 | #define MXC_R_GPIO_OFFS_OUT_VAL_P6 ((uint32_t)0x000000D8UL) |
Pawel Zarembski |
0:01f31e923fe2 | 140 | #define MXC_R_GPIO_OFFS_OUT_VAL_P7 ((uint32_t)0x000000DCUL) |
Pawel Zarembski |
0:01f31e923fe2 | 141 | #define MXC_R_GPIO_OFFS_OUT_VAL_P8 ((uint32_t)0x000000E0UL) |
Pawel Zarembski |
0:01f31e923fe2 | 142 | #define MXC_R_GPIO_OFFS_OUT_VAL_P9 ((uint32_t)0x000000E4UL) |
Pawel Zarembski |
0:01f31e923fe2 | 143 | #define MXC_R_GPIO_OFFS_OUT_VAL_P10 ((uint32_t)0x000000E8UL) |
Pawel Zarembski |
0:01f31e923fe2 | 144 | #define MXC_R_GPIO_OFFS_OUT_VAL_P11 ((uint32_t)0x000000ECUL) |
Pawel Zarembski |
0:01f31e923fe2 | 145 | #define MXC_R_GPIO_OFFS_OUT_VAL_P12 ((uint32_t)0x000000F0UL) |
Pawel Zarembski |
0:01f31e923fe2 | 146 | #define MXC_R_GPIO_OFFS_OUT_VAL_P13 ((uint32_t)0x000000F4UL) |
Pawel Zarembski |
0:01f31e923fe2 | 147 | #define MXC_R_GPIO_OFFS_OUT_VAL_P14 ((uint32_t)0x000000F8UL) |
Pawel Zarembski |
0:01f31e923fe2 | 148 | #define MXC_R_GPIO_OFFS_OUT_VAL_P15 ((uint32_t)0x000000FCUL) |
Pawel Zarembski |
0:01f31e923fe2 | 149 | #define MXC_R_GPIO_OFFS_FUNC_SEL_P0 ((uint32_t)0x00000100UL) |
Pawel Zarembski |
0:01f31e923fe2 | 150 | #define MXC_R_GPIO_OFFS_FUNC_SEL_P1 ((uint32_t)0x00000104UL) |
Pawel Zarembski |
0:01f31e923fe2 | 151 | #define MXC_R_GPIO_OFFS_FUNC_SEL_P2 ((uint32_t)0x00000108UL) |
Pawel Zarembski |
0:01f31e923fe2 | 152 | #define MXC_R_GPIO_OFFS_FUNC_SEL_P3 ((uint32_t)0x0000010CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 153 | #define MXC_R_GPIO_OFFS_FUNC_SEL_P4 ((uint32_t)0x00000110UL) |
Pawel Zarembski |
0:01f31e923fe2 | 154 | #define MXC_R_GPIO_OFFS_FUNC_SEL_P5 ((uint32_t)0x00000114UL) |
Pawel Zarembski |
0:01f31e923fe2 | 155 | #define MXC_R_GPIO_OFFS_FUNC_SEL_P6 ((uint32_t)0x00000118UL) |
Pawel Zarembski |
0:01f31e923fe2 | 156 | #define MXC_R_GPIO_OFFS_FUNC_SEL_P7 ((uint32_t)0x0000011CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 157 | #define MXC_R_GPIO_OFFS_FUNC_SEL_P8 ((uint32_t)0x00000120UL) |
Pawel Zarembski |
0:01f31e923fe2 | 158 | #define MXC_R_GPIO_OFFS_FUNC_SEL_P9 ((uint32_t)0x00000124UL) |
Pawel Zarembski |
0:01f31e923fe2 | 159 | #define MXC_R_GPIO_OFFS_FUNC_SEL_P10 ((uint32_t)0x00000128UL) |
Pawel Zarembski |
0:01f31e923fe2 | 160 | #define MXC_R_GPIO_OFFS_FUNC_SEL_P11 ((uint32_t)0x0000012CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 161 | #define MXC_R_GPIO_OFFS_FUNC_SEL_P12 ((uint32_t)0x00000130UL) |
Pawel Zarembski |
0:01f31e923fe2 | 162 | #define MXC_R_GPIO_OFFS_FUNC_SEL_P13 ((uint32_t)0x00000134UL) |
Pawel Zarembski |
0:01f31e923fe2 | 163 | #define MXC_R_GPIO_OFFS_FUNC_SEL_P14 ((uint32_t)0x00000138UL) |
Pawel Zarembski |
0:01f31e923fe2 | 164 | #define MXC_R_GPIO_OFFS_FUNC_SEL_P15 ((uint32_t)0x0000013CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 165 | #define MXC_R_GPIO_OFFS_IN_MODE_P0 ((uint32_t)0x00000140UL) |
Pawel Zarembski |
0:01f31e923fe2 | 166 | #define MXC_R_GPIO_OFFS_IN_MODE_P1 ((uint32_t)0x00000144UL) |
Pawel Zarembski |
0:01f31e923fe2 | 167 | #define MXC_R_GPIO_OFFS_IN_MODE_P2 ((uint32_t)0x00000148UL) |
Pawel Zarembski |
0:01f31e923fe2 | 168 | #define MXC_R_GPIO_OFFS_IN_MODE_P3 ((uint32_t)0x0000014CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 169 | #define MXC_R_GPIO_OFFS_IN_MODE_P4 ((uint32_t)0x00000150UL) |
Pawel Zarembski |
0:01f31e923fe2 | 170 | #define MXC_R_GPIO_OFFS_IN_MODE_P5 ((uint32_t)0x00000154UL) |
Pawel Zarembski |
0:01f31e923fe2 | 171 | #define MXC_R_GPIO_OFFS_IN_MODE_P6 ((uint32_t)0x00000158UL) |
Pawel Zarembski |
0:01f31e923fe2 | 172 | #define MXC_R_GPIO_OFFS_IN_MODE_P7 ((uint32_t)0x0000015CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 173 | #define MXC_R_GPIO_OFFS_IN_MODE_P8 ((uint32_t)0x00000160UL) |
Pawel Zarembski |
0:01f31e923fe2 | 174 | #define MXC_R_GPIO_OFFS_IN_MODE_P9 ((uint32_t)0x00000164UL) |
Pawel Zarembski |
0:01f31e923fe2 | 175 | #define MXC_R_GPIO_OFFS_IN_MODE_P10 ((uint32_t)0x00000168UL) |
Pawel Zarembski |
0:01f31e923fe2 | 176 | #define MXC_R_GPIO_OFFS_IN_MODE_P11 ((uint32_t)0x0000016CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 177 | #define MXC_R_GPIO_OFFS_IN_MODE_P12 ((uint32_t)0x00000170UL) |
Pawel Zarembski |
0:01f31e923fe2 | 178 | #define MXC_R_GPIO_OFFS_IN_MODE_P13 ((uint32_t)0x00000174UL) |
Pawel Zarembski |
0:01f31e923fe2 | 179 | #define MXC_R_GPIO_OFFS_IN_MODE_P14 ((uint32_t)0x00000178UL) |
Pawel Zarembski |
0:01f31e923fe2 | 180 | #define MXC_R_GPIO_OFFS_IN_MODE_P15 ((uint32_t)0x0000017CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 181 | #define MXC_R_GPIO_OFFS_IN_VAL_P0 ((uint32_t)0x00000180UL) |
Pawel Zarembski |
0:01f31e923fe2 | 182 | #define MXC_R_GPIO_OFFS_IN_VAL_P1 ((uint32_t)0x00000184UL) |
Pawel Zarembski |
0:01f31e923fe2 | 183 | #define MXC_R_GPIO_OFFS_IN_VAL_P2 ((uint32_t)0x00000188UL) |
Pawel Zarembski |
0:01f31e923fe2 | 184 | #define MXC_R_GPIO_OFFS_IN_VAL_P3 ((uint32_t)0x0000018CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 185 | #define MXC_R_GPIO_OFFS_IN_VAL_P4 ((uint32_t)0x00000190UL) |
Pawel Zarembski |
0:01f31e923fe2 | 186 | #define MXC_R_GPIO_OFFS_IN_VAL_P5 ((uint32_t)0x00000194UL) |
Pawel Zarembski |
0:01f31e923fe2 | 187 | #define MXC_R_GPIO_OFFS_IN_VAL_P6 ((uint32_t)0x00000198UL) |
Pawel Zarembski |
0:01f31e923fe2 | 188 | #define MXC_R_GPIO_OFFS_IN_VAL_P7 ((uint32_t)0x0000019CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 189 | #define MXC_R_GPIO_OFFS_IN_VAL_P8 ((uint32_t)0x000001A0UL) |
Pawel Zarembski |
0:01f31e923fe2 | 190 | #define MXC_R_GPIO_OFFS_IN_VAL_P9 ((uint32_t)0x000001A4UL) |
Pawel Zarembski |
0:01f31e923fe2 | 191 | #define MXC_R_GPIO_OFFS_IN_VAL_P10 ((uint32_t)0x000001A8UL) |
Pawel Zarembski |
0:01f31e923fe2 | 192 | #define MXC_R_GPIO_OFFS_IN_VAL_P11 ((uint32_t)0x000001ACUL) |
Pawel Zarembski |
0:01f31e923fe2 | 193 | #define MXC_R_GPIO_OFFS_IN_VAL_P12 ((uint32_t)0x000001B0UL) |
Pawel Zarembski |
0:01f31e923fe2 | 194 | #define MXC_R_GPIO_OFFS_IN_VAL_P13 ((uint32_t)0x000001B4UL) |
Pawel Zarembski |
0:01f31e923fe2 | 195 | #define MXC_R_GPIO_OFFS_IN_VAL_P14 ((uint32_t)0x000001B8UL) |
Pawel Zarembski |
0:01f31e923fe2 | 196 | #define MXC_R_GPIO_OFFS_IN_VAL_P15 ((uint32_t)0x000001BCUL) |
Pawel Zarembski |
0:01f31e923fe2 | 197 | #define MXC_R_GPIO_OFFS_INT_MODE_P0 ((uint32_t)0x000001C0UL) |
Pawel Zarembski |
0:01f31e923fe2 | 198 | #define MXC_R_GPIO_OFFS_INT_MODE_P1 ((uint32_t)0x000001C4UL) |
Pawel Zarembski |
0:01f31e923fe2 | 199 | #define MXC_R_GPIO_OFFS_INT_MODE_P2 ((uint32_t)0x000001C8UL) |
Pawel Zarembski |
0:01f31e923fe2 | 200 | #define MXC_R_GPIO_OFFS_INT_MODE_P3 ((uint32_t)0x000001CCUL) |
Pawel Zarembski |
0:01f31e923fe2 | 201 | #define MXC_R_GPIO_OFFS_INT_MODE_P4 ((uint32_t)0x000001D0UL) |
Pawel Zarembski |
0:01f31e923fe2 | 202 | #define MXC_R_GPIO_OFFS_INT_MODE_P5 ((uint32_t)0x000001D4UL) |
Pawel Zarembski |
0:01f31e923fe2 | 203 | #define MXC_R_GPIO_OFFS_INT_MODE_P6 ((uint32_t)0x000001D8UL) |
Pawel Zarembski |
0:01f31e923fe2 | 204 | #define MXC_R_GPIO_OFFS_INT_MODE_P7 ((uint32_t)0x000001DCUL) |
Pawel Zarembski |
0:01f31e923fe2 | 205 | #define MXC_R_GPIO_OFFS_INT_MODE_P8 ((uint32_t)0x000001E0UL) |
Pawel Zarembski |
0:01f31e923fe2 | 206 | #define MXC_R_GPIO_OFFS_INT_MODE_P9 ((uint32_t)0x000001E4UL) |
Pawel Zarembski |
0:01f31e923fe2 | 207 | #define MXC_R_GPIO_OFFS_INT_MODE_P10 ((uint32_t)0x000001E8UL) |
Pawel Zarembski |
0:01f31e923fe2 | 208 | #define MXC_R_GPIO_OFFS_INT_MODE_P11 ((uint32_t)0x000001ECUL) |
Pawel Zarembski |
0:01f31e923fe2 | 209 | #define MXC_R_GPIO_OFFS_INT_MODE_P12 ((uint32_t)0x000001F0UL) |
Pawel Zarembski |
0:01f31e923fe2 | 210 | #define MXC_R_GPIO_OFFS_INT_MODE_P13 ((uint32_t)0x000001F4UL) |
Pawel Zarembski |
0:01f31e923fe2 | 211 | #define MXC_R_GPIO_OFFS_INT_MODE_P14 ((uint32_t)0x000001F8UL) |
Pawel Zarembski |
0:01f31e923fe2 | 212 | #define MXC_R_GPIO_OFFS_INT_MODE_P15 ((uint32_t)0x000001FCUL) |
Pawel Zarembski |
0:01f31e923fe2 | 213 | #define MXC_R_GPIO_OFFS_INTFL_P0 ((uint32_t)0x00000200UL) |
Pawel Zarembski |
0:01f31e923fe2 | 214 | #define MXC_R_GPIO_OFFS_INTFL_P1 ((uint32_t)0x00000204UL) |
Pawel Zarembski |
0:01f31e923fe2 | 215 | #define MXC_R_GPIO_OFFS_INTFL_P2 ((uint32_t)0x00000208UL) |
Pawel Zarembski |
0:01f31e923fe2 | 216 | #define MXC_R_GPIO_OFFS_INTFL_P3 ((uint32_t)0x0000020CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 217 | #define MXC_R_GPIO_OFFS_INTFL_P4 ((uint32_t)0x00000210UL) |
Pawel Zarembski |
0:01f31e923fe2 | 218 | #define MXC_R_GPIO_OFFS_INTFL_P5 ((uint32_t)0x00000214UL) |
Pawel Zarembski |
0:01f31e923fe2 | 219 | #define MXC_R_GPIO_OFFS_INTFL_P6 ((uint32_t)0x00000218UL) |
Pawel Zarembski |
0:01f31e923fe2 | 220 | #define MXC_R_GPIO_OFFS_INTFL_P7 ((uint32_t)0x0000021CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 221 | #define MXC_R_GPIO_OFFS_INTFL_P8 ((uint32_t)0x00000220UL) |
Pawel Zarembski |
0:01f31e923fe2 | 222 | #define MXC_R_GPIO_OFFS_INTFL_P9 ((uint32_t)0x00000224UL) |
Pawel Zarembski |
0:01f31e923fe2 | 223 | #define MXC_R_GPIO_OFFS_INTFL_P10 ((uint32_t)0x00000228UL) |
Pawel Zarembski |
0:01f31e923fe2 | 224 | #define MXC_R_GPIO_OFFS_INTFL_P11 ((uint32_t)0x0000022CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 225 | #define MXC_R_GPIO_OFFS_INTFL_P12 ((uint32_t)0x00000230UL) |
Pawel Zarembski |
0:01f31e923fe2 | 226 | #define MXC_R_GPIO_OFFS_INTFL_P13 ((uint32_t)0x00000234UL) |
Pawel Zarembski |
0:01f31e923fe2 | 227 | #define MXC_R_GPIO_OFFS_INTFL_P14 ((uint32_t)0x00000238UL) |
Pawel Zarembski |
0:01f31e923fe2 | 228 | #define MXC_R_GPIO_OFFS_INTFL_P15 ((uint32_t)0x0000023CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 229 | #define MXC_R_GPIO_OFFS_INTEN_P0 ((uint32_t)0x00000240UL) |
Pawel Zarembski |
0:01f31e923fe2 | 230 | #define MXC_R_GPIO_OFFS_INTEN_P1 ((uint32_t)0x00000244UL) |
Pawel Zarembski |
0:01f31e923fe2 | 231 | #define MXC_R_GPIO_OFFS_INTEN_P2 ((uint32_t)0x00000248UL) |
Pawel Zarembski |
0:01f31e923fe2 | 232 | #define MXC_R_GPIO_OFFS_INTEN_P3 ((uint32_t)0x0000024CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 233 | #define MXC_R_GPIO_OFFS_INTEN_P4 ((uint32_t)0x00000250UL) |
Pawel Zarembski |
0:01f31e923fe2 | 234 | #define MXC_R_GPIO_OFFS_INTEN_P5 ((uint32_t)0x00000254UL) |
Pawel Zarembski |
0:01f31e923fe2 | 235 | #define MXC_R_GPIO_OFFS_INTEN_P6 ((uint32_t)0x00000258UL) |
Pawel Zarembski |
0:01f31e923fe2 | 236 | #define MXC_R_GPIO_OFFS_INTEN_P7 ((uint32_t)0x0000025CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 237 | #define MXC_R_GPIO_OFFS_INTEN_P8 ((uint32_t)0x00000260UL) |
Pawel Zarembski |
0:01f31e923fe2 | 238 | #define MXC_R_GPIO_OFFS_INTEN_P9 ((uint32_t)0x00000264UL) |
Pawel Zarembski |
0:01f31e923fe2 | 239 | #define MXC_R_GPIO_OFFS_INTEN_P10 ((uint32_t)0x00000268UL) |
Pawel Zarembski |
0:01f31e923fe2 | 240 | #define MXC_R_GPIO_OFFS_INTEN_P11 ((uint32_t)0x0000026CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 241 | #define MXC_R_GPIO_OFFS_INTEN_P12 ((uint32_t)0x00000270UL) |
Pawel Zarembski |
0:01f31e923fe2 | 242 | #define MXC_R_GPIO_OFFS_INTEN_P13 ((uint32_t)0x00000274UL) |
Pawel Zarembski |
0:01f31e923fe2 | 243 | #define MXC_R_GPIO_OFFS_INTEN_P14 ((uint32_t)0x00000278UL) |
Pawel Zarembski |
0:01f31e923fe2 | 244 | #define MXC_R_GPIO_OFFS_INTEN_P15 ((uint32_t)0x0000027CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 245 | |
Pawel Zarembski |
0:01f31e923fe2 | 246 | |
Pawel Zarembski |
0:01f31e923fe2 | 247 | /* |
Pawel Zarembski |
0:01f31e923fe2 | 248 | Field positions and masks for module GPIO. |
Pawel Zarembski |
0:01f31e923fe2 | 249 | */ |
Pawel Zarembski |
0:01f31e923fe2 | 250 | |
Pawel Zarembski |
0:01f31e923fe2 | 251 | #define MXC_F_GPIO_RST_MODE_PIN0_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 252 | #define MXC_F_GPIO_RST_MODE_PIN0 ((uint32_t)(0x00000007UL << MXC_F_GPIO_RST_MODE_PIN0_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 253 | #define MXC_F_GPIO_RST_MODE_PIN1_POS 4 |
Pawel Zarembski |
0:01f31e923fe2 | 254 | #define MXC_F_GPIO_RST_MODE_PIN1 ((uint32_t)(0x00000007UL << MXC_F_GPIO_RST_MODE_PIN1_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 255 | #define MXC_F_GPIO_RST_MODE_PIN2_POS 8 |
Pawel Zarembski |
0:01f31e923fe2 | 256 | #define MXC_F_GPIO_RST_MODE_PIN2 ((uint32_t)(0x00000007UL << MXC_F_GPIO_RST_MODE_PIN2_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 257 | #define MXC_F_GPIO_RST_MODE_PIN3_POS 12 |
Pawel Zarembski |
0:01f31e923fe2 | 258 | #define MXC_F_GPIO_RST_MODE_PIN3 ((uint32_t)(0x00000007UL << MXC_F_GPIO_RST_MODE_PIN3_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 259 | #define MXC_F_GPIO_RST_MODE_PIN4_POS 16 |
Pawel Zarembski |
0:01f31e923fe2 | 260 | #define MXC_F_GPIO_RST_MODE_PIN4 ((uint32_t)(0x00000007UL << MXC_F_GPIO_RST_MODE_PIN4_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 261 | #define MXC_F_GPIO_RST_MODE_PIN5_POS 20 |
Pawel Zarembski |
0:01f31e923fe2 | 262 | #define MXC_F_GPIO_RST_MODE_PIN5 ((uint32_t)(0x00000007UL << MXC_F_GPIO_RST_MODE_PIN5_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 263 | #define MXC_F_GPIO_RST_MODE_PIN6_POS 24 |
Pawel Zarembski |
0:01f31e923fe2 | 264 | #define MXC_F_GPIO_RST_MODE_PIN6 ((uint32_t)(0x00000007UL << MXC_F_GPIO_RST_MODE_PIN6_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 265 | #define MXC_F_GPIO_RST_MODE_PIN7_POS 28 |
Pawel Zarembski |
0:01f31e923fe2 | 266 | #define MXC_F_GPIO_RST_MODE_PIN7 ((uint32_t)(0x00000007UL << MXC_F_GPIO_RST_MODE_PIN7_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 267 | |
Pawel Zarembski |
0:01f31e923fe2 | 268 | #define MXC_F_GPIO_FREE_PIN0_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 269 | #define MXC_F_GPIO_FREE_PIN0 ((uint32_t)(0x00000001UL << MXC_F_GPIO_FREE_PIN0_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 270 | #define MXC_F_GPIO_FREE_PIN1_POS 1 |
Pawel Zarembski |
0:01f31e923fe2 | 271 | #define MXC_F_GPIO_FREE_PIN1 ((uint32_t)(0x00000001UL << MXC_F_GPIO_FREE_PIN1_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 272 | #define MXC_F_GPIO_FREE_PIN2_POS 2 |
Pawel Zarembski |
0:01f31e923fe2 | 273 | #define MXC_F_GPIO_FREE_PIN2 ((uint32_t)(0x00000001UL << MXC_F_GPIO_FREE_PIN2_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 274 | #define MXC_F_GPIO_FREE_PIN3_POS 3 |
Pawel Zarembski |
0:01f31e923fe2 | 275 | #define MXC_F_GPIO_FREE_PIN3 ((uint32_t)(0x00000001UL << MXC_F_GPIO_FREE_PIN3_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 276 | #define MXC_F_GPIO_FREE_PIN4_POS 4 |
Pawel Zarembski |
0:01f31e923fe2 | 277 | #define MXC_F_GPIO_FREE_PIN4 ((uint32_t)(0x00000001UL << MXC_F_GPIO_FREE_PIN4_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 278 | #define MXC_F_GPIO_FREE_PIN5_POS 5 |
Pawel Zarembski |
0:01f31e923fe2 | 279 | #define MXC_F_GPIO_FREE_PIN5 ((uint32_t)(0x00000001UL << MXC_F_GPIO_FREE_PIN5_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 280 | #define MXC_F_GPIO_FREE_PIN6_POS 6 |
Pawel Zarembski |
0:01f31e923fe2 | 281 | #define MXC_F_GPIO_FREE_PIN6 ((uint32_t)(0x00000001UL << MXC_F_GPIO_FREE_PIN6_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 282 | #define MXC_F_GPIO_FREE_PIN7_POS 7 |
Pawel Zarembski |
0:01f31e923fe2 | 283 | #define MXC_F_GPIO_FREE_PIN7 ((uint32_t)(0x00000001UL << MXC_F_GPIO_FREE_PIN7_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 284 | |
Pawel Zarembski |
0:01f31e923fe2 | 285 | #define MXC_F_GPIO_OUT_MODE_PIN0_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 286 | #define MXC_F_GPIO_OUT_MODE_PIN0 ((uint32_t)(0x0000000FUL << MXC_F_GPIO_OUT_MODE_PIN0_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 287 | #define MXC_F_GPIO_OUT_MODE_PIN1_POS 4 |
Pawel Zarembski |
0:01f31e923fe2 | 288 | #define MXC_F_GPIO_OUT_MODE_PIN1 ((uint32_t)(0x0000000FUL << MXC_F_GPIO_OUT_MODE_PIN1_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 289 | #define MXC_F_GPIO_OUT_MODE_PIN2_POS 8 |
Pawel Zarembski |
0:01f31e923fe2 | 290 | #define MXC_F_GPIO_OUT_MODE_PIN2 ((uint32_t)(0x0000000FUL << MXC_F_GPIO_OUT_MODE_PIN2_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 291 | #define MXC_F_GPIO_OUT_MODE_PIN3_POS 12 |
Pawel Zarembski |
0:01f31e923fe2 | 292 | #define MXC_F_GPIO_OUT_MODE_PIN3 ((uint32_t)(0x0000000FUL << MXC_F_GPIO_OUT_MODE_PIN3_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 293 | #define MXC_F_GPIO_OUT_MODE_PIN4_POS 16 |
Pawel Zarembski |
0:01f31e923fe2 | 294 | #define MXC_F_GPIO_OUT_MODE_PIN4 ((uint32_t)(0x0000000FUL << MXC_F_GPIO_OUT_MODE_PIN4_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 295 | #define MXC_F_GPIO_OUT_MODE_PIN5_POS 20 |
Pawel Zarembski |
0:01f31e923fe2 | 296 | #define MXC_F_GPIO_OUT_MODE_PIN5 ((uint32_t)(0x0000000FUL << MXC_F_GPIO_OUT_MODE_PIN5_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 297 | #define MXC_F_GPIO_OUT_MODE_PIN6_POS 24 |
Pawel Zarembski |
0:01f31e923fe2 | 298 | #define MXC_F_GPIO_OUT_MODE_PIN6 ((uint32_t)(0x0000000FUL << MXC_F_GPIO_OUT_MODE_PIN6_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 299 | #define MXC_F_GPIO_OUT_MODE_PIN7_POS 28 |
Pawel Zarembski |
0:01f31e923fe2 | 300 | #define MXC_F_GPIO_OUT_MODE_PIN7 ((uint32_t)(0x0000000FUL << MXC_F_GPIO_OUT_MODE_PIN7_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 301 | |
Pawel Zarembski |
0:01f31e923fe2 | 302 | #define MXC_F_GPIO_OUT_VAL_PIN0_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 303 | #define MXC_F_GPIO_OUT_VAL_PIN0 ((uint32_t)(0x00000001UL << MXC_F_GPIO_OUT_VAL_PIN0_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 304 | #define MXC_F_GPIO_OUT_VAL_PIN1_POS 1 |
Pawel Zarembski |
0:01f31e923fe2 | 305 | #define MXC_F_GPIO_OUT_VAL_PIN1 ((uint32_t)(0x00000001UL << MXC_F_GPIO_OUT_VAL_PIN1_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 306 | #define MXC_F_GPIO_OUT_VAL_PIN2_POS 2 |
Pawel Zarembski |
0:01f31e923fe2 | 307 | #define MXC_F_GPIO_OUT_VAL_PIN2 ((uint32_t)(0x00000001UL << MXC_F_GPIO_OUT_VAL_PIN2_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 308 | #define MXC_F_GPIO_OUT_VAL_PIN3_POS 3 |
Pawel Zarembski |
0:01f31e923fe2 | 309 | #define MXC_F_GPIO_OUT_VAL_PIN3 ((uint32_t)(0x00000001UL << MXC_F_GPIO_OUT_VAL_PIN3_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 310 | #define MXC_F_GPIO_OUT_VAL_PIN4_POS 4 |
Pawel Zarembski |
0:01f31e923fe2 | 311 | #define MXC_F_GPIO_OUT_VAL_PIN4 ((uint32_t)(0x00000001UL << MXC_F_GPIO_OUT_VAL_PIN4_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 312 | #define MXC_F_GPIO_OUT_VAL_PIN5_POS 5 |
Pawel Zarembski |
0:01f31e923fe2 | 313 | #define MXC_F_GPIO_OUT_VAL_PIN5 ((uint32_t)(0x00000001UL << MXC_F_GPIO_OUT_VAL_PIN5_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 314 | #define MXC_F_GPIO_OUT_VAL_PIN6_POS 6 |
Pawel Zarembski |
0:01f31e923fe2 | 315 | #define MXC_F_GPIO_OUT_VAL_PIN6 ((uint32_t)(0x00000001UL << MXC_F_GPIO_OUT_VAL_PIN6_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 316 | #define MXC_F_GPIO_OUT_VAL_PIN7_POS 7 |
Pawel Zarembski |
0:01f31e923fe2 | 317 | #define MXC_F_GPIO_OUT_VAL_PIN7 ((uint32_t)(0x00000001UL << MXC_F_GPIO_OUT_VAL_PIN7_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 318 | |
Pawel Zarembski |
0:01f31e923fe2 | 319 | #define MXC_F_GPIO_FUNC_SEL_PIN0_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 320 | #define MXC_F_GPIO_FUNC_SEL_PIN0 ((uint32_t)(0x0000000FUL << MXC_F_GPIO_FUNC_SEL_PIN0_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 321 | #define MXC_F_GPIO_FUNC_SEL_PIN1_POS 4 |
Pawel Zarembski |
0:01f31e923fe2 | 322 | #define MXC_F_GPIO_FUNC_SEL_PIN1 ((uint32_t)(0x0000000FUL << MXC_F_GPIO_FUNC_SEL_PIN1_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 323 | #define MXC_F_GPIO_FUNC_SEL_PIN2_POS 8 |
Pawel Zarembski |
0:01f31e923fe2 | 324 | #define MXC_F_GPIO_FUNC_SEL_PIN2 ((uint32_t)(0x0000000FUL << MXC_F_GPIO_FUNC_SEL_PIN2_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 325 | #define MXC_F_GPIO_FUNC_SEL_PIN3_POS 12 |
Pawel Zarembski |
0:01f31e923fe2 | 326 | #define MXC_F_GPIO_FUNC_SEL_PIN3 ((uint32_t)(0x0000000FUL << MXC_F_GPIO_FUNC_SEL_PIN3_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 327 | #define MXC_F_GPIO_FUNC_SEL_PIN4_POS 16 |
Pawel Zarembski |
0:01f31e923fe2 | 328 | #define MXC_F_GPIO_FUNC_SEL_PIN4 ((uint32_t)(0x0000000FUL << MXC_F_GPIO_FUNC_SEL_PIN4_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 329 | #define MXC_F_GPIO_FUNC_SEL_PIN5_POS 20 |
Pawel Zarembski |
0:01f31e923fe2 | 330 | #define MXC_F_GPIO_FUNC_SEL_PIN5 ((uint32_t)(0x0000000FUL << MXC_F_GPIO_FUNC_SEL_PIN5_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 331 | #define MXC_F_GPIO_FUNC_SEL_PIN6_POS 24 |
Pawel Zarembski |
0:01f31e923fe2 | 332 | #define MXC_F_GPIO_FUNC_SEL_PIN6 ((uint32_t)(0x0000000FUL << MXC_F_GPIO_FUNC_SEL_PIN6_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 333 | #define MXC_F_GPIO_FUNC_SEL_PIN7_POS 28 |
Pawel Zarembski |
0:01f31e923fe2 | 334 | #define MXC_F_GPIO_FUNC_SEL_PIN7 ((uint32_t)(0x0000000FUL << MXC_F_GPIO_FUNC_SEL_PIN7_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 335 | |
Pawel Zarembski |
0:01f31e923fe2 | 336 | #define MXC_F_GPIO_IN_MODE_PIN0_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 337 | #define MXC_F_GPIO_IN_MODE_PIN0 ((uint32_t)(0x00000003UL << MXC_F_GPIO_IN_MODE_PIN0_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 338 | #define MXC_F_GPIO_IN_MODE_PIN1_POS 4 |
Pawel Zarembski |
0:01f31e923fe2 | 339 | #define MXC_F_GPIO_IN_MODE_PIN1 ((uint32_t)(0x00000003UL << MXC_F_GPIO_IN_MODE_PIN1_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 340 | #define MXC_F_GPIO_IN_MODE_PIN2_POS 8 |
Pawel Zarembski |
0:01f31e923fe2 | 341 | #define MXC_F_GPIO_IN_MODE_PIN2 ((uint32_t)(0x00000003UL << MXC_F_GPIO_IN_MODE_PIN2_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 342 | #define MXC_F_GPIO_IN_MODE_PIN3_POS 12 |
Pawel Zarembski |
0:01f31e923fe2 | 343 | #define MXC_F_GPIO_IN_MODE_PIN3 ((uint32_t)(0x00000003UL << MXC_F_GPIO_IN_MODE_PIN3_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 344 | #define MXC_F_GPIO_IN_MODE_PIN4_POS 16 |
Pawel Zarembski |
0:01f31e923fe2 | 345 | #define MXC_F_GPIO_IN_MODE_PIN4 ((uint32_t)(0x00000003UL << MXC_F_GPIO_IN_MODE_PIN4_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 346 | #define MXC_F_GPIO_IN_MODE_PIN5_POS 20 |
Pawel Zarembski |
0:01f31e923fe2 | 347 | #define MXC_F_GPIO_IN_MODE_PIN5 ((uint32_t)(0x00000003UL << MXC_F_GPIO_IN_MODE_PIN5_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 348 | #define MXC_F_GPIO_IN_MODE_PIN6_POS 24 |
Pawel Zarembski |
0:01f31e923fe2 | 349 | #define MXC_F_GPIO_IN_MODE_PIN6 ((uint32_t)(0x00000003UL << MXC_F_GPIO_IN_MODE_PIN6_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 350 | #define MXC_F_GPIO_IN_MODE_PIN7_POS 28 |
Pawel Zarembski |
0:01f31e923fe2 | 351 | #define MXC_F_GPIO_IN_MODE_PIN7 ((uint32_t)(0x00000003UL << MXC_F_GPIO_IN_MODE_PIN7_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 352 | |
Pawel Zarembski |
0:01f31e923fe2 | 353 | #define MXC_F_GPIO_IN_VAL_PIN0_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 354 | #define MXC_F_GPIO_IN_VAL_PIN0 ((uint32_t)(0x00000001UL << MXC_F_GPIO_IN_VAL_PIN0_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 355 | #define MXC_F_GPIO_IN_VAL_PIN1_POS 1 |
Pawel Zarembski |
0:01f31e923fe2 | 356 | #define MXC_F_GPIO_IN_VAL_PIN1 ((uint32_t)(0x00000001UL << MXC_F_GPIO_IN_VAL_PIN1_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 357 | #define MXC_F_GPIO_IN_VAL_PIN2_POS 2 |
Pawel Zarembski |
0:01f31e923fe2 | 358 | #define MXC_F_GPIO_IN_VAL_PIN2 ((uint32_t)(0x00000001UL << MXC_F_GPIO_IN_VAL_PIN2_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 359 | #define MXC_F_GPIO_IN_VAL_PIN3_POS 3 |
Pawel Zarembski |
0:01f31e923fe2 | 360 | #define MXC_F_GPIO_IN_VAL_PIN3 ((uint32_t)(0x00000001UL << MXC_F_GPIO_IN_VAL_PIN3_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 361 | #define MXC_F_GPIO_IN_VAL_PIN4_POS 4 |
Pawel Zarembski |
0:01f31e923fe2 | 362 | #define MXC_F_GPIO_IN_VAL_PIN4 ((uint32_t)(0x00000001UL << MXC_F_GPIO_IN_VAL_PIN4_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 363 | #define MXC_F_GPIO_IN_VAL_PIN5_POS 5 |
Pawel Zarembski |
0:01f31e923fe2 | 364 | #define MXC_F_GPIO_IN_VAL_PIN5 ((uint32_t)(0x00000001UL << MXC_F_GPIO_IN_VAL_PIN5_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 365 | #define MXC_F_GPIO_IN_VAL_PIN6_POS 6 |
Pawel Zarembski |
0:01f31e923fe2 | 366 | #define MXC_F_GPIO_IN_VAL_PIN6 ((uint32_t)(0x00000001UL << MXC_F_GPIO_IN_VAL_PIN6_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 367 | #define MXC_F_GPIO_IN_VAL_PIN7_POS 7 |
Pawel Zarembski |
0:01f31e923fe2 | 368 | #define MXC_F_GPIO_IN_VAL_PIN7 ((uint32_t)(0x00000001UL << MXC_F_GPIO_IN_VAL_PIN7_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 369 | |
Pawel Zarembski |
0:01f31e923fe2 | 370 | #define MXC_F_GPIO_INT_MODE_PIN0_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 371 | #define MXC_F_GPIO_INT_MODE_PIN0 ((uint32_t)(0x00000007UL << MXC_F_GPIO_INT_MODE_PIN0_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 372 | #define MXC_F_GPIO_INT_MODE_PIN1_POS 4 |
Pawel Zarembski |
0:01f31e923fe2 | 373 | #define MXC_F_GPIO_INT_MODE_PIN1 ((uint32_t)(0x00000007UL << MXC_F_GPIO_INT_MODE_PIN1_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 374 | #define MXC_F_GPIO_INT_MODE_PIN2_POS 8 |
Pawel Zarembski |
0:01f31e923fe2 | 375 | #define MXC_F_GPIO_INT_MODE_PIN2 ((uint32_t)(0x00000007UL << MXC_F_GPIO_INT_MODE_PIN2_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 376 | #define MXC_F_GPIO_INT_MODE_PIN3_POS 12 |
Pawel Zarembski |
0:01f31e923fe2 | 377 | #define MXC_F_GPIO_INT_MODE_PIN3 ((uint32_t)(0x00000007UL << MXC_F_GPIO_INT_MODE_PIN3_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 378 | #define MXC_F_GPIO_INT_MODE_PIN4_POS 16 |
Pawel Zarembski |
0:01f31e923fe2 | 379 | #define MXC_F_GPIO_INT_MODE_PIN4 ((uint32_t)(0x00000007UL << MXC_F_GPIO_INT_MODE_PIN4_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 380 | #define MXC_F_GPIO_INT_MODE_PIN5_POS 20 |
Pawel Zarembski |
0:01f31e923fe2 | 381 | #define MXC_F_GPIO_INT_MODE_PIN5 ((uint32_t)(0x00000007UL << MXC_F_GPIO_INT_MODE_PIN5_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 382 | #define MXC_F_GPIO_INT_MODE_PIN6_POS 24 |
Pawel Zarembski |
0:01f31e923fe2 | 383 | #define MXC_F_GPIO_INT_MODE_PIN6 ((uint32_t)(0x00000007UL << MXC_F_GPIO_INT_MODE_PIN6_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 384 | #define MXC_F_GPIO_INT_MODE_PIN7_POS 28 |
Pawel Zarembski |
0:01f31e923fe2 | 385 | #define MXC_F_GPIO_INT_MODE_PIN7 ((uint32_t)(0x00000007UL << MXC_F_GPIO_INT_MODE_PIN7_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 386 | |
Pawel Zarembski |
0:01f31e923fe2 | 387 | #define MXC_F_GPIO_INTFL_PIN0_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 388 | #define MXC_F_GPIO_INTFL_PIN0 ((uint32_t)(0x00000001UL << MXC_F_GPIO_INTFL_PIN0_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 389 | #define MXC_F_GPIO_INTFL_PIN1_POS 1 |
Pawel Zarembski |
0:01f31e923fe2 | 390 | #define MXC_F_GPIO_INTFL_PIN1 ((uint32_t)(0x00000001UL << MXC_F_GPIO_INTFL_PIN1_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 391 | #define MXC_F_GPIO_INTFL_PIN2_POS 2 |
Pawel Zarembski |
0:01f31e923fe2 | 392 | #define MXC_F_GPIO_INTFL_PIN2 ((uint32_t)(0x00000001UL << MXC_F_GPIO_INTFL_PIN2_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 393 | #define MXC_F_GPIO_INTFL_PIN3_POS 3 |
Pawel Zarembski |
0:01f31e923fe2 | 394 | #define MXC_F_GPIO_INTFL_PIN3 ((uint32_t)(0x00000001UL << MXC_F_GPIO_INTFL_PIN3_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 395 | #define MXC_F_GPIO_INTFL_PIN4_POS 4 |
Pawel Zarembski |
0:01f31e923fe2 | 396 | #define MXC_F_GPIO_INTFL_PIN4 ((uint32_t)(0x00000001UL << MXC_F_GPIO_INTFL_PIN4_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 397 | #define MXC_F_GPIO_INTFL_PIN5_POS 5 |
Pawel Zarembski |
0:01f31e923fe2 | 398 | #define MXC_F_GPIO_INTFL_PIN5 ((uint32_t)(0x00000001UL << MXC_F_GPIO_INTFL_PIN5_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 399 | #define MXC_F_GPIO_INTFL_PIN6_POS 6 |
Pawel Zarembski |
0:01f31e923fe2 | 400 | #define MXC_F_GPIO_INTFL_PIN6 ((uint32_t)(0x00000001UL << MXC_F_GPIO_INTFL_PIN6_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 401 | #define MXC_F_GPIO_INTFL_PIN7_POS 7 |
Pawel Zarembski |
0:01f31e923fe2 | 402 | #define MXC_F_GPIO_INTFL_PIN7 ((uint32_t)(0x00000001UL << MXC_F_GPIO_INTFL_PIN7_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 403 | |
Pawel Zarembski |
0:01f31e923fe2 | 404 | #define MXC_F_GPIO_INTEN_PIN0_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 405 | #define MXC_F_GPIO_INTEN_PIN0 ((uint32_t)(0x00000001UL << MXC_F_GPIO_INTEN_PIN0_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 406 | #define MXC_F_GPIO_INTEN_PIN1_POS 1 |
Pawel Zarembski |
0:01f31e923fe2 | 407 | #define MXC_F_GPIO_INTEN_PIN1 ((uint32_t)(0x00000001UL << MXC_F_GPIO_INTEN_PIN1_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 408 | #define MXC_F_GPIO_INTEN_PIN2_POS 2 |
Pawel Zarembski |
0:01f31e923fe2 | 409 | #define MXC_F_GPIO_INTEN_PIN2 ((uint32_t)(0x00000001UL << MXC_F_GPIO_INTEN_PIN2_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 410 | #define MXC_F_GPIO_INTEN_PIN3_POS 3 |
Pawel Zarembski |
0:01f31e923fe2 | 411 | #define MXC_F_GPIO_INTEN_PIN3 ((uint32_t)(0x00000001UL << MXC_F_GPIO_INTEN_PIN3_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 412 | #define MXC_F_GPIO_INTEN_PIN4_POS 4 |
Pawel Zarembski |
0:01f31e923fe2 | 413 | #define MXC_F_GPIO_INTEN_PIN4 ((uint32_t)(0x00000001UL << MXC_F_GPIO_INTEN_PIN4_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 414 | #define MXC_F_GPIO_INTEN_PIN5_POS 5 |
Pawel Zarembski |
0:01f31e923fe2 | 415 | #define MXC_F_GPIO_INTEN_PIN5 ((uint32_t)(0x00000001UL << MXC_F_GPIO_INTEN_PIN5_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 416 | #define MXC_F_GPIO_INTEN_PIN6_POS 6 |
Pawel Zarembski |
0:01f31e923fe2 | 417 | #define MXC_F_GPIO_INTEN_PIN6 ((uint32_t)(0x00000001UL << MXC_F_GPIO_INTEN_PIN6_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 418 | #define MXC_F_GPIO_INTEN_PIN7_POS 7 |
Pawel Zarembski |
0:01f31e923fe2 | 419 | #define MXC_F_GPIO_INTEN_PIN7 ((uint32_t)(0x00000001UL << MXC_F_GPIO_INTEN_PIN7_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 420 | |
Pawel Zarembski |
0:01f31e923fe2 | 421 | |
Pawel Zarembski |
0:01f31e923fe2 | 422 | |
Pawel Zarembski |
0:01f31e923fe2 | 423 | /* |
Pawel Zarembski |
0:01f31e923fe2 | 424 | Field values and shifted values for module GPIO. |
Pawel Zarembski |
0:01f31e923fe2 | 425 | */ |
Pawel Zarembski |
0:01f31e923fe2 | 426 | |
Pawel Zarembski |
0:01f31e923fe2 | 427 | #define MXC_V_GPIO_RST_MODE_DRIVE_0 ((uint32_t)(0x00000000UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 428 | #define MXC_V_GPIO_RST_MODE_WEAK_PULLDOWN ((uint32_t)(0x00000001UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 429 | #define MXC_V_GPIO_RST_MODE_WEAK_PULLUP ((uint32_t)(0x00000002UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 430 | #define MXC_V_GPIO_RST_MODE_DRIVE_1 ((uint32_t)(0x00000003UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 431 | #define MXC_V_GPIO_RST_MODE_HIGH_Z ((uint32_t)(0x00000004UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 432 | |
Pawel Zarembski |
0:01f31e923fe2 | 433 | #define MXC_V_GPIO_FREE_NOT_AVAILABLE ((uint32_t)(0x00000000UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 434 | #define MXC_V_GPIO_FREE_AVAILABLE ((uint32_t)(0x00000001UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 435 | |
Pawel Zarembski |
0:01f31e923fe2 | 436 | #define MXC_V_GPIO_OUT_MODE_HIGH_Z_WEAK_PULLUP ((uint32_t)(0x00000000UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 437 | #define MXC_V_GPIO_OUT_MODE_OPEN_DRAIN ((uint32_t)(0x00000001UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 438 | #define MXC_V_GPIO_OUT_MODE_OPEN_DRAIN_WEAK_PULLUP ((uint32_t)(0x00000002UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 439 | #define MXC_V_GPIO_OUT_MODE_NORMAL_HIGH_Z ((uint32_t)(0x00000004UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 440 | #define MXC_V_GPIO_OUT_MODE_NORMAL ((uint32_t)(0x00000005UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 441 | #define MXC_V_GPIO_OUT_MODE_SLOW_HIGH_Z ((uint32_t)(0x00000006UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 442 | #define MXC_V_GPIO_OUT_MODE_SLOW_DRIVE ((uint32_t)(0x00000007UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 443 | #define MXC_V_GPIO_OUT_MODE_FAST_HIGH_Z ((uint32_t)(0x00000008UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 444 | #define MXC_V_GPIO_OUT_MODE_FAST_DRIVE ((uint32_t)(0x00000009UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 445 | #define MXC_V_GPIO_OUT_MODE_HIGH_Z_WEAK_PULLDOWN ((uint32_t)(0x0000000AUL)) |
Pawel Zarembski |
0:01f31e923fe2 | 446 | #define MXC_V_GPIO_OUT_MODE_OPEN_SOURCE ((uint32_t)(0x0000000BUL)) |
Pawel Zarembski |
0:01f31e923fe2 | 447 | #define MXC_V_GPIO_OUT_MODE_OPEN_SOURCE_WEAK_PULLDOWN ((uint32_t)(0x0000000CUL)) |
Pawel Zarembski |
0:01f31e923fe2 | 448 | #define MXC_V_GPIO_OUT_MODE_HIGH_Z_INPUT_DISABLED ((uint32_t)(0x0000000FUL)) |
Pawel Zarembski |
0:01f31e923fe2 | 449 | |
Pawel Zarembski |
0:01f31e923fe2 | 450 | #define MXC_V_GPIO_FUNC_SEL_MODE_GPIO ((uint32_t)(0x00000000UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 451 | #define MXC_V_GPIO_FUNC_SEL_MODE_PT ((uint32_t)(0x00000001UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 452 | #define MXC_V_GPIO_FUNC_SEL_MODE_TMR ((uint32_t)(0x00000002UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 453 | |
Pawel Zarembski |
0:01f31e923fe2 | 454 | #define MXC_V_GPIO_IN_MODE_NORMAL ((uint32_t)(0x00000000UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 455 | #define MXC_V_GPIO_IN_MODE_INVERTED ((uint32_t)(0x00000001UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 456 | #define MXC_V_GPIO_IN_MODE_ALWAYS_ZERO ((uint32_t)(0x00000002UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 457 | #define MXC_V_GPIO_IN_MODE_ALWAYS_ONE ((uint32_t)(0x00000003UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 458 | |
Pawel Zarembski |
0:01f31e923fe2 | 459 | #define MXC_V_GPIO_INT_MODE_DISABLE ((uint32_t)(0x00000000UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 460 | #define MXC_V_GPIO_INT_MODE_FALLING_EDGE ((uint32_t)(0x00000001UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 461 | #define MXC_V_GPIO_INT_MODE_RISING_EDGE ((uint32_t)(0x00000002UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 462 | #define MXC_V_GPIO_INT_MODE_ANY_EDGE ((uint32_t)(0x00000003UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 463 | #define MXC_V_GPIO_INT_MODE_LOW_LVL ((uint32_t)(0x00000004UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 464 | #define MXC_V_GPIO_INT_MODE_HIGH_LVL ((uint32_t)(0x00000005UL)) |
Pawel Zarembski |
0:01f31e923fe2 | 465 | |
Pawel Zarembski |
0:01f31e923fe2 | 466 | |
Pawel Zarembski |
0:01f31e923fe2 | 467 | |
Pawel Zarembski |
0:01f31e923fe2 | 468 | #ifdef __cplusplus |
Pawel Zarembski |
0:01f31e923fe2 | 469 | } |
Pawel Zarembski |
0:01f31e923fe2 | 470 | #endif |
Pawel Zarembski |
0:01f31e923fe2 | 471 | |
Pawel Zarembski |
0:01f31e923fe2 | 472 | #endif /* _MXC_GPIO_REGS_H_ */ |