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.

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?

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