| PDL for FM0+ Version1.0 Peripheral Driverl Library for FM0+

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

C:/pdl_v10/library/driver/gpio/gpio_s6e1a1xb0a.h
Go to the documentation of this file.

    00001 /******************************************************************************
    00002 * Copyright (C) 2013 Spansion LLC. All Rights Reserved.
    00003 *
    00004 * This software is owned and published by:
    00005 * Spansion LLC, 915 DeGuigne Dr. Sunnyvale, CA  94088-3453 ("Spansion").
    00006 *
    00007 * BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND
    00008 * BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT.
    00009 *
    00010 * This software contains source code for use with Spansion
    00011 * components. This software is licensed by Spansion to be adapted only
    00012 * for use in systems utilizing Spansion components. Spansion shall not be
    00013 * responsible for misuse or illegal use of this software for devices not
    00014 * supported herein.  Spansion is providing this software "AS IS" and will
    00015 * not be responsible for issues arising from incorrect user implementation
    00016 * of the software.
    00017 *
    00018 * SPANSION MAKES NO WARRANTY, EXPRESS OR IMPLIED, ARISING BY LAW OR OTHERWISE,
    00019 * REGARDING THE SOFTWARE (INCLUDING ANY ACOOMPANYING WRITTEN MATERIALS),
    00020 * ITS PERFORMANCE OR SUITABILITY FOR YOUR INTENDED USE, INCLUDING,
    00021 * WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, THE IMPLIED
    00022 * WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE, AND THE IMPLIED
    00023 * WARRANTY OF NONINFRINGEMENT.
    00024 * SPANSION SHALL HAVE NO LIABILITY (WHETHER IN CONTRACT, WARRANTY, TORT,
    00025 * NEGLIGENCE OR OTHERWISE) FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT
    00026 * LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION,
    00027 * LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING FROM USE OR
    00028 * INABILITY TO USE THE SOFTWARE, INCLUDING, WITHOUT LIMITATION, ANY DIRECT,
    00029 * INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS OF DATA,
    00030 * SAVINGS OR PROFITS,
    00031 * EVEN IF SPANSION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
    00032 * YOU ASSUME ALL RESPONSIBILITIES FOR SELECTION OF THE SOFTWARE TO ACHIEVE YOUR
    00033 * INTENDED RESULTS, AND FOR THE INSTALLATION OF, USE OF, AND RESULTS OBTAINED
    00034 * FROM, THE SOFTWARE.
    00035 *
    00036 * This software may be replicated in part or whole for the licensed use,
    00037 * with the restriction that this Disclaimer and Copyright notice must be
    00038 * included with each copy of this software, whether used in part or whole,
    00039 * at all times.
    00040 */
    00041 /******************************************************************************/
    00052 #ifndef __GPIO_S6E1A1XB0A_H__
    00053 #define __GPIO_S6E1A1XB0A_H__
    00054
    00055 #include <stdint.h>
    00056
    00057 /******************************************************************************
    00058    GPIO
    00059 *******************************************************************************/
    00060
    00061 /*---- GPIO bit P01 ----*/
    00062
    00063 #define GPIO1PIN_P01_GET             ( bFM0P_GPIO_PDIR0_P01 )
    00064
    00065 #define GPIO1PIN_P01_PUT(v)          ( bFM0P_GPIO_PDOR0_P01=(v) )
    00066
    00067 #define GPIO1PIN_P01_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P01_INITIN(v) \
    00068                                                         : GPIO1PIN_P01_INITOUT(v) )
    00069
    00070 #define GPIO1PIN_P01_INITIN(v)       do{ bFM0P_GPIO_PCR0_P01=(v).bPullup; \
    00071                                          bFM0P_GPIO_DDR0_P01=0u; \
    00072                                          bFM0P_GPIO_PFR0_P01=0u; }while(0)
    00073
    00074 #define GPIO1PIN_P01_INITOUT(v)      do{ bFM0P_GPIO_PDOR0_P01=(v).bInitVal; \
    00075                                          bFM0P_GPIO_DDR0_P01=1u; \
    00076                                          bFM0P_GPIO_PFR0_P01=0u; }while(0)
    00077
    00078
    00079 /*---- GPIO bit NP01 ----*/
    00080 #define GPIO1PIN_NP01_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR0_P01)) )
    00081
    00082 #define GPIO1PIN_NP01_PUT(v)         ( bFM0P_GPIO_PDOR0_P01=(uint32_t)(!(v)) )
    00083
    00084 #define GPIO1PIN_NP01_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP01_INITIN(v) \
    00085                                                         : GPIO1PIN_NP01_INITOUT(v) )
    00086
    00087 #define GPIO1PIN_NP01_INITIN(v)      do{ bFM0P_GPIO_PCR0_P01=(v).bPullup; \
    00088                                          bFM0P_GPIO_DDR0_P01=0u; \
    00089                                          bFM0P_GPIO_PFR0_P01=0u; }while(0)
    00090
    00091 #define GPIO1PIN_NP01_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P01=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00092                                          bFM0P_GPIO_DDR0_P01=1u; \
    00093                                          bFM0P_GPIO_PFR0_P01=0u; }while(0)
    00094
    00095
    00096 /*---- GPIO bit P03 ----*/
    00097
    00098 #define GPIO1PIN_P03_GET             ( bFM0P_GPIO_PDIR0_P03 )
    00099
    00100 #define GPIO1PIN_P03_PUT(v)          ( bFM0P_GPIO_PDOR0_P03=(v) )
    00101
    00102 #define GPIO1PIN_P03_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P03_INITIN(v) \
    00103                                                         : GPIO1PIN_P03_INITOUT(v) )
    00104
    00105 #define GPIO1PIN_P03_INITIN(v)       do{ bFM0P_GPIO_PCR0_P03=(v).bPullup; \
    00106                                          bFM0P_GPIO_DDR0_P03=0u; \
    00107                                          bFM0P_GPIO_PFR0_P03=0u; }while(0)
    00108
    00109 #define GPIO1PIN_P03_INITOUT(v)      do{ bFM0P_GPIO_PDOR0_P03=(v).bInitVal; \
    00110                                          bFM0P_GPIO_DDR0_P03=1u; \
    00111                                          bFM0P_GPIO_PFR0_P03=0u; }while(0)
    00112
    00113
    00114 /*---- GPIO bit NP03 ----*/
    00115 #define GPIO1PIN_NP03_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR0_P03)) )
    00116
    00117 #define GPIO1PIN_NP03_PUT(v)         ( bFM0P_GPIO_PDOR0_P03=(uint32_t)(!(v)) )
    00118
    00119 #define GPIO1PIN_NP03_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP03_INITIN(v) \
    00120                                                         : GPIO1PIN_NP03_INITOUT(v) )
    00121
    00122 #define GPIO1PIN_NP03_INITIN(v)      do{ bFM0P_GPIO_PCR0_P03=(v).bPullup; \
    00123                                          bFM0P_GPIO_DDR0_P03=0u; \
    00124                                          bFM0P_GPIO_PFR0_P03=0u; }while(0)
    00125
    00126 #define GPIO1PIN_NP03_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P03=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00127                                          bFM0P_GPIO_DDR0_P03=1u; \
    00128                                          bFM0P_GPIO_PFR0_P03=0u; }while(0)
    00129
    00130
    00131 /*---- GPIO bit P04 ----*/
    00132
    00133 #define GPIO1PIN_P04_GET             ( bFM0P_GPIO_PDIR0_P04 )
    00134
    00135 #define GPIO1PIN_P04_PUT(v)          ( bFM0P_GPIO_PDOR0_P04=(v) )
    00136
    00137 #define GPIO1PIN_P04_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P04_INITIN(v) \
    00138                                                         : GPIO1PIN_P04_INITOUT(v) )
    00139
    00140 #define GPIO1PIN_P04_INITIN(v)       do{ bFM0P_GPIO_PCR0_P04=(v).bPullup; \
    00141                                          bFM0P_GPIO_DDR0_P04=0u; \
    00142                                          bFM0P_GPIO_PFR0_P04=0u; }while(0)
    00143
    00144 #define GPIO1PIN_P04_INITOUT(v)      do{ bFM0P_GPIO_PDOR0_P04=(v).bInitVal; \
    00145                                          bFM0P_GPIO_DDR0_P04=1u; \
    00146                                          bFM0P_GPIO_PFR0_P04=0u; }while(0)
    00147
    00148
    00149 /*---- GPIO bit NP04 ----*/
    00150 #define GPIO1PIN_NP04_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR0_P04)) )
    00151
    00152 #define GPIO1PIN_NP04_PUT(v)         ( bFM0P_GPIO_PDOR0_P04=(uint32_t)(!(v)) )
    00153
    00154 #define GPIO1PIN_NP04_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP04_INITIN(v) \
    00155                                                         : GPIO1PIN_NP04_INITOUT(v) )
    00156
    00157 #define GPIO1PIN_NP04_INITIN(v)      do{ bFM0P_GPIO_PCR0_P04=(v).bPullup; \
    00158                                          bFM0P_GPIO_DDR0_P04=0u; \
    00159                                          bFM0P_GPIO_PFR0_P04=0u; }while(0)
    00160
    00161 #define GPIO1PIN_NP04_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P04=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00162                                          bFM0P_GPIO_DDR0_P04=1u; \
    00163                                          bFM0P_GPIO_PFR0_P04=0u; }while(0)
    00164
    00165
    00166 /*---- GPIO bit P0F ----*/
    00167
    00168 #define GPIO1PIN_P0F_GET             ( bFM0P_GPIO_PDIR0_P0F )
    00169
    00170 #define GPIO1PIN_P0F_PUT(v)          ( bFM0P_GPIO_PDOR0_P0F=(v) )
    00171
    00172 #define GPIO1PIN_P0F_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P0F_INITIN(v) \
    00173                                                         : GPIO1PIN_P0F_INITOUT(v) )
    00174
    00175 #define GPIO1PIN_P0F_INITIN(v)       do{ bFM0P_GPIO_PCR0_P0F=(v).bPullup; \
    00176                                          bFM0P_GPIO_DDR0_P0F=0u; \
    00177                                          bFM0P_GPIO_PFR0_P0F=0u; }while(0)
    00178
    00179 #define GPIO1PIN_P0F_INITOUT(v)      do{ bFM0P_GPIO_PDOR0_P0F=(v).bInitVal; \
    00180                                          bFM0P_GPIO_DDR0_P0F=1u; \
    00181                                          bFM0P_GPIO_PFR0_P0F=0u; }while(0)
    00182
    00183
    00184 /*---- GPIO bit NP0F ----*/
    00185 #define GPIO1PIN_NP0F_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR0_P0F)) )
    00186
    00187 #define GPIO1PIN_NP0F_PUT(v)         ( bFM0P_GPIO_PDOR0_P0F=(uint32_t)(!(v)) )
    00188
    00189 #define GPIO1PIN_NP0F_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP0F_INITIN(v) \
    00190                                                         : GPIO1PIN_NP0F_INITOUT(v) )
    00191
    00192 #define GPIO1PIN_NP0F_INITIN(v)      do{ bFM0P_GPIO_PCR0_P0F=(v).bPullup; \
    00193                                          bFM0P_GPIO_DDR0_P0F=0u; \
    00194                                          bFM0P_GPIO_PFR0_P0F=0u; }while(0)
    00195
    00196 #define GPIO1PIN_NP0F_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P0F=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00197                                          bFM0P_GPIO_DDR0_P0F=1u; \
    00198                                          bFM0P_GPIO_PFR0_P0F=0u; }while(0)
    00199
    00200
    00201 /*---- GPIO bit P11 ----*/
    00202
    00203 #define GPIO1PIN_P11_GET             ( bFM0P_GPIO_PDIR1_P11 )
    00204
    00205 #define GPIO1PIN_P11_PUT(v)          ( bFM0P_GPIO_PDOR1_P11=(v) )
    00206
    00207 #define GPIO1PIN_P11_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P11_INITIN(v) \
    00208                                                         : GPIO1PIN_P11_INITOUT(v) )
    00209
    00210 #define GPIO1PIN_P11_INITIN(v)       do{ bFM0P_GPIO_PCR1_P11=(v).bPullup; \
    00211                                          bFM0P_GPIO_DDR1_P11=0u; \
    00212                                          bFM0P_GPIO_PFR1_P11=0u; \
    00213                                          bFM0P_GPIO_ADE_AN01=0u; }while(0)
    00214
    00215
    00216 #define GPIO1PIN_P11_INITOUT(v)      do{ bFM0P_GPIO_PDOR1_P11=(v).bInitVal; \
    00217                                          bFM0P_GPIO_DDR1_P11=1u; \
    00218                                          bFM0P_GPIO_PFR1_P11=0u; \
    00219                                          bFM0P_GPIO_ADE_AN01=0u; }while(0)
    00220
    00221
    00222 /*---- GPIO bit NP11 ----*/
    00223 #define GPIO1PIN_NP11_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR1_P11)) )
    00224
    00225 #define GPIO1PIN_NP11_PUT(v)         ( bFM0P_GPIO_PDOR1_P11=(uint32_t)(!(v)) )
    00226
    00227 #define GPIO1PIN_NP11_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP11_INITIN(v) \
    00228                                                         : GPIO1PIN_NP11_INITOUT(v) )
    00229
    00230 #define GPIO1PIN_NP11_INITIN(v)      do{ bFM0P_GPIO_PCR1_P11=(v).bPullup; \
    00231                                          bFM0P_GPIO_DDR1_P11=0u; \
    00232                                          bFM0P_GPIO_PFR1_P11=0u; \
    00233                                          bFM0P_GPIO_ADE_AN01=0u; }while(0)
    00234
    00235
    00236 #define GPIO1PIN_NP11_INITOUT(v)     do{ bFM0P_GPIO_PDOR1_P11=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00237                                          bFM0P_GPIO_DDR1_P11=1u; \
    00238                                          bFM0P_GPIO_PFR1_P11=0u; \
    00239                                          bFM0P_GPIO_ADE_AN01=0u; }while(0)
    00240
    00241
    00242 /*---- GPIO bit P12 ----*/
    00243
    00244 #define GPIO1PIN_P12_GET             ( bFM0P_GPIO_PDIR1_P12 )
    00245
    00246 #define GPIO1PIN_P12_PUT(v)          ( bFM0P_GPIO_PDOR1_P12=(v) )
    00247
    00248 #define GPIO1PIN_P12_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P12_INITIN(v) \
    00249                                                         : GPIO1PIN_P12_INITOUT(v) )
    00250
    00251 #define GPIO1PIN_P12_INITIN(v)       do{ bFM0P_GPIO_PCR1_P12=(v).bPullup; \
    00252                                          bFM0P_GPIO_DDR1_P12=0u; \
    00253                                          bFM0P_GPIO_PFR1_P12=0u; \
    00254                                          bFM0P_GPIO_ADE_AN02=0u; }while(0)
    00255
    00256
    00257 #define GPIO1PIN_P12_INITOUT(v)      do{ bFM0P_GPIO_PDOR1_P12=(v).bInitVal; \
    00258                                          bFM0P_GPIO_DDR1_P12=1u; \
    00259                                          bFM0P_GPIO_PFR1_P12=0u; \
    00260                                          bFM0P_GPIO_ADE_AN02=0u; }while(0)
    00261
    00262
    00263 /*---- GPIO bit NP12 ----*/
    00264 #define GPIO1PIN_NP12_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR1_P12)) )
    00265
    00266 #define GPIO1PIN_NP12_PUT(v)         ( bFM0P_GPIO_PDOR1_P12=(uint32_t)(!(v)) )
    00267
    00268 #define GPIO1PIN_NP12_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP12_INITIN(v) \
    00269                                                         : GPIO1PIN_NP12_INITOUT(v) )
    00270
    00271 #define GPIO1PIN_NP12_INITIN(v)      do{ bFM0P_GPIO_PCR1_P12=(v).bPullup; \
    00272                                          bFM0P_GPIO_DDR1_P12=0u; \
    00273                                          bFM0P_GPIO_PFR1_P12=0u; \
    00274                                          bFM0P_GPIO_ADE_AN02=0u; }while(0)
    00275
    00276
    00277 #define GPIO1PIN_NP12_INITOUT(v)     do{ bFM0P_GPIO_PDOR1_P12=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00278                                          bFM0P_GPIO_DDR1_P12=1u; \
    00279                                          bFM0P_GPIO_PFR1_P12=0u; \
    00280                                          bFM0P_GPIO_ADE_AN02=0u; }while(0)
    00281
    00282
    00283 /*---- GPIO bit P13 ----*/
    00284
    00285 #define GPIO1PIN_P13_GET             ( bFM0P_GPIO_PDIR1_P13 )
    00286
    00287 #define GPIO1PIN_P13_PUT(v)          ( bFM0P_GPIO_PDOR1_P13=(v) )
    00288
    00289 #define GPIO1PIN_P13_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P13_INITIN(v) \
    00290                                                         : GPIO1PIN_P13_INITOUT(v) )
    00291
    00292 #define GPIO1PIN_P13_INITIN(v)       do{ bFM0P_GPIO_PCR1_P13=(v).bPullup; \
    00293                                          bFM0P_GPIO_DDR1_P13=0u; \
    00294                                          bFM0P_GPIO_PFR1_P13=0u; \
    00295                                          bFM0P_GPIO_ADE_AN03=0u; }while(0)
    00296
    00297
    00298 #define GPIO1PIN_P13_INITOUT(v)      do{ bFM0P_GPIO_PDOR1_P13=(v).bInitVal; \
    00299                                          bFM0P_GPIO_DDR1_P13=1u; \
    00300                                          bFM0P_GPIO_PFR1_P13=0u; \
    00301                                          bFM0P_GPIO_ADE_AN03=0u; }while(0)
    00302
    00303
    00304 /*---- GPIO bit NP13 ----*/
    00305 #define GPIO1PIN_NP13_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR1_P13)) )
    00306
    00307 #define GPIO1PIN_NP13_PUT(v)         ( bFM0P_GPIO_PDOR1_P13=(uint32_t)(!(v)) )
    00308
    00309 #define GPIO1PIN_NP13_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP13_INITIN(v) \
    00310                                                         : GPIO1PIN_NP13_INITOUT(v) )
    00311
    00312 #define GPIO1PIN_NP13_INITIN(v)      do{ bFM0P_GPIO_PCR1_P13=(v).bPullup; \
    00313                                          bFM0P_GPIO_DDR1_P13=0u; \
    00314                                          bFM0P_GPIO_PFR1_P13=0u; \
    00315                                          bFM0P_GPIO_ADE_AN03=0u; }while(0)
    00316
    00317
    00318 #define GPIO1PIN_NP13_INITOUT(v)     do{ bFM0P_GPIO_PDOR1_P13=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00319                                          bFM0P_GPIO_DDR1_P13=1u; \
    00320                                          bFM0P_GPIO_PFR1_P13=0u; \
    00321                                          bFM0P_GPIO_ADE_AN03=0u; }while(0)
    00322
    00323
    00324 /*---- GPIO bit P21 ----*/
    00325
    00326 #define GPIO1PIN_P21_GET             ( bFM0P_GPIO_PDIR2_P21 )
    00327
    00328 #define GPIO1PIN_P21_PUT(v)          ( bFM0P_GPIO_PDOR2_P21=(v) )
    00329
    00330 #define GPIO1PIN_P21_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P21_INITIN(v) \
    00331                                                         : GPIO1PIN_P21_INITOUT(v) )
    00332
    00333 #define GPIO1PIN_P21_INITIN(v)       do{ bFM0P_GPIO_PCR2_P21=(v).bPullup; \
    00334                                          bFM0P_GPIO_DDR2_P21=0u; \
    00335                                          bFM0P_GPIO_PFR2_P21=0u; }while(0)
    00336
    00337 #define GPIO1PIN_P21_INITOUT(v)      do{ bFM0P_GPIO_PDOR2_P21=(v).bInitVal; \
    00338                                          bFM0P_GPIO_DDR2_P21=1u; \
    00339                                          bFM0P_GPIO_PFR2_P21=0u; }while(0)
    00340
    00341
    00342 /*---- GPIO bit NP21 ----*/
    00343 #define GPIO1PIN_NP21_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR2_P21)) )
    00344
    00345 #define GPIO1PIN_NP21_PUT(v)         ( bFM0P_GPIO_PDOR2_P21=(uint32_t)(!(v)) )
    00346
    00347 #define GPIO1PIN_NP21_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP21_INITIN(v) \
    00348                                                         : GPIO1PIN_NP21_INITOUT(v) )
    00349
    00350 #define GPIO1PIN_NP21_INITIN(v)      do{ bFM0P_GPIO_PCR2_P21=(v).bPullup; \
    00351                                          bFM0P_GPIO_DDR2_P21=0u; \
    00352                                          bFM0P_GPIO_PFR2_P21=0u; }while(0)
    00353
    00354 #define GPIO1PIN_NP21_INITOUT(v)     do{ bFM0P_GPIO_PDOR2_P21=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00355                                          bFM0P_GPIO_DDR2_P21=1u; \
    00356                                          bFM0P_GPIO_PFR2_P21=0u; }while(0)
    00357
    00358
    00359 /*---- GPIO bit P22 ----*/
    00360
    00361 #define GPIO1PIN_P22_GET             ( bFM0P_GPIO_PDIR2_P22 )
    00362
    00363 #define GPIO1PIN_P22_PUT(v)          ( bFM0P_GPIO_PDOR2_P22=(v) )
    00364
    00365 #define GPIO1PIN_P22_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P22_INITIN(v) \
    00366                                                         : GPIO1PIN_P22_INITOUT(v) )
    00367
    00368 #define GPIO1PIN_P22_INITIN(v)       do{ bFM0P_GPIO_PCR2_P22=(v).bPullup; \
    00369                                          bFM0P_GPIO_DDR2_P22=0u; \
    00370                                          bFM0P_GPIO_PFR2_P22=0u; \
    00371                                          bFM0P_GPIO_ADE_AN07=0u; }while(0)
    00372
    00373
    00374 #define GPIO1PIN_P22_INITOUT(v)      do{ bFM0P_GPIO_PDOR2_P22=(v).bInitVal; \
    00375                                          bFM0P_GPIO_DDR2_P22=1u; \
    00376                                          bFM0P_GPIO_PFR2_P22=0u; \
    00377                                          bFM0P_GPIO_ADE_AN07=0u; }while(0)
    00378
    00379
    00380 /*---- GPIO bit NP22 ----*/
    00381 #define GPIO1PIN_NP22_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR2_P22)) )
    00382
    00383 #define GPIO1PIN_NP22_PUT(v)         ( bFM0P_GPIO_PDOR2_P22=(uint32_t)(!(v)) )
    00384
    00385 #define GPIO1PIN_NP22_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP22_INITIN(v) \
    00386                                                         : GPIO1PIN_NP22_INITOUT(v) )
    00387
    00388 #define GPIO1PIN_NP22_INITIN(v)      do{ bFM0P_GPIO_PCR2_P22=(v).bPullup; \
    00389                                          bFM0P_GPIO_DDR2_P22=0u; \
    00390                                          bFM0P_GPIO_PFR2_P22=0u; \
    00391                                          bFM0P_GPIO_ADE_AN07=0u; }while(0)
    00392
    00393
    00394 #define GPIO1PIN_NP22_INITOUT(v)     do{ bFM0P_GPIO_PDOR2_P22=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00395                                          bFM0P_GPIO_DDR2_P22=1u; \
    00396                                          bFM0P_GPIO_PFR2_P22=0u; \
    00397                                          bFM0P_GPIO_ADE_AN07=0u; }while(0)
    00398
    00399
    00400 /*---- GPIO bit P23 ----*/
    00401
    00402 #define GPIO1PIN_P23_GET             ( bFM0P_GPIO_PDIR2_P23 )
    00403
    00404 #define GPIO1PIN_P23_PUT(v)          ( bFM0P_GPIO_PDOR2_P23=(v) )
    00405
    00406 #define GPIO1PIN_P23_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P23_INITIN(v) \
    00407                                                         : GPIO1PIN_P23_INITOUT(v) )
    00408
    00409 #define GPIO1PIN_P23_INITIN(v)       do{ bFM0P_GPIO_PCR2_P23=(v).bPullup; \
    00410                                          bFM0P_GPIO_DDR2_P23=0u; \
    00411                                          bFM0P_GPIO_PFR2_P23=0u; \
    00412                                          bFM0P_GPIO_ADE_AN06=0u; }while(0)
    00413
    00414
    00415 #define GPIO1PIN_P23_INITOUT(v)      do{ bFM0P_GPIO_PDOR2_P23=(v).bInitVal; \
    00416                                          bFM0P_GPIO_DDR2_P23=1u; \
    00417                                          bFM0P_GPIO_PFR2_P23=0u; \
    00418                                          bFM0P_GPIO_ADE_AN06=0u; }while(0)
    00419
    00420
    00421 /*---- GPIO bit NP23 ----*/
    00422 #define GPIO1PIN_NP23_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR2_P23)) )
    00423
    00424 #define GPIO1PIN_NP23_PUT(v)         ( bFM0P_GPIO_PDOR2_P23=(uint32_t)(!(v)) )
    00425
    00426 #define GPIO1PIN_NP23_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP23_INITIN(v) \
    00427                                                         : GPIO1PIN_NP23_INITOUT(v) )
    00428
    00429 #define GPIO1PIN_NP23_INITIN(v)      do{ bFM0P_GPIO_PCR2_P23=(v).bPullup; \
    00430                                          bFM0P_GPIO_DDR2_P23=0u; \
    00431                                          bFM0P_GPIO_PFR2_P23=0u; \
    00432                                          bFM0P_GPIO_ADE_AN06=0u; }while(0)
    00433
    00434
    00435 #define GPIO1PIN_NP23_INITOUT(v)     do{ bFM0P_GPIO_PDOR2_P23=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00436                                          bFM0P_GPIO_DDR2_P23=1u; \
    00437                                          bFM0P_GPIO_PFR2_P23=0u; \
    00438                                          bFM0P_GPIO_ADE_AN06=0u; }while(0)
    00439
    00440
    00441 /*---- GPIO bit P3A ----*/
    00442
    00443 #define GPIO1PIN_P3A_GET             ( bFM0P_GPIO_PDIR3_P3A )
    00444
    00445 #define GPIO1PIN_P3A_PUT(v)          ( bFM0P_GPIO_PDOR3_P3A=(v) )
    00446
    00447 #define GPIO1PIN_P3A_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P3A_INITIN(v) \
    00448                                                         : GPIO1PIN_P3A_INITOUT(v) )
    00449
    00450 #define GPIO1PIN_P3A_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3A=(v).bPullup; \
    00451                                          bFM0P_GPIO_DDR3_P3A=0u; \
    00452                                          bFM0P_GPIO_PFR3_P3A=0u; }while(0)
    00453
    00454 #define GPIO1PIN_P3A_INITOUT(v)      do{ bFM0P_GPIO_PDOR3_P3A=(v).bInitVal; \
    00455                                          bFM0P_GPIO_DDR3_P3A=1u; \
    00456                                          bFM0P_GPIO_PFR3_P3A=0u; }while(0)
    00457
    00458
    00459 /*---- GPIO bit NP3A ----*/
    00460 #define GPIO1PIN_NP3A_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR3_P3A)) )
    00461
    00462 #define GPIO1PIN_NP3A_PUT(v)         ( bFM0P_GPIO_PDOR3_P3A=(uint32_t)(!(v)) )
    00463
    00464 #define GPIO1PIN_NP3A_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP3A_INITIN(v) \
    00465                                                         : GPIO1PIN_NP3A_INITOUT(v) )
    00466
    00467 #define GPIO1PIN_NP3A_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3A=(v).bPullup; \
    00468                                          bFM0P_GPIO_DDR3_P3A=0u; \
    00469                                          bFM0P_GPIO_PFR3_P3A=0u; }while(0)
    00470
    00471 #define GPIO1PIN_NP3A_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3A=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00472                                          bFM0P_GPIO_DDR3_P3A=1u; \
    00473                                          bFM0P_GPIO_PFR3_P3A=0u; }while(0)
    00474
    00475
    00476 /*---- GPIO bit P3B ----*/
    00477
    00478 #define GPIO1PIN_P3B_GET             ( bFM0P_GPIO_PDIR3_P3B )
    00479
    00480 #define GPIO1PIN_P3B_PUT(v)          ( bFM0P_GPIO_PDOR3_P3B=(v) )
    00481
    00482 #define GPIO1PIN_P3B_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P3B_INITIN(v) \
    00483                                                         : GPIO1PIN_P3B_INITOUT(v) )
    00484
    00485 #define GPIO1PIN_P3B_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3B=(v).bPullup; \
    00486                                          bFM0P_GPIO_DDR3_P3B=0u; \
    00487                                          bFM0P_GPIO_PFR3_P3B=0u; }while(0)
    00488
    00489 #define GPIO1PIN_P3B_INITOUT(v)      do{ bFM0P_GPIO_PDOR3_P3B=(v).bInitVal; \
    00490                                          bFM0P_GPIO_DDR3_P3B=1u; \
    00491                                          bFM0P_GPIO_PFR3_P3B=0u; }while(0)
    00492
    00493
    00494 /*---- GPIO bit NP3B ----*/
    00495 #define GPIO1PIN_NP3B_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR3_P3B)) )
    00496
    00497 #define GPIO1PIN_NP3B_PUT(v)         ( bFM0P_GPIO_PDOR3_P3B=(uint32_t)(!(v)) )
    00498
    00499 #define GPIO1PIN_NP3B_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP3B_INITIN(v) \
    00500                                                         : GPIO1PIN_NP3B_INITOUT(v) )
    00501
    00502 #define GPIO1PIN_NP3B_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3B=(v).bPullup; \
    00503                                          bFM0P_GPIO_DDR3_P3B=0u; \
    00504                                          bFM0P_GPIO_PFR3_P3B=0u; }while(0)
    00505
    00506 #define GPIO1PIN_NP3B_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3B=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00507                                          bFM0P_GPIO_DDR3_P3B=1u; \
    00508                                          bFM0P_GPIO_PFR3_P3B=0u; }while(0)
    00509
    00510
    00511 /*---- GPIO bit P3C ----*/
    00512
    00513 #define GPIO1PIN_P3C_GET             ( bFM0P_GPIO_PDIR3_P3C )
    00514
    00515 #define GPIO1PIN_P3C_PUT(v)          ( bFM0P_GPIO_PDOR3_P3C=(v) )
    00516
    00517 #define GPIO1PIN_P3C_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P3C_INITIN(v) \
    00518                                                         : GPIO1PIN_P3C_INITOUT(v) )
    00519
    00520 #define GPIO1PIN_P3C_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3C=(v).bPullup; \
    00521                                          bFM0P_GPIO_DDR3_P3C=0u; \
    00522                                          bFM0P_GPIO_PFR3_P3C=0u; }while(0)
    00523
    00524 #define GPIO1PIN_P3C_INITOUT(v)      do{ bFM0P_GPIO_PDOR3_P3C=(v).bInitVal; \
    00525                                          bFM0P_GPIO_DDR3_P3C=1u; \
    00526                                          bFM0P_GPIO_PFR3_P3C=0u; }while(0)
    00527
    00528
    00529 /*---- GPIO bit NP3C ----*/
    00530 #define GPIO1PIN_NP3C_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR3_P3C)) )
    00531
    00532 #define GPIO1PIN_NP3C_PUT(v)         ( bFM0P_GPIO_PDOR3_P3C=(uint32_t)(!(v)) )
    00533
    00534 #define GPIO1PIN_NP3C_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP3C_INITIN(v) \
    00535                                                         : GPIO1PIN_NP3C_INITOUT(v) )
    00536
    00537 #define GPIO1PIN_NP3C_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3C=(v).bPullup; \
    00538                                          bFM0P_GPIO_DDR3_P3C=0u; \
    00539                                          bFM0P_GPIO_PFR3_P3C=0u; }while(0)
    00540
    00541 #define GPIO1PIN_NP3C_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3C=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00542                                          bFM0P_GPIO_DDR3_P3C=1u; \
    00543                                          bFM0P_GPIO_PFR3_P3C=0u; }while(0)
    00544
    00545
    00546 /*---- GPIO bit P3D ----*/
    00547
    00548 #define GPIO1PIN_P3D_GET             ( bFM0P_GPIO_PDIR3_P3D )
    00549
    00550 #define GPIO1PIN_P3D_PUT(v)          ( bFM0P_GPIO_PDOR3_P3D=(v) )
    00551
    00552 #define GPIO1PIN_P3D_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P3D_INITIN(v) \
    00553                                                         : GPIO1PIN_P3D_INITOUT(v) )
    00554
    00555 #define GPIO1PIN_P3D_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3D=(v).bPullup; \
    00556                                          bFM0P_GPIO_DDR3_P3D=0u; \
    00557                                          bFM0P_GPIO_PFR3_P3D=0u; }while(0)
    00558
    00559 #define GPIO1PIN_P3D_INITOUT(v)      do{ bFM0P_GPIO_PDOR3_P3D=(v).bInitVal; \
    00560                                          bFM0P_GPIO_DDR3_P3D=1u; \
    00561                                          bFM0P_GPIO_PFR3_P3D=0u; }while(0)
    00562
    00563
    00564 /*---- GPIO bit NP3D ----*/
    00565 #define GPIO1PIN_NP3D_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR3_P3D)) )
    00566
    00567 #define GPIO1PIN_NP3D_PUT(v)         ( bFM0P_GPIO_PDOR3_P3D=(uint32_t)(!(v)) )
    00568
    00569 #define GPIO1PIN_NP3D_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP3D_INITIN(v) \
    00570                                                         : GPIO1PIN_NP3D_INITOUT(v) )
    00571
    00572 #define GPIO1PIN_NP3D_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3D=(v).bPullup; \
    00573                                          bFM0P_GPIO_DDR3_P3D=0u; \
    00574                                          bFM0P_GPIO_PFR3_P3D=0u; }while(0)
    00575
    00576 #define GPIO1PIN_NP3D_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3D=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00577                                          bFM0P_GPIO_DDR3_P3D=1u; \
    00578                                          bFM0P_GPIO_PFR3_P3D=0u; }while(0)
    00579
    00580
    00581 /*---- GPIO bit P3E ----*/
    00582
    00583 #define GPIO1PIN_P3E_GET             ( bFM0P_GPIO_PDIR3_P3E )
    00584
    00585 #define GPIO1PIN_P3E_PUT(v)          ( bFM0P_GPIO_PDOR3_P3E=(v) )
    00586
    00587 #define GPIO1PIN_P3E_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P3E_INITIN(v) \
    00588                                                         : GPIO1PIN_P3E_INITOUT(v) )
    00589
    00590 #define GPIO1PIN_P3E_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3E=(v).bPullup; \
    00591                                          bFM0P_GPIO_DDR3_P3E=0u; \
    00592                                          bFM0P_GPIO_PFR3_P3E=0u; }while(0)
    00593
    00594 #define GPIO1PIN_P3E_INITOUT(v)      do{ bFM0P_GPIO_PDOR3_P3E=(v).bInitVal; \
    00595                                          bFM0P_GPIO_DDR3_P3E=1u; \
    00596                                          bFM0P_GPIO_PFR3_P3E=0u; }while(0)
    00597
    00598
    00599 /*---- GPIO bit NP3E ----*/
    00600 #define GPIO1PIN_NP3E_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR3_P3E)) )
    00601
    00602 #define GPIO1PIN_NP3E_PUT(v)         ( bFM0P_GPIO_PDOR3_P3E=(uint32_t)(!(v)) )
    00603
    00604 #define GPIO1PIN_NP3E_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP3E_INITIN(v) \
    00605                                                         : GPIO1PIN_NP3E_INITOUT(v) )
    00606
    00607 #define GPIO1PIN_NP3E_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3E=(v).bPullup; \
    00608                                          bFM0P_GPIO_DDR3_P3E=0u; \
    00609                                          bFM0P_GPIO_PFR3_P3E=0u; }while(0)
    00610
    00611 #define GPIO1PIN_NP3E_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3E=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00612                                          bFM0P_GPIO_DDR3_P3E=1u; \
    00613                                          bFM0P_GPIO_PFR3_P3E=0u; }while(0)
    00614
    00615
    00616 /*---- GPIO bit P3F ----*/
    00617
    00618 #define GPIO1PIN_P3F_GET             ( bFM0P_GPIO_PDIR3_P3F )
    00619
    00620 #define GPIO1PIN_P3F_PUT(v)          ( bFM0P_GPIO_PDOR3_P3F=(v) )
    00621
    00622 #define GPIO1PIN_P3F_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P3F_INITIN(v) \
    00623                                                         : GPIO1PIN_P3F_INITOUT(v) )
    00624
    00625 #define GPIO1PIN_P3F_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3F=(v).bPullup; \
    00626                                          bFM0P_GPIO_DDR3_P3F=0u; \
    00627                                          bFM0P_GPIO_PFR3_P3F=0u; }while(0)
    00628
    00629 #define GPIO1PIN_P3F_INITOUT(v)      do{ bFM0P_GPIO_PDOR3_P3F=(v).bInitVal; \
    00630                                          bFM0P_GPIO_DDR3_P3F=1u; \
    00631                                          bFM0P_GPIO_PFR3_P3F=0u; }while(0)
    00632
    00633
    00634 /*---- GPIO bit NP3F ----*/
    00635 #define GPIO1PIN_NP3F_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR3_P3F)) )
    00636
    00637 #define GPIO1PIN_NP3F_PUT(v)         ( bFM0P_GPIO_PDOR3_P3F=(uint32_t)(!(v)) )
    00638
    00639 #define GPIO1PIN_NP3F_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP3F_INITIN(v) \
    00640                                                         : GPIO1PIN_NP3F_INITOUT(v) )
    00641
    00642 #define GPIO1PIN_NP3F_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3F=(v).bPullup; \
    00643                                          bFM0P_GPIO_DDR3_P3F=0u; \
    00644                                          bFM0P_GPIO_PFR3_P3F=0u; }while(0)
    00645
    00646 #define GPIO1PIN_NP3F_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3F=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00647                                          bFM0P_GPIO_DDR3_P3F=1u; \
    00648                                          bFM0P_GPIO_PFR3_P3F=0u; }while(0)
    00649
    00650
    00651 /*---- GPIO bit P46 ----*/
    00652
    00653 #define GPIO1PIN_P46_GET             ( bFM0P_GPIO_PDIR4_P46 )
    00654
    00655 #define GPIO1PIN_P46_PUT(v)          ( bFM0P_GPIO_PDOR4_P46=(v) )
    00656
    00657 #define GPIO1PIN_P46_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P46_INITIN(v) \
    00658                                                         : GPIO1PIN_P46_INITOUT(v) )
    00659
    00660 #define GPIO1PIN_P46_INITIN(v)       do{ bFM0P_GPIO_PCR4_P46=(v).bPullup; \
    00661                                          bFM0P_GPIO_DDR4_P46=0u; \
    00662                                          bFM0P_GPIO_SPSR_SUBXC0=0u; \
    00663                                          bFM0P_GPIO_SPSR_SUBXC1=0u; \
    00664                                          bFM0P_GPIO_PFR4_P46=0u; }while(0)
    00665
    00666 #define GPIO1PIN_P46_INITOUT(v)      do{ bFM0P_GPIO_PDOR4_P46=(v).bInitVal; \
    00667                                          bFM0P_GPIO_DDR4_P46=1u; \
    00668                                          bFM0P_GPIO_SPSR_SUBXC0=0u; \
    00669                                          bFM0P_GPIO_SPSR_SUBXC1=0u; \
    00670                                          bFM0P_GPIO_PFR4_P46=0u; }while(0)
    00671
    00672
    00673 /*---- GPIO bit NP46 ----*/
    00674 #define GPIO1PIN_NP46_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR4_P46)) )
    00675
    00676 #define GPIO1PIN_NP46_PUT(v)         ( bFM0P_GPIO_PDOR4_P46=(uint32_t)(!(v)) )
    00677
    00678 #define GPIO1PIN_NP46_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP46_INITIN(v) \
    00679                                                         : GPIO1PIN_NP46_INITOUT(v) )
    00680
    00681 #define GPIO1PIN_NP46_INITIN(v)      do{ bFM0P_GPIO_PCR4_P46=(v).bPullup; \
    00682                                          bFM0P_GPIO_DDR4_P46=0u; \
    00683                                          bFM0P_GPIO_SPSR_SUBXC0=0u; \
    00684                                          bFM0P_GPIO_SPSR_SUBXC1=0u; \
    00685                                          bFM0P_GPIO_PFR4_P46=0u; }while(0)
    00686
    00687 #define GPIO1PIN_NP46_INITOUT(v)     do{ bFM0P_GPIO_PDOR4_P46=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00688                                          bFM0P_GPIO_DDR4_P46=1u; \
    00689                                          bFM0P_GPIO_SPSR_SUBXC0=0u; \
    00690                                          bFM0P_GPIO_SPSR_SUBXC1=0u; \
    00691                                          bFM0P_GPIO_PFR4_P46=0u; }while(0)
    00692
    00693
    00694 /*---- GPIO bit P47 ----*/
    00695
    00696 #define GPIO1PIN_P47_GET             ( bFM0P_GPIO_PDIR4_P47 )
    00697
    00698 #define GPIO1PIN_P47_PUT(v)          ( bFM0P_GPIO_PDOR4_P47=(v) )
    00699
    00700 #define GPIO1PIN_P47_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P47_INITIN(v) \
    00701                                                         : GPIO1PIN_P47_INITOUT(v) )
    00702
    00703 #define GPIO1PIN_P47_INITIN(v)       do{ bFM0P_GPIO_PCR4_P47=(v).bPullup; \
    00704                                          bFM0P_GPIO_DDR4_P47=0u; \
    00705                                          bFM0P_GPIO_SPSR_SUBXC0=0u; \
    00706                                          bFM0P_GPIO_SPSR_SUBXC1=0u; \
    00707                                          bFM0P_GPIO_PFR4_P47=0u; }while(0)
    00708
    00709 #define GPIO1PIN_P47_INITOUT(v)      do{ bFM0P_GPIO_PDOR4_P47=(v).bInitVal; \
    00710                                          bFM0P_GPIO_DDR4_P47=1u; \
    00711                                          bFM0P_GPIO_SPSR_SUBXC0=0u; \
    00712                                          bFM0P_GPIO_SPSR_SUBXC1=0u; \
    00713                                          bFM0P_GPIO_PFR4_P47=0u; }while(0)
    00714
    00715
    00716 /*---- GPIO bit NP47 ----*/
    00717 #define GPIO1PIN_NP47_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR4_P47)) )
    00718
    00719 #define GPIO1PIN_NP47_PUT(v)         ( bFM0P_GPIO_PDOR4_P47=(uint32_t)(!(v)) )
    00720
    00721 #define GPIO1PIN_NP47_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP47_INITIN(v) \
    00722                                                         : GPIO1PIN_NP47_INITOUT(v) )
    00723
    00724 #define GPIO1PIN_NP47_INITIN(v)      do{ bFM0P_GPIO_PCR4_P47=(v).bPullup; \
    00725                                          bFM0P_GPIO_DDR4_P47=0u; \
    00726                                          bFM0P_GPIO_SPSR_SUBXC0=0u; \
    00727                                          bFM0P_GPIO_SPSR_SUBXC1=0u; \
    00728                                          bFM0P_GPIO_PFR4_P47=0u; }while(0)
    00729
    00730 #define GPIO1PIN_NP47_INITOUT(v)     do{ bFM0P_GPIO_PDOR4_P47=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00731                                          bFM0P_GPIO_DDR4_P47=1u; \
    00732                                          bFM0P_GPIO_SPSR_SUBXC0=0u; \
    00733                                          bFM0P_GPIO_SPSR_SUBXC1=0u; \
    00734                                          bFM0P_GPIO_PFR4_P47=0u; }while(0)
    00735
    00736
    00737 /*---- GPIO bit P60 ----*/
    00738
    00739 #define GPIO1PIN_P60_GET             ( bFM0P_GPIO_PDIR6_P60 )
    00740
    00741 #define GPIO1PIN_P60_PUT(v)          ( bFM0P_GPIO_PDOR6_P60=(v) )
    00742
    00743 #define GPIO1PIN_P60_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P60_INITIN(v) \
    00744                                                         : GPIO1PIN_P60_INITOUT(v) )
    00745
    00746 #define GPIO1PIN_P60_INITIN(v)       do{ bFM0P_GPIO_PCR6_P60=(v).bPullup; \
    00747                                          bFM0P_GPIO_DDR6_P60=0u; \
    00748                                          bFM0P_GPIO_PFR6_P60=0u; }while(0)
    00749
    00750 #define GPIO1PIN_P60_INITOUT(v)      do{ bFM0P_GPIO_PDOR6_P60=(v).bInitVal; \
    00751                                          bFM0P_GPIO_DDR6_P60=1u; \
    00752                                          bFM0P_GPIO_PFR6_P60=0u; }while(0)
    00753
    00754
    00755 /*---- GPIO bit NP60 ----*/
    00756 #define GPIO1PIN_NP60_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR6_P60)) )
    00757
    00758 #define GPIO1PIN_NP60_PUT(v)         ( bFM0P_GPIO_PDOR6_P60=(uint32_t)(!(v)) )
    00759
    00760 #define GPIO1PIN_NP60_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP60_INITIN(v) \
    00761                                                         : GPIO1PIN_NP60_INITOUT(v) )
    00762
    00763 #define GPIO1PIN_NP60_INITIN(v)      do{ bFM0P_GPIO_PCR6_P60=(v).bPullup; \
    00764                                          bFM0P_GPIO_DDR6_P60=0u; \
    00765                                          bFM0P_GPIO_PFR6_P60=0u; }while(0)
    00766
    00767 #define GPIO1PIN_NP60_INITOUT(v)     do{ bFM0P_GPIO_PDOR6_P60=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00768                                          bFM0P_GPIO_DDR6_P60=1u; \
    00769                                          bFM0P_GPIO_PFR6_P60=0u; }while(0)
    00770
    00771
    00772 /*---- GPIO bit P61 ----*/
    00773
    00774 #define GPIO1PIN_P61_GET             ( bFM0P_GPIO_PDIR6_P61 )
    00775
    00776 #define GPIO1PIN_P61_PUT(v)          ( bFM0P_GPIO_PDOR6_P61=(v) )
    00777
    00778 #define GPIO1PIN_P61_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P61_INITIN(v) \
    00779                                                         : GPIO1PIN_P61_INITOUT(v) )
    00780
    00781 #define GPIO1PIN_P61_INITIN(v)       do{ bFM0P_GPIO_PCR6_P61=(v).bPullup; \
    00782                                          bFM0P_GPIO_DDR6_P61=0u; \
    00783                                          bFM0P_GPIO_PFR6_P61=0u; }while(0)
    00784
    00785 #define GPIO1PIN_P61_INITOUT(v)      do{ bFM0P_GPIO_PDOR6_P61=(v).bInitVal; \
    00786                                          bFM0P_GPIO_DDR6_P61=1u; \
    00787                                          bFM0P_GPIO_PFR6_P61=0u; }while(0)
    00788
    00789
    00790 /*---- GPIO bit NP61 ----*/
    00791 #define GPIO1PIN_NP61_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR6_P61)) )
    00792
    00793 #define GPIO1PIN_NP61_PUT(v)         ( bFM0P_GPIO_PDOR6_P61=(uint32_t)(!(v)) )
    00794
    00795 #define GPIO1PIN_NP61_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP61_INITIN(v) \
    00796                                                         : GPIO1PIN_NP61_INITOUT(v) )
    00797
    00798 #define GPIO1PIN_NP61_INITIN(v)      do{ bFM0P_GPIO_PCR6_P61=(v).bPullup; \
    00799                                          bFM0P_GPIO_DDR6_P61=0u; \
    00800                                          bFM0P_GPIO_PFR6_P61=0u; }while(0)
    00801
    00802 #define GPIO1PIN_NP61_INITOUT(v)     do{ bFM0P_GPIO_PDOR6_P61=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00803                                          bFM0P_GPIO_DDR6_P61=1u; \
    00804                                          bFM0P_GPIO_PFR6_P61=0u; }while(0)
    00805
    00806
    00807 /*---- GPIO bit PE0 ----*/
    00808
    00809 #define GPIO1PIN_PE0_GET             ( bFM0P_GPIO_PDIRE_PE0 )
    00810
    00811 #define GPIO1PIN_PE0_PUT(v)          ( bFM0P_GPIO_PDORE_PE0=(v) )
    00812
    00813 #define GPIO1PIN_PE0_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_PE0_INITIN(v) \
    00814                                                         : GPIO1PIN_PE0_INITOUT(v) )
    00815
    00816 #define GPIO1PIN_PE0_INITIN(v)       do{ bFM0P_GPIO_PCRE_PE0=(v).bPullup; \
    00817                                          bFM0P_GPIO_DDRE_PE0=0u; \
    00818                                          bFM0P_GPIO_PFRE_PE0=0u; }while(0)
    00819
    00820 #define GPIO1PIN_PE0_INITOUT(v)      do{ bFM0P_GPIO_PDORE_PE0=(v).bInitVal; \
    00821                                          bFM0P_GPIO_DDRE_PE0=1u; \
    00822                                          bFM0P_GPIO_PFRE_PE0=0u; }while(0)
    00823
    00824
    00825 /*---- GPIO bit NPE0 ----*/
    00826 #define GPIO1PIN_NPE0_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIRE_PE0)) )
    00827
    00828 #define GPIO1PIN_NPE0_PUT(v)         ( bFM0P_GPIO_PDORE_PE0=(uint32_t)(!(v)) )
    00829
    00830 #define GPIO1PIN_NPE0_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NPE0_INITIN(v) \
    00831                                                         : GPIO1PIN_NPE0_INITOUT(v) )
    00832
    00833 #define GPIO1PIN_NPE0_INITIN(v)      do{ bFM0P_GPIO_PCRE_PE0=(v).bPullup; \
    00834                                          bFM0P_GPIO_DDRE_PE0=0u; \
    00835                                          bFM0P_GPIO_PFRE_PE0=0u; }while(0)
    00836
    00837 #define GPIO1PIN_NPE0_INITOUT(v)     do{ bFM0P_GPIO_PDORE_PE0=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00838                                          bFM0P_GPIO_DDRE_PE0=1u; \
    00839                                          bFM0P_GPIO_PFRE_PE0=0u; }while(0)
    00840
    00841
    00842 /*---- GPIO bit PE2 ----*/
    00843
    00844 #define GPIO1PIN_PE2_GET             ( bFM0P_GPIO_PDIRE_PE2 )
    00845
    00846 #define GPIO1PIN_PE2_PUT(v)          ( bFM0P_GPIO_PDORE_PE2=(v) )
    00847
    00848 #define GPIO1PIN_PE2_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_PE2_INITIN(v) \
    00849                                                         : GPIO1PIN_PE2_INITOUT(v) )
    00850
    00851 #define GPIO1PIN_PE2_INITIN(v)       do{ bFM0P_GPIO_PCRE_PE2=(v).bPullup; \
    00852                                          bFM0P_GPIO_DDRE_PE2=0u; \
    00853                                          bFM0P_GPIO_SPSR_MAINXC0=0u; \
    00854                                          bFM0P_GPIO_SPSR_MAINXC1=0u; \
    00855                                          bFM0P_GPIO_PFRE_PE2=0u; }while(0)
    00856
    00857 #define GPIO1PIN_PE2_INITOUT(v)      do{ bFM0P_GPIO_PDORE_PE2=(v).bInitVal; \
    00858                                          bFM0P_GPIO_DDRE_PE2=1u; \
    00859                                          bFM0P_GPIO_SPSR_MAINXC0=0u; \
    00860                                          bFM0P_GPIO_SPSR_MAINXC1=0u; \
    00861                                          bFM0P_GPIO_PFRE_PE2=0u; }while(0)
    00862
    00863
    00864 /*---- GPIO bit NPE2 ----*/
    00865 #define GPIO1PIN_NPE2_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIRE_PE2)) )
    00866
    00867 #define GPIO1PIN_NPE2_PUT(v)         ( bFM0P_GPIO_PDORE_PE2=(uint32_t)(!(v)) )
    00868
    00869 #define GPIO1PIN_NPE2_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NPE2_INITIN(v) \
    00870                                                         : GPIO1PIN_NPE2_INITOUT(v) )
    00871
    00872 #define GPIO1PIN_NPE2_INITIN(v)      do{ bFM0P_GPIO_PCRE_PE2=(v).bPullup; \
    00873                                          bFM0P_GPIO_DDRE_PE2=0u; \
    00874                                          bFM0P_GPIO_SPSR_MAINXC0=0u; \
    00875                                          bFM0P_GPIO_SPSR_MAINXC1=0u; \
    00876                                          bFM0P_GPIO_PFRE_PE2=0u; }while(0)
    00877
    00878 #define GPIO1PIN_NPE2_INITOUT(v)     do{ bFM0P_GPIO_PDORE_PE2=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00879                                          bFM0P_GPIO_DDRE_PE2=1u; \
    00880                                          bFM0P_GPIO_SPSR_MAINXC0=0u; \
    00881                                          bFM0P_GPIO_SPSR_MAINXC1=0u; \
    00882                                          bFM0P_GPIO_PFRE_PE2=0u; }while(0)
    00883
    00884
    00885 /*---- GPIO bit PE3 ----*/
    00886
    00887 #define GPIO1PIN_PE3_GET             ( bFM0P_GPIO_PDIRE_PE3 )
    00888
    00889 #define GPIO1PIN_PE3_PUT(v)          ( bFM0P_GPIO_PDORE_PE3=(v) )
    00890
    00891 #define GPIO1PIN_PE3_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_PE3_INITIN(v) \
    00892                                                         : GPIO1PIN_PE3_INITOUT(v) )
    00893
    00894 #define GPIO1PIN_PE3_INITIN(v)       do{ bFM0P_GPIO_PCRE_PE3=(v).bPullup; \
    00895                                          bFM0P_GPIO_DDRE_PE3=0u; \
    00896                                          bFM0P_GPIO_SPSR_MAINXC0=0u; \
    00897                                          bFM0P_GPIO_SPSR_MAINXC1=0u; \
    00898                                          bFM0P_GPIO_PFRE_PE3=0u; }while(0)
    00899
    00900 #define GPIO1PIN_PE3_INITOUT(v)      do{ bFM0P_GPIO_PDORE_PE3=(v).bInitVal; \
    00901                                          bFM0P_GPIO_DDRE_PE3=1u; \
    00902                                          bFM0P_GPIO_SPSR_MAINXC0=0u; \
    00903                                          bFM0P_GPIO_SPSR_MAINXC1=0u; \
    00904                                          bFM0P_GPIO_PFRE_PE3=0u; }while(0)
    00905
    00906
    00907 /*---- GPIO bit NPE3 ----*/
    00908 #define GPIO1PIN_NPE3_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIRE_PE3)) )
    00909
    00910 #define GPIO1PIN_NPE3_PUT(v)         ( bFM0P_GPIO_PDORE_PE3=(uint32_t)(!(v)) )
    00911
    00912 #define GPIO1PIN_NPE3_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NPE3_INITIN(v) \
    00913                                                         : GPIO1PIN_NPE3_INITOUT(v) )
    00914
    00915 #define GPIO1PIN_NPE3_INITIN(v)      do{ bFM0P_GPIO_PCRE_PE3=(v).bPullup; \
    00916                                          bFM0P_GPIO_DDRE_PE3=0u; \
    00917                                          bFM0P_GPIO_SPSR_MAINXC0=0u; \
    00918                                          bFM0P_GPIO_SPSR_MAINXC1=0u; \
    00919                                          bFM0P_GPIO_PFRE_PE3=0u; }while(0)
    00920
    00921 #define GPIO1PIN_NPE3_INITOUT(v)     do{ bFM0P_GPIO_PDORE_PE3=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00922                                          bFM0P_GPIO_DDRE_PE3=1u; \
    00923                                          bFM0P_GPIO_SPSR_MAINXC0=0u; \
    00924                                          bFM0P_GPIO_SPSR_MAINXC1=0u; \
    00925                                          bFM0P_GPIO_PFRE_PE3=0u; }while(0)
    00926
    00927
    00928 /******************************************************************************
    00929    Fast GPIO
    00930 *******************************************************************************/
    00931
    00932 /*---- Fast GPIO bit P01 ----*/
    00933
    00934 #define FGPIO1PIN_P01_GET             ( FM0P_FASTIO->FPDIR0_f.P01 )
    00935
    00936 #define FGPIO1PIN_P01_PUT(v)          ( bFM0P_GPIO_FPDOR0_P01=(v) )
    00937
    00938 #define FGPIO1PIN_P01_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P01_INITIN(v) \
    00939                                                          : FGPIO1PIN_P01_INITOUT(v) )
    00940
    00941 #define FGPIO1PIN_P01_INITIN(v)       do{ bFM0P_GPIO_PCR0_P01=(v).bPullup; \
    00942                                           bFM0P_GPIO_DDR0_P01=0u; \
    00943                                           bFM0P_GPIO_PFR0_P01=0u; }while(0)
    00944
    00945 #define FGPIO1PIN_P01_INITOUT(v)      do{ bFM0P_GPIO_FPDOR0_P01=(v).bInitVal; \
    00946                                           bFM0P_GPIO_DDR0_P01=1u; \
    00947                                           bFM0P_GPIO_PFR0_P01=0u; }while(0)
    00948
    00949
    00950 /*---- Fast GPIO bit NP01 ----*/
    00951 #define FGPIO1PIN_NP01_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR0_f.P01)) )
    00952
    00953 #define FGPIO1PIN_NP01_PUT(v)         ( bFM0P_GPIO_FPDOR0_P01=(uint8_t)(~(v)) )
    00954
    00955 #define FGPIO1PIN_NP01_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP01_INITIN(v) \
    00956                                                          : FGPIO1PIN_NP01_INITOUT(v) )
    00957
    00958 #define FGPIO1PIN_NP01_INITIN(v)      do{ bFM0P_GPIO_PCR0_P01=(v).bPullup; \
    00959                                           bFM0P_GPIO_DDR0_P01=0u; \
    00960                                           bFM0P_GPIO_PFR0_P01=0u; }while(0)
    00961
    00962 #define FGPIO1PIN_NP01_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P01=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    00963                                           bFM0P_GPIO_DDR0_P01=1u; \
    00964                                           bFM0P_GPIO_PFR0_P01=0u; }while(0)
    00965
    00966
    00967 /*---- Fast GPIO bit P03 ----*/
    00968
    00969 #define FGPIO1PIN_P03_GET             ( FM0P_FASTIO->FPDIR0_f.P03 )
    00970
    00971 #define FGPIO1PIN_P03_PUT(v)          ( bFM0P_GPIO_FPDOR0_P03=(v) )
    00972
    00973 #define FGPIO1PIN_P03_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P03_INITIN(v) \
    00974                                                          : FGPIO1PIN_P03_INITOUT(v) )
    00975
    00976 #define FGPIO1PIN_P03_INITIN(v)       do{ bFM0P_GPIO_PCR0_P03=(v).bPullup; \
    00977                                           bFM0P_GPIO_DDR0_P03=0u; \
    00978                                           bFM0P_GPIO_PFR0_P03=0u; }while(0)
    00979
    00980 #define FGPIO1PIN_P03_INITOUT(v)      do{ bFM0P_GPIO_FPDOR0_P03=(v).bInitVal; \
    00981                                           bFM0P_GPIO_DDR0_P03=1u; \
    00982                                           bFM0P_GPIO_PFR0_P03=0u; }while(0)
    00983
    00984
    00985 /*---- Fast GPIO bit NP03 ----*/
    00986 #define FGPIO1PIN_NP03_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR0_f.P03)) )
    00987
    00988 #define FGPIO1PIN_NP03_PUT(v)         ( bFM0P_GPIO_FPDOR0_P03=(uint8_t)(~(v)) )
    00989
    00990 #define FGPIO1PIN_NP03_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP03_INITIN(v) \
    00991                                                          : FGPIO1PIN_NP03_INITOUT(v) )
    00992
    00993 #define FGPIO1PIN_NP03_INITIN(v)      do{ bFM0P_GPIO_PCR0_P03=(v).bPullup; \
    00994                                           bFM0P_GPIO_DDR0_P03=0u; \
    00995                                           bFM0P_GPIO_PFR0_P03=0u; }while(0)
    00996
    00997 #define FGPIO1PIN_NP03_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P03=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    00998                                           bFM0P_GPIO_DDR0_P03=1u; \
    00999                                           bFM0P_GPIO_PFR0_P03=0u; }while(0)
    01000
    01001
    01002 /*---- Fast GPIO bit P04 ----*/
    01003
    01004 #define FGPIO1PIN_P04_GET             ( FM0P_FASTIO->FPDIR0_f.P04 )
    01005
    01006 #define FGPIO1PIN_P04_PUT(v)          ( bFM0P_GPIO_FPDOR0_P04=(v) )
    01007
    01008 #define FGPIO1PIN_P04_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P04_INITIN(v) \
    01009                                                          : FGPIO1PIN_P04_INITOUT(v) )
    01010
    01011 #define FGPIO1PIN_P04_INITIN(v)       do{ bFM0P_GPIO_PCR0_P04=(v).bPullup; \
    01012                                           bFM0P_GPIO_DDR0_P04=0u; \
    01013                                           bFM0P_GPIO_PFR0_P04=0u; }while(0)
    01014
    01015 #define FGPIO1PIN_P04_INITOUT(v)      do{ bFM0P_GPIO_FPDOR0_P04=(v).bInitVal; \
    01016                                           bFM0P_GPIO_DDR0_P04=1u; \
    01017                                           bFM0P_GPIO_PFR0_P04=0u; }while(0)
    01018
    01019
    01020 /*---- Fast GPIO bit NP04 ----*/
    01021 #define FGPIO1PIN_NP04_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR0_f.P04)) )
    01022
    01023 #define FGPIO1PIN_NP04_PUT(v)         ( bFM0P_GPIO_FPDOR0_P04=(uint8_t)(~(v)) )
    01024
    01025 #define FGPIO1PIN_NP04_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP04_INITIN(v) \
    01026                                                          : FGPIO1PIN_NP04_INITOUT(v) )
    01027
    01028 #define FGPIO1PIN_NP04_INITIN(v)      do{ bFM0P_GPIO_PCR0_P04=(v).bPullup; \
    01029                                           bFM0P_GPIO_DDR0_P04=0u; \
    01030                                           bFM0P_GPIO_PFR0_P04=0u; }while(0)
    01031
    01032 #define FGPIO1PIN_NP04_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P04=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01033                                           bFM0P_GPIO_DDR0_P04=1u; \
    01034                                           bFM0P_GPIO_PFR0_P04=0u; }while(0)
    01035
    01036
    01037 /*---- Fast GPIO bit P0F ----*/
    01038
    01039 #define FGPIO1PIN_P0F_GET             ( FM0P_FASTIO->FPDIR0_f.P0F )
    01040
    01041 #define FGPIO1PIN_P0F_PUT(v)          ( bFM0P_GPIO_FPDOR0_P0F=(v) )
    01042
    01043 #define FGPIO1PIN_P0F_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P0F_INITIN(v) \
    01044                                                          : FGPIO1PIN_P0F_INITOUT(v) )
    01045
    01046 #define FGPIO1PIN_P0F_INITIN(v)       do{ bFM0P_GPIO_PCR0_P0F=(v).bPullup; \
    01047                                           bFM0P_GPIO_DDR0_P0F=0u; \
    01048                                           bFM0P_GPIO_PFR0_P0F=0u; }while(0)
    01049
    01050 #define FGPIO1PIN_P0F_INITOUT(v)      do{ bFM0P_GPIO_FPDOR0_P0F=(v).bInitVal; \
    01051                                           bFM0P_GPIO_DDR0_P0F=1u; \
    01052                                           bFM0P_GPIO_PFR0_P0F=0u; }while(0)
    01053
    01054
    01055 /*---- Fast GPIO bit NP0F ----*/
    01056 #define FGPIO1PIN_NP0F_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR0_f.P0F)) )
    01057
    01058 #define FGPIO1PIN_NP0F_PUT(v)         ( bFM0P_GPIO_FPDOR0_P0F=(uint8_t)(~(v)) )
    01059
    01060 #define FGPIO1PIN_NP0F_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP0F_INITIN(v) \
    01061                                                          : FGPIO1PIN_NP0F_INITOUT(v) )
    01062
    01063 #define FGPIO1PIN_NP0F_INITIN(v)      do{ bFM0P_GPIO_PCR0_P0F=(v).bPullup; \
    01064                                           bFM0P_GPIO_DDR0_P0F=0u; \
    01065                                           bFM0P_GPIO_PFR0_P0F=0u; }while(0)
    01066
    01067 #define FGPIO1PIN_NP0F_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P0F=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01068                                           bFM0P_GPIO_DDR0_P0F=1u; \
    01069                                           bFM0P_GPIO_PFR0_P0F=0u; }while(0)
    01070
    01071
    01072 /*---- Fast GPIO bit P11 ----*/
    01073
    01074 #define FGPIO1PIN_P11_GET             ( FM0P_FASTIO->FPDIR1_f.P11 )
    01075
    01076 #define FGPIO1PIN_P11_PUT(v)          ( bFM0P_GPIO_FPDOR1_P11=(v) )
    01077
    01078 #define FGPIO1PIN_P11_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P11_INITIN(v) \
    01079                                                          : FGPIO1PIN_P11_INITOUT(v) )
    01080
    01081 #define FGPIO1PIN_P11_INITIN(v)       do{ bFM0P_GPIO_PCR1_P11=(v).bPullup; \
    01082                                           bFM0P_GPIO_DDR1_P11=0u; \
    01083                                           bFM0P_GPIO_PFR1_P11=0u; \
    01084                                           bFM0P_GPIO_ADE_AN01=0u; }while(0)
    01085
    01086
    01087 #define FGPIO1PIN_P11_INITOUT(v)      do{ bFM0P_GPIO_FPDOR1_P11=(v).bInitVal; \
    01088                                           bFM0P_GPIO_DDR1_P11=1u; \
    01089                                           bFM0P_GPIO_PFR1_P11=0u; \
    01090                                           bFM0P_GPIO_ADE_AN01=0u; }while(0)
    01091
    01092
    01093 /*---- Fast GPIO bit NP11 ----*/
    01094 #define FGPIO1PIN_NP11_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR1_f.P11)) )
    01095
    01096 #define FGPIO1PIN_NP11_PUT(v)         ( bFM0P_GPIO_FPDOR1_P11=(uint8_t)(~(v)) )
    01097
    01098 #define FGPIO1PIN_NP11_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP11_INITIN(v) \
    01099                                                          : FGPIO1PIN_NP11_INITOUT(v) )
    01100
    01101 #define FGPIO1PIN_NP11_INITIN(v)      do{ bFM0P_GPIO_PCR1_P11=(v).bPullup; \
    01102                                           bFM0P_GPIO_DDR1_P11=0u; \
    01103                                           bFM0P_GPIO_PFR1_P11=0u; \
    01104                                           bFM0P_GPIO_ADE_AN01=0u; }while(0)
    01105
    01106
    01107 #define FGPIO1PIN_NP11_INITOUT(v)     do{ bFM0P_GPIO_PDOR1_P11=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01108                                           bFM0P_GPIO_DDR1_P11=1u; \
    01109                                           bFM0P_GPIO_PFR1_P11=0u; \
    01110                                           bFM0P_GPIO_ADE_AN01=0u; }while(0)
    01111
    01112
    01113 /*---- Fast GPIO bit P12 ----*/
    01114
    01115 #define FGPIO1PIN_P12_GET             ( FM0P_FASTIO->FPDIR1_f.P12 )
    01116
    01117 #define FGPIO1PIN_P12_PUT(v)          ( bFM0P_GPIO_FPDOR1_P12=(v) )
    01118
    01119 #define FGPIO1PIN_P12_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P12_INITIN(v) \
    01120                                                          : FGPIO1PIN_P12_INITOUT(v) )
    01121
    01122 #define FGPIO1PIN_P12_INITIN(v)       do{ bFM0P_GPIO_PCR1_P12=(v).bPullup; \
    01123                                           bFM0P_GPIO_DDR1_P12=0u; \
    01124                                           bFM0P_GPIO_PFR1_P12=0u; \
    01125                                           bFM0P_GPIO_ADE_AN02=0u; }while(0)
    01126
    01127
    01128 #define FGPIO1PIN_P12_INITOUT(v)      do{ bFM0P_GPIO_FPDOR1_P12=(v).bInitVal; \
    01129                                           bFM0P_GPIO_DDR1_P12=1u; \
    01130                                           bFM0P_GPIO_PFR1_P12=0u; \
    01131                                           bFM0P_GPIO_ADE_AN02=0u; }while(0)
    01132
    01133
    01134 /*---- Fast GPIO bit NP12 ----*/
    01135 #define FGPIO1PIN_NP12_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR1_f.P12)) )
    01136
    01137 #define FGPIO1PIN_NP12_PUT(v)         ( bFM0P_GPIO_FPDOR1_P12=(uint8_t)(~(v)) )
    01138
    01139 #define FGPIO1PIN_NP12_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP12_INITIN(v) \
    01140                                                          : FGPIO1PIN_NP12_INITOUT(v) )
    01141
    01142 #define FGPIO1PIN_NP12_INITIN(v)      do{ bFM0P_GPIO_PCR1_P12=(v).bPullup; \
    01143                                           bFM0P_GPIO_DDR1_P12=0u; \
    01144                                           bFM0P_GPIO_PFR1_P12=0u; \
    01145                                           bFM0P_GPIO_ADE_AN02=0u; }while(0)
    01146
    01147
    01148 #define FGPIO1PIN_NP12_INITOUT(v)     do{ bFM0P_GPIO_PDOR1_P12=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01149                                           bFM0P_GPIO_DDR1_P12=1u; \
    01150                                           bFM0P_GPIO_PFR1_P12=0u; \
    01151                                           bFM0P_GPIO_ADE_AN02=0u; }while(0)
    01152
    01153
    01154 /*---- Fast GPIO bit P13 ----*/
    01155
    01156 #define FGPIO1PIN_P13_GET             ( FM0P_FASTIO->FPDIR1_f.P13 )
    01157
    01158 #define FGPIO1PIN_P13_PUT(v)          ( bFM0P_GPIO_FPDOR1_P13=(v) )
    01159
    01160 #define FGPIO1PIN_P13_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P13_INITIN(v) \
    01161                                                          : FGPIO1PIN_P13_INITOUT(v) )
    01162
    01163 #define FGPIO1PIN_P13_INITIN(v)       do{ bFM0P_GPIO_PCR1_P13=(v).bPullup; \
    01164                                           bFM0P_GPIO_DDR1_P13=0u; \
    01165                                           bFM0P_GPIO_PFR1_P13=0u; \
    01166                                           bFM0P_GPIO_ADE_AN03=0u; }while(0)
    01167
    01168
    01169 #define FGPIO1PIN_P13_INITOUT(v)      do{ bFM0P_GPIO_FPDOR1_P13=(v).bInitVal; \
    01170                                           bFM0P_GPIO_DDR1_P13=1u; \
    01171                                           bFM0P_GPIO_PFR1_P13=0u; \
    01172                                           bFM0P_GPIO_ADE_AN03=0u; }while(0)
    01173
    01174
    01175 /*---- Fast GPIO bit NP13 ----*/
    01176 #define FGPIO1PIN_NP13_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR1_f.P13)) )
    01177
    01178 #define FGPIO1PIN_NP13_PUT(v)         ( bFM0P_GPIO_FPDOR1_P13=(uint8_t)(~(v)) )
    01179
    01180 #define FGPIO1PIN_NP13_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP13_INITIN(v) \
    01181                                                          : FGPIO1PIN_NP13_INITOUT(v) )
    01182
    01183 #define FGPIO1PIN_NP13_INITIN(v)      do{ bFM0P_GPIO_PCR1_P13=(v).bPullup; \
    01184                                           bFM0P_GPIO_DDR1_P13=0u; \
    01185                                           bFM0P_GPIO_PFR1_P13=0u; \
    01186                                           bFM0P_GPIO_ADE_AN03=0u; }while(0)
    01187
    01188
    01189 #define FGPIO1PIN_NP13_INITOUT(v)     do{ bFM0P_GPIO_PDOR1_P13=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01190                                           bFM0P_GPIO_DDR1_P13=1u; \
    01191                                           bFM0P_GPIO_PFR1_P13=0u; \
    01192                                           bFM0P_GPIO_ADE_AN03=0u; }while(0)
    01193
    01194
    01195 /*---- Fast GPIO bit P21 ----*/
    01196
    01197 #define FGPIO1PIN_P21_GET             ( FM0P_FASTIO->FPDIR2_f.P21 )
    01198
    01199 #define FGPIO1PIN_P21_PUT(v)          ( bFM0P_GPIO_FPDOR2_P21=(v) )
    01200
    01201 #define FGPIO1PIN_P21_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P21_INITIN(v) \
    01202                                                          : FGPIO1PIN_P21_INITOUT(v) )
    01203
    01204 #define FGPIO1PIN_P21_INITIN(v)       do{ bFM0P_GPIO_PCR2_P21=(v).bPullup; \
    01205                                           bFM0P_GPIO_DDR2_P21=0u; \
    01206                                           bFM0P_GPIO_PFR2_P21=0u; }while(0)
    01207
    01208 #define FGPIO1PIN_P21_INITOUT(v)      do{ bFM0P_GPIO_FPDOR2_P21=(v).bInitVal; \
    01209                                           bFM0P_GPIO_DDR2_P21=1u; \
    01210                                           bFM0P_GPIO_PFR2_P21=0u; }while(0)
    01211
    01212
    01213 /*---- Fast GPIO bit NP21 ----*/
    01214 #define FGPIO1PIN_NP21_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR2_f.P21)) )
    01215
    01216 #define FGPIO1PIN_NP21_PUT(v)         ( bFM0P_GPIO_FPDOR2_P21=(uint8_t)(~(v)) )
    01217
    01218 #define FGPIO1PIN_NP21_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP21_INITIN(v) \
    01219                                                          : FGPIO1PIN_NP21_INITOUT(v) )
    01220
    01221 #define FGPIO1PIN_NP21_INITIN(v)      do{ bFM0P_GPIO_PCR2_P21=(v).bPullup; \
    01222                                           bFM0P_GPIO_DDR2_P21=0u; \
    01223                                           bFM0P_GPIO_PFR2_P21=0u; }while(0)
    01224
    01225 #define FGPIO1PIN_NP21_INITOUT(v)     do{ bFM0P_GPIO_PDOR2_P21=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01226                                           bFM0P_GPIO_DDR2_P21=1u; \
    01227                                           bFM0P_GPIO_PFR2_P21=0u; }while(0)
    01228
    01229
    01230 /*---- Fast GPIO bit P22 ----*/
    01231
    01232 #define FGPIO1PIN_P22_GET             ( FM0P_FASTIO->FPDIR2_f.P22 )
    01233
    01234 #define FGPIO1PIN_P22_PUT(v)          ( bFM0P_GPIO_FPDOR2_P22=(v) )
    01235
    01236 #define FGPIO1PIN_P22_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P22_INITIN(v) \
    01237                                                          : FGPIO1PIN_P22_INITOUT(v) )
    01238
    01239 #define FGPIO1PIN_P22_INITIN(v)       do{ bFM0P_GPIO_PCR2_P22=(v).bPullup; \
    01240                                           bFM0P_GPIO_DDR2_P22=0u; \
    01241                                           bFM0P_GPIO_PFR2_P22=0u; \
    01242                                           bFM0P_GPIO_ADE_AN07=0u; }while(0)
    01243
    01244
    01245 #define FGPIO1PIN_P22_INITOUT(v)      do{ bFM0P_GPIO_FPDOR2_P22=(v).bInitVal; \
    01246                                           bFM0P_GPIO_DDR2_P22=1u; \
    01247                                           bFM0P_GPIO_PFR2_P22=0u; \
    01248                                           bFM0P_GPIO_ADE_AN07=0u; }while(0)
    01249
    01250
    01251 /*---- Fast GPIO bit NP22 ----*/
    01252 #define FGPIO1PIN_NP22_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR2_f.P22)) )
    01253
    01254 #define FGPIO1PIN_NP22_PUT(v)         ( bFM0P_GPIO_FPDOR2_P22=(uint8_t)(~(v)) )
    01255
    01256 #define FGPIO1PIN_NP22_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP22_INITIN(v) \
    01257                                                          : FGPIO1PIN_NP22_INITOUT(v) )
    01258
    01259 #define FGPIO1PIN_NP22_INITIN(v)      do{ bFM0P_GPIO_PCR2_P22=(v).bPullup; \
    01260                                           bFM0P_GPIO_DDR2_P22=0u; \
    01261                                           bFM0P_GPIO_PFR2_P22=0u; \
    01262                                           bFM0P_GPIO_ADE_AN07=0u; }while(0)
    01263
    01264
    01265 #define FGPIO1PIN_NP22_INITOUT(v)     do{ bFM0P_GPIO_PDOR2_P22=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01266                                           bFM0P_GPIO_DDR2_P22=1u; \
    01267                                           bFM0P_GPIO_PFR2_P22=0u; \
    01268                                           bFM0P_GPIO_ADE_AN07=0u; }while(0)
    01269
    01270
    01271 /*---- Fast GPIO bit P23 ----*/
    01272
    01273 #define FGPIO1PIN_P23_GET             ( FM0P_FASTIO->FPDIR2_f.P23 )
    01274
    01275 #define FGPIO1PIN_P23_PUT(v)          ( bFM0P_GPIO_FPDOR2_P23=(v) )
    01276
    01277 #define FGPIO1PIN_P23_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P23_INITIN(v) \
    01278                                                          : FGPIO1PIN_P23_INITOUT(v) )
    01279
    01280 #define FGPIO1PIN_P23_INITIN(v)       do{ bFM0P_GPIO_PCR2_P23=(v).bPullup; \
    01281                                           bFM0P_GPIO_DDR2_P23=0u; \
    01282                                           bFM0P_GPIO_PFR2_P23=0u; \
    01283                                           bFM0P_GPIO_ADE_AN06=0u; }while(0)
    01284
    01285
    01286 #define FGPIO1PIN_P23_INITOUT(v)      do{ bFM0P_GPIO_FPDOR2_P23=(v).bInitVal; \
    01287                                           bFM0P_GPIO_DDR2_P23=1u; \
    01288                                           bFM0P_GPIO_PFR2_P23=0u; \
    01289                                           bFM0P_GPIO_ADE_AN06=0u; }while(0)
    01290
    01291
    01292 /*---- Fast GPIO bit NP23 ----*/
    01293 #define FGPIO1PIN_NP23_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR2_f.P23)) )
    01294
    01295 #define FGPIO1PIN_NP23_PUT(v)         ( bFM0P_GPIO_FPDOR2_P23=(uint8_t)(~(v)) )
    01296
    01297 #define FGPIO1PIN_NP23_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP23_INITIN(v) \
    01298                                                          : FGPIO1PIN_NP23_INITOUT(v) )
    01299
    01300 #define FGPIO1PIN_NP23_INITIN(v)      do{ bFM0P_GPIO_PCR2_P23=(v).bPullup; \
    01301                                           bFM0P_GPIO_DDR2_P23=0u; \
    01302                                           bFM0P_GPIO_PFR2_P23=0u; \
    01303                                           bFM0P_GPIO_ADE_AN06=0u; }while(0)
    01304
    01305
    01306 #define FGPIO1PIN_NP23_INITOUT(v)     do{ bFM0P_GPIO_PDOR2_P23=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01307                                           bFM0P_GPIO_DDR2_P23=1u; \
    01308                                           bFM0P_GPIO_PFR2_P23=0u; \
    01309                                           bFM0P_GPIO_ADE_AN06=0u; }while(0)
    01310
    01311
    01312 /*---- Fast GPIO bit P3A ----*/
    01313
    01314 #define FGPIO1PIN_P3A_GET             ( FM0P_FASTIO->FPDIR3_f.P3A )
    01315
    01316 #define FGPIO1PIN_P3A_PUT(v)          ( bFM0P_GPIO_FPDOR3_P3A=(v) )
    01317
    01318 #define FGPIO1PIN_P3A_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P3A_INITIN(v) \
    01319                                                          : FGPIO1PIN_P3A_INITOUT(v) )
    01320
    01321 #define FGPIO1PIN_P3A_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3A=(v).bPullup; \
    01322                                           bFM0P_GPIO_DDR3_P3A=0u; \
    01323                                           bFM0P_GPIO_PFR3_P3A=0u; }while(0)
    01324
    01325 #define FGPIO1PIN_P3A_INITOUT(v)      do{ bFM0P_GPIO_FPDOR3_P3A=(v).bInitVal; \
    01326                                           bFM0P_GPIO_DDR3_P3A=1u; \
    01327                                           bFM0P_GPIO_PFR3_P3A=0u; }while(0)
    01328
    01329
    01330 /*---- Fast GPIO bit NP3A ----*/
    01331 #define FGPIO1PIN_NP3A_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR3_f.P3A)) )
    01332
    01333 #define FGPIO1PIN_NP3A_PUT(v)         ( bFM0P_GPIO_FPDOR3_P3A=(uint8_t)(~(v)) )
    01334
    01335 #define FGPIO1PIN_NP3A_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP3A_INITIN(v) \
    01336                                                          : FGPIO1PIN_NP3A_INITOUT(v) )
    01337
    01338 #define FGPIO1PIN_NP3A_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3A=(v).bPullup; \
    01339                                           bFM0P_GPIO_DDR3_P3A=0u; \
    01340                                           bFM0P_GPIO_PFR3_P3A=0u; }while(0)
    01341
    01342 #define FGPIO1PIN_NP3A_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3A=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01343                                           bFM0P_GPIO_DDR3_P3A=1u; \
    01344                                           bFM0P_GPIO_PFR3_P3A=0u; }while(0)
    01345
    01346
    01347 /*---- Fast GPIO bit P3B ----*/
    01348
    01349 #define FGPIO1PIN_P3B_GET             ( FM0P_FASTIO->FPDIR3_f.P3B )
    01350
    01351 #define FGPIO1PIN_P3B_PUT(v)          ( bFM0P_GPIO_FPDOR3_P3B=(v) )
    01352
    01353 #define FGPIO1PIN_P3B_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P3B_INITIN(v) \
    01354                                                          : FGPIO1PIN_P3B_INITOUT(v) )
    01355
    01356 #define FGPIO1PIN_P3B_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3B=(v).bPullup; \
    01357                                           bFM0P_GPIO_DDR3_P3B=0u; \
    01358                                           bFM0P_GPIO_PFR3_P3B=0u; }while(0)
    01359
    01360 #define FGPIO1PIN_P3B_INITOUT(v)      do{ bFM0P_GPIO_FPDOR3_P3B=(v).bInitVal; \
    01361                                           bFM0P_GPIO_DDR3_P3B=1u; \
    01362                                           bFM0P_GPIO_PFR3_P3B=0u; }while(0)
    01363
    01364
    01365 /*---- Fast GPIO bit NP3B ----*/
    01366 #define FGPIO1PIN_NP3B_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR3_f.P3B)) )
    01367
    01368 #define FGPIO1PIN_NP3B_PUT(v)         ( bFM0P_GPIO_FPDOR3_P3B=(uint8_t)(~(v)) )
    01369
    01370 #define FGPIO1PIN_NP3B_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP3B_INITIN(v) \
    01371                                                          : FGPIO1PIN_NP3B_INITOUT(v) )
    01372
    01373 #define FGPIO1PIN_NP3B_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3B=(v).bPullup; \
    01374                                           bFM0P_GPIO_DDR3_P3B=0u; \
    01375                                           bFM0P_GPIO_PFR3_P3B=0u; }while(0)
    01376
    01377 #define FGPIO1PIN_NP3B_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3B=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01378                                           bFM0P_GPIO_DDR3_P3B=1u; \
    01379                                           bFM0P_GPIO_PFR3_P3B=0u; }while(0)
    01380
    01381
    01382 /*---- Fast GPIO bit P3C ----*/
    01383
    01384 #define FGPIO1PIN_P3C_GET             ( FM0P_FASTIO->FPDIR3_f.P3C )
    01385
    01386 #define FGPIO1PIN_P3C_PUT(v)          ( bFM0P_GPIO_FPDOR3_P3C=(v) )
    01387
    01388 #define FGPIO1PIN_P3C_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P3C_INITIN(v) \
    01389                                                          : FGPIO1PIN_P3C_INITOUT(v) )
    01390
    01391 #define FGPIO1PIN_P3C_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3C=(v).bPullup; \
    01392                                           bFM0P_GPIO_DDR3_P3C=0u; \
    01393                                           bFM0P_GPIO_PFR3_P3C=0u; }while(0)
    01394
    01395 #define FGPIO1PIN_P3C_INITOUT(v)      do{ bFM0P_GPIO_FPDOR3_P3C=(v).bInitVal; \
    01396                                           bFM0P_GPIO_DDR3_P3C=1u; \
    01397                                           bFM0P_GPIO_PFR3_P3C=0u; }while(0)
    01398
    01399
    01400 /*---- Fast GPIO bit NP3C ----*/
    01401 #define FGPIO1PIN_NP3C_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR3_f.P3C)) )
    01402
    01403 #define FGPIO1PIN_NP3C_PUT(v)         ( bFM0P_GPIO_FPDOR3_P3C=(uint8_t)(~(v)) )
    01404
    01405 #define FGPIO1PIN_NP3C_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP3C_INITIN(v) \
    01406                                                          : FGPIO1PIN_NP3C_INITOUT(v) )
    01407
    01408 #define FGPIO1PIN_NP3C_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3C=(v).bPullup; \
    01409                                           bFM0P_GPIO_DDR3_P3C=0u; \
    01410                                           bFM0P_GPIO_PFR3_P3C=0u; }while(0)
    01411
    01412 #define FGPIO1PIN_NP3C_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3C=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01413                                           bFM0P_GPIO_DDR3_P3C=1u; \
    01414                                           bFM0P_GPIO_PFR3_P3C=0u; }while(0)
    01415
    01416
    01417 /*---- Fast GPIO bit P3D ----*/
    01418
    01419 #define FGPIO1PIN_P3D_GET             ( FM0P_FASTIO->FPDIR3_f.P3D )
    01420
    01421 #define FGPIO1PIN_P3D_PUT(v)          ( bFM0P_GPIO_FPDOR3_P3D=(v) )
    01422
    01423 #define FGPIO1PIN_P3D_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P3D_INITIN(v) \
    01424                                                          : FGPIO1PIN_P3D_INITOUT(v) )
    01425
    01426 #define FGPIO1PIN_P3D_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3D=(v).bPullup; \
    01427                                           bFM0P_GPIO_DDR3_P3D=0u; \
    01428                                           bFM0P_GPIO_PFR3_P3D=0u; }while(0)
    01429
    01430 #define FGPIO1PIN_P3D_INITOUT(v)      do{ bFM0P_GPIO_FPDOR3_P3D=(v).bInitVal; \
    01431                                           bFM0P_GPIO_DDR3_P3D=1u; \
    01432                                           bFM0P_GPIO_PFR3_P3D=0u; }while(0)
    01433
    01434
    01435 /*---- Fast GPIO bit NP3D ----*/
    01436 #define FGPIO1PIN_NP3D_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR3_f.P3D)) )
    01437
    01438 #define FGPIO1PIN_NP3D_PUT(v)         ( bFM0P_GPIO_FPDOR3_P3D=(uint8_t)(~(v)) )
    01439
    01440 #define FGPIO1PIN_NP3D_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP3D_INITIN(v) \
    01441                                                          : FGPIO1PIN_NP3D_INITOUT(v) )
    01442
    01443 #define FGPIO1PIN_NP3D_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3D=(v).bPullup; \
    01444                                           bFM0P_GPIO_DDR3_P3D=0u; \
    01445                                           bFM0P_GPIO_PFR3_P3D=0u; }while(0)
    01446
    01447 #define FGPIO1PIN_NP3D_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3D=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01448                                           bFM0P_GPIO_DDR3_P3D=1u; \
    01449                                           bFM0P_GPIO_PFR3_P3D=0u; }while(0)
    01450
    01451
    01452 /*---- Fast GPIO bit P3E ----*/
    01453
    01454 #define FGPIO1PIN_P3E_GET             ( FM0P_FASTIO->FPDIR3_f.P3E )
    01455
    01456 #define FGPIO1PIN_P3E_PUT(v)          ( bFM0P_GPIO_FPDOR3_P3E=(v) )
    01457
    01458 #define FGPIO1PIN_P3E_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P3E_INITIN(v) \
    01459                                                          : FGPIO1PIN_P3E_INITOUT(v) )
    01460
    01461 #define FGPIO1PIN_P3E_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3E=(v).bPullup; \
    01462                                           bFM0P_GPIO_DDR3_P3E=0u; \
    01463                                           bFM0P_GPIO_PFR3_P3E=0u; }while(0)
    01464
    01465 #define FGPIO1PIN_P3E_INITOUT(v)      do{ bFM0P_GPIO_FPDOR3_P3E=(v).bInitVal; \
    01466                                           bFM0P_GPIO_DDR3_P3E=1u; \
    01467                                           bFM0P_GPIO_PFR3_P3E=0u; }while(0)
    01468
    01469
    01470 /*---- Fast GPIO bit NP3E ----*/
    01471 #define FGPIO1PIN_NP3E_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR3_f.P3E)) )
    01472
    01473 #define FGPIO1PIN_NP3E_PUT(v)         ( bFM0P_GPIO_FPDOR3_P3E=(uint8_t)(~(v)) )
    01474
    01475 #define FGPIO1PIN_NP3E_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP3E_INITIN(v) \
    01476                                                          : FGPIO1PIN_NP3E_INITOUT(v) )
    01477
    01478 #define FGPIO1PIN_NP3E_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3E=(v).bPullup; \
    01479                                           bFM0P_GPIO_DDR3_P3E=0u; \
    01480                                           bFM0P_GPIO_PFR3_P3E=0u; }while(0)
    01481
    01482 #define FGPIO1PIN_NP3E_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3E=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01483                                           bFM0P_GPIO_DDR3_P3E=1u; \
    01484                                           bFM0P_GPIO_PFR3_P3E=0u; }while(0)
    01485
    01486
    01487 /*---- Fast GPIO bit P3F ----*/
    01488
    01489 #define FGPIO1PIN_P3F_GET             ( FM0P_FASTIO->FPDIR3_f.P3F )
    01490
    01491 #define FGPIO1PIN_P3F_PUT(v)          ( bFM0P_GPIO_FPDOR3_P3F=(v) )
    01492
    01493 #define FGPIO1PIN_P3F_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P3F_INITIN(v) \
    01494                                                          : FGPIO1PIN_P3F_INITOUT(v) )
    01495
    01496 #define FGPIO1PIN_P3F_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3F=(v).bPullup; \
    01497                                           bFM0P_GPIO_DDR3_P3F=0u; \
    01498                                           bFM0P_GPIO_PFR3_P3F=0u; }while(0)
    01499
    01500 #define FGPIO1PIN_P3F_INITOUT(v)      do{ bFM0P_GPIO_FPDOR3_P3F=(v).bInitVal; \
    01501                                           bFM0P_GPIO_DDR3_P3F=1u; \
    01502                                           bFM0P_GPIO_PFR3_P3F=0u; }while(0)
    01503
    01504
    01505 /*---- Fast GPIO bit NP3F ----*/
    01506 #define FGPIO1PIN_NP3F_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR3_f.P3F)) )
    01507
    01508 #define FGPIO1PIN_NP3F_PUT(v)         ( bFM0P_GPIO_FPDOR3_P3F=(uint8_t)(~(v)) )
    01509
    01510 #define FGPIO1PIN_NP3F_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP3F_INITIN(v) \
    01511                                                          : FGPIO1PIN_NP3F_INITOUT(v) )
    01512
    01513 #define FGPIO1PIN_NP3F_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3F=(v).bPullup; \
    01514                                           bFM0P_GPIO_DDR3_P3F=0u; \
    01515                                           bFM0P_GPIO_PFR3_P3F=0u; }while(0)
    01516
    01517 #define FGPIO1PIN_NP3F_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3F=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01518                                           bFM0P_GPIO_DDR3_P3F=1u; \
    01519                                           bFM0P_GPIO_PFR3_P3F=0u; }while(0)
    01520
    01521
    01522 /*---- Fast GPIO bit P46 ----*/
    01523
    01524 #define FGPIO1PIN_P46_GET             ( FM0P_FASTIO->FPDIR4_f.P46 )
    01525
    01526 #define FGPIO1PIN_P46_PUT(v)          ( bFM0P_GPIO_FPDOR4_P46=(v) )
    01527
    01528 #define FGPIO1PIN_P46_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P46_INITIN(v) \
    01529                                                          : FGPIO1PIN_P46_INITOUT(v) )
    01530
    01531 #define FGPIO1PIN_P46_INITIN(v)       do{ bFM0P_GPIO_PCR4_P46=(v).bPullup; \
    01532                                           bFM0P_GPIO_DDR4_P46=0u; \
    01533                                           bFM0P_GPIO_SPSR_SUBXC0=0u; \
    01534                                           bFM0P_GPIO_SPSR_SUBXC1=0u; \
    01535                                           bFM0P_GPIO_PFR4_P46=0u; }while(0)
    01536
    01537 #define FGPIO1PIN_P46_INITOUT(v)      do{ bFM0P_GPIO_FPDOR4_P46=(v).bInitVal; \
    01538                                           bFM0P_GPIO_DDR4_P46=1u; \
    01539                                           bFM0P_GPIO_SPSR_SUBXC0=0u; \
    01540                                           bFM0P_GPIO_SPSR_SUBXC1=0u; \
    01541                                           bFM0P_GPIO_PFR4_P46=0u; }while(0)
    01542
    01543
    01544 /*---- Fast GPIO bit NP46 ----*/
    01545 #define FGPIO1PIN_NP46_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR4_f.P46)) )
    01546
    01547 #define FGPIO1PIN_NP46_PUT(v)         ( bFM0P_GPIO_FPDOR4_P46=(uint8_t)(~(v)) )
    01548
    01549 #define FGPIO1PIN_NP46_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP46_INITIN(v) \
    01550                                                          : FGPIO1PIN_NP46_INITOUT(v) )
    01551
    01552 #define FGPIO1PIN_NP46_INITIN(v)      do{ bFM0P_GPIO_PCR4_P46=(v).bPullup; \
    01553                                           bFM0P_GPIO_DDR4_P46=0u; \
    01554                                           bFM0P_GPIO_SPSR_SUBXC0=0u; \
    01555                                           bFM0P_GPIO_SPSR_SUBXC1=0u; \
    01556                                           bFM0P_GPIO_PFR4_P46=0u; }while(0)
    01557
    01558 #define FGPIO1PIN_NP46_INITOUT(v)     do{ bFM0P_GPIO_PDOR4_P46=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01559                                           bFM0P_GPIO_DDR4_P46=1u; \
    01560                                           bFM0P_GPIO_SPSR_SUBXC0=0u; \
    01561                                           bFM0P_GPIO_SPSR_SUBXC1=0u; \
    01562                                           bFM0P_GPIO_PFR4_P46=0u; }while(0)
    01563
    01564
    01565 /*---- Fast GPIO bit P47 ----*/
    01566
    01567 #define FGPIO1PIN_P47_GET             ( FM0P_FASTIO->FPDIR4_f.P47 )
    01568
    01569 #define FGPIO1PIN_P47_PUT(v)          ( bFM0P_GPIO_FPDOR4_P47=(v) )
    01570
    01571 #define FGPIO1PIN_P47_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P47_INITIN(v) \
    01572                                                          : FGPIO1PIN_P47_INITOUT(v) )
    01573
    01574 #define FGPIO1PIN_P47_INITIN(v)       do{ bFM0P_GPIO_PCR4_P47=(v).bPullup; \
    01575                                           bFM0P_GPIO_DDR4_P47=0u; \
    01576                                           bFM0P_GPIO_SPSR_SUBXC0=0u; \
    01577                                           bFM0P_GPIO_SPSR_SUBXC1=0u; \
    01578                                           bFM0P_GPIO_PFR4_P47=0u; }while(0)
    01579
    01580 #define FGPIO1PIN_P47_INITOUT(v)      do{ bFM0P_GPIO_FPDOR4_P47=(v).bInitVal; \
    01581                                           bFM0P_GPIO_DDR4_P47=1u; \
    01582                                           bFM0P_GPIO_SPSR_SUBXC0=0u; \
    01583                                           bFM0P_GPIO_SPSR_SUBXC1=0u; \
    01584                                           bFM0P_GPIO_PFR4_P47=0u; }while(0)
    01585
    01586
    01587 /*---- Fast GPIO bit NP47 ----*/
    01588 #define FGPIO1PIN_NP47_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR4_f.P47)) )
    01589
    01590 #define FGPIO1PIN_NP47_PUT(v)         ( bFM0P_GPIO_FPDOR4_P47=(uint8_t)(~(v)) )
    01591
    01592 #define FGPIO1PIN_NP47_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP47_INITIN(v) \
    01593                                                          : FGPIO1PIN_NP47_INITOUT(v) )
    01594
    01595 #define FGPIO1PIN_NP47_INITIN(v)      do{ bFM0P_GPIO_PCR4_P47=(v).bPullup; \
    01596                                           bFM0P_GPIO_DDR4_P47=0u; \
    01597                                           bFM0P_GPIO_SPSR_SUBXC0=0u; \
    01598                                           bFM0P_GPIO_SPSR_SUBXC1=0u; \
    01599                                           bFM0P_GPIO_PFR4_P47=0u; }while(0)
    01600
    01601 #define FGPIO1PIN_NP47_INITOUT(v)     do{ bFM0P_GPIO_PDOR4_P47=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01602                                           bFM0P_GPIO_DDR4_P47=1u; \
    01603                                           bFM0P_GPIO_SPSR_SUBXC0=0u; \
    01604                                           bFM0P_GPIO_SPSR_SUBXC1=0u; \
    01605                                           bFM0P_GPIO_PFR4_P47=0u; }while(0)
    01606
    01607
    01608 /*---- Fast GPIO bit P60 ----*/
    01609
    01610 #define FGPIO1PIN_P60_GET             ( FM0P_FASTIO->FPDIR6_f.P60 )
    01611
    01612 #define FGPIO1PIN_P60_PUT(v)          ( bFM0P_GPIO_FPDOR6_P60=(v) )
    01613
    01614 #define FGPIO1PIN_P60_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P60_INITIN(v) \
    01615                                                          : FGPIO1PIN_P60_INITOUT(v) )
    01616
    01617 #define FGPIO1PIN_P60_INITIN(v)       do{ bFM0P_GPIO_PCR6_P60=(v).bPullup; \
    01618                                           bFM0P_GPIO_DDR6_P60=0u; \
    01619                                           bFM0P_GPIO_PFR6_P60=0u; }while(0)
    01620
    01621 #define FGPIO1PIN_P60_INITOUT(v)      do{ bFM0P_GPIO_FPDOR6_P60=(v).bInitVal; \
    01622                                           bFM0P_GPIO_DDR6_P60=1u; \
    01623                                           bFM0P_GPIO_PFR6_P60=0u; }while(0)
    01624
    01625
    01626 /*---- Fast GPIO bit NP60 ----*/
    01627 #define FGPIO1PIN_NP60_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR6_f.P60)) )
    01628
    01629 #define FGPIO1PIN_NP60_PUT(v)         ( bFM0P_GPIO_FPDOR6_P60=(uint8_t)(~(v)) )
    01630
    01631 #define FGPIO1PIN_NP60_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP60_INITIN(v) \
    01632                                                          : FGPIO1PIN_NP60_INITOUT(v) )
    01633
    01634 #define FGPIO1PIN_NP60_INITIN(v)      do{ bFM0P_GPIO_PCR6_P60=(v).bPullup; \
    01635                                           bFM0P_GPIO_DDR6_P60=0u; \
    01636                                           bFM0P_GPIO_PFR6_P60=0u; }while(0)
    01637
    01638 #define FGPIO1PIN_NP60_INITOUT(v)     do{ bFM0P_GPIO_PDOR6_P60=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01639                                           bFM0P_GPIO_DDR6_P60=1u; \
    01640                                           bFM0P_GPIO_PFR6_P60=0u; }while(0)
    01641
    01642
    01643 /*---- Fast GPIO bit P61 ----*/
    01644
    01645 #define FGPIO1PIN_P61_GET             ( FM0P_FASTIO->FPDIR6_f.P61 )
    01646
    01647 #define FGPIO1PIN_P61_PUT(v)          ( bFM0P_GPIO_FPDOR6_P61=(v) )
    01648
    01649 #define FGPIO1PIN_P61_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P61_INITIN(v) \
    01650                                                          : FGPIO1PIN_P61_INITOUT(v) )
    01651
    01652 #define FGPIO1PIN_P61_INITIN(v)       do{ bFM0P_GPIO_PCR6_P61=(v).bPullup; \
    01653                                           bFM0P_GPIO_DDR6_P61=0u; \
    01654                                           bFM0P_GPIO_PFR6_P61=0u; }while(0)
    01655
    01656 #define FGPIO1PIN_P61_INITOUT(v)      do{ bFM0P_GPIO_FPDOR6_P61=(v).bInitVal; \
    01657                                           bFM0P_GPIO_DDR6_P61=1u; \
    01658                                           bFM0P_GPIO_PFR6_P61=0u; }while(0)
    01659
    01660
    01661 /*---- Fast GPIO bit NP61 ----*/
    01662 #define FGPIO1PIN_NP61_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR6_f.P61)) )
    01663
    01664 #define FGPIO1PIN_NP61_PUT(v)         ( bFM0P_GPIO_FPDOR6_P61=(uint8_t)(~(v)) )
    01665
    01666 #define FGPIO1PIN_NP61_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP61_INITIN(v) \
    01667                                                          : FGPIO1PIN_NP61_INITOUT(v) )
    01668
    01669 #define FGPIO1PIN_NP61_INITIN(v)      do{ bFM0P_GPIO_PCR6_P61=(v).bPullup; \
    01670                                           bFM0P_GPIO_DDR6_P61=0u; \
    01671                                           bFM0P_GPIO_PFR6_P61=0u; }while(0)
    01672
    01673 #define FGPIO1PIN_NP61_INITOUT(v)     do{ bFM0P_GPIO_PDOR6_P61=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01674                                           bFM0P_GPIO_DDR6_P61=1u; \
    01675                                           bFM0P_GPIO_PFR6_P61=0u; }while(0)
    01676
    01677
    01678 /*---- Fast GPIO bit PE0 ----*/
    01679
    01680 #define FGPIO1PIN_PE0_GET             ( FM0P_FASTIO->FPDIRE_f.PE0 )
    01681
    01682 #define FGPIO1PIN_PE0_PUT(v)          ( bFM0P_GPIO_FPDORE_PE0=(v) )
    01683
    01684 #define FGPIO1PIN_PE0_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_PE0_INITIN(v) \
    01685                                                          : FGPIO1PIN_PE0_INITOUT(v) )
    01686
    01687 #define FGPIO1PIN_PE0_INITIN(v)       do{ bFM0P_GPIO_PCRE_PE0=(v).bPullup; \
    01688                                           bFM0P_GPIO_DDRE_PE0=0u; \
    01689                                           bFM0P_GPIO_PFRE_PE0=0u; }while(0)
    01690
    01691 #define FGPIO1PIN_PE0_INITOUT(v)      do{ bFM0P_GPIO_FPDORE_PE0=(v).bInitVal; \
    01692                                           bFM0P_GPIO_DDRE_PE0=1u; \
    01693                                           bFM0P_GPIO_PFRE_PE0=0u; }while(0)
    01694
    01695
    01696 /*---- Fast GPIO bit NPE0 ----*/
    01697 #define FGPIO1PIN_NPE0_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIRE_f.PE0)) )
    01698
    01699 #define FGPIO1PIN_NPE0_PUT(v)         ( bFM0P_GPIO_FPDORE_PE0=(uint8_t)(~(v)) )
    01700
    01701 #define FGPIO1PIN_NPE0_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NPE0_INITIN(v) \
    01702                                                          : FGPIO1PIN_NPE0_INITOUT(v) )
    01703
    01704 #define FGPIO1PIN_NPE0_INITIN(v)      do{ bFM0P_GPIO_PCRE_PE0=(v).bPullup; \
    01705                                           bFM0P_GPIO_DDRE_PE0=0u; \
    01706                                           bFM0P_GPIO_PFRE_PE0=0u; }while(0)
    01707
    01708 #define FGPIO1PIN_NPE0_INITOUT(v)     do{ bFM0P_GPIO_PDORE_PE0=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01709                                           bFM0P_GPIO_DDRE_PE0=1u; \
    01710                                           bFM0P_GPIO_PFRE_PE0=0u; }while(0)
    01711
    01712
    01713 /*---- Fast GPIO bit PE2 ----*/
    01714
    01715 #define FGPIO1PIN_PE2_GET             ( FM0P_FASTIO->FPDIRE_f.PE2 )
    01716
    01717 #define FGPIO1PIN_PE2_PUT(v)          ( bFM0P_GPIO_FPDORE_PE2=(v) )
    01718
    01719 #define FGPIO1PIN_PE2_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_PE2_INITIN(v) \
    01720                                                          : FGPIO1PIN_PE2_INITOUT(v) )
    01721
    01722 #define FGPIO1PIN_PE2_INITIN(v)       do{ bFM0P_GPIO_PCRE_PE2=(v).bPullup; \
    01723                                           bFM0P_GPIO_DDRE_PE2=0u; \
    01724                                           bFM0P_GPIO_SPSR_MAINXC0=0u; \
    01725                                           bFM0P_GPIO_SPSR_MAINXC1=0u; \
    01726                                           bFM0P_GPIO_PFRE_PE2=0u; }while(0)
    01727
    01728 #define FGPIO1PIN_PE2_INITOUT(v)      do{ bFM0P_GPIO_FPDORE_PE2=(v).bInitVal; \
    01729                                           bFM0P_GPIO_DDRE_PE2=1u; \
    01730                                           bFM0P_GPIO_SPSR_MAINXC0=0u; \
    01731                                           bFM0P_GPIO_SPSR_MAINXC1=0u; \
    01732                                           bFM0P_GPIO_PFRE_PE2=0u; }while(0)
    01733
    01734
    01735 /*---- Fast GPIO bit NPE2 ----*/
    01736 #define FGPIO1PIN_NPE2_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIRE_f.PE2)) )
    01737
    01738 #define FGPIO1PIN_NPE2_PUT(v)         ( bFM0P_GPIO_FPDORE_PE2=(uint8_t)(~(v)) )
    01739
    01740 #define FGPIO1PIN_NPE2_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NPE2_INITIN(v) \
    01741                                                          : FGPIO1PIN_NPE2_INITOUT(v) )
    01742
    01743 #define FGPIO1PIN_NPE2_INITIN(v)      do{ bFM0P_GPIO_PCRE_PE2=(v).bPullup; \
    01744                                           bFM0P_GPIO_DDRE_PE2=0u; \
    01745                                           bFM0P_GPIO_SPSR_MAINXC0=0u; \
    01746                                           bFM0P_GPIO_SPSR_MAINXC1=0u; \
    01747                                           bFM0P_GPIO_PFRE_PE2=0u; }while(0)
    01748
    01749 #define FGPIO1PIN_NPE2_INITOUT(v)     do{ bFM0P_GPIO_PDORE_PE2=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01750                                           bFM0P_GPIO_DDRE_PE2=1u; \
    01751                                           bFM0P_GPIO_SPSR_MAINXC0=0u; \
    01752                                           bFM0P_GPIO_SPSR_MAINXC1=0u; \
    01753                                           bFM0P_GPIO_PFRE_PE2=0u; }while(0)
    01754
    01755
    01756 /*---- Fast GPIO bit PE3 ----*/
    01757
    01758 #define FGPIO1PIN_PE3_GET             ( FM0P_FASTIO->FPDIRE_f.PE3 )
    01759
    01760 #define FGPIO1PIN_PE3_PUT(v)          ( bFM0P_GPIO_FPDORE_PE3=(v) )
    01761
    01762 #define FGPIO1PIN_PE3_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_PE3_INITIN(v) \
    01763                                                          : FGPIO1PIN_PE3_INITOUT(v) )
    01764
    01765 #define FGPIO1PIN_PE3_INITIN(v)       do{ bFM0P_GPIO_PCRE_PE3=(v).bPullup; \
    01766                                           bFM0P_GPIO_DDRE_PE3=0u; \
    01767                                           bFM0P_GPIO_SPSR_MAINXC0=0u; \
    01768                                           bFM0P_GPIO_SPSR_MAINXC1=0u; \
    01769                                           bFM0P_GPIO_PFRE_PE3=0u; }while(0)
    01770
    01771 #define FGPIO1PIN_PE3_INITOUT(v)      do{ bFM0P_GPIO_FPDORE_PE3=(v).bInitVal; \
    01772                                           bFM0P_GPIO_DDRE_PE3=1u; \
    01773                                           bFM0P_GPIO_SPSR_MAINXC0=0u; \
    01774                                           bFM0P_GPIO_SPSR_MAINXC1=0u; \
    01775                                           bFM0P_GPIO_PFRE_PE3=0u; }while(0)
    01776
    01777
    01778 /*---- Fast GPIO bit NPE3 ----*/
    01779 #define FGPIO1PIN_NPE3_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIRE_f.PE3)) )
    01780
    01781 #define FGPIO1PIN_NPE3_PUT(v)         ( bFM0P_GPIO_FPDORE_PE3=(uint8_t)(~(v)) )
    01782
    01783 #define FGPIO1PIN_NPE3_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NPE3_INITIN(v) \
    01784                                                          : FGPIO1PIN_NPE3_INITOUT(v) )
    01785
    01786 #define FGPIO1PIN_NPE3_INITIN(v)      do{ bFM0P_GPIO_PCRE_PE3=(v).bPullup; \
    01787                                           bFM0P_GPIO_DDRE_PE3=0u; \
    01788                                           bFM0P_GPIO_SPSR_MAINXC0=0u; \
    01789                                           bFM0P_GPIO_SPSR_MAINXC1=0u; \
    01790                                           bFM0P_GPIO_PFRE_PE3=0u; }while(0)
    01791
    01792 #define FGPIO1PIN_NPE3_INITOUT(v)     do{ bFM0P_GPIO_PDORE_PE3=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01793                                           bFM0P_GPIO_DDRE_PE3=1u; \
    01794                                           bFM0P_GPIO_SPSR_MAINXC0=0u; \
    01795                                           bFM0P_GPIO_SPSR_MAINXC1=0u; \
    01796                                           bFM0P_GPIO_PFRE_PE3=0u; }while(0)
    01797
    01798
    01799
    01800 /******************************************************************************
    01801    PIN RELOCATION
    01802 *******************************************************************************/
    01803
    01804 /*--- ADTG_1 for ADC#0 ---*/
    01805 #define SetPinFunc_ADTG_1_ADC0(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 12u, 4u, 0x02u ); \
    01806                                                  bFM0P_GPIO_PFRE_PE0 = 1u; }while(0)
    01807
    01808 /*--- ADTG_1 for ADC#1 ---*/
    01809 #define SetPinFunc_ADTG_1_ADC1(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 16u, 4u, 0x02u ); \
    01810                                                  bFM0P_GPIO_PFRE_PE0 = 1u; }while(0)
    01811
    01812 /*--- ADTG_1 for ADC#2 ---*/
    01813 #define SetPinFunc_ADTG_1_ADC2(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 20u, 4u, 0x02u ); \
    01814                                                  bFM0P_GPIO_PFRE_PE0 = 1u; }while(0)
    01815
    01816 /*--- AIN0_0 ---*/
    01817 #define SetPinFunc_AIN0_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 0u, 2u, 0x01u ); \
    01818                                                  bFM0P_GPIO_PFR3_P3D = 1u; }while(0)
    01819
    01820 /*--- AIN0_1 ---*/
    01821 #define SetPinFunc_AIN0_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 0u, 2u, 0x02u ); \
    01822                                                  bFM0P_GPIO_PFR2_P23 = 1u; \
    01823                                                  bFM0P_GPIO_ADE_AN06 = 0u; }while(0)
    01824
    01825 /*--- AIN0_3 ---*/
    01826 #define SetPinFunc_AIN0_3(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 0u, 2u, 0x00u ); \
    01827                                                  bFM0P_GPIO_EPFR21_QAIN0S = 1u; \
    01828                                                  bFM0P_GPIO_PFR3_P3A = 1u; }while(0)
    01829
    01830 /*--- BIN0_0 ---*/
    01831 #define SetPinFunc_BIN0_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 2u, 2u, 0x01u ); \
    01832                                                  bFM0P_GPIO_PFR3_P3E = 1u; }while(0)
    01833
    01834 /*--- BIN0_1 ---*/
    01835 #define SetPinFunc_BIN0_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 2u, 2u, 0x02u ); \
    01836                                                  bFM0P_GPIO_PFR2_P21 = 1u; }while(0)
    01837
    01838 /*--- BIN0_3 ---*/
    01839 #define SetPinFunc_BIN0_3(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 2u, 2u, 0x00u ); \
    01840                                                  bFM0P_GPIO_EPFR21_QBIN0S = 1u; \
    01841                                                  bFM0P_GPIO_PFR3_P3B = 1u; }while(0)
    01842
    01843 /*--- CROUT_1 ---*/
    01844 #define SetPinFunc_CROUT_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR00, 1u, 2u, 0x02u ); \
    01845                                                  bFM0P_GPIO_PFR0_P0F = 1u; }while(0)
    01846
    01847 /*--- DTTI0X_1 ---*/
    01848 #define SetPinFunc_DTTI0X_1(dummy)           do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 16u, 2u, 0x02u ); \
    01849                                                  bFM0P_GPIO_PFRE_PE0 = 1u; }while(0)
    01850
    01851 /*--- DTTI0X_2 ---*/
    01852 #define SetPinFunc_DTTI0X_2(dummy)           do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 16u, 2u, 0x03u ); \
    01853                                                  bFM0P_GPIO_PFR6_P61 = 1u; }while(0)
    01854
    01855 /*--- FRCK0_0 ---*/
    01856 #define SetPinFunc_FRCK0_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 18u, 2u, 0x01u ); \
    01857                                                  bFM0P_GPIO_PFR2_P21 = 1u; }while(0)
    01858
    01859 /*--- FRCK0_2 ---*/
    01860 #define SetPinFunc_FRCK0_2(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 18u, 2u, 0x03u ); \
    01861                                                  bFM0P_GPIO_PFR1_P11 = 1u; \
    01862                                                  bFM0P_GPIO_ADE_AN01 = 0u; }while(0)
    01863
    01864 /*--- IC00_0 ---*/
    01865 #define SetPinFunc_IC00_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 20u, 3u, 0x01u ); \
    01866                                                  bFM0P_GPIO_PFR6_P60 = 1u; }while(0)
    01867
    01868 /*--- IC00_2 ---*/
    01869 #define SetPinFunc_IC00_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 20u, 3u, 0x03u ); \
    01870                                                  bFM0P_GPIO_PFR1_P12 = 1u; \
    01871                                                  bFM0P_GPIO_ADE_AN02 = 0u; }while(0)
    01872
    01873 /*--- IC01_1 ---*/
    01874 #define SetPinFunc_IC01_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 23u, 3u, 0x02u ); \
    01875                                                  bFM0P_GPIO_PFR2_P21 = 1u; }while(0)
    01876
    01877 /*--- IC01_2 ---*/
    01878 #define SetPinFunc_IC01_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 23u, 3u, 0x03u ); \
    01879                                                  bFM0P_GPIO_PFR1_P13 = 1u; \
    01880                                                  bFM0P_GPIO_ADE_AN03 = 0u; }while(0)
    01881
    01882 /*--- IC02_0 ---*/
    01883 #define SetPinFunc_IC02_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 26u, 3u, 0x01u ); \
    01884                                                  bFM0P_GPIO_PFR1_P11 = 1u; \
    01885                                                  bFM0P_GPIO_ADE_AN01 = 0u; }while(0)
    01886
    01887 /*--- IC02_1 ---*/
    01888 #define SetPinFunc_IC02_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 26u, 3u, 0x02u ); \
    01889                                                  bFM0P_GPIO_PFR2_P23 = 1u; \
    01890                                                  bFM0P_GPIO_ADE_AN06 = 0u; }while(0)
    01891
    01892 /*--- IC03_1 ---*/
    01893 #define SetPinFunc_IC03_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 29u, 3u, 0x02u ); \
    01894                                                  bFM0P_GPIO_PFR2_P22 = 1u; \
    01895                                                  bFM0P_GPIO_ADE_AN07 = 0u; }while(0)
    01896
    01897 /*--- IGTRG0_0 ---*/
    01898 #define SetPinFunc_IGTRG0_0(dummy)           do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 13u, 1u, 0x00u ); \
    01899                                                  bFM0P_GPIO_PFR6_P60 = 1u; }while(0)
    01900
    01901 /*--- IGTRG0_1 ---*/
    01902 #define SetPinFunc_IGTRG0_1(dummy)           do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 13u, 1u, 0x01u ); \
    01903                                                  bFM0P_GPIO_PFR0_P04 = 1u; }while(0)
    01904
    01905 /*--- INT00_1 ---*/
    01906 #define SetPinFunc_INT00_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 0u, 2u, 0x02u ); \
    01907                                                  bFM0P_GPIO_PFR1_P13 = 1u; \
    01908                                                  bFM0P_GPIO_ADE_AN03 = 0u; }while(0)
    01909
    01910 /*--- INT01_1 ---*/
    01911 #define SetPinFunc_INT01_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 2u, 2u, 0x02u ); \
    01912                                                  bFM0P_GPIO_PFR1_P12 = 1u; \
    01913                                                  bFM0P_GPIO_ADE_AN02 = 0u; }while(0)
    01914
    01915 /*--- INT02_1 ---*/
    01916 #define SetPinFunc_INT02_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 4u, 2u, 0x02u ); \
    01917                                                  bFM0P_GPIO_PFR1_P11 = 1u; \
    01918                                                  bFM0P_GPIO_ADE_AN01 = 0u; }while(0)
    01919
    01920 /*--- INT02_2 ---*/
    01921 #define SetPinFunc_INT02_2(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 4u, 2u, 0x03u ); \
    01922                                                  bFM0P_GPIO_PFRE_PE0 = 1u; }while(0)
    01923
    01924 /*--- INT03_0 ---*/
    01925 #define SetPinFunc_INT03_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 6u, 2u, 0x01u ); \
    01926                                                  bFM0P_GPIO_PFR3_P3A = 1u; }while(0)
    01927
    01928 /*--- INT03_2 ---*/
    01929 #define SetPinFunc_INT03_2(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 6u, 2u, 0x03u ); \
    01930                                                  bFM0P_GPIO_PFR0_P04 = 1u; }while(0)
    01931
    01932 /*--- INT04_0 ---*/
    01933 #define SetPinFunc_INT04_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 8u, 2u, 0x01u ); \
    01934                                                  bFM0P_GPIO_PFR3_P3B = 1u; }while(0)
    01935
    01936 /*--- INT04_1 ---*/
    01937 #define SetPinFunc_INT04_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 8u, 2u, 0x02u ); \
    01938                                                  bFM0P_GPIO_PFR2_P23 = 1u; \
    01939                                                  bFM0P_GPIO_ADE_AN06 = 0u; }while(0)
    01940
    01941 /*--- INT05_0 ---*/
    01942 #define SetPinFunc_INT05_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 10u, 2u, 0x01u ); \
    01943                                                  bFM0P_GPIO_PFR3_P3C = 1u; }while(0)
    01944
    01945 /*--- INT05_1 ---*/
    01946 #define SetPinFunc_INT05_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 10u, 2u, 0x02u ); \
    01947                                                  bFM0P_GPIO_PFR2_P22 = 1u; \
    01948                                                  bFM0P_GPIO_ADE_AN07 = 0u; }while(0)
    01949
    01950 /*--- INT06_0 ---*/
    01951 #define SetPinFunc_INT06_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 12u, 2u, 0x01u ); \
    01952                                                  bFM0P_GPIO_PFR3_P3D = 1u; }while(0)
    01953
    01954 /*--- INT06_1 ---*/
    01955 #define SetPinFunc_INT06_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 12u, 2u, 0x02u ); \
    01956                                                  bFM0P_GPIO_PFR2_P21 = 1u; }while(0)
    01957
    01958 /*--- INT15_0 ---*/
    01959 #define SetPinFunc_INT15_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 30u, 2u, 0x01u ); \
    01960                                                  bFM0P_GPIO_PFR3_P3E = 1u; }while(0)
    01961
    01962 /*--- INT15_1 ---*/
    01963 #define SetPinFunc_INT15_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 30u, 2u, 0x02u ); \
    01964                                                  bFM0P_GPIO_PFR6_P60 = 1u; }while(0)
    01965
    01966 /*--- NMIX ---*/
    01967 #define SetPinFunc_NMIX(dummy)               do{ bFM0P_GPIO_EPFR00_NMIS = 1; \
    01968                                                  bFM0P_GPIO_PFR0_P0F = 1u; }while(0)
    01969
    01970 /*--- RTCCO_0 ---*/
    01971 #define SetPinFunc_RTCCO_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR00, 4u, 2u, 0x01u ); \
    01972                                                  bFM0P_GPIO_PFR0_P0F = 1u; }while(0)
    01973
    01974 /*--- RTCCO_1 ---*/
    01975 #define SetPinFunc_RTCCO_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR00, 4u, 2u, 0x02u ); \
    01976                                                  bFM0P_GPIO_PFR1_P13 = 1u; \
    01977                                                  bFM0P_GPIO_ADE_AN03 = 0u; }while(0)
    01978
    01979 /*--- RTCCO_2 ---*/
    01980 #define SetPinFunc_RTCCO_2(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR00, 4u, 2u, 0x03u ); \
    01981                                                  bFM0P_GPIO_PFR3_P3A = 1u; }while(0)
    01982
    01983 /*--- RTO00_0 ---*/
    01984 #define SetPinFunc_RTO00_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 0u, 2u, 0x01u ); \
    01985                                                  bFM0P_GPIO_PFR3_P3A = 1u; }while(0)
    01986
    01987 /*--- RTO01_0 ---*/
    01988 #define SetPinFunc_RTO01_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 2u, 2u, 0x01u ); \
    01989                                                  bFM0P_GPIO_PFR3_P3B = 1u; }while(0)
    01990
    01991 /*--- RTO02_0 ---*/
    01992 #define SetPinFunc_RTO02_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 4u, 2u, 0x01u ); \
    01993                                                  bFM0P_GPIO_PFR3_P3C = 1u; }while(0)
    01994
    01995 /*--- RTO03_0 ---*/
    01996 #define SetPinFunc_RTO03_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 6u, 2u, 0x01u ); \
    01997                                                  bFM0P_GPIO_PFR3_P3D = 1u; }while(0)
    01998
    01999 /*--- RTO04_0 ---*/
    02000 #define SetPinFunc_RTO04_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 8u, 2u, 0x01u ); \
    02001                                                  bFM0P_GPIO_PFR3_P3E = 1u; }while(0)
    02002
    02003 /*--- RTO05_0 ---*/
    02004 #define SetPinFunc_RTO05_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 10u, 2u, 0x01u ); \
    02005                                                  bFM0P_GPIO_PFR3_P3F = 1u; }while(0)
    02006
    02007 /*--- SCK0_0 ---*/
    02008 #define SetPinFunc_SCK0_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 8u, 2u, 0x01u ); \
    02009                                                  bFM0P_GPIO_PFR2_P23 = 1u; \
    02010                                                  bFM0P_GPIO_ADE_AN06 = 0u; }while(0)
    02011
    02012 /*--- SCK0_2 ---*/
    02013 #define SetPinFunc_SCK0_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 8u, 2u, 0x03u ); \
    02014                                                  bFM0P_GPIO_PFR3_P3A = 1u; }while(0)
    02015
    02016 /*--- SCK1_1 ---*/
    02017 #define SetPinFunc_SCK1_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 14u, 2u, 0x02u ); \
    02018                                                  bFM0P_GPIO_PFR1_P13 = 1u; \
    02019                                                  bFM0P_GPIO_ADE_AN03 = 0u; }while(0)
    02020
    02021 /*--- SCK3_0 ---*/
    02022 #define SetPinFunc_SCK3_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 26u, 2u, 0x01u ); \
    02023                                                  bFM0P_GPIO_PFR0_P04 = 1u; }while(0)
    02024
    02025 /*--- SCK3_2 ---*/
    02026 #define SetPinFunc_SCK3_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 26u, 2u, 0x03u ); \
    02027                                                  bFM0P_GPIO_PFR3_P3D = 1u; }while(0)
    02028
    02029 /*--- SCS10_2 ---*/
    02030 #define SetPinFunc_SCS10_2(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR22, 4u, 2u, 0x03u ); \
    02031                                                  bFM0P_GPIO_PFR6_P60 = 1u; }while(0)
    02032
    02033 /*--- SCS11_2 ---*/
    02034 #define SetPinFunc_SCS11_2(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR22, 6u, 2u, 0x03u ); \
    02035                                                  bFM0P_GPIO_PFR6_P61 = 1u; }while(0)
    02036
    02037 /*--- SCS30_2 ---*/
    02038 #define SetPinFunc_SCS30_2(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR22, 12u, 2u, 0x03u ); \
    02039                                                  bFM0P_GPIO_PFR3_P3C = 1u; }while(0)
    02040
    02041 /*--- SCS31_2 ---*/
    02042 #define SetPinFunc_SCS31_2(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR22, 14u, 2u, 0x03u ); \
    02043                                                  bFM0P_GPIO_PFR3_P3B = 1u; }while(0)
    02044
    02045 /*--- SIN0_0 ---*/
    02046 #define SetPinFunc_SIN0_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 4u, 2u, 0x01u ); \
    02047                                                  bFM0P_GPIO_PFR2_P21 = 1u; }while(0)
    02048
    02049 /*--- SIN0_2 ---*/
    02050 #define SetPinFunc_SIN0_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 4u, 2u, 0x03u ); \
    02051                                                  bFM0P_GPIO_PFR3_P3C = 1u; }while(0)
    02052
    02053 /*--- SIN1_1 ---*/
    02054 #define SetPinFunc_SIN1_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 10u, 2u, 0x02u ); \
    02055                                                  bFM0P_GPIO_PFR1_P11 = 1u; \
    02056                                                  bFM0P_GPIO_ADE_AN01 = 0u; }while(0)
    02057
    02058 /*--- SIN3_0 ---*/
    02059 #define SetPinFunc_SIN3_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 22u, 2u, 0x01u ); \
    02060                                                  bFM0P_GPIO_PFR6_P60 = 1u; }while(0)
    02061
    02062 /*--- SIN3_2 ---*/
    02063 #define SetPinFunc_SIN3_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 22u, 2u, 0x03u ); \
    02064                                                  bFM0P_GPIO_PFR3_P3F = 1u; }while(0)
    02065
    02066 /*--- SOT0_0 ---*/
    02067 #define SetPinFunc_SOT0_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 6u, 2u, 0x01u ); \
    02068                                                  bFM0P_GPIO_PFR2_P22 = 1u; \
    02069                                                  bFM0P_GPIO_ADE_AN07 = 0u; }while(0)
    02070
    02071 /*--- SOT0_2 ---*/
    02072 #define SetPinFunc_SOT0_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 6u, 2u, 0x03u ); \
    02073                                                  bFM0P_GPIO_PFR3_P3B = 1u; }while(0)
    02074
    02075 /*--- SOT1_1 ---*/
    02076 #define SetPinFunc_SOT1_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 12u, 2u, 0x02u ); \
    02077                                                  bFM0P_GPIO_PFR1_P12 = 1u; \
    02078                                                  bFM0P_GPIO_ADE_AN02 = 0u; }while(0)
    02079
    02080 /*--- SOT3_0 ---*/
    02081 #define SetPinFunc_SOT3_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 24u, 2u, 0x01u ); \
    02082                                                  bFM0P_GPIO_PFR6_P61 = 1u; }while(0)
    02083
    02084 /*--- SOT3_2 ---*/
    02085 #define SetPinFunc_SOT3_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 24u, 2u, 0x03u ); \
    02086                                                  bFM0P_GPIO_PFR3_P3E = 1u; }while(0)
    02087
    02088 /*--- SUBOUT_0 ---*/
    02089 #define SetPinFunc_SUBOUT_0(dummy)           do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR00, 6u, 2u, 0x01u ); \
    02090                                                  bFM0P_GPIO_PFR0_P0F = 1u; }while(0)
    02091
    02092 /*--- SUBOUT_1 ---*/
    02093 #define SetPinFunc_SUBOUT_1(dummy)           do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR00, 6u, 2u, 0x02u ); \
    02094                                                  bFM0P_GPIO_PFR1_P13 = 1u; \
    02095                                                  bFM0P_GPIO_ADE_AN03 = 0u; }while(0)
    02096
    02097 /*--- SUBOUT_2 ---*/
    02098 #define SetPinFunc_SUBOUT_2(dummy)           do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR00, 6u, 2u, 0x03u ); \
    02099                                                  bFM0P_GPIO_PFR3_P3A = 1u; }while(0)
    02100
    02101 /*--- TIOA0_0_OUT ---*/
    02102 #define SetPinFunc_TIOA0_0_OUT(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 2u, 2u, 0x01u ); \
    02103                                                  bFM0P_GPIO_PFR3_P3E = 1u; }while(0)
    02104
    02105 /*--- TIOA0_1_OUT ---*/
    02106 #define SetPinFunc_TIOA0_1_OUT(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 2u, 2u, 0x02u ); \
    02107                                                  bFM0P_GPIO_PFR3_P3A = 1u; }while(0)
    02108
    02109 /*--- TIOA1_0_IN ---*/
    02110 #define SetPinFunc_TIOA1_0_IN(dummy)         do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 8u, 2u, 0x01u ); \
    02111                                                  bFM0P_GPIO_PFR3_P3F = 1u; }while(0)
    02112
    02113 /*--- TIOA1_0_OUT ---*/
    02114 #define SetPinFunc_TIOA1_0_OUT(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 10u, 2u, 0x01u ); \
    02115                                                  bFM0P_GPIO_PFR3_P3F = 1u; }while(0)
    02116
    02117 /*--- TIOA1_1_IN ---*/
    02118 #define SetPinFunc_TIOA1_1_IN(dummy)         do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 8u, 2u, 0x02u ); \
    02119                                                  bFM0P_GPIO_PFR3_P3B = 1u; }while(0)
    02120
    02121 /*--- TIOA1_1_OUT ---*/
    02122 #define SetPinFunc_TIOA1_1_OUT(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 10u, 2u, 0x02u ); \
    02123                                                  bFM0P_GPIO_PFR3_P3B = 1u; }while(0)
    02124
    02125 /*--- TIOA2_0_OUT ---*/
    02126 #define SetPinFunc_TIOA2_0_OUT(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 18u, 2u, 0x01u ); \
    02127                                                  bFM0P_GPIO_PFR2_P23 = 1u; \
    02128                                                  bFM0P_GPIO_ADE_AN06 = 0u; }while(0)
    02129
    02130 /*--- TIOA2_1_OUT ---*/
    02131 #define SetPinFunc_TIOA2_1_OUT(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 18u, 2u, 0x02u ); \
    02132                                                  bFM0P_GPIO_PFR3_P3C = 1u; }while(0)
    02133
    02134 /*--- TIOA2_2_OUT ---*/
    02135 #define SetPinFunc_TIOA2_2_OUT(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 18u, 2u, 0x03u ); \
    02136                                                  bFM0P_GPIO_PFR6_P60 = 1u; }while(0)
    02137
    02138 /*--- TIOA3_1_IN ---*/
    02139 #define SetPinFunc_TIOA3_1_IN(dummy)         do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 24u, 2u, 0x02u ); \
    02140                                                  bFM0P_GPIO_PFR3_P3D = 1u; }while(0)
    02141
    02142 /*--- TIOA3_1_OUT ---*/
    02143 #define SetPinFunc_TIOA3_1_OUT(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 26u, 2u, 0x02u ); \
    02144                                                  bFM0P_GPIO_PFR3_P3D = 1u; }while(0)
    02145
    02146 /*--- TIOB0_1_IN ---*/
    02147 #define SetPinFunc_TIOB0_1_IN(dummy)         do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 4u, 3u, 0x02u ); \
    02148                                                  bFM0P_GPIO_PFR0_P04 = 1u; }while(0)
    02149
    02150 /*--- TIOB1_1_IN ---*/
    02151 #define SetPinFunc_TIOB1_1_IN(dummy)         do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 12u, 2u, 0x02u ); \
    02152                                                  bFM0P_GPIO_PFR2_P21 = 1u; }while(0)
    02153
    02154 /*--- TIOB2_0_IN ---*/
    02155 #define SetPinFunc_TIOB2_0_IN(dummy)         do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 20u, 2u, 0x01u ); \
    02156                                                  bFM0P_GPIO_PFR2_P22 = 1u; \
    02157                                                  bFM0P_GPIO_ADE_AN07 = 0u; }while(0)
    02158
    02159 /*--- TIOB2_2_IN ---*/
    02160 #define SetPinFunc_TIOB2_2_IN(dummy)         do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 20u, 2u, 0x03u ); \
    02161                                                  bFM0P_GPIO_PFR6_P61 = 1u; }while(0)
    02162
    02163 /*--- ZIN0_0 ---*/
    02164 #define SetPinFunc_ZIN0_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 4u, 2u, 0x01u ); \
    02165                                                  bFM0P_GPIO_PFR3_P3F = 1u; }while(0)
    02166
    02167 /*--- ZIN0_1 ---*/
    02168 #define SetPinFunc_ZIN0_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 4u, 2u, 0x02u ); \
    02169                                                  bFM0P_GPIO_PFR2_P22 = 1u; \
    02170                                                  bFM0P_GPIO_ADE_AN07 = 0u; }while(0)
    02171
    02172 /*--- ZIN0_3 ---*/
    02173 #define SetPinFunc_ZIN0_3(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 4u, 2u, 0x00u ); \
    02174                                                  bFM0P_GPIO_EPFR21_QZIN0S = 1u; \
    02175                                                  bFM0P_GPIO_PFR3_P3C = 1u; }while(0)
    02176
    02177
    02178 /******************************************************************************
    02179    ANALOG PINS
    02180 *******************************************************************************/
    02181
    02182 /*--- AN01 ---*/
    02183 #define SetPinFunc_AN01(dummy)               ( bFM0P_GPIO_ADE_AN01 = 1 )
    02184
    02185 /*--- AN02 ---*/
    02186 #define SetPinFunc_AN02(dummy)               ( bFM0P_GPIO_ADE_AN02 = 1 )
    02187
    02188 /*--- AN03 ---*/
    02189 #define SetPinFunc_AN03(dummy)               ( bFM0P_GPIO_ADE_AN03 = 1 )
    02190
    02191 /*--- AN06 ---*/
    02192 #define SetPinFunc_AN06(dummy)               ( bFM0P_GPIO_ADE_AN06 = 1 )
    02193
    02194 /*--- AN07 ---*/
    02195 #define SetPinFunc_AN07(dummy)               ( bFM0P_GPIO_ADE_AN07 = 1 )
    02196
    02197
    02198 #endif // #ifndef __GPIO_S6E1A1XB0A_H__
    02199
    02200
    02201 /******************************************************************************/
    02202 /* EOF (not truncated)                                                        */
    02203 /******************************************************************************/
    02204