Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed by
TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/gpio/fsl_gpio_features.h@90:cb3d968589d8, 2014-10-28 (annotated)
- Committer:
- Kojto
- Date:
- Tue Oct 28 16:40:41 2014 +0000
- Revision:
- 90:cb3d968589d8
- Parent:
- 82:6473597d706e
Release 90 of the mbed library
Changes:
- Freescale KSDK update (v1.0)
- K22 - new target addition
- KL43Z - new target addition
- Nucleo F091RC - new target addition
- Nucleo L152RE - STM32Cube driver
- Nordic - Softdevice v7.1.0
- Nvic files - BSD License
- LPC824 - various HAL fixes
- Nucleo F411RE - CMSIS - IAR files
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| bogdanm | 82:6473597d706e | 1 | /* |
| Kojto | 90:cb3d968589d8 | 2 | ** ################################################################### |
| Kojto | 90:cb3d968589d8 | 3 | ** Version: rev. 1.0, 2014-05-14 |
| Kojto | 90:cb3d968589d8 | 4 | ** Build: b140515 |
| Kojto | 90:cb3d968589d8 | 5 | ** |
| Kojto | 90:cb3d968589d8 | 6 | ** Abstract: |
| Kojto | 90:cb3d968589d8 | 7 | ** Chip specific module features. |
| Kojto | 90:cb3d968589d8 | 8 | ** |
| Kojto | 90:cb3d968589d8 | 9 | ** Copyright: 2014 Freescale Semiconductor, Inc. |
| Kojto | 90:cb3d968589d8 | 10 | ** All rights reserved. |
| Kojto | 90:cb3d968589d8 | 11 | ** |
| Kojto | 90:cb3d968589d8 | 12 | ** Redistribution and use in source and binary forms, with or without modification, |
| Kojto | 90:cb3d968589d8 | 13 | ** are permitted provided that the following conditions are met: |
| Kojto | 90:cb3d968589d8 | 14 | ** |
| Kojto | 90:cb3d968589d8 | 15 | ** o Redistributions of source code must retain the above copyright notice, this list |
| Kojto | 90:cb3d968589d8 | 16 | ** of conditions and the following disclaimer. |
| Kojto | 90:cb3d968589d8 | 17 | ** |
| Kojto | 90:cb3d968589d8 | 18 | ** o Redistributions in binary form must reproduce the above copyright notice, this |
| Kojto | 90:cb3d968589d8 | 19 | ** list of conditions and the following disclaimer in the documentation and/or |
| Kojto | 90:cb3d968589d8 | 20 | ** other materials provided with the distribution. |
| Kojto | 90:cb3d968589d8 | 21 | ** |
| Kojto | 90:cb3d968589d8 | 22 | ** o Neither the name of Freescale Semiconductor, Inc. nor the names of its |
| Kojto | 90:cb3d968589d8 | 23 | ** contributors may be used to endorse or promote products derived from this |
| Kojto | 90:cb3d968589d8 | 24 | ** software without specific prior written permission. |
| Kojto | 90:cb3d968589d8 | 25 | ** |
| Kojto | 90:cb3d968589d8 | 26 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| Kojto | 90:cb3d968589d8 | 27 | ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| Kojto | 90:cb3d968589d8 | 28 | ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| Kojto | 90:cb3d968589d8 | 29 | ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
| Kojto | 90:cb3d968589d8 | 30 | ** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| Kojto | 90:cb3d968589d8 | 31 | ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| Kojto | 90:cb3d968589d8 | 32 | ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
| Kojto | 90:cb3d968589d8 | 33 | ** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| Kojto | 90:cb3d968589d8 | 34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| Kojto | 90:cb3d968589d8 | 35 | ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| Kojto | 90:cb3d968589d8 | 36 | ** |
| Kojto | 90:cb3d968589d8 | 37 | ** http: www.freescale.com |
| Kojto | 90:cb3d968589d8 | 38 | ** mail: support@freescale.com |
| Kojto | 90:cb3d968589d8 | 39 | ** |
| Kojto | 90:cb3d968589d8 | 40 | ** Revisions: |
| Kojto | 90:cb3d968589d8 | 41 | ** - rev. 1.0 (2014-05-14) |
| Kojto | 90:cb3d968589d8 | 42 | ** Customer release. |
| Kojto | 90:cb3d968589d8 | 43 | ** |
| Kojto | 90:cb3d968589d8 | 44 | ** ################################################################### |
| Kojto | 90:cb3d968589d8 | 45 | */ |
| Kojto | 90:cb3d968589d8 | 46 | |
| bogdanm | 82:6473597d706e | 47 | #if !defined(__FSL_GPIO_FEATURES_H__) |
| bogdanm | 82:6473597d706e | 48 | #define __FSL_GPIO_FEATURES_H__ |
| bogdanm | 82:6473597d706e | 49 | |
| Kojto | 90:cb3d968589d8 | 50 | #if defined(CPU_MK02FN128VFM10) || defined(CPU_MK02FN64VFM10) || defined(CPU_MK02FN128VLF10) || defined(CPU_MK02FN64VLF10) || \ |
| Kojto | 90:cb3d968589d8 | 51 | defined(CPU_MK02FN128VLH10) || defined(CPU_MK02FN64VLH10) || defined(CPU_MK20DX128VMP5) || defined(CPU_MK20DN128VMP5) || \ |
| Kojto | 90:cb3d968589d8 | 52 | defined(CPU_MK20DX64VMP5) || defined(CPU_MK20DN64VMP5) || defined(CPU_MK20DX32VMP5) || defined(CPU_MK20DN32VMP5) || \ |
| Kojto | 90:cb3d968589d8 | 53 | defined(CPU_MK20DX128VLH5) || defined(CPU_MK20DN128VLH5) || defined(CPU_MK20DX64VLH5) || defined(CPU_MK20DN64VLH5) || \ |
| Kojto | 90:cb3d968589d8 | 54 | defined(CPU_MK20DX32VLH5) || defined(CPU_MK20DN32VLH5) || defined(CPU_MK20DX128VFM5) || defined(CPU_MK20DN128VFM5) || \ |
| Kojto | 90:cb3d968589d8 | 55 | defined(CPU_MK20DX64VFM5) || defined(CPU_MK20DN64VFM5) || defined(CPU_MK20DX32VFM5) || defined(CPU_MK20DN32VFM5) || \ |
| Kojto | 90:cb3d968589d8 | 56 | defined(CPU_MK20DX128VFT5) || defined(CPU_MK20DN128VFT5) || defined(CPU_MK20DX64VFT5) || defined(CPU_MK20DN64VFT5) || \ |
| Kojto | 90:cb3d968589d8 | 57 | defined(CPU_MK20DX32VFT5) || defined(CPU_MK20DN32VFT5) || defined(CPU_MK20DX128VLF5) || defined(CPU_MK20DN128VLF5) || \ |
| Kojto | 90:cb3d968589d8 | 58 | defined(CPU_MK20DX64VLF5) || defined(CPU_MK20DN64VLF5) || defined(CPU_MK20DX32VLF5) || defined(CPU_MK20DN32VLF5) || \ |
| Kojto | 90:cb3d968589d8 | 59 | defined(CPU_MK22FN128VDC10) || defined(CPU_MK22FN128VLH10) || defined(CPU_MK22FN128VLL10) || defined(CPU_MK22FN128VMP10) || \ |
| Kojto | 90:cb3d968589d8 | 60 | defined(CPU_MK22FN256VDC12) || defined(CPU_MK22FN256VLH12) || defined(CPU_MK22FN256VLL12) || defined(CPU_MK22FN256VMP12) || \ |
| Kojto | 90:cb3d968589d8 | 61 | defined(CPU_MK22FN512VDC12) || defined(CPU_MK22FN512VLH12) || defined(CPU_MK22FN512VLL12) || defined(CPU_MK24FN1M0VDC12) || \ |
| Kojto | 90:cb3d968589d8 | 62 | defined(CPU_MK24FN1M0VLL12) || defined(CPU_MK24FN1M0VLQ12) || defined(CPU_MK24FN256VDC12) || defined(CPU_MK63FN1M0VLQ12) || \ |
| Kojto | 90:cb3d968589d8 | 63 | defined(CPU_MK63FN1M0VMD12) || defined(CPU_MK64FX512VDC12) || defined(CPU_MK64FN1M0VDC12) || defined(CPU_MK64FX512VLL12) || \ |
| Kojto | 90:cb3d968589d8 | 64 | defined(CPU_MK64FN1M0VLL12) || defined(CPU_MK64FX512VLQ12) || defined(CPU_MK64FN1M0VLQ12) || defined(CPU_MK64FX512VMD12) || \ |
| Kojto | 90:cb3d968589d8 | 65 | defined(CPU_MK64FN1M0VMD12) || defined(CPU_MK65FN2M0CAC18) || defined(CPU_MK65FX1M0CAC18) || defined(CPU_MK65FN2M0VMI18) || \ |
| Kojto | 90:cb3d968589d8 | 66 | defined(CPU_MK65FX1M0VMI18) || defined(CPU_MK66FN2M0VLQ18) || defined(CPU_MK66FX1M0VLQ18) || defined(CPU_MK66FN2M0VMD18) || \ |
| Kojto | 90:cb3d968589d8 | 67 | defined(CPU_MK66FX1M0VMD18) || defined(CPU_MKV30F128VFM10) || defined(CPU_MKV30F64VFM10) || defined(CPU_MKV30F128VLF10) || \ |
| Kojto | 90:cb3d968589d8 | 68 | defined(CPU_MKV30F64VLF10) || defined(CPU_MKV30F128VLH10) || defined(CPU_MKV30F64VLH10) || defined(CPU_MKV31F128VLH10) || \ |
| Kojto | 90:cb3d968589d8 | 69 | defined(CPU_MKV31F128VLL10) || defined(CPU_MKV31F256VLH12) || defined(CPU_MKV31F256VLL12) || defined(CPU_MKV31F512VLH12) || \ |
| Kojto | 90:cb3d968589d8 | 70 | defined(CPU_MKV31F512VLL12) |
| Kojto | 90:cb3d968589d8 | 71 | /* @brief Has fast (single cycle) access capability via a dedicated memory region. */ |
| bogdanm | 82:6473597d706e | 72 | #define FSL_FEATURE_GPIO_HAS_FAST_GPIO (0) |
| Kojto | 90:cb3d968589d8 | 73 | /* @brief Has port input disable register (PIDR). */ |
| bogdanm | 82:6473597d706e | 74 | #define FSL_FEATURE_GPIO_HAS_INPUT_DISABLE (0) |
| Kojto | 90:cb3d968589d8 | 75 | /* @brief Has dedicated interrupt vector. */ |
| Kojto | 90:cb3d968589d8 | 76 | #define FSL_FEATURE_GPIO_HAS_INTERRUPT_VECTOR (1) |
| Kojto | 90:cb3d968589d8 | 77 | #define FSL_FEATURE_GPIO_HAS_INTERRUPT_VECTORn(x) \ |
| Kojto | 90:cb3d968589d8 | 78 | ((x) == 0 ? (1) : \ |
| Kojto | 90:cb3d968589d8 | 79 | ((x) == 1 ? (1) : \ |
| Kojto | 90:cb3d968589d8 | 80 | ((x) == 2 ? (1) : \ |
| Kojto | 90:cb3d968589d8 | 81 | ((x) == 3 ? (1) : \ |
| Kojto | 90:cb3d968589d8 | 82 | ((x) == 4 ? (1) : (-1)))))) |
| Kojto | 90:cb3d968589d8 | 83 | #elif defined(CPU_MK70FN1M0VMF12) || defined(CPU_MK70FX512VMF12) || defined(CPU_MK70FN1M0VMF15) || defined(CPU_MK70FX512VMF15) || \ |
| Kojto | 90:cb3d968589d8 | 84 | defined(CPU_MK70FN1M0VMJ12) || defined(CPU_MK70FX512VMJ12) || defined(CPU_MK70FN1M0VMJ15) || defined(CPU_MK70FX512VMJ15) |
| Kojto | 90:cb3d968589d8 | 85 | /* @brief Has fast (single cycle) access capability via a dedicated memory region. */ |
| Kojto | 90:cb3d968589d8 | 86 | #define FSL_FEATURE_GPIO_HAS_FAST_GPIO (0) |
| Kojto | 90:cb3d968589d8 | 87 | /* @brief Has port input disable register (PIDR). */ |
| Kojto | 90:cb3d968589d8 | 88 | #define FSL_FEATURE_GPIO_HAS_INPUT_DISABLE (0) |
| Kojto | 90:cb3d968589d8 | 89 | /* @brief Has dedicated interrupt vector. */ |
| bogdanm | 82:6473597d706e | 90 | #define FSL_FEATURE_GPIO_HAS_INTERRUPT_VECTOR (1) |
| bogdanm | 82:6473597d706e | 91 | #define FSL_FEATURE_GPIO_HAS_INTERRUPT_VECTORn(x) \ |
| bogdanm | 82:6473597d706e | 92 | ((x) == 0 ? (1) : \ |
| bogdanm | 82:6473597d706e | 93 | ((x) == 1 ? (1) : \ |
| bogdanm | 82:6473597d706e | 94 | ((x) == 2 ? (1) : \ |
| bogdanm | 82:6473597d706e | 95 | ((x) == 3 ? (1) : \ |
| bogdanm | 82:6473597d706e | 96 | ((x) == 4 ? (1) : \ |
| bogdanm | 82:6473597d706e | 97 | ((x) == 5 ? (1) : (-1))))))) |
| Kojto | 90:cb3d968589d8 | 98 | #elif defined(CPU_MKL03Z32CAF4) || defined(CPU_MKL03Z8VFG4) || defined(CPU_MKL03Z16VFG4) || defined(CPU_MKL03Z32VFG4) || \ |
| Kojto | 90:cb3d968589d8 | 99 | defined(CPU_MKL03Z8VFK4) || defined(CPU_MKL03Z16VFK4) || defined(CPU_MKL03Z32VFK4) || defined(CPU_MKL05Z8VFK4) || \ |
| Kojto | 90:cb3d968589d8 | 100 | defined(CPU_MKL05Z16VFK4) || defined(CPU_MKL05Z32VFK4) || defined(CPU_MKL05Z8VLC4) || defined(CPU_MKL05Z16VLC4) || \ |
| Kojto | 90:cb3d968589d8 | 101 | defined(CPU_MKL05Z32VLC4) || defined(CPU_MKL05Z8VFM4) || defined(CPU_MKL05Z16VFM4) || defined(CPU_MKL05Z32VFM4) || \ |
| Kojto | 90:cb3d968589d8 | 102 | defined(CPU_MKL05Z16VLF4) || defined(CPU_MKL05Z32VLF4) |
| Kojto | 90:cb3d968589d8 | 103 | /* @brief Has fast (single cycle) access capability via a dedicated memory region. */ |
| bogdanm | 82:6473597d706e | 104 | #define FSL_FEATURE_GPIO_HAS_FAST_GPIO (1) |
| Kojto | 90:cb3d968589d8 | 105 | /* @brief Has port input disable register (PIDR). */ |
| bogdanm | 82:6473597d706e | 106 | #define FSL_FEATURE_GPIO_HAS_INPUT_DISABLE (0) |
| Kojto | 90:cb3d968589d8 | 107 | /* @brief Has dedicated interrupt vector. */ |
| bogdanm | 82:6473597d706e | 108 | #define FSL_FEATURE_GPIO_HAS_INTERRUPT_VECTOR (1) |
| bogdanm | 82:6473597d706e | 109 | #define FSL_FEATURE_GPIO_HAS_INTERRUPT_VECTORn(x) \ |
| bogdanm | 82:6473597d706e | 110 | ((x) == 0 ? (1) : \ |
| bogdanm | 82:6473597d706e | 111 | ((x) == 1 ? (1) : (-1))) |
| Kojto | 90:cb3d968589d8 | 112 | #elif defined(CPU_MKL13Z64VFM4) || defined(CPU_MKL13Z128VFM4) || defined(CPU_MKL13Z256VFM4) || defined(CPU_MKL13Z64VFT4) || \ |
| Kojto | 90:cb3d968589d8 | 113 | defined(CPU_MKL13Z128VFT4) || defined(CPU_MKL13Z256VFT4) || defined(CPU_MKL13Z64VLH4) || defined(CPU_MKL13Z128VLH4) || \ |
| Kojto | 90:cb3d968589d8 | 114 | defined(CPU_MKL13Z256VLH4) || defined(CPU_MKL13Z64VMP4) || defined(CPU_MKL13Z128VMP4) || defined(CPU_MKL13Z256VMP4) || \ |
| Kojto | 90:cb3d968589d8 | 115 | defined(CPU_MKL23Z64VFM4) || defined(CPU_MKL23Z128VFM4) || defined(CPU_MKL23Z256VFM4) || defined(CPU_MKL23Z64VFT4) || \ |
| Kojto | 90:cb3d968589d8 | 116 | defined(CPU_MKL23Z128VFT4) || defined(CPU_MKL23Z256VFT4) || defined(CPU_MKL23Z64VLH4) || defined(CPU_MKL23Z128VLH4) || \ |
| Kojto | 90:cb3d968589d8 | 117 | defined(CPU_MKL23Z256VLH4) || defined(CPU_MKL23Z64VMP4) || defined(CPU_MKL23Z128VMP4) || defined(CPU_MKL23Z256VMP4) || \ |
| Kojto | 90:cb3d968589d8 | 118 | defined(CPU_MKL33Z128VLH4) || defined(CPU_MKL33Z256VLH4) || defined(CPU_MKL33Z128VMP4) || defined(CPU_MKL33Z256VMP4) || \ |
| Kojto | 90:cb3d968589d8 | 119 | defined(CPU_MKL43Z64VLH4) || defined(CPU_MKL43Z128VLH4) || defined(CPU_MKL43Z256VLH4) || defined(CPU_MKL43Z64VMP4) || \ |
| Kojto | 90:cb3d968589d8 | 120 | defined(CPU_MKL43Z128VMP4) || defined(CPU_MKL43Z256VMP4) |
| Kojto | 90:cb3d968589d8 | 121 | /* @brief Has fast (single cycle) access capability via a dedicated memory region. */ |
| Kojto | 90:cb3d968589d8 | 122 | #define FSL_FEATURE_GPIO_HAS_FAST_GPIO (0) |
| Kojto | 90:cb3d968589d8 | 123 | /* @brief Has port input disable register (PIDR). */ |
| Kojto | 90:cb3d968589d8 | 124 | #define FSL_FEATURE_GPIO_HAS_INPUT_DISABLE (0) |
| Kojto | 90:cb3d968589d8 | 125 | /* @brief Has dedicated interrupt vector. */ |
| Kojto | 90:cb3d968589d8 | 126 | #define FSL_FEATURE_GPIO_HAS_INTERRUPT_VECTOR (1) |
| Kojto | 90:cb3d968589d8 | 127 | #define FSL_FEATURE_GPIO_HAS_INTERRUPT_VECTORn(x) \ |
| Kojto | 90:cb3d968589d8 | 128 | ((x) == 0 ? (1) : \ |
| Kojto | 90:cb3d968589d8 | 129 | ((x) == 1 ? (0) : \ |
| Kojto | 90:cb3d968589d8 | 130 | ((x) == 2 ? (1) : \ |
| Kojto | 90:cb3d968589d8 | 131 | ((x) == 3 ? (1) : \ |
| Kojto | 90:cb3d968589d8 | 132 | ((x) == 4 ? (0) : (-1)))))) |
| bogdanm | 82:6473597d706e | 133 | #elif defined(CPU_MKL25Z32VFM4) || defined(CPU_MKL25Z64VFM4) || defined(CPU_MKL25Z128VFM4) || defined(CPU_MKL25Z32VFT4) || \ |
| bogdanm | 82:6473597d706e | 134 | defined(CPU_MKL25Z64VFT4) || defined(CPU_MKL25Z128VFT4) || defined(CPU_MKL25Z32VLH4) || defined(CPU_MKL25Z64VLH4) || \ |
| bogdanm | 82:6473597d706e | 135 | defined(CPU_MKL25Z128VLH4) || defined(CPU_MKL25Z32VLK4) || defined(CPU_MKL25Z64VLK4) || defined(CPU_MKL25Z128VLK4) |
| Kojto | 90:cb3d968589d8 | 136 | /* @brief Has fast (single cycle) access capability via a dedicated memory region. */ |
| bogdanm | 82:6473597d706e | 137 | #define FSL_FEATURE_GPIO_HAS_FAST_GPIO (1) |
| Kojto | 90:cb3d968589d8 | 138 | /* @brief Has port input disable register (PIDR). */ |
| bogdanm | 82:6473597d706e | 139 | #define FSL_FEATURE_GPIO_HAS_INPUT_DISABLE (0) |
| Kojto | 90:cb3d968589d8 | 140 | /* @brief Has dedicated interrupt vector. */ |
| bogdanm | 82:6473597d706e | 141 | #define FSL_FEATURE_GPIO_HAS_INTERRUPT_VECTOR (1) |
| bogdanm | 82:6473597d706e | 142 | #define FSL_FEATURE_GPIO_HAS_INTERRUPT_VECTORn(x) \ |
| bogdanm | 82:6473597d706e | 143 | ((x) == 0 ? (1) : \ |
| bogdanm | 82:6473597d706e | 144 | ((x) == 1 ? (0) : \ |
| bogdanm | 82:6473597d706e | 145 | ((x) == 2 ? (0) : \ |
| bogdanm | 82:6473597d706e | 146 | ((x) == 3 ? (1) : \ |
| bogdanm | 82:6473597d706e | 147 | ((x) == 4 ? (0) : (-1)))))) |
| Kojto | 90:cb3d968589d8 | 148 | #elif defined(CPU_MKL26Z256VLK4) || defined(CPU_MKL26Z128VLL4) || defined(CPU_MKL26Z256VLL4) || defined(CPU_MKL26Z128VMC4) || \ |
| Kojto | 90:cb3d968589d8 | 149 | defined(CPU_MKL26Z256VMC4) || defined(CPU_MKL46Z128VLH4) || defined(CPU_MKL46Z256VLH4) || defined(CPU_MKL46Z128VLL4) || \ |
| Kojto | 90:cb3d968589d8 | 150 | defined(CPU_MKL46Z256VLL4) || defined(CPU_MKL46Z128VMC4) || defined(CPU_MKL46Z256VMC4) |
| Kojto | 90:cb3d968589d8 | 151 | /* @brief Has fast (single cycle) access capability via a dedicated memory region. */ |
| bogdanm | 82:6473597d706e | 152 | #define FSL_FEATURE_GPIO_HAS_FAST_GPIO (1) |
| Kojto | 90:cb3d968589d8 | 153 | /* @brief Has port input disable register (PIDR). */ |
| bogdanm | 82:6473597d706e | 154 | #define FSL_FEATURE_GPIO_HAS_INPUT_DISABLE (0) |
| Kojto | 90:cb3d968589d8 | 155 | /* @brief Has dedicated interrupt vector. */ |
| bogdanm | 82:6473597d706e | 156 | #define FSL_FEATURE_GPIO_HAS_INTERRUPT_VECTOR (1) |
| bogdanm | 82:6473597d706e | 157 | #define FSL_FEATURE_GPIO_HAS_INTERRUPT_VECTORn(x) \ |
| bogdanm | 82:6473597d706e | 158 | ((x) == 0 ? (1) : \ |
| bogdanm | 82:6473597d706e | 159 | ((x) == 1 ? (0) : \ |
| bogdanm | 82:6473597d706e | 160 | ((x) == 2 ? (1) : \ |
| bogdanm | 82:6473597d706e | 161 | ((x) == 3 ? (1) : \ |
| bogdanm | 82:6473597d706e | 162 | ((x) == 4 ? (0) : (-1)))))) |
| Kojto | 90:cb3d968589d8 | 163 | #elif defined(CPU_MKV40F128VLH15) || defined(CPU_MKV40F128VLL15) || defined(CPU_MKV40F256VLH15) || defined(CPU_MKV40F256VLL15) || \ |
| Kojto | 90:cb3d968589d8 | 164 | defined(CPU_MKV40F64VLH15) || defined(CPU_MKV43F128VLH15) || defined(CPU_MKV43F128VLL15) || defined(CPU_MKV43F64VLH15) || \ |
| Kojto | 90:cb3d968589d8 | 165 | defined(CPU_MKV44F128VLH15) || defined(CPU_MKV44F128VLL15) || defined(CPU_MKV44F64VLH15) || defined(CPU_MKV45F128VLH15) || \ |
| Kojto | 90:cb3d968589d8 | 166 | defined(CPU_MKV45F128VLL15) || defined(CPU_MKV45F256VLH15) || defined(CPU_MKV45F256VLL15) || defined(CPU_MKV46F128VLH15) || \ |
| Kojto | 90:cb3d968589d8 | 167 | defined(CPU_MKV46F128VLL15) || defined(CPU_MKV46F256VLH15) || defined(CPU_MKV46F256VLL15) |
| Kojto | 90:cb3d968589d8 | 168 | /* @brief Has fast (single cycle) access capability via a dedicated memory region. */ |
| Kojto | 90:cb3d968589d8 | 169 | #define FSL_FEATURE_GPIO_HAS_FAST_GPIO (0) |
| Kojto | 90:cb3d968589d8 | 170 | /* @brief Has port input disable register (PIDR). */ |
| Kojto | 90:cb3d968589d8 | 171 | #define FSL_FEATURE_GPIO_HAS_INPUT_DISABLE (0) |
| Kojto | 90:cb3d968589d8 | 172 | /* @brief Has dedicated interrupt vector. */ |
| Kojto | 90:cb3d968589d8 | 173 | #define FSL_FEATURE_GPIO_HAS_INTERRUPT_VECTOR (1) |
| Kojto | 90:cb3d968589d8 | 174 | #define FSL_FEATURE_GPIO_HAS_INTERRUPT_VECTORn(x) \ |
| Kojto | 90:cb3d968589d8 | 175 | ((x) == 0 ? (1) : \ |
| Kojto | 90:cb3d968589d8 | 176 | ((x) == 1 ? (1) : \ |
| Kojto | 90:cb3d968589d8 | 177 | ((x) == 2 ? (1) : \ |
| Kojto | 90:cb3d968589d8 | 178 | ((x) == 3 ? (1) : \ |
| Kojto | 90:cb3d968589d8 | 179 | ((x) == 4 ? (1) : (-1)))))) |
| bogdanm | 82:6473597d706e | 180 | #else |
| bogdanm | 82:6473597d706e | 181 | #error "No valid CPU defined!" |
| bogdanm | 82:6473597d706e | 182 | #endif |
| bogdanm | 82:6473597d706e | 183 | |
| Kojto | 90:cb3d968589d8 | 184 | #endif /* __FSL_GPIO_FEATURES_H__ */ |
| Kojto | 90:cb3d968589d8 | 185 | |
| bogdanm | 82:6473597d706e | 186 | /******************************************************************************* |
| bogdanm | 82:6473597d706e | 187 | * EOF |
| bogdanm | 82:6473597d706e | 188 | ******************************************************************************/ |
