| 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_s6e1a1xc0a.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_S6E1A1XC0A_H__
    00053 #define __GPIO_S6E1A1XC0A_H__
    00054
    00055 #include <stdint.h>
    00056
    00057 /******************************************************************************
    00058    GPIO
    00059 *******************************************************************************/
    00060
    00061 /*---- GPIO bit P00 ----*/
    00062
    00063 #define GPIO1PIN_P00_GET             ( bFM0P_GPIO_PDIR0_P00 )
    00064
    00065 #define GPIO1PIN_P00_PUT(v)          ( bFM0P_GPIO_PDOR0_P00=(v) )
    00066
    00067 #define GPIO1PIN_P00_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P00_INITIN(v) \
    00068                                                         : GPIO1PIN_P00_INITOUT(v) )
    00069
    00070 #define GPIO1PIN_P00_INITIN(v)       do{ bFM0P_GPIO_PCR0_P00=(v).bPullup; \
    00071                                          bFM0P_GPIO_DDR0_P00=0u; \
    00072                                          bFM0P_GPIO_PFR0_P00=0u; }while(0)
    00073
    00074 #define GPIO1PIN_P00_INITOUT(v)      do{ bFM0P_GPIO_PDOR0_P00=(v).bInitVal; \
    00075                                          bFM0P_GPIO_DDR0_P00=1u; \
    00076                                          bFM0P_GPIO_PFR0_P00=0u; }while(0)
    00077
    00078
    00079 /*---- GPIO bit NP00 ----*/
    00080 #define GPIO1PIN_NP00_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR0_P00)) )
    00081
    00082 #define GPIO1PIN_NP00_PUT(v)         ( bFM0P_GPIO_PDOR0_P00=(uint32_t)(!(v)) )
    00083
    00084 #define GPIO1PIN_NP00_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP00_INITIN(v) \
    00085                                                         : GPIO1PIN_NP00_INITOUT(v) )
    00086
    00087 #define GPIO1PIN_NP00_INITIN(v)      do{ bFM0P_GPIO_PCR0_P00=(v).bPullup; \
    00088                                          bFM0P_GPIO_DDR0_P00=0u; \
    00089                                          bFM0P_GPIO_PFR0_P00=0u; }while(0)
    00090
    00091 #define GPIO1PIN_NP00_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P00=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00092                                          bFM0P_GPIO_DDR0_P00=1u; \
    00093                                          bFM0P_GPIO_PFR0_P00=0u; }while(0)
    00094
    00095
    00096 /*---- GPIO bit P01 ----*/
    00097
    00098 #define GPIO1PIN_P01_GET             ( bFM0P_GPIO_PDIR0_P01 )
    00099
    00100 #define GPIO1PIN_P01_PUT(v)          ( bFM0P_GPIO_PDOR0_P01=(v) )
    00101
    00102 #define GPIO1PIN_P01_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P01_INITIN(v) \
    00103                                                         : GPIO1PIN_P01_INITOUT(v) )
    00104
    00105 #define GPIO1PIN_P01_INITIN(v)       do{ bFM0P_GPIO_PCR0_P01=(v).bPullup; \
    00106                                          bFM0P_GPIO_DDR0_P01=0u; \
    00107                                          bFM0P_GPIO_PFR0_P01=0u; }while(0)
    00108
    00109 #define GPIO1PIN_P01_INITOUT(v)      do{ bFM0P_GPIO_PDOR0_P01=(v).bInitVal; \
    00110                                          bFM0P_GPIO_DDR0_P01=1u; \
    00111                                          bFM0P_GPIO_PFR0_P01=0u; }while(0)
    00112
    00113
    00114 /*---- GPIO bit NP01 ----*/
    00115 #define GPIO1PIN_NP01_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR0_P01)) )
    00116
    00117 #define GPIO1PIN_NP01_PUT(v)         ( bFM0P_GPIO_PDOR0_P01=(uint32_t)(!(v)) )
    00118
    00119 #define GPIO1PIN_NP01_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP01_INITIN(v) \
    00120                                                         : GPIO1PIN_NP01_INITOUT(v) )
    00121
    00122 #define GPIO1PIN_NP01_INITIN(v)      do{ bFM0P_GPIO_PCR0_P01=(v).bPullup; \
    00123                                          bFM0P_GPIO_DDR0_P01=0u; \
    00124                                          bFM0P_GPIO_PFR0_P01=0u; }while(0)
    00125
    00126 #define GPIO1PIN_NP01_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P01=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00127                                          bFM0P_GPIO_DDR0_P01=1u; \
    00128                                          bFM0P_GPIO_PFR0_P01=0u; }while(0)
    00129
    00130
    00131 /*---- GPIO bit P02 ----*/
    00132
    00133 #define GPIO1PIN_P02_GET             ( bFM0P_GPIO_PDIR0_P02 )
    00134
    00135 #define GPIO1PIN_P02_PUT(v)          ( bFM0P_GPIO_PDOR0_P02=(v) )
    00136
    00137 #define GPIO1PIN_P02_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P02_INITIN(v) \
    00138                                                         : GPIO1PIN_P02_INITOUT(v) )
    00139
    00140 #define GPIO1PIN_P02_INITIN(v)       do{ bFM0P_GPIO_PCR0_P02=(v).bPullup; \
    00141                                          bFM0P_GPIO_DDR0_P02=0u; \
    00142                                          bFM0P_GPIO_PFR0_P02=0u; }while(0)
    00143
    00144 #define GPIO1PIN_P02_INITOUT(v)      do{ bFM0P_GPIO_PDOR0_P02=(v).bInitVal; \
    00145                                          bFM0P_GPIO_DDR0_P02=1u; \
    00146                                          bFM0P_GPIO_PFR0_P02=0u; }while(0)
    00147
    00148
    00149 /*---- GPIO bit NP02 ----*/
    00150 #define GPIO1PIN_NP02_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR0_P02)) )
    00151
    00152 #define GPIO1PIN_NP02_PUT(v)         ( bFM0P_GPIO_PDOR0_P02=(uint32_t)(!(v)) )
    00153
    00154 #define GPIO1PIN_NP02_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP02_INITIN(v) \
    00155                                                         : GPIO1PIN_NP02_INITOUT(v) )
    00156
    00157 #define GPIO1PIN_NP02_INITIN(v)      do{ bFM0P_GPIO_PCR0_P02=(v).bPullup; \
    00158                                          bFM0P_GPIO_DDR0_P02=0u; \
    00159                                          bFM0P_GPIO_PFR0_P02=0u; }while(0)
    00160
    00161 #define GPIO1PIN_NP02_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P02=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00162                                          bFM0P_GPIO_DDR0_P02=1u; \
    00163                                          bFM0P_GPIO_PFR0_P02=0u; }while(0)
    00164
    00165
    00166 /*---- GPIO bit P03 ----*/
    00167
    00168 #define GPIO1PIN_P03_GET             ( bFM0P_GPIO_PDIR0_P03 )
    00169
    00170 #define GPIO1PIN_P03_PUT(v)          ( bFM0P_GPIO_PDOR0_P03=(v) )
    00171
    00172 #define GPIO1PIN_P03_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P03_INITIN(v) \
    00173                                                         : GPIO1PIN_P03_INITOUT(v) )
    00174
    00175 #define GPIO1PIN_P03_INITIN(v)       do{ bFM0P_GPIO_PCR0_P03=(v).bPullup; \
    00176                                          bFM0P_GPIO_DDR0_P03=0u; \
    00177                                          bFM0P_GPIO_PFR0_P03=0u; }while(0)
    00178
    00179 #define GPIO1PIN_P03_INITOUT(v)      do{ bFM0P_GPIO_PDOR0_P03=(v).bInitVal; \
    00180                                          bFM0P_GPIO_DDR0_P03=1u; \
    00181                                          bFM0P_GPIO_PFR0_P03=0u; }while(0)
    00182
    00183
    00184 /*---- GPIO bit NP03 ----*/
    00185 #define GPIO1PIN_NP03_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR0_P03)) )
    00186
    00187 #define GPIO1PIN_NP03_PUT(v)         ( bFM0P_GPIO_PDOR0_P03=(uint32_t)(!(v)) )
    00188
    00189 #define GPIO1PIN_NP03_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP03_INITIN(v) \
    00190                                                         : GPIO1PIN_NP03_INITOUT(v) )
    00191
    00192 #define GPIO1PIN_NP03_INITIN(v)      do{ bFM0P_GPIO_PCR0_P03=(v).bPullup; \
    00193                                          bFM0P_GPIO_DDR0_P03=0u; \
    00194                                          bFM0P_GPIO_PFR0_P03=0u; }while(0)
    00195
    00196 #define GPIO1PIN_NP03_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P03=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00197                                          bFM0P_GPIO_DDR0_P03=1u; \
    00198                                          bFM0P_GPIO_PFR0_P03=0u; }while(0)
    00199
    00200
    00201 /*---- GPIO bit P04 ----*/
    00202
    00203 #define GPIO1PIN_P04_GET             ( bFM0P_GPIO_PDIR0_P04 )
    00204
    00205 #define GPIO1PIN_P04_PUT(v)          ( bFM0P_GPIO_PDOR0_P04=(v) )
    00206
    00207 #define GPIO1PIN_P04_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P04_INITIN(v) \
    00208                                                         : GPIO1PIN_P04_INITOUT(v) )
    00209
    00210 #define GPIO1PIN_P04_INITIN(v)       do{ bFM0P_GPIO_PCR0_P04=(v).bPullup; \
    00211                                          bFM0P_GPIO_DDR0_P04=0u; \
    00212                                          bFM0P_GPIO_PFR0_P04=0u; }while(0)
    00213
    00214 #define GPIO1PIN_P04_INITOUT(v)      do{ bFM0P_GPIO_PDOR0_P04=(v).bInitVal; \
    00215                                          bFM0P_GPIO_DDR0_P04=1u; \
    00216                                          bFM0P_GPIO_PFR0_P04=0u; }while(0)
    00217
    00218
    00219 /*---- GPIO bit NP04 ----*/
    00220 #define GPIO1PIN_NP04_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR0_P04)) )
    00221
    00222 #define GPIO1PIN_NP04_PUT(v)         ( bFM0P_GPIO_PDOR0_P04=(uint32_t)(!(v)) )
    00223
    00224 #define GPIO1PIN_NP04_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP04_INITIN(v) \
    00225                                                         : GPIO1PIN_NP04_INITOUT(v) )
    00226
    00227 #define GPIO1PIN_NP04_INITIN(v)      do{ bFM0P_GPIO_PCR0_P04=(v).bPullup; \
    00228                                          bFM0P_GPIO_DDR0_P04=0u; \
    00229                                          bFM0P_GPIO_PFR0_P04=0u; }while(0)
    00230
    00231 #define GPIO1PIN_NP04_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P04=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00232                                          bFM0P_GPIO_DDR0_P04=1u; \
    00233                                          bFM0P_GPIO_PFR0_P04=0u; }while(0)
    00234
    00235
    00236 /*---- GPIO bit P0F ----*/
    00237
    00238 #define GPIO1PIN_P0F_GET             ( bFM0P_GPIO_PDIR0_P0F )
    00239
    00240 #define GPIO1PIN_P0F_PUT(v)          ( bFM0P_GPIO_PDOR0_P0F=(v) )
    00241
    00242 #define GPIO1PIN_P0F_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P0F_INITIN(v) \
    00243                                                         : GPIO1PIN_P0F_INITOUT(v) )
    00244
    00245 #define GPIO1PIN_P0F_INITIN(v)       do{ bFM0P_GPIO_PCR0_P0F=(v).bPullup; \
    00246                                          bFM0P_GPIO_DDR0_P0F=0u; \
    00247                                          bFM0P_GPIO_PFR0_P0F=0u; }while(0)
    00248
    00249 #define GPIO1PIN_P0F_INITOUT(v)      do{ bFM0P_GPIO_PDOR0_P0F=(v).bInitVal; \
    00250                                          bFM0P_GPIO_DDR0_P0F=1u; \
    00251                                          bFM0P_GPIO_PFR0_P0F=0u; }while(0)
    00252
    00253
    00254 /*---- GPIO bit NP0F ----*/
    00255 #define GPIO1PIN_NP0F_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR0_P0F)) )
    00256
    00257 #define GPIO1PIN_NP0F_PUT(v)         ( bFM0P_GPIO_PDOR0_P0F=(uint32_t)(!(v)) )
    00258
    00259 #define GPIO1PIN_NP0F_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP0F_INITIN(v) \
    00260                                                         : GPIO1PIN_NP0F_INITOUT(v) )
    00261
    00262 #define GPIO1PIN_NP0F_INITIN(v)      do{ bFM0P_GPIO_PCR0_P0F=(v).bPullup; \
    00263                                          bFM0P_GPIO_DDR0_P0F=0u; \
    00264                                          bFM0P_GPIO_PFR0_P0F=0u; }while(0)
    00265
    00266 #define GPIO1PIN_NP0F_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P0F=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00267                                          bFM0P_GPIO_DDR0_P0F=1u; \
    00268                                          bFM0P_GPIO_PFR0_P0F=0u; }while(0)
    00269
    00270
    00271 /*---- GPIO bit P10 ----*/
    00272
    00273 #define GPIO1PIN_P10_GET             ( bFM0P_GPIO_PDIR1_P10 )
    00274
    00275 #define GPIO1PIN_P10_PUT(v)          ( bFM0P_GPIO_PDOR1_P10=(v) )
    00276
    00277 #define GPIO1PIN_P10_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P10_INITIN(v) \
    00278                                                         : GPIO1PIN_P10_INITOUT(v) )
    00279
    00280 #define GPIO1PIN_P10_INITIN(v)       do{ bFM0P_GPIO_PCR1_P10=(v).bPullup; \
    00281                                          bFM0P_GPIO_DDR1_P10=0u; \
    00282                                          bFM0P_GPIO_PFR1_P10=0u; \
    00283                                          bFM0P_GPIO_ADE_AN00=0u; }while(0)
    00284
    00285
    00286 #define GPIO1PIN_P10_INITOUT(v)      do{ bFM0P_GPIO_PDOR1_P10=(v).bInitVal; \
    00287                                          bFM0P_GPIO_DDR1_P10=1u; \
    00288                                          bFM0P_GPIO_PFR1_P10=0u; \
    00289                                          bFM0P_GPIO_ADE_AN00=0u; }while(0)
    00290
    00291
    00292 /*---- GPIO bit NP10 ----*/
    00293 #define GPIO1PIN_NP10_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR1_P10)) )
    00294
    00295 #define GPIO1PIN_NP10_PUT(v)         ( bFM0P_GPIO_PDOR1_P10=(uint32_t)(!(v)) )
    00296
    00297 #define GPIO1PIN_NP10_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP10_INITIN(v) \
    00298                                                         : GPIO1PIN_NP10_INITOUT(v) )
    00299
    00300 #define GPIO1PIN_NP10_INITIN(v)      do{ bFM0P_GPIO_PCR1_P10=(v).bPullup; \
    00301                                          bFM0P_GPIO_DDR1_P10=0u; \
    00302                                          bFM0P_GPIO_PFR1_P10=0u; \
    00303                                          bFM0P_GPIO_ADE_AN00=0u; }while(0)
    00304
    00305
    00306 #define GPIO1PIN_NP10_INITOUT(v)     do{ bFM0P_GPIO_PDOR1_P10=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00307                                          bFM0P_GPIO_DDR1_P10=1u; \
    00308                                          bFM0P_GPIO_PFR1_P10=0u; \
    00309                                          bFM0P_GPIO_ADE_AN00=0u; }while(0)
    00310
    00311
    00312 /*---- GPIO bit P11 ----*/
    00313
    00314 #define GPIO1PIN_P11_GET             ( bFM0P_GPIO_PDIR1_P11 )
    00315
    00316 #define GPIO1PIN_P11_PUT(v)          ( bFM0P_GPIO_PDOR1_P11=(v) )
    00317
    00318 #define GPIO1PIN_P11_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P11_INITIN(v) \
    00319                                                         : GPIO1PIN_P11_INITOUT(v) )
    00320
    00321 #define GPIO1PIN_P11_INITIN(v)       do{ bFM0P_GPIO_PCR1_P11=(v).bPullup; \
    00322                                          bFM0P_GPIO_DDR1_P11=0u; \
    00323                                          bFM0P_GPIO_PFR1_P11=0u; \
    00324                                          bFM0P_GPIO_ADE_AN01=0u; }while(0)
    00325
    00326
    00327 #define GPIO1PIN_P11_INITOUT(v)      do{ bFM0P_GPIO_PDOR1_P11=(v).bInitVal; \
    00328                                          bFM0P_GPIO_DDR1_P11=1u; \
    00329                                          bFM0P_GPIO_PFR1_P11=0u; \
    00330                                          bFM0P_GPIO_ADE_AN01=0u; }while(0)
    00331
    00332
    00333 /*---- GPIO bit NP11 ----*/
    00334 #define GPIO1PIN_NP11_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR1_P11)) )
    00335
    00336 #define GPIO1PIN_NP11_PUT(v)         ( bFM0P_GPIO_PDOR1_P11=(uint32_t)(!(v)) )
    00337
    00338 #define GPIO1PIN_NP11_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP11_INITIN(v) \
    00339                                                         : GPIO1PIN_NP11_INITOUT(v) )
    00340
    00341 #define GPIO1PIN_NP11_INITIN(v)      do{ bFM0P_GPIO_PCR1_P11=(v).bPullup; \
    00342                                          bFM0P_GPIO_DDR1_P11=0u; \
    00343                                          bFM0P_GPIO_PFR1_P11=0u; \
    00344                                          bFM0P_GPIO_ADE_AN01=0u; }while(0)
    00345
    00346
    00347 #define GPIO1PIN_NP11_INITOUT(v)     do{ bFM0P_GPIO_PDOR1_P11=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00348                                          bFM0P_GPIO_DDR1_P11=1u; \
    00349                                          bFM0P_GPIO_PFR1_P11=0u; \
    00350                                          bFM0P_GPIO_ADE_AN01=0u; }while(0)
    00351
    00352
    00353 /*---- GPIO bit P12 ----*/
    00354
    00355 #define GPIO1PIN_P12_GET             ( bFM0P_GPIO_PDIR1_P12 )
    00356
    00357 #define GPIO1PIN_P12_PUT(v)          ( bFM0P_GPIO_PDOR1_P12=(v) )
    00358
    00359 #define GPIO1PIN_P12_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P12_INITIN(v) \
    00360                                                         : GPIO1PIN_P12_INITOUT(v) )
    00361
    00362 #define GPIO1PIN_P12_INITIN(v)       do{ bFM0P_GPIO_PCR1_P12=(v).bPullup; \
    00363                                          bFM0P_GPIO_DDR1_P12=0u; \
    00364                                          bFM0P_GPIO_PFR1_P12=0u; \
    00365                                          bFM0P_GPIO_ADE_AN02=0u; }while(0)
    00366
    00367
    00368 #define GPIO1PIN_P12_INITOUT(v)      do{ bFM0P_GPIO_PDOR1_P12=(v).bInitVal; \
    00369                                          bFM0P_GPIO_DDR1_P12=1u; \
    00370                                          bFM0P_GPIO_PFR1_P12=0u; \
    00371                                          bFM0P_GPIO_ADE_AN02=0u; }while(0)
    00372
    00373
    00374 /*---- GPIO bit NP12 ----*/
    00375 #define GPIO1PIN_NP12_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR1_P12)) )
    00376
    00377 #define GPIO1PIN_NP12_PUT(v)         ( bFM0P_GPIO_PDOR1_P12=(uint32_t)(!(v)) )
    00378
    00379 #define GPIO1PIN_NP12_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP12_INITIN(v) \
    00380                                                         : GPIO1PIN_NP12_INITOUT(v) )
    00381
    00382 #define GPIO1PIN_NP12_INITIN(v)      do{ bFM0P_GPIO_PCR1_P12=(v).bPullup; \
    00383                                          bFM0P_GPIO_DDR1_P12=0u; \
    00384                                          bFM0P_GPIO_PFR1_P12=0u; \
    00385                                          bFM0P_GPIO_ADE_AN02=0u; }while(0)
    00386
    00387
    00388 #define GPIO1PIN_NP12_INITOUT(v)     do{ bFM0P_GPIO_PDOR1_P12=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00389                                          bFM0P_GPIO_DDR1_P12=1u; \
    00390                                          bFM0P_GPIO_PFR1_P12=0u; \
    00391                                          bFM0P_GPIO_ADE_AN02=0u; }while(0)
    00392
    00393
    00394 /*---- GPIO bit P13 ----*/
    00395
    00396 #define GPIO1PIN_P13_GET             ( bFM0P_GPIO_PDIR1_P13 )
    00397
    00398 #define GPIO1PIN_P13_PUT(v)          ( bFM0P_GPIO_PDOR1_P13=(v) )
    00399
    00400 #define GPIO1PIN_P13_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P13_INITIN(v) \
    00401                                                         : GPIO1PIN_P13_INITOUT(v) )
    00402
    00403 #define GPIO1PIN_P13_INITIN(v)       do{ bFM0P_GPIO_PCR1_P13=(v).bPullup; \
    00404                                          bFM0P_GPIO_DDR1_P13=0u; \
    00405                                          bFM0P_GPIO_PFR1_P13=0u; \
    00406                                          bFM0P_GPIO_ADE_AN03=0u; }while(0)
    00407
    00408
    00409 #define GPIO1PIN_P13_INITOUT(v)      do{ bFM0P_GPIO_PDOR1_P13=(v).bInitVal; \
    00410                                          bFM0P_GPIO_DDR1_P13=1u; \
    00411                                          bFM0P_GPIO_PFR1_P13=0u; \
    00412                                          bFM0P_GPIO_ADE_AN03=0u; }while(0)
    00413
    00414
    00415 /*---- GPIO bit NP13 ----*/
    00416 #define GPIO1PIN_NP13_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR1_P13)) )
    00417
    00418 #define GPIO1PIN_NP13_PUT(v)         ( bFM0P_GPIO_PDOR1_P13=(uint32_t)(!(v)) )
    00419
    00420 #define GPIO1PIN_NP13_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP13_INITIN(v) \
    00421                                                         : GPIO1PIN_NP13_INITOUT(v) )
    00422
    00423 #define GPIO1PIN_NP13_INITIN(v)      do{ bFM0P_GPIO_PCR1_P13=(v).bPullup; \
    00424                                          bFM0P_GPIO_DDR1_P13=0u; \
    00425                                          bFM0P_GPIO_PFR1_P13=0u; \
    00426                                          bFM0P_GPIO_ADE_AN03=0u; }while(0)
    00427
    00428
    00429 #define GPIO1PIN_NP13_INITOUT(v)     do{ bFM0P_GPIO_PDOR1_P13=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00430                                          bFM0P_GPIO_DDR1_P13=1u; \
    00431                                          bFM0P_GPIO_PFR1_P13=0u; \
    00432                                          bFM0P_GPIO_ADE_AN03=0u; }while(0)
    00433
    00434
    00435 /*---- GPIO bit P14 ----*/
    00436
    00437 #define GPIO1PIN_P14_GET             ( bFM0P_GPIO_PDIR1_P14 )
    00438
    00439 #define GPIO1PIN_P14_PUT(v)          ( bFM0P_GPIO_PDOR1_P14=(v) )
    00440
    00441 #define GPIO1PIN_P14_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P14_INITIN(v) \
    00442                                                         : GPIO1PIN_P14_INITOUT(v) )
    00443
    00444 #define GPIO1PIN_P14_INITIN(v)       do{ bFM0P_GPIO_PCR1_P14=(v).bPullup; \
    00445                                          bFM0P_GPIO_DDR1_P14=0u; \
    00446                                          bFM0P_GPIO_PFR1_P14=0u; \
    00447                                          bFM0P_GPIO_ADE_AN04=0u; }while(0)
    00448
    00449
    00450 #define GPIO1PIN_P14_INITOUT(v)      do{ bFM0P_GPIO_PDOR1_P14=(v).bInitVal; \
    00451                                          bFM0P_GPIO_DDR1_P14=1u; \
    00452                                          bFM0P_GPIO_PFR1_P14=0u; \
    00453                                          bFM0P_GPIO_ADE_AN04=0u; }while(0)
    00454
    00455
    00456 /*---- GPIO bit NP14 ----*/
    00457 #define GPIO1PIN_NP14_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR1_P14)) )
    00458
    00459 #define GPIO1PIN_NP14_PUT(v)         ( bFM0P_GPIO_PDOR1_P14=(uint32_t)(!(v)) )
    00460
    00461 #define GPIO1PIN_NP14_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP14_INITIN(v) \
    00462                                                         : GPIO1PIN_NP14_INITOUT(v) )
    00463
    00464 #define GPIO1PIN_NP14_INITIN(v)      do{ bFM0P_GPIO_PCR1_P14=(v).bPullup; \
    00465                                          bFM0P_GPIO_DDR1_P14=0u; \
    00466                                          bFM0P_GPIO_PFR1_P14=0u; \
    00467                                          bFM0P_GPIO_ADE_AN04=0u; }while(0)
    00468
    00469
    00470 #define GPIO1PIN_NP14_INITOUT(v)     do{ bFM0P_GPIO_PDOR1_P14=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00471                                          bFM0P_GPIO_DDR1_P14=1u; \
    00472                                          bFM0P_GPIO_PFR1_P14=0u; \
    00473                                          bFM0P_GPIO_ADE_AN04=0u; }while(0)
    00474
    00475
    00476 /*---- GPIO bit P15 ----*/
    00477
    00478 #define GPIO1PIN_P15_GET             ( bFM0P_GPIO_PDIR1_P15 )
    00479
    00480 #define GPIO1PIN_P15_PUT(v)          ( bFM0P_GPIO_PDOR1_P15=(v) )
    00481
    00482 #define GPIO1PIN_P15_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P15_INITIN(v) \
    00483                                                         : GPIO1PIN_P15_INITOUT(v) )
    00484
    00485 #define GPIO1PIN_P15_INITIN(v)       do{ bFM0P_GPIO_PCR1_P15=(v).bPullup; \
    00486                                          bFM0P_GPIO_DDR1_P15=0u; \
    00487                                          bFM0P_GPIO_PFR1_P15=0u; \
    00488                                          bFM0P_GPIO_ADE_AN05=0u; }while(0)
    00489
    00490
    00491 #define GPIO1PIN_P15_INITOUT(v)      do{ bFM0P_GPIO_PDOR1_P15=(v).bInitVal; \
    00492                                          bFM0P_GPIO_DDR1_P15=1u; \
    00493                                          bFM0P_GPIO_PFR1_P15=0u; \
    00494                                          bFM0P_GPIO_ADE_AN05=0u; }while(0)
    00495
    00496
    00497 /*---- GPIO bit NP15 ----*/
    00498 #define GPIO1PIN_NP15_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR1_P15)) )
    00499
    00500 #define GPIO1PIN_NP15_PUT(v)         ( bFM0P_GPIO_PDOR1_P15=(uint32_t)(!(v)) )
    00501
    00502 #define GPIO1PIN_NP15_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP15_INITIN(v) \
    00503                                                         : GPIO1PIN_NP15_INITOUT(v) )
    00504
    00505 #define GPIO1PIN_NP15_INITIN(v)      do{ bFM0P_GPIO_PCR1_P15=(v).bPullup; \
    00506                                          bFM0P_GPIO_DDR1_P15=0u; \
    00507                                          bFM0P_GPIO_PFR1_P15=0u; \
    00508                                          bFM0P_GPIO_ADE_AN05=0u; }while(0)
    00509
    00510
    00511 #define GPIO1PIN_NP15_INITOUT(v)     do{ bFM0P_GPIO_PDOR1_P15=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00512                                          bFM0P_GPIO_DDR1_P15=1u; \
    00513                                          bFM0P_GPIO_PFR1_P15=0u; \
    00514                                          bFM0P_GPIO_ADE_AN05=0u; }while(0)
    00515
    00516
    00517 /*---- GPIO bit P21 ----*/
    00518
    00519 #define GPIO1PIN_P21_GET             ( bFM0P_GPIO_PDIR2_P21 )
    00520
    00521 #define GPIO1PIN_P21_PUT(v)          ( bFM0P_GPIO_PDOR2_P21=(v) )
    00522
    00523 #define GPIO1PIN_P21_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P21_INITIN(v) \
    00524                                                         : GPIO1PIN_P21_INITOUT(v) )
    00525
    00526 #define GPIO1PIN_P21_INITIN(v)       do{ bFM0P_GPIO_PCR2_P21=(v).bPullup; \
    00527                                          bFM0P_GPIO_DDR2_P21=0u; \
    00528                                          bFM0P_GPIO_PFR2_P21=0u; }while(0)
    00529
    00530 #define GPIO1PIN_P21_INITOUT(v)      do{ bFM0P_GPIO_PDOR2_P21=(v).bInitVal; \
    00531                                          bFM0P_GPIO_DDR2_P21=1u; \
    00532                                          bFM0P_GPIO_PFR2_P21=0u; }while(0)
    00533
    00534
    00535 /*---- GPIO bit NP21 ----*/
    00536 #define GPIO1PIN_NP21_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR2_P21)) )
    00537
    00538 #define GPIO1PIN_NP21_PUT(v)         ( bFM0P_GPIO_PDOR2_P21=(uint32_t)(!(v)) )
    00539
    00540 #define GPIO1PIN_NP21_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP21_INITIN(v) \
    00541                                                         : GPIO1PIN_NP21_INITOUT(v) )
    00542
    00543 #define GPIO1PIN_NP21_INITIN(v)      do{ bFM0P_GPIO_PCR2_P21=(v).bPullup; \
    00544                                          bFM0P_GPIO_DDR2_P21=0u; \
    00545                                          bFM0P_GPIO_PFR2_P21=0u; }while(0)
    00546
    00547 #define GPIO1PIN_NP21_INITOUT(v)     do{ bFM0P_GPIO_PDOR2_P21=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00548                                          bFM0P_GPIO_DDR2_P21=1u; \
    00549                                          bFM0P_GPIO_PFR2_P21=0u; }while(0)
    00550
    00551
    00552 /*---- GPIO bit P22 ----*/
    00553
    00554 #define GPIO1PIN_P22_GET             ( bFM0P_GPIO_PDIR2_P22 )
    00555
    00556 #define GPIO1PIN_P22_PUT(v)          ( bFM0P_GPIO_PDOR2_P22=(v) )
    00557
    00558 #define GPIO1PIN_P22_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P22_INITIN(v) \
    00559                                                         : GPIO1PIN_P22_INITOUT(v) )
    00560
    00561 #define GPIO1PIN_P22_INITIN(v)       do{ bFM0P_GPIO_PCR2_P22=(v).bPullup; \
    00562                                          bFM0P_GPIO_DDR2_P22=0u; \
    00563                                          bFM0P_GPIO_PFR2_P22=0u; \
    00564                                          bFM0P_GPIO_ADE_AN07=0u; }while(0)
    00565
    00566
    00567 #define GPIO1PIN_P22_INITOUT(v)      do{ bFM0P_GPIO_PDOR2_P22=(v).bInitVal; \
    00568                                          bFM0P_GPIO_DDR2_P22=1u; \
    00569                                          bFM0P_GPIO_PFR2_P22=0u; \
    00570                                          bFM0P_GPIO_ADE_AN07=0u; }while(0)
    00571
    00572
    00573 /*---- GPIO bit NP22 ----*/
    00574 #define GPIO1PIN_NP22_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR2_P22)) )
    00575
    00576 #define GPIO1PIN_NP22_PUT(v)         ( bFM0P_GPIO_PDOR2_P22=(uint32_t)(!(v)) )
    00577
    00578 #define GPIO1PIN_NP22_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP22_INITIN(v) \
    00579                                                         : GPIO1PIN_NP22_INITOUT(v) )
    00580
    00581 #define GPIO1PIN_NP22_INITIN(v)      do{ bFM0P_GPIO_PCR2_P22=(v).bPullup; \
    00582                                          bFM0P_GPIO_DDR2_P22=0u; \
    00583                                          bFM0P_GPIO_PFR2_P22=0u; \
    00584                                          bFM0P_GPIO_ADE_AN07=0u; }while(0)
    00585
    00586
    00587 #define GPIO1PIN_NP22_INITOUT(v)     do{ bFM0P_GPIO_PDOR2_P22=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00588                                          bFM0P_GPIO_DDR2_P22=1u; \
    00589                                          bFM0P_GPIO_PFR2_P22=0u; \
    00590                                          bFM0P_GPIO_ADE_AN07=0u; }while(0)
    00591
    00592
    00593 /*---- GPIO bit P23 ----*/
    00594
    00595 #define GPIO1PIN_P23_GET             ( bFM0P_GPIO_PDIR2_P23 )
    00596
    00597 #define GPIO1PIN_P23_PUT(v)          ( bFM0P_GPIO_PDOR2_P23=(v) )
    00598
    00599 #define GPIO1PIN_P23_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P23_INITIN(v) \
    00600                                                         : GPIO1PIN_P23_INITOUT(v) )
    00601
    00602 #define GPIO1PIN_P23_INITIN(v)       do{ bFM0P_GPIO_PCR2_P23=(v).bPullup; \
    00603                                          bFM0P_GPIO_DDR2_P23=0u; \
    00604                                          bFM0P_GPIO_PFR2_P23=0u; \
    00605                                          bFM0P_GPIO_ADE_AN06=0u; }while(0)
    00606
    00607
    00608 #define GPIO1PIN_P23_INITOUT(v)      do{ bFM0P_GPIO_PDOR2_P23=(v).bInitVal; \
    00609                                          bFM0P_GPIO_DDR2_P23=1u; \
    00610                                          bFM0P_GPIO_PFR2_P23=0u; \
    00611                                          bFM0P_GPIO_ADE_AN06=0u; }while(0)
    00612
    00613
    00614 /*---- GPIO bit NP23 ----*/
    00615 #define GPIO1PIN_NP23_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR2_P23)) )
    00616
    00617 #define GPIO1PIN_NP23_PUT(v)         ( bFM0P_GPIO_PDOR2_P23=(uint32_t)(!(v)) )
    00618
    00619 #define GPIO1PIN_NP23_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP23_INITIN(v) \
    00620                                                         : GPIO1PIN_NP23_INITOUT(v) )
    00621
    00622 #define GPIO1PIN_NP23_INITIN(v)      do{ bFM0P_GPIO_PCR2_P23=(v).bPullup; \
    00623                                          bFM0P_GPIO_DDR2_P23=0u; \
    00624                                          bFM0P_GPIO_PFR2_P23=0u; \
    00625                                          bFM0P_GPIO_ADE_AN06=0u; }while(0)
    00626
    00627
    00628 #define GPIO1PIN_NP23_INITOUT(v)     do{ bFM0P_GPIO_PDOR2_P23=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00629                                          bFM0P_GPIO_DDR2_P23=1u; \
    00630                                          bFM0P_GPIO_PFR2_P23=0u; \
    00631                                          bFM0P_GPIO_ADE_AN06=0u; }while(0)
    00632
    00633
    00634 /*---- GPIO bit P39 ----*/
    00635
    00636 #define GPIO1PIN_P39_GET             ( bFM0P_GPIO_PDIR3_P39 )
    00637
    00638 #define GPIO1PIN_P39_PUT(v)          ( bFM0P_GPIO_PDOR3_P39=(v) )
    00639
    00640 #define GPIO1PIN_P39_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P39_INITIN(v) \
    00641                                                         : GPIO1PIN_P39_INITOUT(v) )
    00642
    00643 #define GPIO1PIN_P39_INITIN(v)       do{ bFM0P_GPIO_PCR3_P39=(v).bPullup; \
    00644                                          bFM0P_GPIO_DDR3_P39=0u; \
    00645                                          bFM0P_GPIO_PFR3_P39=0u; }while(0)
    00646
    00647 #define GPIO1PIN_P39_INITOUT(v)      do{ bFM0P_GPIO_PDOR3_P39=(v).bInitVal; \
    00648                                          bFM0P_GPIO_DDR3_P39=1u; \
    00649                                          bFM0P_GPIO_PFR3_P39=0u; }while(0)
    00650
    00651
    00652 /*---- GPIO bit NP39 ----*/
    00653 #define GPIO1PIN_NP39_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR3_P39)) )
    00654
    00655 #define GPIO1PIN_NP39_PUT(v)         ( bFM0P_GPIO_PDOR3_P39=(uint32_t)(!(v)) )
    00656
    00657 #define GPIO1PIN_NP39_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP39_INITIN(v) \
    00658                                                         : GPIO1PIN_NP39_INITOUT(v) )
    00659
    00660 #define GPIO1PIN_NP39_INITIN(v)      do{ bFM0P_GPIO_PCR3_P39=(v).bPullup; \
    00661                                          bFM0P_GPIO_DDR3_P39=0u; \
    00662                                          bFM0P_GPIO_PFR3_P39=0u; }while(0)
    00663
    00664 #define GPIO1PIN_NP39_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P39=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00665                                          bFM0P_GPIO_DDR3_P39=1u; \
    00666                                          bFM0P_GPIO_PFR3_P39=0u; }while(0)
    00667
    00668
    00669 /*---- GPIO bit P3A ----*/
    00670
    00671 #define GPIO1PIN_P3A_GET             ( bFM0P_GPIO_PDIR3_P3A )
    00672
    00673 #define GPIO1PIN_P3A_PUT(v)          ( bFM0P_GPIO_PDOR3_P3A=(v) )
    00674
    00675 #define GPIO1PIN_P3A_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P3A_INITIN(v) \
    00676                                                         : GPIO1PIN_P3A_INITOUT(v) )
    00677
    00678 #define GPIO1PIN_P3A_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3A=(v).bPullup; \
    00679                                          bFM0P_GPIO_DDR3_P3A=0u; \
    00680                                          bFM0P_GPIO_PFR3_P3A=0u; }while(0)
    00681
    00682 #define GPIO1PIN_P3A_INITOUT(v)      do{ bFM0P_GPIO_PDOR3_P3A=(v).bInitVal; \
    00683                                          bFM0P_GPIO_DDR3_P3A=1u; \
    00684                                          bFM0P_GPIO_PFR3_P3A=0u; }while(0)
    00685
    00686
    00687 /*---- GPIO bit NP3A ----*/
    00688 #define GPIO1PIN_NP3A_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR3_P3A)) )
    00689
    00690 #define GPIO1PIN_NP3A_PUT(v)         ( bFM0P_GPIO_PDOR3_P3A=(uint32_t)(!(v)) )
    00691
    00692 #define GPIO1PIN_NP3A_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP3A_INITIN(v) \
    00693                                                         : GPIO1PIN_NP3A_INITOUT(v) )
    00694
    00695 #define GPIO1PIN_NP3A_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3A=(v).bPullup; \
    00696                                          bFM0P_GPIO_DDR3_P3A=0u; \
    00697                                          bFM0P_GPIO_PFR3_P3A=0u; }while(0)
    00698
    00699 #define GPIO1PIN_NP3A_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3A=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00700                                          bFM0P_GPIO_DDR3_P3A=1u; \
    00701                                          bFM0P_GPIO_PFR3_P3A=0u; }while(0)
    00702
    00703
    00704 /*---- GPIO bit P3B ----*/
    00705
    00706 #define GPIO1PIN_P3B_GET             ( bFM0P_GPIO_PDIR3_P3B )
    00707
    00708 #define GPIO1PIN_P3B_PUT(v)          ( bFM0P_GPIO_PDOR3_P3B=(v) )
    00709
    00710 #define GPIO1PIN_P3B_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P3B_INITIN(v) \
    00711                                                         : GPIO1PIN_P3B_INITOUT(v) )
    00712
    00713 #define GPIO1PIN_P3B_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3B=(v).bPullup; \
    00714                                          bFM0P_GPIO_DDR3_P3B=0u; \
    00715                                          bFM0P_GPIO_PFR3_P3B=0u; }while(0)
    00716
    00717 #define GPIO1PIN_P3B_INITOUT(v)      do{ bFM0P_GPIO_PDOR3_P3B=(v).bInitVal; \
    00718                                          bFM0P_GPIO_DDR3_P3B=1u; \
    00719                                          bFM0P_GPIO_PFR3_P3B=0u; }while(0)
    00720
    00721
    00722 /*---- GPIO bit NP3B ----*/
    00723 #define GPIO1PIN_NP3B_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR3_P3B)) )
    00724
    00725 #define GPIO1PIN_NP3B_PUT(v)         ( bFM0P_GPIO_PDOR3_P3B=(uint32_t)(!(v)) )
    00726
    00727 #define GPIO1PIN_NP3B_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP3B_INITIN(v) \
    00728                                                         : GPIO1PIN_NP3B_INITOUT(v) )
    00729
    00730 #define GPIO1PIN_NP3B_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3B=(v).bPullup; \
    00731                                          bFM0P_GPIO_DDR3_P3B=0u; \
    00732                                          bFM0P_GPIO_PFR3_P3B=0u; }while(0)
    00733
    00734 #define GPIO1PIN_NP3B_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3B=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00735                                          bFM0P_GPIO_DDR3_P3B=1u; \
    00736                                          bFM0P_GPIO_PFR3_P3B=0u; }while(0)
    00737
    00738
    00739 /*---- GPIO bit P3C ----*/
    00740
    00741 #define GPIO1PIN_P3C_GET             ( bFM0P_GPIO_PDIR3_P3C )
    00742
    00743 #define GPIO1PIN_P3C_PUT(v)          ( bFM0P_GPIO_PDOR3_P3C=(v) )
    00744
    00745 #define GPIO1PIN_P3C_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P3C_INITIN(v) \
    00746                                                         : GPIO1PIN_P3C_INITOUT(v) )
    00747
    00748 #define GPIO1PIN_P3C_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3C=(v).bPullup; \
    00749                                          bFM0P_GPIO_DDR3_P3C=0u; \
    00750                                          bFM0P_GPIO_PFR3_P3C=0u; }while(0)
    00751
    00752 #define GPIO1PIN_P3C_INITOUT(v)      do{ bFM0P_GPIO_PDOR3_P3C=(v).bInitVal; \
    00753                                          bFM0P_GPIO_DDR3_P3C=1u; \
    00754                                          bFM0P_GPIO_PFR3_P3C=0u; }while(0)
    00755
    00756
    00757 /*---- GPIO bit NP3C ----*/
    00758 #define GPIO1PIN_NP3C_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR3_P3C)) )
    00759
    00760 #define GPIO1PIN_NP3C_PUT(v)         ( bFM0P_GPIO_PDOR3_P3C=(uint32_t)(!(v)) )
    00761
    00762 #define GPIO1PIN_NP3C_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP3C_INITIN(v) \
    00763                                                         : GPIO1PIN_NP3C_INITOUT(v) )
    00764
    00765 #define GPIO1PIN_NP3C_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3C=(v).bPullup; \
    00766                                          bFM0P_GPIO_DDR3_P3C=0u; \
    00767                                          bFM0P_GPIO_PFR3_P3C=0u; }while(0)
    00768
    00769 #define GPIO1PIN_NP3C_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3C=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00770                                          bFM0P_GPIO_DDR3_P3C=1u; \
    00771                                          bFM0P_GPIO_PFR3_P3C=0u; }while(0)
    00772
    00773
    00774 /*---- GPIO bit P3D ----*/
    00775
    00776 #define GPIO1PIN_P3D_GET             ( bFM0P_GPIO_PDIR3_P3D )
    00777
    00778 #define GPIO1PIN_P3D_PUT(v)          ( bFM0P_GPIO_PDOR3_P3D=(v) )
    00779
    00780 #define GPIO1PIN_P3D_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P3D_INITIN(v) \
    00781                                                         : GPIO1PIN_P3D_INITOUT(v) )
    00782
    00783 #define GPIO1PIN_P3D_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3D=(v).bPullup; \
    00784                                          bFM0P_GPIO_DDR3_P3D=0u; \
    00785                                          bFM0P_GPIO_PFR3_P3D=0u; }while(0)
    00786
    00787 #define GPIO1PIN_P3D_INITOUT(v)      do{ bFM0P_GPIO_PDOR3_P3D=(v).bInitVal; \
    00788                                          bFM0P_GPIO_DDR3_P3D=1u; \
    00789                                          bFM0P_GPIO_PFR3_P3D=0u; }while(0)
    00790
    00791
    00792 /*---- GPIO bit NP3D ----*/
    00793 #define GPIO1PIN_NP3D_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR3_P3D)) )
    00794
    00795 #define GPIO1PIN_NP3D_PUT(v)         ( bFM0P_GPIO_PDOR3_P3D=(uint32_t)(!(v)) )
    00796
    00797 #define GPIO1PIN_NP3D_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP3D_INITIN(v) \
    00798                                                         : GPIO1PIN_NP3D_INITOUT(v) )
    00799
    00800 #define GPIO1PIN_NP3D_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3D=(v).bPullup; \
    00801                                          bFM0P_GPIO_DDR3_P3D=0u; \
    00802                                          bFM0P_GPIO_PFR3_P3D=0u; }while(0)
    00803
    00804 #define GPIO1PIN_NP3D_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3D=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00805                                          bFM0P_GPIO_DDR3_P3D=1u; \
    00806                                          bFM0P_GPIO_PFR3_P3D=0u; }while(0)
    00807
    00808
    00809 /*---- GPIO bit P3E ----*/
    00810
    00811 #define GPIO1PIN_P3E_GET             ( bFM0P_GPIO_PDIR3_P3E )
    00812
    00813 #define GPIO1PIN_P3E_PUT(v)          ( bFM0P_GPIO_PDOR3_P3E=(v) )
    00814
    00815 #define GPIO1PIN_P3E_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P3E_INITIN(v) \
    00816                                                         : GPIO1PIN_P3E_INITOUT(v) )
    00817
    00818 #define GPIO1PIN_P3E_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3E=(v).bPullup; \
    00819                                          bFM0P_GPIO_DDR3_P3E=0u; \
    00820                                          bFM0P_GPIO_PFR3_P3E=0u; }while(0)
    00821
    00822 #define GPIO1PIN_P3E_INITOUT(v)      do{ bFM0P_GPIO_PDOR3_P3E=(v).bInitVal; \
    00823                                          bFM0P_GPIO_DDR3_P3E=1u; \
    00824                                          bFM0P_GPIO_PFR3_P3E=0u; }while(0)
    00825
    00826
    00827 /*---- GPIO bit NP3E ----*/
    00828 #define GPIO1PIN_NP3E_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR3_P3E)) )
    00829
    00830 #define GPIO1PIN_NP3E_PUT(v)         ( bFM0P_GPIO_PDOR3_P3E=(uint32_t)(!(v)) )
    00831
    00832 #define GPIO1PIN_NP3E_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP3E_INITIN(v) \
    00833                                                         : GPIO1PIN_NP3E_INITOUT(v) )
    00834
    00835 #define GPIO1PIN_NP3E_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3E=(v).bPullup; \
    00836                                          bFM0P_GPIO_DDR3_P3E=0u; \
    00837                                          bFM0P_GPIO_PFR3_P3E=0u; }while(0)
    00838
    00839 #define GPIO1PIN_NP3E_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3E=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00840                                          bFM0P_GPIO_DDR3_P3E=1u; \
    00841                                          bFM0P_GPIO_PFR3_P3E=0u; }while(0)
    00842
    00843
    00844 /*---- GPIO bit P3F ----*/
    00845
    00846 #define GPIO1PIN_P3F_GET             ( bFM0P_GPIO_PDIR3_P3F )
    00847
    00848 #define GPIO1PIN_P3F_PUT(v)          ( bFM0P_GPIO_PDOR3_P3F=(v) )
    00849
    00850 #define GPIO1PIN_P3F_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P3F_INITIN(v) \
    00851                                                         : GPIO1PIN_P3F_INITOUT(v) )
    00852
    00853 #define GPIO1PIN_P3F_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3F=(v).bPullup; \
    00854                                          bFM0P_GPIO_DDR3_P3F=0u; \
    00855                                          bFM0P_GPIO_PFR3_P3F=0u; }while(0)
    00856
    00857 #define GPIO1PIN_P3F_INITOUT(v)      do{ bFM0P_GPIO_PDOR3_P3F=(v).bInitVal; \
    00858                                          bFM0P_GPIO_DDR3_P3F=1u; \
    00859                                          bFM0P_GPIO_PFR3_P3F=0u; }while(0)
    00860
    00861
    00862 /*---- GPIO bit NP3F ----*/
    00863 #define GPIO1PIN_NP3F_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR3_P3F)) )
    00864
    00865 #define GPIO1PIN_NP3F_PUT(v)         ( bFM0P_GPIO_PDOR3_P3F=(uint32_t)(!(v)) )
    00866
    00867 #define GPIO1PIN_NP3F_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP3F_INITIN(v) \
    00868                                                         : GPIO1PIN_NP3F_INITOUT(v) )
    00869
    00870 #define GPIO1PIN_NP3F_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3F=(v).bPullup; \
    00871                                          bFM0P_GPIO_DDR3_P3F=0u; \
    00872                                          bFM0P_GPIO_PFR3_P3F=0u; }while(0)
    00873
    00874 #define GPIO1PIN_NP3F_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3F=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00875                                          bFM0P_GPIO_DDR3_P3F=1u; \
    00876                                          bFM0P_GPIO_PFR3_P3F=0u; }while(0)
    00877
    00878
    00879 /*---- GPIO bit P46 ----*/
    00880
    00881 #define GPIO1PIN_P46_GET             ( bFM0P_GPIO_PDIR4_P46 )
    00882
    00883 #define GPIO1PIN_P46_PUT(v)          ( bFM0P_GPIO_PDOR4_P46=(v) )
    00884
    00885 #define GPIO1PIN_P46_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P46_INITIN(v) \
    00886                                                         : GPIO1PIN_P46_INITOUT(v) )
    00887
    00888 #define GPIO1PIN_P46_INITIN(v)       do{ bFM0P_GPIO_PCR4_P46=(v).bPullup; \
    00889                                          bFM0P_GPIO_DDR4_P46=0u; \
    00890                                          bFM0P_GPIO_SPSR_SUBXC0=0u; \
    00891                                          bFM0P_GPIO_SPSR_SUBXC1=0u; \
    00892                                          bFM0P_GPIO_PFR4_P46=0u; }while(0)
    00893
    00894 #define GPIO1PIN_P46_INITOUT(v)      do{ bFM0P_GPIO_PDOR4_P46=(v).bInitVal; \
    00895                                          bFM0P_GPIO_DDR4_P46=1u; \
    00896                                          bFM0P_GPIO_SPSR_SUBXC0=0u; \
    00897                                          bFM0P_GPIO_SPSR_SUBXC1=0u; \
    00898                                          bFM0P_GPIO_PFR4_P46=0u; }while(0)
    00899
    00900
    00901 /*---- GPIO bit NP46 ----*/
    00902 #define GPIO1PIN_NP46_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR4_P46)) )
    00903
    00904 #define GPIO1PIN_NP46_PUT(v)         ( bFM0P_GPIO_PDOR4_P46=(uint32_t)(!(v)) )
    00905
    00906 #define GPIO1PIN_NP46_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP46_INITIN(v) \
    00907                                                         : GPIO1PIN_NP46_INITOUT(v) )
    00908
    00909 #define GPIO1PIN_NP46_INITIN(v)      do{ bFM0P_GPIO_PCR4_P46=(v).bPullup; \
    00910                                          bFM0P_GPIO_DDR4_P46=0u; \
    00911                                          bFM0P_GPIO_SPSR_SUBXC0=0u; \
    00912                                          bFM0P_GPIO_SPSR_SUBXC1=0u; \
    00913                                          bFM0P_GPIO_PFR4_P46=0u; }while(0)
    00914
    00915 #define GPIO1PIN_NP46_INITOUT(v)     do{ bFM0P_GPIO_PDOR4_P46=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00916                                          bFM0P_GPIO_DDR4_P46=1u; \
    00917                                          bFM0P_GPIO_SPSR_SUBXC0=0u; \
    00918                                          bFM0P_GPIO_SPSR_SUBXC1=0u; \
    00919                                          bFM0P_GPIO_PFR4_P46=0u; }while(0)
    00920
    00921
    00922 /*---- GPIO bit P47 ----*/
    00923
    00924 #define GPIO1PIN_P47_GET             ( bFM0P_GPIO_PDIR4_P47 )
    00925
    00926 #define GPIO1PIN_P47_PUT(v)          ( bFM0P_GPIO_PDOR4_P47=(v) )
    00927
    00928 #define GPIO1PIN_P47_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P47_INITIN(v) \
    00929                                                         : GPIO1PIN_P47_INITOUT(v) )
    00930
    00931 #define GPIO1PIN_P47_INITIN(v)       do{ bFM0P_GPIO_PCR4_P47=(v).bPullup; \
    00932                                          bFM0P_GPIO_DDR4_P47=0u; \
    00933                                          bFM0P_GPIO_SPSR_SUBXC0=0u; \
    00934                                          bFM0P_GPIO_SPSR_SUBXC1=0u; \
    00935                                          bFM0P_GPIO_PFR4_P47=0u; }while(0)
    00936
    00937 #define GPIO1PIN_P47_INITOUT(v)      do{ bFM0P_GPIO_PDOR4_P47=(v).bInitVal; \
    00938                                          bFM0P_GPIO_DDR4_P47=1u; \
    00939                                          bFM0P_GPIO_SPSR_SUBXC0=0u; \
    00940                                          bFM0P_GPIO_SPSR_SUBXC1=0u; \
    00941                                          bFM0P_GPIO_PFR4_P47=0u; }while(0)
    00942
    00943
    00944 /*---- GPIO bit NP47 ----*/
    00945 #define GPIO1PIN_NP47_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR4_P47)) )
    00946
    00947 #define GPIO1PIN_NP47_PUT(v)         ( bFM0P_GPIO_PDOR4_P47=(uint32_t)(!(v)) )
    00948
    00949 #define GPIO1PIN_NP47_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP47_INITIN(v) \
    00950                                                         : GPIO1PIN_NP47_INITOUT(v) )
    00951
    00952 #define GPIO1PIN_NP47_INITIN(v)      do{ bFM0P_GPIO_PCR4_P47=(v).bPullup; \
    00953                                          bFM0P_GPIO_DDR4_P47=0u; \
    00954                                          bFM0P_GPIO_SPSR_SUBXC0=0u; \
    00955                                          bFM0P_GPIO_SPSR_SUBXC1=0u; \
    00956                                          bFM0P_GPIO_PFR4_P47=0u; }while(0)
    00957
    00958 #define GPIO1PIN_NP47_INITOUT(v)     do{ bFM0P_GPIO_PDOR4_P47=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00959                                          bFM0P_GPIO_DDR4_P47=1u; \
    00960                                          bFM0P_GPIO_SPSR_SUBXC0=0u; \
    00961                                          bFM0P_GPIO_SPSR_SUBXC1=0u; \
    00962                                          bFM0P_GPIO_PFR4_P47=0u; }while(0)
    00963
    00964
    00965 /*---- GPIO bit P49 ----*/
    00966
    00967 #define GPIO1PIN_P49_GET             ( bFM0P_GPIO_PDIR4_P49 )
    00968
    00969 #define GPIO1PIN_P49_PUT(v)          ( bFM0P_GPIO_PDOR4_P49=(v) )
    00970
    00971 #define GPIO1PIN_P49_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P49_INITIN(v) \
    00972                                                         : GPIO1PIN_P49_INITOUT(v) )
    00973
    00974 #define GPIO1PIN_P49_INITIN(v)       do{ bFM0P_GPIO_PCR4_P49=(v).bPullup; \
    00975                                          bFM0P_GPIO_DDR4_P49=0u; \
    00976                                          bFM0P_GPIO_PFR4_P49=0u; }while(0)
    00977
    00978 #define GPIO1PIN_P49_INITOUT(v)      do{ bFM0P_GPIO_PDOR4_P49=(v).bInitVal; \
    00979                                          bFM0P_GPIO_DDR4_P49=1u; \
    00980                                          bFM0P_GPIO_PFR4_P49=0u; }while(0)
    00981
    00982
    00983 /*---- GPIO bit NP49 ----*/
    00984 #define GPIO1PIN_NP49_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR4_P49)) )
    00985
    00986 #define GPIO1PIN_NP49_PUT(v)         ( bFM0P_GPIO_PDOR4_P49=(uint32_t)(!(v)) )
    00987
    00988 #define GPIO1PIN_NP49_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP49_INITIN(v) \
    00989                                                         : GPIO1PIN_NP49_INITOUT(v) )
    00990
    00991 #define GPIO1PIN_NP49_INITIN(v)      do{ bFM0P_GPIO_PCR4_P49=(v).bPullup; \
    00992                                          bFM0P_GPIO_DDR4_P49=0u; \
    00993                                          bFM0P_GPIO_PFR4_P49=0u; }while(0)
    00994
    00995 #define GPIO1PIN_NP49_INITOUT(v)     do{ bFM0P_GPIO_PDOR4_P49=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    00996                                          bFM0P_GPIO_DDR4_P49=1u; \
    00997                                          bFM0P_GPIO_PFR4_P49=0u; }while(0)
    00998
    00999
    01000 /*---- GPIO bit P4A ----*/
    01001
    01002 #define GPIO1PIN_P4A_GET             ( bFM0P_GPIO_PDIR4_P4A )
    01003
    01004 #define GPIO1PIN_P4A_PUT(v)          ( bFM0P_GPIO_PDOR4_P4A=(v) )
    01005
    01006 #define GPIO1PIN_P4A_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P4A_INITIN(v) \
    01007                                                         : GPIO1PIN_P4A_INITOUT(v) )
    01008
    01009 #define GPIO1PIN_P4A_INITIN(v)       do{ bFM0P_GPIO_PCR4_P4A=(v).bPullup; \
    01010                                          bFM0P_GPIO_DDR4_P4A=0u; \
    01011                                          bFM0P_GPIO_PFR4_P4A=0u; }while(0)
    01012
    01013 #define GPIO1PIN_P4A_INITOUT(v)      do{ bFM0P_GPIO_PDOR4_P4A=(v).bInitVal; \
    01014                                          bFM0P_GPIO_DDR4_P4A=1u; \
    01015                                          bFM0P_GPIO_PFR4_P4A=0u; }while(0)
    01016
    01017
    01018 /*---- GPIO bit NP4A ----*/
    01019 #define GPIO1PIN_NP4A_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR4_P4A)) )
    01020
    01021 #define GPIO1PIN_NP4A_PUT(v)         ( bFM0P_GPIO_PDOR4_P4A=(uint32_t)(!(v)) )
    01022
    01023 #define GPIO1PIN_NP4A_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP4A_INITIN(v) \
    01024                                                         : GPIO1PIN_NP4A_INITOUT(v) )
    01025
    01026 #define GPIO1PIN_NP4A_INITIN(v)      do{ bFM0P_GPIO_PCR4_P4A=(v).bPullup; \
    01027                                          bFM0P_GPIO_DDR4_P4A=0u; \
    01028                                          bFM0P_GPIO_PFR4_P4A=0u; }while(0)
    01029
    01030 #define GPIO1PIN_NP4A_INITOUT(v)     do{ bFM0P_GPIO_PDOR4_P4A=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    01031                                          bFM0P_GPIO_DDR4_P4A=1u; \
    01032                                          bFM0P_GPIO_PFR4_P4A=0u; }while(0)
    01033
    01034
    01035 /*---- GPIO bit P50 ----*/
    01036
    01037 #define GPIO1PIN_P50_GET             ( bFM0P_GPIO_PDIR5_P50 )
    01038
    01039 #define GPIO1PIN_P50_PUT(v)          ( bFM0P_GPIO_PDOR5_P50=(v) )
    01040
    01041 #define GPIO1PIN_P50_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P50_INITIN(v) \
    01042                                                         : GPIO1PIN_P50_INITOUT(v) )
    01043
    01044 #define GPIO1PIN_P50_INITIN(v)       do{ bFM0P_GPIO_PCR5_P50=(v).bPullup; \
    01045                                          bFM0P_GPIO_DDR5_P50=0u; \
    01046                                          bFM0P_GPIO_PFR5_P50=0u; }while(0)
    01047
    01048 #define GPIO1PIN_P50_INITOUT(v)      do{ bFM0P_GPIO_PDOR5_P50=(v).bInitVal; \
    01049                                          bFM0P_GPIO_DDR5_P50=1u; \
    01050                                          bFM0P_GPIO_PFR5_P50=0u; }while(0)
    01051
    01052
    01053 /*---- GPIO bit NP50 ----*/
    01054 #define GPIO1PIN_NP50_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR5_P50)) )
    01055
    01056 #define GPIO1PIN_NP50_PUT(v)         ( bFM0P_GPIO_PDOR5_P50=(uint32_t)(!(v)) )
    01057
    01058 #define GPIO1PIN_NP50_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP50_INITIN(v) \
    01059                                                         : GPIO1PIN_NP50_INITOUT(v) )
    01060
    01061 #define GPIO1PIN_NP50_INITIN(v)      do{ bFM0P_GPIO_PCR5_P50=(v).bPullup; \
    01062                                          bFM0P_GPIO_DDR5_P50=0u; \
    01063                                          bFM0P_GPIO_PFR5_P50=0u; }while(0)
    01064
    01065 #define GPIO1PIN_NP50_INITOUT(v)     do{ bFM0P_GPIO_PDOR5_P50=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    01066                                          bFM0P_GPIO_DDR5_P50=1u; \
    01067                                          bFM0P_GPIO_PFR5_P50=0u; }while(0)
    01068
    01069
    01070 /*---- GPIO bit P51 ----*/
    01071
    01072 #define GPIO1PIN_P51_GET             ( bFM0P_GPIO_PDIR5_P51 )
    01073
    01074 #define GPIO1PIN_P51_PUT(v)          ( bFM0P_GPIO_PDOR5_P51=(v) )
    01075
    01076 #define GPIO1PIN_P51_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P51_INITIN(v) \
    01077                                                         : GPIO1PIN_P51_INITOUT(v) )
    01078
    01079 #define GPIO1PIN_P51_INITIN(v)       do{ bFM0P_GPIO_PCR5_P51=(v).bPullup; \
    01080                                          bFM0P_GPIO_DDR5_P51=0u; \
    01081                                          bFM0P_GPIO_PFR5_P51=0u; }while(0)
    01082
    01083 #define GPIO1PIN_P51_INITOUT(v)      do{ bFM0P_GPIO_PDOR5_P51=(v).bInitVal; \
    01084                                          bFM0P_GPIO_DDR5_P51=1u; \
    01085                                          bFM0P_GPIO_PFR5_P51=0u; }while(0)
    01086
    01087
    01088 /*---- GPIO bit NP51 ----*/
    01089 #define GPIO1PIN_NP51_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR5_P51)) )
    01090
    01091 #define GPIO1PIN_NP51_PUT(v)         ( bFM0P_GPIO_PDOR5_P51=(uint32_t)(!(v)) )
    01092
    01093 #define GPIO1PIN_NP51_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP51_INITIN(v) \
    01094                                                         : GPIO1PIN_NP51_INITOUT(v) )
    01095
    01096 #define GPIO1PIN_NP51_INITIN(v)      do{ bFM0P_GPIO_PCR5_P51=(v).bPullup; \
    01097                                          bFM0P_GPIO_DDR5_P51=0u; \
    01098                                          bFM0P_GPIO_PFR5_P51=0u; }while(0)
    01099
    01100 #define GPIO1PIN_NP51_INITOUT(v)     do{ bFM0P_GPIO_PDOR5_P51=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    01101                                          bFM0P_GPIO_DDR5_P51=1u; \
    01102                                          bFM0P_GPIO_PFR5_P51=0u; }while(0)
    01103
    01104
    01105 /*---- GPIO bit P52 ----*/
    01106
    01107 #define GPIO1PIN_P52_GET             ( bFM0P_GPIO_PDIR5_P52 )
    01108
    01109 #define GPIO1PIN_P52_PUT(v)          ( bFM0P_GPIO_PDOR5_P52=(v) )
    01110
    01111 #define GPIO1PIN_P52_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P52_INITIN(v) \
    01112                                                         : GPIO1PIN_P52_INITOUT(v) )
    01113
    01114 #define GPIO1PIN_P52_INITIN(v)       do{ bFM0P_GPIO_PCR5_P52=(v).bPullup; \
    01115                                          bFM0P_GPIO_DDR5_P52=0u; \
    01116                                          bFM0P_GPIO_PFR5_P52=0u; }while(0)
    01117
    01118 #define GPIO1PIN_P52_INITOUT(v)      do{ bFM0P_GPIO_PDOR5_P52=(v).bInitVal; \
    01119                                          bFM0P_GPIO_DDR5_P52=1u; \
    01120                                          bFM0P_GPIO_PFR5_P52=0u; }while(0)
    01121
    01122
    01123 /*---- GPIO bit NP52 ----*/
    01124 #define GPIO1PIN_NP52_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR5_P52)) )
    01125
    01126 #define GPIO1PIN_NP52_PUT(v)         ( bFM0P_GPIO_PDOR5_P52=(uint32_t)(!(v)) )
    01127
    01128 #define GPIO1PIN_NP52_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP52_INITIN(v) \
    01129                                                         : GPIO1PIN_NP52_INITOUT(v) )
    01130
    01131 #define GPIO1PIN_NP52_INITIN(v)      do{ bFM0P_GPIO_PCR5_P52=(v).bPullup; \
    01132                                          bFM0P_GPIO_DDR5_P52=0u; \
    01133                                          bFM0P_GPIO_PFR5_P52=0u; }while(0)
    01134
    01135 #define GPIO1PIN_NP52_INITOUT(v)     do{ bFM0P_GPIO_PDOR5_P52=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    01136                                          bFM0P_GPIO_DDR5_P52=1u; \
    01137                                          bFM0P_GPIO_PFR5_P52=0u; }while(0)
    01138
    01139
    01140 /*---- GPIO bit P60 ----*/
    01141
    01142 #define GPIO1PIN_P60_GET             ( bFM0P_GPIO_PDIR6_P60 )
    01143
    01144 #define GPIO1PIN_P60_PUT(v)          ( bFM0P_GPIO_PDOR6_P60=(v) )
    01145
    01146 #define GPIO1PIN_P60_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P60_INITIN(v) \
    01147                                                         : GPIO1PIN_P60_INITOUT(v) )
    01148
    01149 #define GPIO1PIN_P60_INITIN(v)       do{ bFM0P_GPIO_PCR6_P60=(v).bPullup; \
    01150                                          bFM0P_GPIO_DDR6_P60=0u; \
    01151                                          bFM0P_GPIO_PFR6_P60=0u; }while(0)
    01152
    01153 #define GPIO1PIN_P60_INITOUT(v)      do{ bFM0P_GPIO_PDOR6_P60=(v).bInitVal; \
    01154                                          bFM0P_GPIO_DDR6_P60=1u; \
    01155                                          bFM0P_GPIO_PFR6_P60=0u; }while(0)
    01156
    01157
    01158 /*---- GPIO bit NP60 ----*/
    01159 #define GPIO1PIN_NP60_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR6_P60)) )
    01160
    01161 #define GPIO1PIN_NP60_PUT(v)         ( bFM0P_GPIO_PDOR6_P60=(uint32_t)(!(v)) )
    01162
    01163 #define GPIO1PIN_NP60_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP60_INITIN(v) \
    01164                                                         : GPIO1PIN_NP60_INITOUT(v) )
    01165
    01166 #define GPIO1PIN_NP60_INITIN(v)      do{ bFM0P_GPIO_PCR6_P60=(v).bPullup; \
    01167                                          bFM0P_GPIO_DDR6_P60=0u; \
    01168                                          bFM0P_GPIO_PFR6_P60=0u; }while(0)
    01169
    01170 #define GPIO1PIN_NP60_INITOUT(v)     do{ bFM0P_GPIO_PDOR6_P60=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    01171                                          bFM0P_GPIO_DDR6_P60=1u; \
    01172                                          bFM0P_GPIO_PFR6_P60=0u; }while(0)
    01173
    01174
    01175 /*---- GPIO bit P61 ----*/
    01176
    01177 #define GPIO1PIN_P61_GET             ( bFM0P_GPIO_PDIR6_P61 )
    01178
    01179 #define GPIO1PIN_P61_PUT(v)          ( bFM0P_GPIO_PDOR6_P61=(v) )
    01180
    01181 #define GPIO1PIN_P61_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P61_INITIN(v) \
    01182                                                         : GPIO1PIN_P61_INITOUT(v) )
    01183
    01184 #define GPIO1PIN_P61_INITIN(v)       do{ bFM0P_GPIO_PCR6_P61=(v).bPullup; \
    01185                                          bFM0P_GPIO_DDR6_P61=0u; \
    01186                                          bFM0P_GPIO_PFR6_P61=0u; }while(0)
    01187
    01188 #define GPIO1PIN_P61_INITOUT(v)      do{ bFM0P_GPIO_PDOR6_P61=(v).bInitVal; \
    01189                                          bFM0P_GPIO_DDR6_P61=1u; \
    01190                                          bFM0P_GPIO_PFR6_P61=0u; }while(0)
    01191
    01192
    01193 /*---- GPIO bit NP61 ----*/
    01194 #define GPIO1PIN_NP61_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR6_P61)) )
    01195
    01196 #define GPIO1PIN_NP61_PUT(v)         ( bFM0P_GPIO_PDOR6_P61=(uint32_t)(!(v)) )
    01197
    01198 #define GPIO1PIN_NP61_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP61_INITIN(v) \
    01199                                                         : GPIO1PIN_NP61_INITOUT(v) )
    01200
    01201 #define GPIO1PIN_NP61_INITIN(v)      do{ bFM0P_GPIO_PCR6_P61=(v).bPullup; \
    01202                                          bFM0P_GPIO_DDR6_P61=0u; \
    01203                                          bFM0P_GPIO_PFR6_P61=0u; }while(0)
    01204
    01205 #define GPIO1PIN_NP61_INITOUT(v)     do{ bFM0P_GPIO_PDOR6_P61=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    01206                                          bFM0P_GPIO_DDR6_P61=1u; \
    01207                                          bFM0P_GPIO_PFR6_P61=0u; }while(0)
    01208
    01209
    01210 /*---- GPIO bit P80 ----*/
    01211
    01212 #define GPIO1PIN_P80_GET             ( bFM0P_GPIO_PDIR8_P80 )
    01213
    01214 #define GPIO1PIN_P80_PUT(v)          ( bFM0P_GPIO_PDOR8_P80=(v) )
    01215
    01216 #define GPIO1PIN_P80_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P80_INITIN(v) \
    01217                                                         : GPIO1PIN_P80_INITOUT(v) )
    01218
    01219 #define GPIO1PIN_P80_INITIN(v)       do{ bFM0P_GPIO_PCR8_P80=(v).bPullup; \
    01220                                          bFM0P_GPIO_DDR8_P80=0u; \
    01221                                          bFM0P_GPIO_PFR8_P80=0u; }while(0)
    01222
    01223 #define GPIO1PIN_P80_INITOUT(v)      do{ bFM0P_GPIO_PDOR8_P80=(v).bInitVal; \
    01224                                          bFM0P_GPIO_DDR8_P80=1u; \
    01225                                          bFM0P_GPIO_PFR8_P80=0u; }while(0)
    01226
    01227
    01228 /*---- GPIO bit NP80 ----*/
    01229 #define GPIO1PIN_NP80_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR8_P80)) )
    01230
    01231 #define GPIO1PIN_NP80_PUT(v)         ( bFM0P_GPIO_PDOR8_P80=(uint32_t)(!(v)) )
    01232
    01233 #define GPIO1PIN_NP80_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP80_INITIN(v) \
    01234                                                         : GPIO1PIN_NP80_INITOUT(v) )
    01235
    01236 #define GPIO1PIN_NP80_INITIN(v)      do{ bFM0P_GPIO_PCR8_P80=(v).bPullup; \
    01237                                          bFM0P_GPIO_DDR8_P80=0u; \
    01238                                          bFM0P_GPIO_PFR8_P80=0u; }while(0)
    01239
    01240 #define GPIO1PIN_NP80_INITOUT(v)     do{ bFM0P_GPIO_PDOR8_P80=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    01241                                          bFM0P_GPIO_DDR8_P80=1u; \
    01242                                          bFM0P_GPIO_PFR8_P80=0u; }while(0)
    01243
    01244
    01245 /*---- GPIO bit P81 ----*/
    01246
    01247 #define GPIO1PIN_P81_GET             ( bFM0P_GPIO_PDIR8_P81 )
    01248
    01249 #define GPIO1PIN_P81_PUT(v)          ( bFM0P_GPIO_PDOR8_P81=(v) )
    01250
    01251 #define GPIO1PIN_P81_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P81_INITIN(v) \
    01252                                                         : GPIO1PIN_P81_INITOUT(v) )
    01253
    01254 #define GPIO1PIN_P81_INITIN(v)       do{ bFM0P_GPIO_PCR8_P81=(v).bPullup; \
    01255                                          bFM0P_GPIO_DDR8_P81=0u; \
    01256                                          bFM0P_GPIO_PFR8_P81=0u; }while(0)
    01257
    01258 #define GPIO1PIN_P81_INITOUT(v)      do{ bFM0P_GPIO_PDOR8_P81=(v).bInitVal; \
    01259                                          bFM0P_GPIO_DDR8_P81=1u; \
    01260                                          bFM0P_GPIO_PFR8_P81=0u; }while(0)
    01261
    01262
    01263 /*---- GPIO bit NP81 ----*/
    01264 #define GPIO1PIN_NP81_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR8_P81)) )
    01265
    01266 #define GPIO1PIN_NP81_PUT(v)         ( bFM0P_GPIO_PDOR8_P81=(uint32_t)(!(v)) )
    01267
    01268 #define GPIO1PIN_NP81_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP81_INITIN(v) \
    01269                                                         : GPIO1PIN_NP81_INITOUT(v) )
    01270
    01271 #define GPIO1PIN_NP81_INITIN(v)      do{ bFM0P_GPIO_PCR8_P81=(v).bPullup; \
    01272                                          bFM0P_GPIO_DDR8_P81=0u; \
    01273                                          bFM0P_GPIO_PFR8_P81=0u; }while(0)
    01274
    01275 #define GPIO1PIN_NP81_INITOUT(v)     do{ bFM0P_GPIO_PDOR8_P81=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    01276                                          bFM0P_GPIO_DDR8_P81=1u; \
    01277                                          bFM0P_GPIO_PFR8_P81=0u; }while(0)
    01278
    01279
    01280 /*---- GPIO bit P82 ----*/
    01281
    01282 #define GPIO1PIN_P82_GET             ( bFM0P_GPIO_PDIR8_P82 )
    01283
    01284 #define GPIO1PIN_P82_PUT(v)          ( bFM0P_GPIO_PDOR8_P82=(v) )
    01285
    01286 #define GPIO1PIN_P82_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_P82_INITIN(v) \
    01287                                                         : GPIO1PIN_P82_INITOUT(v) )
    01288
    01289 #define GPIO1PIN_P82_INITIN(v)       do{ bFM0P_GPIO_PCR8_P82=(v).bPullup; \
    01290                                          bFM0P_GPIO_DDR8_P82=0u; \
    01291                                          bFM0P_GPIO_PFR8_P82=0u; }while(0)
    01292
    01293 #define GPIO1PIN_P82_INITOUT(v)      do{ bFM0P_GPIO_PDOR8_P82=(v).bInitVal; \
    01294                                          bFM0P_GPIO_DDR8_P82=1u; \
    01295                                          bFM0P_GPIO_PFR8_P82=0u; }while(0)
    01296
    01297
    01298 /*---- GPIO bit NP82 ----*/
    01299 #define GPIO1PIN_NP82_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIR8_P82)) )
    01300
    01301 #define GPIO1PIN_NP82_PUT(v)         ( bFM0P_GPIO_PDOR8_P82=(uint32_t)(!(v)) )
    01302
    01303 #define GPIO1PIN_NP82_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NP82_INITIN(v) \
    01304                                                         : GPIO1PIN_NP82_INITOUT(v) )
    01305
    01306 #define GPIO1PIN_NP82_INITIN(v)      do{ bFM0P_GPIO_PCR8_P82=(v).bPullup; \
    01307                                          bFM0P_GPIO_DDR8_P82=0u; \
    01308                                          bFM0P_GPIO_PFR8_P82=0u; }while(0)
    01309
    01310 #define GPIO1PIN_NP82_INITOUT(v)     do{ bFM0P_GPIO_PDOR8_P82=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    01311                                          bFM0P_GPIO_DDR8_P82=1u; \
    01312                                          bFM0P_GPIO_PFR8_P82=0u; }while(0)
    01313
    01314
    01315 /*---- GPIO bit PE0 ----*/
    01316
    01317 #define GPIO1PIN_PE0_GET             ( bFM0P_GPIO_PDIRE_PE0 )
    01318
    01319 #define GPIO1PIN_PE0_PUT(v)          ( bFM0P_GPIO_PDORE_PE0=(v) )
    01320
    01321 #define GPIO1PIN_PE0_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_PE0_INITIN(v) \
    01322                                                         : GPIO1PIN_PE0_INITOUT(v) )
    01323
    01324 #define GPIO1PIN_PE0_INITIN(v)       do{ bFM0P_GPIO_PCRE_PE0=(v).bPullup; \
    01325                                          bFM0P_GPIO_DDRE_PE0=0u; \
    01326                                          bFM0P_GPIO_PFRE_PE0=0u; }while(0)
    01327
    01328 #define GPIO1PIN_PE0_INITOUT(v)      do{ bFM0P_GPIO_PDORE_PE0=(v).bInitVal; \
    01329                                          bFM0P_GPIO_DDRE_PE0=1u; \
    01330                                          bFM0P_GPIO_PFRE_PE0=0u; }while(0)
    01331
    01332
    01333 /*---- GPIO bit NPE0 ----*/
    01334 #define GPIO1PIN_NPE0_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIRE_PE0)) )
    01335
    01336 #define GPIO1PIN_NPE0_PUT(v)         ( bFM0P_GPIO_PDORE_PE0=(uint32_t)(!(v)) )
    01337
    01338 #define GPIO1PIN_NPE0_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NPE0_INITIN(v) \
    01339                                                         : GPIO1PIN_NPE0_INITOUT(v) )
    01340
    01341 #define GPIO1PIN_NPE0_INITIN(v)      do{ bFM0P_GPIO_PCRE_PE0=(v).bPullup; \
    01342                                          bFM0P_GPIO_DDRE_PE0=0u; \
    01343                                          bFM0P_GPIO_PFRE_PE0=0u; }while(0)
    01344
    01345 #define GPIO1PIN_NPE0_INITOUT(v)     do{ bFM0P_GPIO_PDORE_PE0=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    01346                                          bFM0P_GPIO_DDRE_PE0=1u; \
    01347                                          bFM0P_GPIO_PFRE_PE0=0u; }while(0)
    01348
    01349
    01350 /*---- GPIO bit PE2 ----*/
    01351
    01352 #define GPIO1PIN_PE2_GET             ( bFM0P_GPIO_PDIRE_PE2 )
    01353
    01354 #define GPIO1PIN_PE2_PUT(v)          ( bFM0P_GPIO_PDORE_PE2=(v) )
    01355
    01356 #define GPIO1PIN_PE2_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_PE2_INITIN(v) \
    01357                                                         : GPIO1PIN_PE2_INITOUT(v) )
    01358
    01359 #define GPIO1PIN_PE2_INITIN(v)       do{ bFM0P_GPIO_PCRE_PE2=(v).bPullup; \
    01360                                          bFM0P_GPIO_DDRE_PE2=0u; \
    01361                                          bFM0P_GPIO_SPSR_MAINXC0=0u; \
    01362                                          bFM0P_GPIO_SPSR_MAINXC1=0u; \
    01363                                          bFM0P_GPIO_PFRE_PE2=0u; }while(0)
    01364
    01365 #define GPIO1PIN_PE2_INITOUT(v)      do{ bFM0P_GPIO_PDORE_PE2=(v).bInitVal; \
    01366                                          bFM0P_GPIO_DDRE_PE2=1u; \
    01367                                          bFM0P_GPIO_SPSR_MAINXC0=0u; \
    01368                                          bFM0P_GPIO_SPSR_MAINXC1=0u; \
    01369                                          bFM0P_GPIO_PFRE_PE2=0u; }while(0)
    01370
    01371
    01372 /*---- GPIO bit NPE2 ----*/
    01373 #define GPIO1PIN_NPE2_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIRE_PE2)) )
    01374
    01375 #define GPIO1PIN_NPE2_PUT(v)         ( bFM0P_GPIO_PDORE_PE2=(uint32_t)(!(v)) )
    01376
    01377 #define GPIO1PIN_NPE2_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NPE2_INITIN(v) \
    01378                                                         : GPIO1PIN_NPE2_INITOUT(v) )
    01379
    01380 #define GPIO1PIN_NPE2_INITIN(v)      do{ bFM0P_GPIO_PCRE_PE2=(v).bPullup; \
    01381                                          bFM0P_GPIO_DDRE_PE2=0u; \
    01382                                          bFM0P_GPIO_SPSR_MAINXC0=0u; \
    01383                                          bFM0P_GPIO_SPSR_MAINXC1=0u; \
    01384                                          bFM0P_GPIO_PFRE_PE2=0u; }while(0)
    01385
    01386 #define GPIO1PIN_NPE2_INITOUT(v)     do{ bFM0P_GPIO_PDORE_PE2=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    01387                                          bFM0P_GPIO_DDRE_PE2=1u; \
    01388                                          bFM0P_GPIO_SPSR_MAINXC0=0u; \
    01389                                          bFM0P_GPIO_SPSR_MAINXC1=0u; \
    01390                                          bFM0P_GPIO_PFRE_PE2=0u; }while(0)
    01391
    01392
    01393 /*---- GPIO bit PE3 ----*/
    01394
    01395 #define GPIO1PIN_PE3_GET             ( bFM0P_GPIO_PDIRE_PE3 )
    01396
    01397 #define GPIO1PIN_PE3_PUT(v)          ( bFM0P_GPIO_PDORE_PE3=(v) )
    01398
    01399 #define GPIO1PIN_PE3_INIT(v)         ( (0==(v).bOutput) ? GPIO1PIN_PE3_INITIN(v) \
    01400                                                         : GPIO1PIN_PE3_INITOUT(v) )
    01401
    01402 #define GPIO1PIN_PE3_INITIN(v)       do{ bFM0P_GPIO_PCRE_PE3=(v).bPullup; \
    01403                                          bFM0P_GPIO_DDRE_PE3=0u; \
    01404                                          bFM0P_GPIO_SPSR_MAINXC0=0u; \
    01405                                          bFM0P_GPIO_SPSR_MAINXC1=0u; \
    01406                                          bFM0P_GPIO_PFRE_PE3=0u; }while(0)
    01407
    01408 #define GPIO1PIN_PE3_INITOUT(v)      do{ bFM0P_GPIO_PDORE_PE3=(v).bInitVal; \
    01409                                          bFM0P_GPIO_DDRE_PE3=1u; \
    01410                                          bFM0P_GPIO_SPSR_MAINXC0=0u; \
    01411                                          bFM0P_GPIO_SPSR_MAINXC1=0u; \
    01412                                          bFM0P_GPIO_PFRE_PE3=0u; }while(0)
    01413
    01414
    01415 /*---- GPIO bit NPE3 ----*/
    01416 #define GPIO1PIN_NPE3_GET            ( (uint32_t)(~(uint32_t)(bFM0P_GPIO_PDIRE_PE3)) )
    01417
    01418 #define GPIO1PIN_NPE3_PUT(v)         ( bFM0P_GPIO_PDORE_PE3=(uint32_t)(!(v)) )
    01419
    01420 #define GPIO1PIN_NPE3_INIT(v)        ( (0==(v).bOutput) ? GPIO1PIN_NPE3_INITIN(v) \
    01421                                                         : GPIO1PIN_NPE3_INITOUT(v) )
    01422
    01423 #define GPIO1PIN_NPE3_INITIN(v)      do{ bFM0P_GPIO_PCRE_PE3=(v).bPullup; \
    01424                                          bFM0P_GPIO_DDRE_PE3=0u; \
    01425                                          bFM0P_GPIO_SPSR_MAINXC0=0u; \
    01426                                          bFM0P_GPIO_SPSR_MAINXC1=0u; \
    01427                                          bFM0P_GPIO_PFRE_PE3=0u; }while(0)
    01428
    01429 #define GPIO1PIN_NPE3_INITOUT(v)     do{ bFM0P_GPIO_PDORE_PE3=(uint32_t)(~((uint32_t)(v).bInitVal)); \
    01430                                          bFM0P_GPIO_DDRE_PE3=1u; \
    01431                                          bFM0P_GPIO_SPSR_MAINXC0=0u; \
    01432                                          bFM0P_GPIO_SPSR_MAINXC1=0u; \
    01433                                          bFM0P_GPIO_PFRE_PE3=0u; }while(0)
    01434
    01435
    01436 /******************************************************************************
    01437    Fast GPIO
    01438 *******************************************************************************/
    01439
    01440 /*---- Fast GPIO bit P00 ----*/
    01441
    01442 #define FGPIO1PIN_P00_GET             ( FM0P_FASTIO->FPDIR0_f.P00 )
    01443
    01444 #define FGPIO1PIN_P00_PUT(v)          ( bFM0P_GPIO_FPDOR0_P00=(v) )
    01445
    01446 #define FGPIO1PIN_P00_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P00_INITIN(v) \
    01447                                                          : FGPIO1PIN_P00_INITOUT(v) )
    01448
    01449 #define FGPIO1PIN_P00_INITIN(v)       do{ bFM0P_GPIO_PCR0_P00=(v).bPullup; \
    01450                                           bFM0P_GPIO_DDR0_P00=0u; \
    01451                                           bFM0P_GPIO_PFR0_P00=0u; }while(0)
    01452
    01453 #define FGPIO1PIN_P00_INITOUT(v)      do{ bFM0P_GPIO_FPDOR0_P00=(v).bInitVal; \
    01454                                           bFM0P_GPIO_DDR0_P00=1u; \
    01455                                           bFM0P_GPIO_PFR0_P00=0u; }while(0)
    01456
    01457
    01458 /*---- Fast GPIO bit NP00 ----*/
    01459 #define FGPIO1PIN_NP00_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR0_f.P00)) )
    01460
    01461 #define FGPIO1PIN_NP00_PUT(v)         ( bFM0P_GPIO_FPDOR0_P00=(uint8_t)(~(v)) )
    01462
    01463 #define FGPIO1PIN_NP00_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP00_INITIN(v) \
    01464                                                          : FGPIO1PIN_NP00_INITOUT(v) )
    01465
    01466 #define FGPIO1PIN_NP00_INITIN(v)      do{ bFM0P_GPIO_PCR0_P00=(v).bPullup; \
    01467                                           bFM0P_GPIO_DDR0_P00=0u; \
    01468                                           bFM0P_GPIO_PFR0_P00=0u; }while(0)
    01469
    01470 #define FGPIO1PIN_NP00_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P00=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01471                                           bFM0P_GPIO_DDR0_P00=1u; \
    01472                                           bFM0P_GPIO_PFR0_P00=0u; }while(0)
    01473
    01474
    01475 /*---- Fast GPIO bit P01 ----*/
    01476
    01477 #define FGPIO1PIN_P01_GET             ( FM0P_FASTIO->FPDIR0_f.P01 )
    01478
    01479 #define FGPIO1PIN_P01_PUT(v)          ( bFM0P_GPIO_FPDOR0_P01=(v) )
    01480
    01481 #define FGPIO1PIN_P01_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P01_INITIN(v) \
    01482                                                          : FGPIO1PIN_P01_INITOUT(v) )
    01483
    01484 #define FGPIO1PIN_P01_INITIN(v)       do{ bFM0P_GPIO_PCR0_P01=(v).bPullup; \
    01485                                           bFM0P_GPIO_DDR0_P01=0u; \
    01486                                           bFM0P_GPIO_PFR0_P01=0u; }while(0)
    01487
    01488 #define FGPIO1PIN_P01_INITOUT(v)      do{ bFM0P_GPIO_FPDOR0_P01=(v).bInitVal; \
    01489                                           bFM0P_GPIO_DDR0_P01=1u; \
    01490                                           bFM0P_GPIO_PFR0_P01=0u; }while(0)
    01491
    01492
    01493 /*---- Fast GPIO bit NP01 ----*/
    01494 #define FGPIO1PIN_NP01_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR0_f.P01)) )
    01495
    01496 #define FGPIO1PIN_NP01_PUT(v)         ( bFM0P_GPIO_FPDOR0_P01=(uint8_t)(~(v)) )
    01497
    01498 #define FGPIO1PIN_NP01_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP01_INITIN(v) \
    01499                                                          : FGPIO1PIN_NP01_INITOUT(v) )
    01500
    01501 #define FGPIO1PIN_NP01_INITIN(v)      do{ bFM0P_GPIO_PCR0_P01=(v).bPullup; \
    01502                                           bFM0P_GPIO_DDR0_P01=0u; \
    01503                                           bFM0P_GPIO_PFR0_P01=0u; }while(0)
    01504
    01505 #define FGPIO1PIN_NP01_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P01=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01506                                           bFM0P_GPIO_DDR0_P01=1u; \
    01507                                           bFM0P_GPIO_PFR0_P01=0u; }while(0)
    01508
    01509
    01510 /*---- Fast GPIO bit P02 ----*/
    01511
    01512 #define FGPIO1PIN_P02_GET             ( FM0P_FASTIO->FPDIR0_f.P02 )
    01513
    01514 #define FGPIO1PIN_P02_PUT(v)          ( bFM0P_GPIO_FPDOR0_P02=(v) )
    01515
    01516 #define FGPIO1PIN_P02_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P02_INITIN(v) \
    01517                                                          : FGPIO1PIN_P02_INITOUT(v) )
    01518
    01519 #define FGPIO1PIN_P02_INITIN(v)       do{ bFM0P_GPIO_PCR0_P02=(v).bPullup; \
    01520                                           bFM0P_GPIO_DDR0_P02=0u; \
    01521                                           bFM0P_GPIO_PFR0_P02=0u; }while(0)
    01522
    01523 #define FGPIO1PIN_P02_INITOUT(v)      do{ bFM0P_GPIO_FPDOR0_P02=(v).bInitVal; \
    01524                                           bFM0P_GPIO_DDR0_P02=1u; \
    01525                                           bFM0P_GPIO_PFR0_P02=0u; }while(0)
    01526
    01527
    01528 /*---- Fast GPIO bit NP02 ----*/
    01529 #define FGPIO1PIN_NP02_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR0_f.P02)) )
    01530
    01531 #define FGPIO1PIN_NP02_PUT(v)         ( bFM0P_GPIO_FPDOR0_P02=(uint8_t)(~(v)) )
    01532
    01533 #define FGPIO1PIN_NP02_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP02_INITIN(v) \
    01534                                                          : FGPIO1PIN_NP02_INITOUT(v) )
    01535
    01536 #define FGPIO1PIN_NP02_INITIN(v)      do{ bFM0P_GPIO_PCR0_P02=(v).bPullup; \
    01537                                           bFM0P_GPIO_DDR0_P02=0u; \
    01538                                           bFM0P_GPIO_PFR0_P02=0u; }while(0)
    01539
    01540 #define FGPIO1PIN_NP02_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P02=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01541                                           bFM0P_GPIO_DDR0_P02=1u; \
    01542                                           bFM0P_GPIO_PFR0_P02=0u; }while(0)
    01543
    01544
    01545 /*---- Fast GPIO bit P03 ----*/
    01546
    01547 #define FGPIO1PIN_P03_GET             ( FM0P_FASTIO->FPDIR0_f.P03 )
    01548
    01549 #define FGPIO1PIN_P03_PUT(v)          ( bFM0P_GPIO_FPDOR0_P03=(v) )
    01550
    01551 #define FGPIO1PIN_P03_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P03_INITIN(v) \
    01552                                                          : FGPIO1PIN_P03_INITOUT(v) )
    01553
    01554 #define FGPIO1PIN_P03_INITIN(v)       do{ bFM0P_GPIO_PCR0_P03=(v).bPullup; \
    01555                                           bFM0P_GPIO_DDR0_P03=0u; \
    01556                                           bFM0P_GPIO_PFR0_P03=0u; }while(0)
    01557
    01558 #define FGPIO1PIN_P03_INITOUT(v)      do{ bFM0P_GPIO_FPDOR0_P03=(v).bInitVal; \
    01559                                           bFM0P_GPIO_DDR0_P03=1u; \
    01560                                           bFM0P_GPIO_PFR0_P03=0u; }while(0)
    01561
    01562
    01563 /*---- Fast GPIO bit NP03 ----*/
    01564 #define FGPIO1PIN_NP03_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR0_f.P03)) )
    01565
    01566 #define FGPIO1PIN_NP03_PUT(v)         ( bFM0P_GPIO_FPDOR0_P03=(uint8_t)(~(v)) )
    01567
    01568 #define FGPIO1PIN_NP03_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP03_INITIN(v) \
    01569                                                          : FGPIO1PIN_NP03_INITOUT(v) )
    01570
    01571 #define FGPIO1PIN_NP03_INITIN(v)      do{ bFM0P_GPIO_PCR0_P03=(v).bPullup; \
    01572                                           bFM0P_GPIO_DDR0_P03=0u; \
    01573                                           bFM0P_GPIO_PFR0_P03=0u; }while(0)
    01574
    01575 #define FGPIO1PIN_NP03_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P03=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01576                                           bFM0P_GPIO_DDR0_P03=1u; \
    01577                                           bFM0P_GPIO_PFR0_P03=0u; }while(0)
    01578
    01579
    01580 /*---- Fast GPIO bit P04 ----*/
    01581
    01582 #define FGPIO1PIN_P04_GET             ( FM0P_FASTIO->FPDIR0_f.P04 )
    01583
    01584 #define FGPIO1PIN_P04_PUT(v)          ( bFM0P_GPIO_FPDOR0_P04=(v) )
    01585
    01586 #define FGPIO1PIN_P04_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P04_INITIN(v) \
    01587                                                          : FGPIO1PIN_P04_INITOUT(v) )
    01588
    01589 #define FGPIO1PIN_P04_INITIN(v)       do{ bFM0P_GPIO_PCR0_P04=(v).bPullup; \
    01590                                           bFM0P_GPIO_DDR0_P04=0u; \
    01591                                           bFM0P_GPIO_PFR0_P04=0u; }while(0)
    01592
    01593 #define FGPIO1PIN_P04_INITOUT(v)      do{ bFM0P_GPIO_FPDOR0_P04=(v).bInitVal; \
    01594                                           bFM0P_GPIO_DDR0_P04=1u; \
    01595                                           bFM0P_GPIO_PFR0_P04=0u; }while(0)
    01596
    01597
    01598 /*---- Fast GPIO bit NP04 ----*/
    01599 #define FGPIO1PIN_NP04_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR0_f.P04)) )
    01600
    01601 #define FGPIO1PIN_NP04_PUT(v)         ( bFM0P_GPIO_FPDOR0_P04=(uint8_t)(~(v)) )
    01602
    01603 #define FGPIO1PIN_NP04_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP04_INITIN(v) \
    01604                                                          : FGPIO1PIN_NP04_INITOUT(v) )
    01605
    01606 #define FGPIO1PIN_NP04_INITIN(v)      do{ bFM0P_GPIO_PCR0_P04=(v).bPullup; \
    01607                                           bFM0P_GPIO_DDR0_P04=0u; \
    01608                                           bFM0P_GPIO_PFR0_P04=0u; }while(0)
    01609
    01610 #define FGPIO1PIN_NP04_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P04=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01611                                           bFM0P_GPIO_DDR0_P04=1u; \
    01612                                           bFM0P_GPIO_PFR0_P04=0u; }while(0)
    01613
    01614
    01615 /*---- Fast GPIO bit P0F ----*/
    01616
    01617 #define FGPIO1PIN_P0F_GET             ( FM0P_FASTIO->FPDIR0_f.P0F )
    01618
    01619 #define FGPIO1PIN_P0F_PUT(v)          ( bFM0P_GPIO_FPDOR0_P0F=(v) )
    01620
    01621 #define FGPIO1PIN_P0F_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P0F_INITIN(v) \
    01622                                                          : FGPIO1PIN_P0F_INITOUT(v) )
    01623
    01624 #define FGPIO1PIN_P0F_INITIN(v)       do{ bFM0P_GPIO_PCR0_P0F=(v).bPullup; \
    01625                                           bFM0P_GPIO_DDR0_P0F=0u; \
    01626                                           bFM0P_GPIO_PFR0_P0F=0u; }while(0)
    01627
    01628 #define FGPIO1PIN_P0F_INITOUT(v)      do{ bFM0P_GPIO_FPDOR0_P0F=(v).bInitVal; \
    01629                                           bFM0P_GPIO_DDR0_P0F=1u; \
    01630                                           bFM0P_GPIO_PFR0_P0F=0u; }while(0)
    01631
    01632
    01633 /*---- Fast GPIO bit NP0F ----*/
    01634 #define FGPIO1PIN_NP0F_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR0_f.P0F)) )
    01635
    01636 #define FGPIO1PIN_NP0F_PUT(v)         ( bFM0P_GPIO_FPDOR0_P0F=(uint8_t)(~(v)) )
    01637
    01638 #define FGPIO1PIN_NP0F_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP0F_INITIN(v) \
    01639                                                          : FGPIO1PIN_NP0F_INITOUT(v) )
    01640
    01641 #define FGPIO1PIN_NP0F_INITIN(v)      do{ bFM0P_GPIO_PCR0_P0F=(v).bPullup; \
    01642                                           bFM0P_GPIO_DDR0_P0F=0u; \
    01643                                           bFM0P_GPIO_PFR0_P0F=0u; }while(0)
    01644
    01645 #define FGPIO1PIN_NP0F_INITOUT(v)     do{ bFM0P_GPIO_PDOR0_P0F=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01646                                           bFM0P_GPIO_DDR0_P0F=1u; \
    01647                                           bFM0P_GPIO_PFR0_P0F=0u; }while(0)
    01648
    01649
    01650 /*---- Fast GPIO bit P10 ----*/
    01651
    01652 #define FGPIO1PIN_P10_GET             ( FM0P_FASTIO->FPDIR1_f.P10 )
    01653
    01654 #define FGPIO1PIN_P10_PUT(v)          ( bFM0P_GPIO_FPDOR1_P10=(v) )
    01655
    01656 #define FGPIO1PIN_P10_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P10_INITIN(v) \
    01657                                                          : FGPIO1PIN_P10_INITOUT(v) )
    01658
    01659 #define FGPIO1PIN_P10_INITIN(v)       do{ bFM0P_GPIO_PCR1_P10=(v).bPullup; \
    01660                                           bFM0P_GPIO_DDR1_P10=0u; \
    01661                                           bFM0P_GPIO_PFR1_P10=0u; \
    01662                                           bFM0P_GPIO_ADE_AN00=0u; }while(0)
    01663
    01664
    01665 #define FGPIO1PIN_P10_INITOUT(v)      do{ bFM0P_GPIO_FPDOR1_P10=(v).bInitVal; \
    01666                                           bFM0P_GPIO_DDR1_P10=1u; \
    01667                                           bFM0P_GPIO_PFR1_P10=0u; \
    01668                                           bFM0P_GPIO_ADE_AN00=0u; }while(0)
    01669
    01670
    01671 /*---- Fast GPIO bit NP10 ----*/
    01672 #define FGPIO1PIN_NP10_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR1_f.P10)) )
    01673
    01674 #define FGPIO1PIN_NP10_PUT(v)         ( bFM0P_GPIO_FPDOR1_P10=(uint8_t)(~(v)) )
    01675
    01676 #define FGPIO1PIN_NP10_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP10_INITIN(v) \
    01677                                                          : FGPIO1PIN_NP10_INITOUT(v) )
    01678
    01679 #define FGPIO1PIN_NP10_INITIN(v)      do{ bFM0P_GPIO_PCR1_P10=(v).bPullup; \
    01680                                           bFM0P_GPIO_DDR1_P10=0u; \
    01681                                           bFM0P_GPIO_PFR1_P10=0u; \
    01682                                           bFM0P_GPIO_ADE_AN00=0u; }while(0)
    01683
    01684
    01685 #define FGPIO1PIN_NP10_INITOUT(v)     do{ bFM0P_GPIO_PDOR1_P10=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01686                                           bFM0P_GPIO_DDR1_P10=1u; \
    01687                                           bFM0P_GPIO_PFR1_P10=0u; \
    01688                                           bFM0P_GPIO_ADE_AN00=0u; }while(0)
    01689
    01690
    01691 /*---- Fast GPIO bit P11 ----*/
    01692
    01693 #define FGPIO1PIN_P11_GET             ( FM0P_FASTIO->FPDIR1_f.P11 )
    01694
    01695 #define FGPIO1PIN_P11_PUT(v)          ( bFM0P_GPIO_FPDOR1_P11=(v) )
    01696
    01697 #define FGPIO1PIN_P11_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P11_INITIN(v) \
    01698                                                          : FGPIO1PIN_P11_INITOUT(v) )
    01699
    01700 #define FGPIO1PIN_P11_INITIN(v)       do{ bFM0P_GPIO_PCR1_P11=(v).bPullup; \
    01701                                           bFM0P_GPIO_DDR1_P11=0u; \
    01702                                           bFM0P_GPIO_PFR1_P11=0u; \
    01703                                           bFM0P_GPIO_ADE_AN01=0u; }while(0)
    01704
    01705
    01706 #define FGPIO1PIN_P11_INITOUT(v)      do{ bFM0P_GPIO_FPDOR1_P11=(v).bInitVal; \
    01707                                           bFM0P_GPIO_DDR1_P11=1u; \
    01708                                           bFM0P_GPIO_PFR1_P11=0u; \
    01709                                           bFM0P_GPIO_ADE_AN01=0u; }while(0)
    01710
    01711
    01712 /*---- Fast GPIO bit NP11 ----*/
    01713 #define FGPIO1PIN_NP11_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR1_f.P11)) )
    01714
    01715 #define FGPIO1PIN_NP11_PUT(v)         ( bFM0P_GPIO_FPDOR1_P11=(uint8_t)(~(v)) )
    01716
    01717 #define FGPIO1PIN_NP11_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP11_INITIN(v) \
    01718                                                          : FGPIO1PIN_NP11_INITOUT(v) )
    01719
    01720 #define FGPIO1PIN_NP11_INITIN(v)      do{ bFM0P_GPIO_PCR1_P11=(v).bPullup; \
    01721                                           bFM0P_GPIO_DDR1_P11=0u; \
    01722                                           bFM0P_GPIO_PFR1_P11=0u; \
    01723                                           bFM0P_GPIO_ADE_AN01=0u; }while(0)
    01724
    01725
    01726 #define FGPIO1PIN_NP11_INITOUT(v)     do{ bFM0P_GPIO_PDOR1_P11=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01727                                           bFM0P_GPIO_DDR1_P11=1u; \
    01728                                           bFM0P_GPIO_PFR1_P11=0u; \
    01729                                           bFM0P_GPIO_ADE_AN01=0u; }while(0)
    01730
    01731
    01732 /*---- Fast GPIO bit P12 ----*/
    01733
    01734 #define FGPIO1PIN_P12_GET             ( FM0P_FASTIO->FPDIR1_f.P12 )
    01735
    01736 #define FGPIO1PIN_P12_PUT(v)          ( bFM0P_GPIO_FPDOR1_P12=(v) )
    01737
    01738 #define FGPIO1PIN_P12_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P12_INITIN(v) \
    01739                                                          : FGPIO1PIN_P12_INITOUT(v) )
    01740
    01741 #define FGPIO1PIN_P12_INITIN(v)       do{ bFM0P_GPIO_PCR1_P12=(v).bPullup; \
    01742                                           bFM0P_GPIO_DDR1_P12=0u; \
    01743                                           bFM0P_GPIO_PFR1_P12=0u; \
    01744                                           bFM0P_GPIO_ADE_AN02=0u; }while(0)
    01745
    01746
    01747 #define FGPIO1PIN_P12_INITOUT(v)      do{ bFM0P_GPIO_FPDOR1_P12=(v).bInitVal; \
    01748                                           bFM0P_GPIO_DDR1_P12=1u; \
    01749                                           bFM0P_GPIO_PFR1_P12=0u; \
    01750                                           bFM0P_GPIO_ADE_AN02=0u; }while(0)
    01751
    01752
    01753 /*---- Fast GPIO bit NP12 ----*/
    01754 #define FGPIO1PIN_NP12_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR1_f.P12)) )
    01755
    01756 #define FGPIO1PIN_NP12_PUT(v)         ( bFM0P_GPIO_FPDOR1_P12=(uint8_t)(~(v)) )
    01757
    01758 #define FGPIO1PIN_NP12_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP12_INITIN(v) \
    01759                                                          : FGPIO1PIN_NP12_INITOUT(v) )
    01760
    01761 #define FGPIO1PIN_NP12_INITIN(v)      do{ bFM0P_GPIO_PCR1_P12=(v).bPullup; \
    01762                                           bFM0P_GPIO_DDR1_P12=0u; \
    01763                                           bFM0P_GPIO_PFR1_P12=0u; \
    01764                                           bFM0P_GPIO_ADE_AN02=0u; }while(0)
    01765
    01766
    01767 #define FGPIO1PIN_NP12_INITOUT(v)     do{ bFM0P_GPIO_PDOR1_P12=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01768                                           bFM0P_GPIO_DDR1_P12=1u; \
    01769                                           bFM0P_GPIO_PFR1_P12=0u; \
    01770                                           bFM0P_GPIO_ADE_AN02=0u; }while(0)
    01771
    01772
    01773 /*---- Fast GPIO bit P13 ----*/
    01774
    01775 #define FGPIO1PIN_P13_GET             ( FM0P_FASTIO->FPDIR1_f.P13 )
    01776
    01777 #define FGPIO1PIN_P13_PUT(v)          ( bFM0P_GPIO_FPDOR1_P13=(v) )
    01778
    01779 #define FGPIO1PIN_P13_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P13_INITIN(v) \
    01780                                                          : FGPIO1PIN_P13_INITOUT(v) )
    01781
    01782 #define FGPIO1PIN_P13_INITIN(v)       do{ bFM0P_GPIO_PCR1_P13=(v).bPullup; \
    01783                                           bFM0P_GPIO_DDR1_P13=0u; \
    01784                                           bFM0P_GPIO_PFR1_P13=0u; \
    01785                                           bFM0P_GPIO_ADE_AN03=0u; }while(0)
    01786
    01787
    01788 #define FGPIO1PIN_P13_INITOUT(v)      do{ bFM0P_GPIO_FPDOR1_P13=(v).bInitVal; \
    01789                                           bFM0P_GPIO_DDR1_P13=1u; \
    01790                                           bFM0P_GPIO_PFR1_P13=0u; \
    01791                                           bFM0P_GPIO_ADE_AN03=0u; }while(0)
    01792
    01793
    01794 /*---- Fast GPIO bit NP13 ----*/
    01795 #define FGPIO1PIN_NP13_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR1_f.P13)) )
    01796
    01797 #define FGPIO1PIN_NP13_PUT(v)         ( bFM0P_GPIO_FPDOR1_P13=(uint8_t)(~(v)) )
    01798
    01799 #define FGPIO1PIN_NP13_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP13_INITIN(v) \
    01800                                                          : FGPIO1PIN_NP13_INITOUT(v) )
    01801
    01802 #define FGPIO1PIN_NP13_INITIN(v)      do{ bFM0P_GPIO_PCR1_P13=(v).bPullup; \
    01803                                           bFM0P_GPIO_DDR1_P13=0u; \
    01804                                           bFM0P_GPIO_PFR1_P13=0u; \
    01805                                           bFM0P_GPIO_ADE_AN03=0u; }while(0)
    01806
    01807
    01808 #define FGPIO1PIN_NP13_INITOUT(v)     do{ bFM0P_GPIO_PDOR1_P13=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01809                                           bFM0P_GPIO_DDR1_P13=1u; \
    01810                                           bFM0P_GPIO_PFR1_P13=0u; \
    01811                                           bFM0P_GPIO_ADE_AN03=0u; }while(0)
    01812
    01813
    01814 /*---- Fast GPIO bit P14 ----*/
    01815
    01816 #define FGPIO1PIN_P14_GET             ( FM0P_FASTIO->FPDIR1_f.P14 )
    01817
    01818 #define FGPIO1PIN_P14_PUT(v)          ( bFM0P_GPIO_FPDOR1_P14=(v) )
    01819
    01820 #define FGPIO1PIN_P14_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P14_INITIN(v) \
    01821                                                          : FGPIO1PIN_P14_INITOUT(v) )
    01822
    01823 #define FGPIO1PIN_P14_INITIN(v)       do{ bFM0P_GPIO_PCR1_P14=(v).bPullup; \
    01824                                           bFM0P_GPIO_DDR1_P14=0u; \
    01825                                           bFM0P_GPIO_PFR1_P14=0u; \
    01826                                           bFM0P_GPIO_ADE_AN04=0u; }while(0)
    01827
    01828
    01829 #define FGPIO1PIN_P14_INITOUT(v)      do{ bFM0P_GPIO_FPDOR1_P14=(v).bInitVal; \
    01830                                           bFM0P_GPIO_DDR1_P14=1u; \
    01831                                           bFM0P_GPIO_PFR1_P14=0u; \
    01832                                           bFM0P_GPIO_ADE_AN04=0u; }while(0)
    01833
    01834
    01835 /*---- Fast GPIO bit NP14 ----*/
    01836 #define FGPIO1PIN_NP14_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR1_f.P14)) )
    01837
    01838 #define FGPIO1PIN_NP14_PUT(v)         ( bFM0P_GPIO_FPDOR1_P14=(uint8_t)(~(v)) )
    01839
    01840 #define FGPIO1PIN_NP14_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP14_INITIN(v) \
    01841                                                          : FGPIO1PIN_NP14_INITOUT(v) )
    01842
    01843 #define FGPIO1PIN_NP14_INITIN(v)      do{ bFM0P_GPIO_PCR1_P14=(v).bPullup; \
    01844                                           bFM0P_GPIO_DDR1_P14=0u; \
    01845                                           bFM0P_GPIO_PFR1_P14=0u; \
    01846                                           bFM0P_GPIO_ADE_AN04=0u; }while(0)
    01847
    01848
    01849 #define FGPIO1PIN_NP14_INITOUT(v)     do{ bFM0P_GPIO_PDOR1_P14=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01850                                           bFM0P_GPIO_DDR1_P14=1u; \
    01851                                           bFM0P_GPIO_PFR1_P14=0u; \
    01852                                           bFM0P_GPIO_ADE_AN04=0u; }while(0)
    01853
    01854
    01855 /*---- Fast GPIO bit P15 ----*/
    01856
    01857 #define FGPIO1PIN_P15_GET             ( FM0P_FASTIO->FPDIR1_f.P15 )
    01858
    01859 #define FGPIO1PIN_P15_PUT(v)          ( bFM0P_GPIO_FPDOR1_P15=(v) )
    01860
    01861 #define FGPIO1PIN_P15_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P15_INITIN(v) \
    01862                                                          : FGPIO1PIN_P15_INITOUT(v) )
    01863
    01864 #define FGPIO1PIN_P15_INITIN(v)       do{ bFM0P_GPIO_PCR1_P15=(v).bPullup; \
    01865                                           bFM0P_GPIO_DDR1_P15=0u; \
    01866                                           bFM0P_GPIO_PFR1_P15=0u; \
    01867                                           bFM0P_GPIO_ADE_AN05=0u; }while(0)
    01868
    01869
    01870 #define FGPIO1PIN_P15_INITOUT(v)      do{ bFM0P_GPIO_FPDOR1_P15=(v).bInitVal; \
    01871                                           bFM0P_GPIO_DDR1_P15=1u; \
    01872                                           bFM0P_GPIO_PFR1_P15=0u; \
    01873                                           bFM0P_GPIO_ADE_AN05=0u; }while(0)
    01874
    01875
    01876 /*---- Fast GPIO bit NP15 ----*/
    01877 #define FGPIO1PIN_NP15_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR1_f.P15)) )
    01878
    01879 #define FGPIO1PIN_NP15_PUT(v)         ( bFM0P_GPIO_FPDOR1_P15=(uint8_t)(~(v)) )
    01880
    01881 #define FGPIO1PIN_NP15_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP15_INITIN(v) \
    01882                                                          : FGPIO1PIN_NP15_INITOUT(v) )
    01883
    01884 #define FGPIO1PIN_NP15_INITIN(v)      do{ bFM0P_GPIO_PCR1_P15=(v).bPullup; \
    01885                                           bFM0P_GPIO_DDR1_P15=0u; \
    01886                                           bFM0P_GPIO_PFR1_P15=0u; \
    01887                                           bFM0P_GPIO_ADE_AN05=0u; }while(0)
    01888
    01889
    01890 #define FGPIO1PIN_NP15_INITOUT(v)     do{ bFM0P_GPIO_PDOR1_P15=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01891                                           bFM0P_GPIO_DDR1_P15=1u; \
    01892                                           bFM0P_GPIO_PFR1_P15=0u; \
    01893                                           bFM0P_GPIO_ADE_AN05=0u; }while(0)
    01894
    01895
    01896 /*---- Fast GPIO bit P21 ----*/
    01897
    01898 #define FGPIO1PIN_P21_GET             ( FM0P_FASTIO->FPDIR2_f.P21 )
    01899
    01900 #define FGPIO1PIN_P21_PUT(v)          ( bFM0P_GPIO_FPDOR2_P21=(v) )
    01901
    01902 #define FGPIO1PIN_P21_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P21_INITIN(v) \
    01903                                                          : FGPIO1PIN_P21_INITOUT(v) )
    01904
    01905 #define FGPIO1PIN_P21_INITIN(v)       do{ bFM0P_GPIO_PCR2_P21=(v).bPullup; \
    01906                                           bFM0P_GPIO_DDR2_P21=0u; \
    01907                                           bFM0P_GPIO_PFR2_P21=0u; }while(0)
    01908
    01909 #define FGPIO1PIN_P21_INITOUT(v)      do{ bFM0P_GPIO_FPDOR2_P21=(v).bInitVal; \
    01910                                           bFM0P_GPIO_DDR2_P21=1u; \
    01911                                           bFM0P_GPIO_PFR2_P21=0u; }while(0)
    01912
    01913
    01914 /*---- Fast GPIO bit NP21 ----*/
    01915 #define FGPIO1PIN_NP21_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR2_f.P21)) )
    01916
    01917 #define FGPIO1PIN_NP21_PUT(v)         ( bFM0P_GPIO_FPDOR2_P21=(uint8_t)(~(v)) )
    01918
    01919 #define FGPIO1PIN_NP21_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP21_INITIN(v) \
    01920                                                          : FGPIO1PIN_NP21_INITOUT(v) )
    01921
    01922 #define FGPIO1PIN_NP21_INITIN(v)      do{ bFM0P_GPIO_PCR2_P21=(v).bPullup; \
    01923                                           bFM0P_GPIO_DDR2_P21=0u; \
    01924                                           bFM0P_GPIO_PFR2_P21=0u; }while(0)
    01925
    01926 #define FGPIO1PIN_NP21_INITOUT(v)     do{ bFM0P_GPIO_PDOR2_P21=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01927                                           bFM0P_GPIO_DDR2_P21=1u; \
    01928                                           bFM0P_GPIO_PFR2_P21=0u; }while(0)
    01929
    01930
    01931 /*---- Fast GPIO bit P22 ----*/
    01932
    01933 #define FGPIO1PIN_P22_GET             ( FM0P_FASTIO->FPDIR2_f.P22 )
    01934
    01935 #define FGPIO1PIN_P22_PUT(v)          ( bFM0P_GPIO_FPDOR2_P22=(v) )
    01936
    01937 #define FGPIO1PIN_P22_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P22_INITIN(v) \
    01938                                                          : FGPIO1PIN_P22_INITOUT(v) )
    01939
    01940 #define FGPIO1PIN_P22_INITIN(v)       do{ bFM0P_GPIO_PCR2_P22=(v).bPullup; \
    01941                                           bFM0P_GPIO_DDR2_P22=0u; \
    01942                                           bFM0P_GPIO_PFR2_P22=0u; \
    01943                                           bFM0P_GPIO_ADE_AN07=0u; }while(0)
    01944
    01945
    01946 #define FGPIO1PIN_P22_INITOUT(v)      do{ bFM0P_GPIO_FPDOR2_P22=(v).bInitVal; \
    01947                                           bFM0P_GPIO_DDR2_P22=1u; \
    01948                                           bFM0P_GPIO_PFR2_P22=0u; \
    01949                                           bFM0P_GPIO_ADE_AN07=0u; }while(0)
    01950
    01951
    01952 /*---- Fast GPIO bit NP22 ----*/
    01953 #define FGPIO1PIN_NP22_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR2_f.P22)) )
    01954
    01955 #define FGPIO1PIN_NP22_PUT(v)         ( bFM0P_GPIO_FPDOR2_P22=(uint8_t)(~(v)) )
    01956
    01957 #define FGPIO1PIN_NP22_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP22_INITIN(v) \
    01958                                                          : FGPIO1PIN_NP22_INITOUT(v) )
    01959
    01960 #define FGPIO1PIN_NP22_INITIN(v)      do{ bFM0P_GPIO_PCR2_P22=(v).bPullup; \
    01961                                           bFM0P_GPIO_DDR2_P22=0u; \
    01962                                           bFM0P_GPIO_PFR2_P22=0u; \
    01963                                           bFM0P_GPIO_ADE_AN07=0u; }while(0)
    01964
    01965
    01966 #define FGPIO1PIN_NP22_INITOUT(v)     do{ bFM0P_GPIO_PDOR2_P22=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    01967                                           bFM0P_GPIO_DDR2_P22=1u; \
    01968                                           bFM0P_GPIO_PFR2_P22=0u; \
    01969                                           bFM0P_GPIO_ADE_AN07=0u; }while(0)
    01970
    01971
    01972 /*---- Fast GPIO bit P23 ----*/
    01973
    01974 #define FGPIO1PIN_P23_GET             ( FM0P_FASTIO->FPDIR2_f.P23 )
    01975
    01976 #define FGPIO1PIN_P23_PUT(v)          ( bFM0P_GPIO_FPDOR2_P23=(v) )
    01977
    01978 #define FGPIO1PIN_P23_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P23_INITIN(v) \
    01979                                                          : FGPIO1PIN_P23_INITOUT(v) )
    01980
    01981 #define FGPIO1PIN_P23_INITIN(v)       do{ bFM0P_GPIO_PCR2_P23=(v).bPullup; \
    01982                                           bFM0P_GPIO_DDR2_P23=0u; \
    01983                                           bFM0P_GPIO_PFR2_P23=0u; \
    01984                                           bFM0P_GPIO_ADE_AN06=0u; }while(0)
    01985
    01986
    01987 #define FGPIO1PIN_P23_INITOUT(v)      do{ bFM0P_GPIO_FPDOR2_P23=(v).bInitVal; \
    01988                                           bFM0P_GPIO_DDR2_P23=1u; \
    01989                                           bFM0P_GPIO_PFR2_P23=0u; \
    01990                                           bFM0P_GPIO_ADE_AN06=0u; }while(0)
    01991
    01992
    01993 /*---- Fast GPIO bit NP23 ----*/
    01994 #define FGPIO1PIN_NP23_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR2_f.P23)) )
    01995
    01996 #define FGPIO1PIN_NP23_PUT(v)         ( bFM0P_GPIO_FPDOR2_P23=(uint8_t)(~(v)) )
    01997
    01998 #define FGPIO1PIN_NP23_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP23_INITIN(v) \
    01999                                                          : FGPIO1PIN_NP23_INITOUT(v) )
    02000
    02001 #define FGPIO1PIN_NP23_INITIN(v)      do{ bFM0P_GPIO_PCR2_P23=(v).bPullup; \
    02002                                           bFM0P_GPIO_DDR2_P23=0u; \
    02003                                           bFM0P_GPIO_PFR2_P23=0u; \
    02004                                           bFM0P_GPIO_ADE_AN06=0u; }while(0)
    02005
    02006
    02007 #define FGPIO1PIN_NP23_INITOUT(v)     do{ bFM0P_GPIO_PDOR2_P23=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02008                                           bFM0P_GPIO_DDR2_P23=1u; \
    02009                                           bFM0P_GPIO_PFR2_P23=0u; \
    02010                                           bFM0P_GPIO_ADE_AN06=0u; }while(0)
    02011
    02012
    02013 /*---- Fast GPIO bit P39 ----*/
    02014
    02015 #define FGPIO1PIN_P39_GET             ( FM0P_FASTIO->FPDIR3_f.P39 )
    02016
    02017 #define FGPIO1PIN_P39_PUT(v)          ( bFM0P_GPIO_FPDOR3_P39=(v) )
    02018
    02019 #define FGPIO1PIN_P39_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P39_INITIN(v) \
    02020                                                          : FGPIO1PIN_P39_INITOUT(v) )
    02021
    02022 #define FGPIO1PIN_P39_INITIN(v)       do{ bFM0P_GPIO_PCR3_P39=(v).bPullup; \
    02023                                           bFM0P_GPIO_DDR3_P39=0u; \
    02024                                           bFM0P_GPIO_PFR3_P39=0u; }while(0)
    02025
    02026 #define FGPIO1PIN_P39_INITOUT(v)      do{ bFM0P_GPIO_FPDOR3_P39=(v).bInitVal; \
    02027                                           bFM0P_GPIO_DDR3_P39=1u; \
    02028                                           bFM0P_GPIO_PFR3_P39=0u; }while(0)
    02029
    02030
    02031 /*---- Fast GPIO bit NP39 ----*/
    02032 #define FGPIO1PIN_NP39_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR3_f.P39)) )
    02033
    02034 #define FGPIO1PIN_NP39_PUT(v)         ( bFM0P_GPIO_FPDOR3_P39=(uint8_t)(~(v)) )
    02035
    02036 #define FGPIO1PIN_NP39_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP39_INITIN(v) \
    02037                                                          : FGPIO1PIN_NP39_INITOUT(v) )
    02038
    02039 #define FGPIO1PIN_NP39_INITIN(v)      do{ bFM0P_GPIO_PCR3_P39=(v).bPullup; \
    02040                                           bFM0P_GPIO_DDR3_P39=0u; \
    02041                                           bFM0P_GPIO_PFR3_P39=0u; }while(0)
    02042
    02043 #define FGPIO1PIN_NP39_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P39=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02044                                           bFM0P_GPIO_DDR3_P39=1u; \
    02045                                           bFM0P_GPIO_PFR3_P39=0u; }while(0)
    02046
    02047
    02048 /*---- Fast GPIO bit P3A ----*/
    02049
    02050 #define FGPIO1PIN_P3A_GET             ( FM0P_FASTIO->FPDIR3_f.P3A )
    02051
    02052 #define FGPIO1PIN_P3A_PUT(v)          ( bFM0P_GPIO_FPDOR3_P3A=(v) )
    02053
    02054 #define FGPIO1PIN_P3A_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P3A_INITIN(v) \
    02055                                                          : FGPIO1PIN_P3A_INITOUT(v) )
    02056
    02057 #define FGPIO1PIN_P3A_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3A=(v).bPullup; \
    02058                                           bFM0P_GPIO_DDR3_P3A=0u; \
    02059                                           bFM0P_GPIO_PFR3_P3A=0u; }while(0)
    02060
    02061 #define FGPIO1PIN_P3A_INITOUT(v)      do{ bFM0P_GPIO_FPDOR3_P3A=(v).bInitVal; \
    02062                                           bFM0P_GPIO_DDR3_P3A=1u; \
    02063                                           bFM0P_GPIO_PFR3_P3A=0u; }while(0)
    02064
    02065
    02066 /*---- Fast GPIO bit NP3A ----*/
    02067 #define FGPIO1PIN_NP3A_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR3_f.P3A)) )
    02068
    02069 #define FGPIO1PIN_NP3A_PUT(v)         ( bFM0P_GPIO_FPDOR3_P3A=(uint8_t)(~(v)) )
    02070
    02071 #define FGPIO1PIN_NP3A_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP3A_INITIN(v) \
    02072                                                          : FGPIO1PIN_NP3A_INITOUT(v) )
    02073
    02074 #define FGPIO1PIN_NP3A_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3A=(v).bPullup; \
    02075                                           bFM0P_GPIO_DDR3_P3A=0u; \
    02076                                           bFM0P_GPIO_PFR3_P3A=0u; }while(0)
    02077
    02078 #define FGPIO1PIN_NP3A_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3A=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02079                                           bFM0P_GPIO_DDR3_P3A=1u; \
    02080                                           bFM0P_GPIO_PFR3_P3A=0u; }while(0)
    02081
    02082
    02083 /*---- Fast GPIO bit P3B ----*/
    02084
    02085 #define FGPIO1PIN_P3B_GET             ( FM0P_FASTIO->FPDIR3_f.P3B )
    02086
    02087 #define FGPIO1PIN_P3B_PUT(v)          ( bFM0P_GPIO_FPDOR3_P3B=(v) )
    02088
    02089 #define FGPIO1PIN_P3B_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P3B_INITIN(v) \
    02090                                                          : FGPIO1PIN_P3B_INITOUT(v) )
    02091
    02092 #define FGPIO1PIN_P3B_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3B=(v).bPullup; \
    02093                                           bFM0P_GPIO_DDR3_P3B=0u; \
    02094                                           bFM0P_GPIO_PFR3_P3B=0u; }while(0)
    02095
    02096 #define FGPIO1PIN_P3B_INITOUT(v)      do{ bFM0P_GPIO_FPDOR3_P3B=(v).bInitVal; \
    02097                                           bFM0P_GPIO_DDR3_P3B=1u; \
    02098                                           bFM0P_GPIO_PFR3_P3B=0u; }while(0)
    02099
    02100
    02101 /*---- Fast GPIO bit NP3B ----*/
    02102 #define FGPIO1PIN_NP3B_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR3_f.P3B)) )
    02103
    02104 #define FGPIO1PIN_NP3B_PUT(v)         ( bFM0P_GPIO_FPDOR3_P3B=(uint8_t)(~(v)) )
    02105
    02106 #define FGPIO1PIN_NP3B_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP3B_INITIN(v) \
    02107                                                          : FGPIO1PIN_NP3B_INITOUT(v) )
    02108
    02109 #define FGPIO1PIN_NP3B_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3B=(v).bPullup; \
    02110                                           bFM0P_GPIO_DDR3_P3B=0u; \
    02111                                           bFM0P_GPIO_PFR3_P3B=0u; }while(0)
    02112
    02113 #define FGPIO1PIN_NP3B_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3B=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02114                                           bFM0P_GPIO_DDR3_P3B=1u; \
    02115                                           bFM0P_GPIO_PFR3_P3B=0u; }while(0)
    02116
    02117
    02118 /*---- Fast GPIO bit P3C ----*/
    02119
    02120 #define FGPIO1PIN_P3C_GET             ( FM0P_FASTIO->FPDIR3_f.P3C )
    02121
    02122 #define FGPIO1PIN_P3C_PUT(v)          ( bFM0P_GPIO_FPDOR3_P3C=(v) )
    02123
    02124 #define FGPIO1PIN_P3C_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P3C_INITIN(v) \
    02125                                                          : FGPIO1PIN_P3C_INITOUT(v) )
    02126
    02127 #define FGPIO1PIN_P3C_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3C=(v).bPullup; \
    02128                                           bFM0P_GPIO_DDR3_P3C=0u; \
    02129                                           bFM0P_GPIO_PFR3_P3C=0u; }while(0)
    02130
    02131 #define FGPIO1PIN_P3C_INITOUT(v)      do{ bFM0P_GPIO_FPDOR3_P3C=(v).bInitVal; \
    02132                                           bFM0P_GPIO_DDR3_P3C=1u; \
    02133                                           bFM0P_GPIO_PFR3_P3C=0u; }while(0)
    02134
    02135
    02136 /*---- Fast GPIO bit NP3C ----*/
    02137 #define FGPIO1PIN_NP3C_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR3_f.P3C)) )
    02138
    02139 #define FGPIO1PIN_NP3C_PUT(v)         ( bFM0P_GPIO_FPDOR3_P3C=(uint8_t)(~(v)) )
    02140
    02141 #define FGPIO1PIN_NP3C_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP3C_INITIN(v) \
    02142                                                          : FGPIO1PIN_NP3C_INITOUT(v) )
    02143
    02144 #define FGPIO1PIN_NP3C_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3C=(v).bPullup; \
    02145                                           bFM0P_GPIO_DDR3_P3C=0u; \
    02146                                           bFM0P_GPIO_PFR3_P3C=0u; }while(0)
    02147
    02148 #define FGPIO1PIN_NP3C_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3C=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02149                                           bFM0P_GPIO_DDR3_P3C=1u; \
    02150                                           bFM0P_GPIO_PFR3_P3C=0u; }while(0)
    02151
    02152
    02153 /*---- Fast GPIO bit P3D ----*/
    02154
    02155 #define FGPIO1PIN_P3D_GET             ( FM0P_FASTIO->FPDIR3_f.P3D )
    02156
    02157 #define FGPIO1PIN_P3D_PUT(v)          ( bFM0P_GPIO_FPDOR3_P3D=(v) )
    02158
    02159 #define FGPIO1PIN_P3D_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P3D_INITIN(v) \
    02160                                                          : FGPIO1PIN_P3D_INITOUT(v) )
    02161
    02162 #define FGPIO1PIN_P3D_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3D=(v).bPullup; \
    02163                                           bFM0P_GPIO_DDR3_P3D=0u; \
    02164                                           bFM0P_GPIO_PFR3_P3D=0u; }while(0)
    02165
    02166 #define FGPIO1PIN_P3D_INITOUT(v)      do{ bFM0P_GPIO_FPDOR3_P3D=(v).bInitVal; \
    02167                                           bFM0P_GPIO_DDR3_P3D=1u; \
    02168                                           bFM0P_GPIO_PFR3_P3D=0u; }while(0)
    02169
    02170
    02171 /*---- Fast GPIO bit NP3D ----*/
    02172 #define FGPIO1PIN_NP3D_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR3_f.P3D)) )
    02173
    02174 #define FGPIO1PIN_NP3D_PUT(v)         ( bFM0P_GPIO_FPDOR3_P3D=(uint8_t)(~(v)) )
    02175
    02176 #define FGPIO1PIN_NP3D_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP3D_INITIN(v) \
    02177                                                          : FGPIO1PIN_NP3D_INITOUT(v) )
    02178
    02179 #define FGPIO1PIN_NP3D_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3D=(v).bPullup; \
    02180                                           bFM0P_GPIO_DDR3_P3D=0u; \
    02181                                           bFM0P_GPIO_PFR3_P3D=0u; }while(0)
    02182
    02183 #define FGPIO1PIN_NP3D_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3D=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02184                                           bFM0P_GPIO_DDR3_P3D=1u; \
    02185                                           bFM0P_GPIO_PFR3_P3D=0u; }while(0)
    02186
    02187
    02188 /*---- Fast GPIO bit P3E ----*/
    02189
    02190 #define FGPIO1PIN_P3E_GET             ( FM0P_FASTIO->FPDIR3_f.P3E )
    02191
    02192 #define FGPIO1PIN_P3E_PUT(v)          ( bFM0P_GPIO_FPDOR3_P3E=(v) )
    02193
    02194 #define FGPIO1PIN_P3E_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P3E_INITIN(v) \
    02195                                                          : FGPIO1PIN_P3E_INITOUT(v) )
    02196
    02197 #define FGPIO1PIN_P3E_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3E=(v).bPullup; \
    02198                                           bFM0P_GPIO_DDR3_P3E=0u; \
    02199                                           bFM0P_GPIO_PFR3_P3E=0u; }while(0)
    02200
    02201 #define FGPIO1PIN_P3E_INITOUT(v)      do{ bFM0P_GPIO_FPDOR3_P3E=(v).bInitVal; \
    02202                                           bFM0P_GPIO_DDR3_P3E=1u; \
    02203                                           bFM0P_GPIO_PFR3_P3E=0u; }while(0)
    02204
    02205
    02206 /*---- Fast GPIO bit NP3E ----*/
    02207 #define FGPIO1PIN_NP3E_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR3_f.P3E)) )
    02208
    02209 #define FGPIO1PIN_NP3E_PUT(v)         ( bFM0P_GPIO_FPDOR3_P3E=(uint8_t)(~(v)) )
    02210
    02211 #define FGPIO1PIN_NP3E_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP3E_INITIN(v) \
    02212                                                          : FGPIO1PIN_NP3E_INITOUT(v) )
    02213
    02214 #define FGPIO1PIN_NP3E_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3E=(v).bPullup; \
    02215                                           bFM0P_GPIO_DDR3_P3E=0u; \
    02216                                           bFM0P_GPIO_PFR3_P3E=0u; }while(0)
    02217
    02218 #define FGPIO1PIN_NP3E_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3E=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02219                                           bFM0P_GPIO_DDR3_P3E=1u; \
    02220                                           bFM0P_GPIO_PFR3_P3E=0u; }while(0)
    02221
    02222
    02223 /*---- Fast GPIO bit P3F ----*/
    02224
    02225 #define FGPIO1PIN_P3F_GET             ( FM0P_FASTIO->FPDIR3_f.P3F )
    02226
    02227 #define FGPIO1PIN_P3F_PUT(v)          ( bFM0P_GPIO_FPDOR3_P3F=(v) )
    02228
    02229 #define FGPIO1PIN_P3F_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P3F_INITIN(v) \
    02230                                                          : FGPIO1PIN_P3F_INITOUT(v) )
    02231
    02232 #define FGPIO1PIN_P3F_INITIN(v)       do{ bFM0P_GPIO_PCR3_P3F=(v).bPullup; \
    02233                                           bFM0P_GPIO_DDR3_P3F=0u; \
    02234                                           bFM0P_GPIO_PFR3_P3F=0u; }while(0)
    02235
    02236 #define FGPIO1PIN_P3F_INITOUT(v)      do{ bFM0P_GPIO_FPDOR3_P3F=(v).bInitVal; \
    02237                                           bFM0P_GPIO_DDR3_P3F=1u; \
    02238                                           bFM0P_GPIO_PFR3_P3F=0u; }while(0)
    02239
    02240
    02241 /*---- Fast GPIO bit NP3F ----*/
    02242 #define FGPIO1PIN_NP3F_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR3_f.P3F)) )
    02243
    02244 #define FGPIO1PIN_NP3F_PUT(v)         ( bFM0P_GPIO_FPDOR3_P3F=(uint8_t)(~(v)) )
    02245
    02246 #define FGPIO1PIN_NP3F_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP3F_INITIN(v) \
    02247                                                          : FGPIO1PIN_NP3F_INITOUT(v) )
    02248
    02249 #define FGPIO1PIN_NP3F_INITIN(v)      do{ bFM0P_GPIO_PCR3_P3F=(v).bPullup; \
    02250                                           bFM0P_GPIO_DDR3_P3F=0u; \
    02251                                           bFM0P_GPIO_PFR3_P3F=0u; }while(0)
    02252
    02253 #define FGPIO1PIN_NP3F_INITOUT(v)     do{ bFM0P_GPIO_PDOR3_P3F=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02254                                           bFM0P_GPIO_DDR3_P3F=1u; \
    02255                                           bFM0P_GPIO_PFR3_P3F=0u; }while(0)
    02256
    02257
    02258 /*---- Fast GPIO bit P46 ----*/
    02259
    02260 #define FGPIO1PIN_P46_GET             ( FM0P_FASTIO->FPDIR4_f.P46 )
    02261
    02262 #define FGPIO1PIN_P46_PUT(v)          ( bFM0P_GPIO_FPDOR4_P46=(v) )
    02263
    02264 #define FGPIO1PIN_P46_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P46_INITIN(v) \
    02265                                                          : FGPIO1PIN_P46_INITOUT(v) )
    02266
    02267 #define FGPIO1PIN_P46_INITIN(v)       do{ bFM0P_GPIO_PCR4_P46=(v).bPullup; \
    02268                                           bFM0P_GPIO_DDR4_P46=0u; \
    02269                                           bFM0P_GPIO_SPSR_SUBXC0=0u; \
    02270                                           bFM0P_GPIO_SPSR_SUBXC1=0u; \
    02271                                           bFM0P_GPIO_PFR4_P46=0u; }while(0)
    02272
    02273 #define FGPIO1PIN_P46_INITOUT(v)      do{ bFM0P_GPIO_FPDOR4_P46=(v).bInitVal; \
    02274                                           bFM0P_GPIO_DDR4_P46=1u; \
    02275                                           bFM0P_GPIO_SPSR_SUBXC0=0u; \
    02276                                           bFM0P_GPIO_SPSR_SUBXC1=0u; \
    02277                                           bFM0P_GPIO_PFR4_P46=0u; }while(0)
    02278
    02279
    02280 /*---- Fast GPIO bit NP46 ----*/
    02281 #define FGPIO1PIN_NP46_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR4_f.P46)) )
    02282
    02283 #define FGPIO1PIN_NP46_PUT(v)         ( bFM0P_GPIO_FPDOR4_P46=(uint8_t)(~(v)) )
    02284
    02285 #define FGPIO1PIN_NP46_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP46_INITIN(v) \
    02286                                                          : FGPIO1PIN_NP46_INITOUT(v) )
    02287
    02288 #define FGPIO1PIN_NP46_INITIN(v)      do{ bFM0P_GPIO_PCR4_P46=(v).bPullup; \
    02289                                           bFM0P_GPIO_DDR4_P46=0u; \
    02290                                           bFM0P_GPIO_SPSR_SUBXC0=0u; \
    02291                                           bFM0P_GPIO_SPSR_SUBXC1=0u; \
    02292                                           bFM0P_GPIO_PFR4_P46=0u; }while(0)
    02293
    02294 #define FGPIO1PIN_NP46_INITOUT(v)     do{ bFM0P_GPIO_PDOR4_P46=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02295                                           bFM0P_GPIO_DDR4_P46=1u; \
    02296                                           bFM0P_GPIO_SPSR_SUBXC0=0u; \
    02297                                           bFM0P_GPIO_SPSR_SUBXC1=0u; \
    02298                                           bFM0P_GPIO_PFR4_P46=0u; }while(0)
    02299
    02300
    02301 /*---- Fast GPIO bit P47 ----*/
    02302
    02303 #define FGPIO1PIN_P47_GET             ( FM0P_FASTIO->FPDIR4_f.P47 )
    02304
    02305 #define FGPIO1PIN_P47_PUT(v)          ( bFM0P_GPIO_FPDOR4_P47=(v) )
    02306
    02307 #define FGPIO1PIN_P47_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P47_INITIN(v) \
    02308                                                          : FGPIO1PIN_P47_INITOUT(v) )
    02309
    02310 #define FGPIO1PIN_P47_INITIN(v)       do{ bFM0P_GPIO_PCR4_P47=(v).bPullup; \
    02311                                           bFM0P_GPIO_DDR4_P47=0u; \
    02312                                           bFM0P_GPIO_SPSR_SUBXC0=0u; \
    02313                                           bFM0P_GPIO_SPSR_SUBXC1=0u; \
    02314                                           bFM0P_GPIO_PFR4_P47=0u; }while(0)
    02315
    02316 #define FGPIO1PIN_P47_INITOUT(v)      do{ bFM0P_GPIO_FPDOR4_P47=(v).bInitVal; \
    02317                                           bFM0P_GPIO_DDR4_P47=1u; \
    02318                                           bFM0P_GPIO_SPSR_SUBXC0=0u; \
    02319                                           bFM0P_GPIO_SPSR_SUBXC1=0u; \
    02320                                           bFM0P_GPIO_PFR4_P47=0u; }while(0)
    02321
    02322
    02323 /*---- Fast GPIO bit NP47 ----*/
    02324 #define FGPIO1PIN_NP47_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR4_f.P47)) )
    02325
    02326 #define FGPIO1PIN_NP47_PUT(v)         ( bFM0P_GPIO_FPDOR4_P47=(uint8_t)(~(v)) )
    02327
    02328 #define FGPIO1PIN_NP47_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP47_INITIN(v) \
    02329                                                          : FGPIO1PIN_NP47_INITOUT(v) )
    02330
    02331 #define FGPIO1PIN_NP47_INITIN(v)      do{ bFM0P_GPIO_PCR4_P47=(v).bPullup; \
    02332                                           bFM0P_GPIO_DDR4_P47=0u; \
    02333                                           bFM0P_GPIO_SPSR_SUBXC0=0u; \
    02334                                           bFM0P_GPIO_SPSR_SUBXC1=0u; \
    02335                                           bFM0P_GPIO_PFR4_P47=0u; }while(0)
    02336
    02337 #define FGPIO1PIN_NP47_INITOUT(v)     do{ bFM0P_GPIO_PDOR4_P47=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02338                                           bFM0P_GPIO_DDR4_P47=1u; \
    02339                                           bFM0P_GPIO_SPSR_SUBXC0=0u; \
    02340                                           bFM0P_GPIO_SPSR_SUBXC1=0u; \
    02341                                           bFM0P_GPIO_PFR4_P47=0u; }while(0)
    02342
    02343
    02344 /*---- Fast GPIO bit P49 ----*/
    02345
    02346 #define FGPIO1PIN_P49_GET             ( FM0P_FASTIO->FPDIR4_f.P49 )
    02347
    02348 #define FGPIO1PIN_P49_PUT(v)          ( bFM0P_GPIO_FPDOR4_P49=(v) )
    02349
    02350 #define FGPIO1PIN_P49_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P49_INITIN(v) \
    02351                                                          : FGPIO1PIN_P49_INITOUT(v) )
    02352
    02353 #define FGPIO1PIN_P49_INITIN(v)       do{ bFM0P_GPIO_PCR4_P49=(v).bPullup; \
    02354                                           bFM0P_GPIO_DDR4_P49=0u; \
    02355                                           bFM0P_GPIO_PFR4_P49=0u; }while(0)
    02356
    02357 #define FGPIO1PIN_P49_INITOUT(v)      do{ bFM0P_GPIO_FPDOR4_P49=(v).bInitVal; \
    02358                                           bFM0P_GPIO_DDR4_P49=1u; \
    02359                                           bFM0P_GPIO_PFR4_P49=0u; }while(0)
    02360
    02361
    02362 /*---- Fast GPIO bit NP49 ----*/
    02363 #define FGPIO1PIN_NP49_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR4_f.P49)) )
    02364
    02365 #define FGPIO1PIN_NP49_PUT(v)         ( bFM0P_GPIO_FPDOR4_P49=(uint8_t)(~(v)) )
    02366
    02367 #define FGPIO1PIN_NP49_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP49_INITIN(v) \
    02368                                                          : FGPIO1PIN_NP49_INITOUT(v) )
    02369
    02370 #define FGPIO1PIN_NP49_INITIN(v)      do{ bFM0P_GPIO_PCR4_P49=(v).bPullup; \
    02371                                           bFM0P_GPIO_DDR4_P49=0u; \
    02372                                           bFM0P_GPIO_PFR4_P49=0u; }while(0)
    02373
    02374 #define FGPIO1PIN_NP49_INITOUT(v)     do{ bFM0P_GPIO_PDOR4_P49=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02375                                           bFM0P_GPIO_DDR4_P49=1u; \
    02376                                           bFM0P_GPIO_PFR4_P49=0u; }while(0)
    02377
    02378
    02379 /*---- Fast GPIO bit P4A ----*/
    02380
    02381 #define FGPIO1PIN_P4A_GET             ( FM0P_FASTIO->FPDIR4_f.P4A )
    02382
    02383 #define FGPIO1PIN_P4A_PUT(v)          ( bFM0P_GPIO_FPDOR4_P4A=(v) )
    02384
    02385 #define FGPIO1PIN_P4A_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P4A_INITIN(v) \
    02386                                                          : FGPIO1PIN_P4A_INITOUT(v) )
    02387
    02388 #define FGPIO1PIN_P4A_INITIN(v)       do{ bFM0P_GPIO_PCR4_P4A=(v).bPullup; \
    02389                                           bFM0P_GPIO_DDR4_P4A=0u; \
    02390                                           bFM0P_GPIO_PFR4_P4A=0u; }while(0)
    02391
    02392 #define FGPIO1PIN_P4A_INITOUT(v)      do{ bFM0P_GPIO_FPDOR4_P4A=(v).bInitVal; \
    02393                                           bFM0P_GPIO_DDR4_P4A=1u; \
    02394                                           bFM0P_GPIO_PFR4_P4A=0u; }while(0)
    02395
    02396
    02397 /*---- Fast GPIO bit NP4A ----*/
    02398 #define FGPIO1PIN_NP4A_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR4_f.P4A)) )
    02399
    02400 #define FGPIO1PIN_NP4A_PUT(v)         ( bFM0P_GPIO_FPDOR4_P4A=(uint8_t)(~(v)) )
    02401
    02402 #define FGPIO1PIN_NP4A_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP4A_INITIN(v) \
    02403                                                          : FGPIO1PIN_NP4A_INITOUT(v) )
    02404
    02405 #define FGPIO1PIN_NP4A_INITIN(v)      do{ bFM0P_GPIO_PCR4_P4A=(v).bPullup; \
    02406                                           bFM0P_GPIO_DDR4_P4A=0u; \
    02407                                           bFM0P_GPIO_PFR4_P4A=0u; }while(0)
    02408
    02409 #define FGPIO1PIN_NP4A_INITOUT(v)     do{ bFM0P_GPIO_PDOR4_P4A=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02410                                           bFM0P_GPIO_DDR4_P4A=1u; \
    02411                                           bFM0P_GPIO_PFR4_P4A=0u; }while(0)
    02412
    02413
    02414 /*---- Fast GPIO bit P50 ----*/
    02415
    02416 #define FGPIO1PIN_P50_GET             ( FM0P_FASTIO->FPDIR5_f.P50 )
    02417
    02418 #define FGPIO1PIN_P50_PUT(v)          ( bFM0P_GPIO_FPDOR5_P50=(v) )
    02419
    02420 #define FGPIO1PIN_P50_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P50_INITIN(v) \
    02421                                                          : FGPIO1PIN_P50_INITOUT(v) )
    02422
    02423 #define FGPIO1PIN_P50_INITIN(v)       do{ bFM0P_GPIO_PCR5_P50=(v).bPullup; \
    02424                                           bFM0P_GPIO_DDR5_P50=0u; \
    02425                                           bFM0P_GPIO_PFR5_P50=0u; }while(0)
    02426
    02427 #define FGPIO1PIN_P50_INITOUT(v)      do{ bFM0P_GPIO_FPDOR5_P50=(v).bInitVal; \
    02428                                           bFM0P_GPIO_DDR5_P50=1u; \
    02429                                           bFM0P_GPIO_PFR5_P50=0u; }while(0)
    02430
    02431
    02432 /*---- Fast GPIO bit NP50 ----*/
    02433 #define FGPIO1PIN_NP50_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR5_f.P50)) )
    02434
    02435 #define FGPIO1PIN_NP50_PUT(v)         ( bFM0P_GPIO_FPDOR5_P50=(uint8_t)(~(v)) )
    02436
    02437 #define FGPIO1PIN_NP50_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP50_INITIN(v) \
    02438                                                          : FGPIO1PIN_NP50_INITOUT(v) )
    02439
    02440 #define FGPIO1PIN_NP50_INITIN(v)      do{ bFM0P_GPIO_PCR5_P50=(v).bPullup; \
    02441                                           bFM0P_GPIO_DDR5_P50=0u; \
    02442                                           bFM0P_GPIO_PFR5_P50=0u; }while(0)
    02443
    02444 #define FGPIO1PIN_NP50_INITOUT(v)     do{ bFM0P_GPIO_PDOR5_P50=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02445                                           bFM0P_GPIO_DDR5_P50=1u; \
    02446                                           bFM0P_GPIO_PFR5_P50=0u; }while(0)
    02447
    02448
    02449 /*---- Fast GPIO bit P51 ----*/
    02450
    02451 #define FGPIO1PIN_P51_GET             ( FM0P_FASTIO->FPDIR5_f.P51 )
    02452
    02453 #define FGPIO1PIN_P51_PUT(v)          ( bFM0P_GPIO_FPDOR5_P51=(v) )
    02454
    02455 #define FGPIO1PIN_P51_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P51_INITIN(v) \
    02456                                                          : FGPIO1PIN_P51_INITOUT(v) )
    02457
    02458 #define FGPIO1PIN_P51_INITIN(v)       do{ bFM0P_GPIO_PCR5_P51=(v).bPullup; \
    02459                                           bFM0P_GPIO_DDR5_P51=0u; \
    02460                                           bFM0P_GPIO_PFR5_P51=0u; }while(0)
    02461
    02462 #define FGPIO1PIN_P51_INITOUT(v)      do{ bFM0P_GPIO_FPDOR5_P51=(v).bInitVal; \
    02463                                           bFM0P_GPIO_DDR5_P51=1u; \
    02464                                           bFM0P_GPIO_PFR5_P51=0u; }while(0)
    02465
    02466
    02467 /*---- Fast GPIO bit NP51 ----*/
    02468 #define FGPIO1PIN_NP51_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR5_f.P51)) )
    02469
    02470 #define FGPIO1PIN_NP51_PUT(v)         ( bFM0P_GPIO_FPDOR5_P51=(uint8_t)(~(v)) )
    02471
    02472 #define FGPIO1PIN_NP51_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP51_INITIN(v) \
    02473                                                          : FGPIO1PIN_NP51_INITOUT(v) )
    02474
    02475 #define FGPIO1PIN_NP51_INITIN(v)      do{ bFM0P_GPIO_PCR5_P51=(v).bPullup; \
    02476                                           bFM0P_GPIO_DDR5_P51=0u; \
    02477                                           bFM0P_GPIO_PFR5_P51=0u; }while(0)
    02478
    02479 #define FGPIO1PIN_NP51_INITOUT(v)     do{ bFM0P_GPIO_PDOR5_P51=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02480                                           bFM0P_GPIO_DDR5_P51=1u; \
    02481                                           bFM0P_GPIO_PFR5_P51=0u; }while(0)
    02482
    02483
    02484 /*---- Fast GPIO bit P52 ----*/
    02485
    02486 #define FGPIO1PIN_P52_GET             ( FM0P_FASTIO->FPDIR5_f.P52 )
    02487
    02488 #define FGPIO1PIN_P52_PUT(v)          ( bFM0P_GPIO_FPDOR5_P52=(v) )
    02489
    02490 #define FGPIO1PIN_P52_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P52_INITIN(v) \
    02491                                                          : FGPIO1PIN_P52_INITOUT(v) )
    02492
    02493 #define FGPIO1PIN_P52_INITIN(v)       do{ bFM0P_GPIO_PCR5_P52=(v).bPullup; \
    02494                                           bFM0P_GPIO_DDR5_P52=0u; \
    02495                                           bFM0P_GPIO_PFR5_P52=0u; }while(0)
    02496
    02497 #define FGPIO1PIN_P52_INITOUT(v)      do{ bFM0P_GPIO_FPDOR5_P52=(v).bInitVal; \
    02498                                           bFM0P_GPIO_DDR5_P52=1u; \
    02499                                           bFM0P_GPIO_PFR5_P52=0u; }while(0)
    02500
    02501
    02502 /*---- Fast GPIO bit NP52 ----*/
    02503 #define FGPIO1PIN_NP52_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR5_f.P52)) )
    02504
    02505 #define FGPIO1PIN_NP52_PUT(v)         ( bFM0P_GPIO_FPDOR5_P52=(uint8_t)(~(v)) )
    02506
    02507 #define FGPIO1PIN_NP52_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP52_INITIN(v) \
    02508                                                          : FGPIO1PIN_NP52_INITOUT(v) )
    02509
    02510 #define FGPIO1PIN_NP52_INITIN(v)      do{ bFM0P_GPIO_PCR5_P52=(v).bPullup; \
    02511                                           bFM0P_GPIO_DDR5_P52=0u; \
    02512                                           bFM0P_GPIO_PFR5_P52=0u; }while(0)
    02513
    02514 #define FGPIO1PIN_NP52_INITOUT(v)     do{ bFM0P_GPIO_PDOR5_P52=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02515                                           bFM0P_GPIO_DDR5_P52=1u; \
    02516                                           bFM0P_GPIO_PFR5_P52=0u; }while(0)
    02517
    02518
    02519 /*---- Fast GPIO bit P60 ----*/
    02520
    02521 #define FGPIO1PIN_P60_GET             ( FM0P_FASTIO->FPDIR6_f.P60 )
    02522
    02523 #define FGPIO1PIN_P60_PUT(v)          ( bFM0P_GPIO_FPDOR6_P60=(v) )
    02524
    02525 #define FGPIO1PIN_P60_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P60_INITIN(v) \
    02526                                                          : FGPIO1PIN_P60_INITOUT(v) )
    02527
    02528 #define FGPIO1PIN_P60_INITIN(v)       do{ bFM0P_GPIO_PCR6_P60=(v).bPullup; \
    02529                                           bFM0P_GPIO_DDR6_P60=0u; \
    02530                                           bFM0P_GPIO_PFR6_P60=0u; }while(0)
    02531
    02532 #define FGPIO1PIN_P60_INITOUT(v)      do{ bFM0P_GPIO_FPDOR6_P60=(v).bInitVal; \
    02533                                           bFM0P_GPIO_DDR6_P60=1u; \
    02534                                           bFM0P_GPIO_PFR6_P60=0u; }while(0)
    02535
    02536
    02537 /*---- Fast GPIO bit NP60 ----*/
    02538 #define FGPIO1PIN_NP60_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR6_f.P60)) )
    02539
    02540 #define FGPIO1PIN_NP60_PUT(v)         ( bFM0P_GPIO_FPDOR6_P60=(uint8_t)(~(v)) )
    02541
    02542 #define FGPIO1PIN_NP60_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP60_INITIN(v) \
    02543                                                          : FGPIO1PIN_NP60_INITOUT(v) )
    02544
    02545 #define FGPIO1PIN_NP60_INITIN(v)      do{ bFM0P_GPIO_PCR6_P60=(v).bPullup; \
    02546                                           bFM0P_GPIO_DDR6_P60=0u; \
    02547                                           bFM0P_GPIO_PFR6_P60=0u; }while(0)
    02548
    02549 #define FGPIO1PIN_NP60_INITOUT(v)     do{ bFM0P_GPIO_PDOR6_P60=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02550                                           bFM0P_GPIO_DDR6_P60=1u; \
    02551                                           bFM0P_GPIO_PFR6_P60=0u; }while(0)
    02552
    02553
    02554 /*---- Fast GPIO bit P61 ----*/
    02555
    02556 #define FGPIO1PIN_P61_GET             ( FM0P_FASTIO->FPDIR6_f.P61 )
    02557
    02558 #define FGPIO1PIN_P61_PUT(v)          ( bFM0P_GPIO_FPDOR6_P61=(v) )
    02559
    02560 #define FGPIO1PIN_P61_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P61_INITIN(v) \
    02561                                                          : FGPIO1PIN_P61_INITOUT(v) )
    02562
    02563 #define FGPIO1PIN_P61_INITIN(v)       do{ bFM0P_GPIO_PCR6_P61=(v).bPullup; \
    02564                                           bFM0P_GPIO_DDR6_P61=0u; \
    02565                                           bFM0P_GPIO_PFR6_P61=0u; }while(0)
    02566
    02567 #define FGPIO1PIN_P61_INITOUT(v)      do{ bFM0P_GPIO_FPDOR6_P61=(v).bInitVal; \
    02568                                           bFM0P_GPIO_DDR6_P61=1u; \
    02569                                           bFM0P_GPIO_PFR6_P61=0u; }while(0)
    02570
    02571
    02572 /*---- Fast GPIO bit NP61 ----*/
    02573 #define FGPIO1PIN_NP61_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR6_f.P61)) )
    02574
    02575 #define FGPIO1PIN_NP61_PUT(v)         ( bFM0P_GPIO_FPDOR6_P61=(uint8_t)(~(v)) )
    02576
    02577 #define FGPIO1PIN_NP61_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP61_INITIN(v) \
    02578                                                          : FGPIO1PIN_NP61_INITOUT(v) )
    02579
    02580 #define FGPIO1PIN_NP61_INITIN(v)      do{ bFM0P_GPIO_PCR6_P61=(v).bPullup; \
    02581                                           bFM0P_GPIO_DDR6_P61=0u; \
    02582                                           bFM0P_GPIO_PFR6_P61=0u; }while(0)
    02583
    02584 #define FGPIO1PIN_NP61_INITOUT(v)     do{ bFM0P_GPIO_PDOR6_P61=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02585                                           bFM0P_GPIO_DDR6_P61=1u; \
    02586                                           bFM0P_GPIO_PFR6_P61=0u; }while(0)
    02587
    02588
    02589 /*---- Fast GPIO bit P80 ----*/
    02590
    02591 #define FGPIO1PIN_P80_GET             ( FM0P_FASTIO->FPDIR8_f.P80 )
    02592
    02593 #define FGPIO1PIN_P80_PUT(v)          ( bFM0P_GPIO_FPDOR8_P80=(v) )
    02594
    02595 #define FGPIO1PIN_P80_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P80_INITIN(v) \
    02596                                                          : FGPIO1PIN_P80_INITOUT(v) )
    02597
    02598 #define FGPIO1PIN_P80_INITIN(v)       do{ bFM0P_GPIO_PCR8_P80=(v).bPullup; \
    02599                                           bFM0P_GPIO_DDR8_P80=0u; \
    02600                                           bFM0P_GPIO_PFR8_P80=0u; }while(0)
    02601
    02602 #define FGPIO1PIN_P80_INITOUT(v)      do{ bFM0P_GPIO_FPDOR8_P80=(v).bInitVal; \
    02603                                           bFM0P_GPIO_DDR8_P80=1u; \
    02604                                           bFM0P_GPIO_PFR8_P80=0u; }while(0)
    02605
    02606
    02607 /*---- Fast GPIO bit NP80 ----*/
    02608 #define FGPIO1PIN_NP80_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR8_f.P80)) )
    02609
    02610 #define FGPIO1PIN_NP80_PUT(v)         ( bFM0P_GPIO_FPDOR8_P80=(uint8_t)(~(v)) )
    02611
    02612 #define FGPIO1PIN_NP80_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP80_INITIN(v) \
    02613                                                          : FGPIO1PIN_NP80_INITOUT(v) )
    02614
    02615 #define FGPIO1PIN_NP80_INITIN(v)      do{ bFM0P_GPIO_PCR8_P80=(v).bPullup; \
    02616                                           bFM0P_GPIO_DDR8_P80=0u; \
    02617                                           bFM0P_GPIO_PFR8_P80=0u; }while(0)
    02618
    02619 #define FGPIO1PIN_NP80_INITOUT(v)     do{ bFM0P_GPIO_PDOR8_P80=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02620                                           bFM0P_GPIO_DDR8_P80=1u; \
    02621                                           bFM0P_GPIO_PFR8_P80=0u; }while(0)
    02622
    02623
    02624 /*---- Fast GPIO bit P81 ----*/
    02625
    02626 #define FGPIO1PIN_P81_GET             ( FM0P_FASTIO->FPDIR8_f.P81 )
    02627
    02628 #define FGPIO1PIN_P81_PUT(v)          ( bFM0P_GPIO_FPDOR8_P81=(v) )
    02629
    02630 #define FGPIO1PIN_P81_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P81_INITIN(v) \
    02631                                                          : FGPIO1PIN_P81_INITOUT(v) )
    02632
    02633 #define FGPIO1PIN_P81_INITIN(v)       do{ bFM0P_GPIO_PCR8_P81=(v).bPullup; \
    02634                                           bFM0P_GPIO_DDR8_P81=0u; \
    02635                                           bFM0P_GPIO_PFR8_P81=0u; }while(0)
    02636
    02637 #define FGPIO1PIN_P81_INITOUT(v)      do{ bFM0P_GPIO_FPDOR8_P81=(v).bInitVal; \
    02638                                           bFM0P_GPIO_DDR8_P81=1u; \
    02639                                           bFM0P_GPIO_PFR8_P81=0u; }while(0)
    02640
    02641
    02642 /*---- Fast GPIO bit NP81 ----*/
    02643 #define FGPIO1PIN_NP81_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR8_f.P81)) )
    02644
    02645 #define FGPIO1PIN_NP81_PUT(v)         ( bFM0P_GPIO_FPDOR8_P81=(uint8_t)(~(v)) )
    02646
    02647 #define FGPIO1PIN_NP81_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP81_INITIN(v) \
    02648                                                          : FGPIO1PIN_NP81_INITOUT(v) )
    02649
    02650 #define FGPIO1PIN_NP81_INITIN(v)      do{ bFM0P_GPIO_PCR8_P81=(v).bPullup; \
    02651                                           bFM0P_GPIO_DDR8_P81=0u; \
    02652                                           bFM0P_GPIO_PFR8_P81=0u; }while(0)
    02653
    02654 #define FGPIO1PIN_NP81_INITOUT(v)     do{ bFM0P_GPIO_PDOR8_P81=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02655                                           bFM0P_GPIO_DDR8_P81=1u; \
    02656                                           bFM0P_GPIO_PFR8_P81=0u; }while(0)
    02657
    02658
    02659 /*---- Fast GPIO bit P82 ----*/
    02660
    02661 #define FGPIO1PIN_P82_GET             ( FM0P_FASTIO->FPDIR8_f.P82 )
    02662
    02663 #define FGPIO1PIN_P82_PUT(v)          ( bFM0P_GPIO_FPDOR8_P82=(v) )
    02664
    02665 #define FGPIO1PIN_P82_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_P82_INITIN(v) \
    02666                                                          : FGPIO1PIN_P82_INITOUT(v) )
    02667
    02668 #define FGPIO1PIN_P82_INITIN(v)       do{ bFM0P_GPIO_PCR8_P82=(v).bPullup; \
    02669                                           bFM0P_GPIO_DDR8_P82=0u; \
    02670                                           bFM0P_GPIO_PFR8_P82=0u; }while(0)
    02671
    02672 #define FGPIO1PIN_P82_INITOUT(v)      do{ bFM0P_GPIO_FPDOR8_P82=(v).bInitVal; \
    02673                                           bFM0P_GPIO_DDR8_P82=1u; \
    02674                                           bFM0P_GPIO_PFR8_P82=0u; }while(0)
    02675
    02676
    02677 /*---- Fast GPIO bit NP82 ----*/
    02678 #define FGPIO1PIN_NP82_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIR8_f.P82)) )
    02679
    02680 #define FGPIO1PIN_NP82_PUT(v)         ( bFM0P_GPIO_FPDOR8_P82=(uint8_t)(~(v)) )
    02681
    02682 #define FGPIO1PIN_NP82_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NP82_INITIN(v) \
    02683                                                          : FGPIO1PIN_NP82_INITOUT(v) )
    02684
    02685 #define FGPIO1PIN_NP82_INITIN(v)      do{ bFM0P_GPIO_PCR8_P82=(v).bPullup; \
    02686                                           bFM0P_GPIO_DDR8_P82=0u; \
    02687                                           bFM0P_GPIO_PFR8_P82=0u; }while(0)
    02688
    02689 #define FGPIO1PIN_NP82_INITOUT(v)     do{ bFM0P_GPIO_PDOR8_P82=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02690                                           bFM0P_GPIO_DDR8_P82=1u; \
    02691                                           bFM0P_GPIO_PFR8_P82=0u; }while(0)
    02692
    02693
    02694 /*---- Fast GPIO bit PE0 ----*/
    02695
    02696 #define FGPIO1PIN_PE0_GET             ( FM0P_FASTIO->FPDIRE_f.PE0 )
    02697
    02698 #define FGPIO1PIN_PE0_PUT(v)          ( bFM0P_GPIO_FPDORE_PE0=(v) )
    02699
    02700 #define FGPIO1PIN_PE0_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_PE0_INITIN(v) \
    02701                                                          : FGPIO1PIN_PE0_INITOUT(v) )
    02702
    02703 #define FGPIO1PIN_PE0_INITIN(v)       do{ bFM0P_GPIO_PCRE_PE0=(v).bPullup; \
    02704                                           bFM0P_GPIO_DDRE_PE0=0u; \
    02705                                           bFM0P_GPIO_PFRE_PE0=0u; }while(0)
    02706
    02707 #define FGPIO1PIN_PE0_INITOUT(v)      do{ bFM0P_GPIO_FPDORE_PE0=(v).bInitVal; \
    02708                                           bFM0P_GPIO_DDRE_PE0=1u; \
    02709                                           bFM0P_GPIO_PFRE_PE0=0u; }while(0)
    02710
    02711
    02712 /*---- Fast GPIO bit NPE0 ----*/
    02713 #define FGPIO1PIN_NPE0_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIRE_f.PE0)) )
    02714
    02715 #define FGPIO1PIN_NPE0_PUT(v)         ( bFM0P_GPIO_FPDORE_PE0=(uint8_t)(~(v)) )
    02716
    02717 #define FGPIO1PIN_NPE0_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NPE0_INITIN(v) \
    02718                                                          : FGPIO1PIN_NPE0_INITOUT(v) )
    02719
    02720 #define FGPIO1PIN_NPE0_INITIN(v)      do{ bFM0P_GPIO_PCRE_PE0=(v).bPullup; \
    02721                                           bFM0P_GPIO_DDRE_PE0=0u; \
    02722                                           bFM0P_GPIO_PFRE_PE0=0u; }while(0)
    02723
    02724 #define FGPIO1PIN_NPE0_INITOUT(v)     do{ bFM0P_GPIO_PDORE_PE0=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02725                                           bFM0P_GPIO_DDRE_PE0=1u; \
    02726                                           bFM0P_GPIO_PFRE_PE0=0u; }while(0)
    02727
    02728
    02729 /*---- Fast GPIO bit PE2 ----*/
    02730
    02731 #define FGPIO1PIN_PE2_GET             ( FM0P_FASTIO->FPDIRE_f.PE2 )
    02732
    02733 #define FGPIO1PIN_PE2_PUT(v)          ( bFM0P_GPIO_FPDORE_PE2=(v) )
    02734
    02735 #define FGPIO1PIN_PE2_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_PE2_INITIN(v) \
    02736                                                          : FGPIO1PIN_PE2_INITOUT(v) )
    02737
    02738 #define FGPIO1PIN_PE2_INITIN(v)       do{ bFM0P_GPIO_PCRE_PE2=(v).bPullup; \
    02739                                           bFM0P_GPIO_DDRE_PE2=0u; \
    02740                                           bFM0P_GPIO_SPSR_MAINXC0=0u; \
    02741                                           bFM0P_GPIO_SPSR_MAINXC1=0u; \
    02742                                           bFM0P_GPIO_PFRE_PE2=0u; }while(0)
    02743
    02744 #define FGPIO1PIN_PE2_INITOUT(v)      do{ bFM0P_GPIO_FPDORE_PE2=(v).bInitVal; \
    02745                                           bFM0P_GPIO_DDRE_PE2=1u; \
    02746                                           bFM0P_GPIO_SPSR_MAINXC0=0u; \
    02747                                           bFM0P_GPIO_SPSR_MAINXC1=0u; \
    02748                                           bFM0P_GPIO_PFRE_PE2=0u; }while(0)
    02749
    02750
    02751 /*---- Fast GPIO bit NPE2 ----*/
    02752 #define FGPIO1PIN_NPE2_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIRE_f.PE2)) )
    02753
    02754 #define FGPIO1PIN_NPE2_PUT(v)         ( bFM0P_GPIO_FPDORE_PE2=(uint8_t)(~(v)) )
    02755
    02756 #define FGPIO1PIN_NPE2_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NPE2_INITIN(v) \
    02757                                                          : FGPIO1PIN_NPE2_INITOUT(v) )
    02758
    02759 #define FGPIO1PIN_NPE2_INITIN(v)      do{ bFM0P_GPIO_PCRE_PE2=(v).bPullup; \
    02760                                           bFM0P_GPIO_DDRE_PE2=0u; \
    02761                                           bFM0P_GPIO_SPSR_MAINXC0=0u; \
    02762                                           bFM0P_GPIO_SPSR_MAINXC1=0u; \
    02763                                           bFM0P_GPIO_PFRE_PE2=0u; }while(0)
    02764
    02765 #define FGPIO1PIN_NPE2_INITOUT(v)     do{ bFM0P_GPIO_PDORE_PE2=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02766                                           bFM0P_GPIO_DDRE_PE2=1u; \
    02767                                           bFM0P_GPIO_SPSR_MAINXC0=0u; \
    02768                                           bFM0P_GPIO_SPSR_MAINXC1=0u; \
    02769                                           bFM0P_GPIO_PFRE_PE2=0u; }while(0)
    02770
    02771
    02772 /*---- Fast GPIO bit PE3 ----*/
    02773
    02774 #define FGPIO1PIN_PE3_GET             ( FM0P_FASTIO->FPDIRE_f.PE3 )
    02775
    02776 #define FGPIO1PIN_PE3_PUT(v)          ( bFM0P_GPIO_FPDORE_PE3=(v) )
    02777
    02778 #define FGPIO1PIN_PE3_INIT(v)         ( (0==(v).bOutput) ? FGPIO1PIN_PE3_INITIN(v) \
    02779                                                          : FGPIO1PIN_PE3_INITOUT(v) )
    02780
    02781 #define FGPIO1PIN_PE3_INITIN(v)       do{ bFM0P_GPIO_PCRE_PE3=(v).bPullup; \
    02782                                           bFM0P_GPIO_DDRE_PE3=0u; \
    02783                                           bFM0P_GPIO_SPSR_MAINXC0=0u; \
    02784                                           bFM0P_GPIO_SPSR_MAINXC1=0u; \
    02785                                           bFM0P_GPIO_PFRE_PE3=0u; }while(0)
    02786
    02787 #define FGPIO1PIN_PE3_INITOUT(v)      do{ bFM0P_GPIO_FPDORE_PE3=(v).bInitVal; \
    02788                                           bFM0P_GPIO_DDRE_PE3=1u; \
    02789                                           bFM0P_GPIO_SPSR_MAINXC0=0u; \
    02790                                           bFM0P_GPIO_SPSR_MAINXC1=0u; \
    02791                                           bFM0P_GPIO_PFRE_PE3=0u; }while(0)
    02792
    02793
    02794 /*---- Fast GPIO bit NPE3 ----*/
    02795 #define FGPIO1PIN_NPE3_GET            ( (uint8_t)(!(FM0P_FASTIO->FPDIRE_f.PE3)) )
    02796
    02797 #define FGPIO1PIN_NPE3_PUT(v)         ( bFM0P_GPIO_FPDORE_PE3=(uint8_t)(~(v)) )
    02798
    02799 #define FGPIO1PIN_NPE3_INIT(v)        ( (0==(v).bOutput) ? FGPIO1PIN_NPE3_INITIN(v) \
    02800                                                          : FGPIO1PIN_NPE3_INITOUT(v) )
    02801
    02802 #define FGPIO1PIN_NPE3_INITIN(v)      do{ bFM0P_GPIO_PCRE_PE3=(v).bPullup; \
    02803                                           bFM0P_GPIO_DDRE_PE3=0u; \
    02804                                           bFM0P_GPIO_SPSR_MAINXC0=0u; \
    02805                                           bFM0P_GPIO_SPSR_MAINXC1=0u; \
    02806                                           bFM0P_GPIO_PFRE_PE3=0u; }while(0)
    02807
    02808 #define FGPIO1PIN_NPE3_INITOUT(v)     do{ bFM0P_GPIO_PDORE_PE3=(uint8_t)(~((uint8_t)(v).bInitVal)); \
    02809                                           bFM0P_GPIO_DDRE_PE3=1u; \
    02810                                           bFM0P_GPIO_SPSR_MAINXC0=0u; \
    02811                                           bFM0P_GPIO_SPSR_MAINXC1=0u; \
    02812                                           bFM0P_GPIO_PFRE_PE3=0u; }while(0)
    02813
    02814
    02815
    02816 /******************************************************************************
    02817    PIN RELOCATION
    02818 *******************************************************************************/
    02819
    02820 /*--- ADTG_1 for ADC#0 ---*/
    02821 #define SetPinFunc_ADTG_1_ADC0(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 12u, 4u, 0x02u ); \
    02822                                                  bFM0P_GPIO_PFRE_PE0 = 1u; }while(0)
    02823
    02824 /*--- ADTG_1 for ADC#1 ---*/
    02825 #define SetPinFunc_ADTG_1_ADC1(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 16u, 4u, 0x02u ); \
    02826                                                  bFM0P_GPIO_PFRE_PE0 = 1u; }while(0)
    02827
    02828 /*--- ADTG_1 for ADC#2 ---*/
    02829 #define SetPinFunc_ADTG_1_ADC2(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 20u, 4u, 0x02u ); \
    02830                                                  bFM0P_GPIO_PFRE_PE0 = 1u; }while(0)
    02831
    02832 /*--- ADTG_2 for ADC#0 ---*/
    02833 #define SetPinFunc_ADTG_2_ADC0(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 12u, 4u, 0x03u ); \
    02834                                                  bFM0P_GPIO_PFR3_P39 = 1u; }while(0)
    02835
    02836 /*--- ADTG_2 for ADC#1 ---*/
    02837 #define SetPinFunc_ADTG_2_ADC1(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 16u, 4u, 0x03u ); \
    02838                                                  bFM0P_GPIO_PFR3_P39 = 1u; }while(0)
    02839
    02840 /*--- ADTG_2 for ADC#2 ---*/
    02841 #define SetPinFunc_ADTG_2_ADC2(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 20u, 4u, 0x03u ); \
    02842                                                  bFM0P_GPIO_PFR3_P39 = 1u; }while(0)
    02843
    02844 /*--- AIN0_0 ---*/
    02845 #define SetPinFunc_AIN0_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 0u, 2u, 0x01u ); \
    02846                                                  bFM0P_GPIO_PFR3_P3D = 1u; }while(0)
    02847
    02848 /*--- AIN0_1 ---*/
    02849 #define SetPinFunc_AIN0_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 0u, 2u, 0x02u ); \
    02850                                                  bFM0P_GPIO_PFR2_P23 = 1u; \
    02851                                                  bFM0P_GPIO_ADE_AN06 = 0u; }while(0)
    02852
    02853 /*--- AIN0_2 ---*/
    02854 #define SetPinFunc_AIN0_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 0u, 2u, 0x03u ); \
    02855                                                  bFM0P_GPIO_PFR5_P50 = 1u; }while(0)
    02856
    02857 /*--- AIN0_3 ---*/
    02858 #define SetPinFunc_AIN0_3(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 0u, 2u, 0x00u ); \
    02859                                                  bFM0P_GPIO_EPFR21_QAIN0S = 1u; \
    02860                                                  bFM0P_GPIO_PFR3_P3A = 1u; }while(0)
    02861
    02862 /*--- BIN0_0 ---*/
    02863 #define SetPinFunc_BIN0_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 2u, 2u, 0x01u ); \
    02864                                                  bFM0P_GPIO_PFR3_P3E = 1u; }while(0)
    02865
    02866 /*--- BIN0_1 ---*/
    02867 #define SetPinFunc_BIN0_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 2u, 2u, 0x02u ); \
    02868                                                  bFM0P_GPIO_PFR2_P21 = 1u; }while(0)
    02869
    02870 /*--- BIN0_2 ---*/
    02871 #define SetPinFunc_BIN0_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 2u, 2u, 0x03u ); \
    02872                                                  bFM0P_GPIO_PFR5_P51 = 1u; }while(0)
    02873
    02874 /*--- BIN0_3 ---*/
    02875 #define SetPinFunc_BIN0_3(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 2u, 2u, 0x00u ); \
    02876                                                  bFM0P_GPIO_EPFR21_QBIN0S = 1u; \
    02877                                                  bFM0P_GPIO_PFR3_P3B = 1u; }while(0)
    02878
    02879 /*--- CROUT_1 ---*/
    02880 #define SetPinFunc_CROUT_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR00, 1u, 2u, 0x02u ); \
    02881                                                  bFM0P_GPIO_PFR0_P0F = 1u; }while(0)
    02882
    02883 /*--- DTTI0X_0 ---*/
    02884 #define SetPinFunc_DTTI0X_0(dummy)           do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 16u, 2u, 0x01u ); \
    02885                                                  bFM0P_GPIO_PFR3_P39 = 1u; }while(0)
    02886
    02887 /*--- DTTI0X_1 ---*/
    02888 #define SetPinFunc_DTTI0X_1(dummy)           do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 16u, 2u, 0x02u ); \
    02889                                                  bFM0P_GPIO_PFRE_PE0 = 1u; }while(0)
    02890
    02891 /*--- DTTI0X_2 ---*/
    02892 #define SetPinFunc_DTTI0X_2(dummy)           do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 16u, 2u, 0x03u ); \
    02893                                                  bFM0P_GPIO_PFR6_P61 = 1u; }while(0)
    02894
    02895 /*--- FRCK0_0 ---*/
    02896 #define SetPinFunc_FRCK0_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 18u, 2u, 0x01u ); \
    02897                                                  bFM0P_GPIO_PFR2_P21 = 1u; }while(0)
    02898
    02899 /*--- FRCK0_1 ---*/
    02900 #define SetPinFunc_FRCK0_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 18u, 2u, 0x02u ); \
    02901                                                  bFM0P_GPIO_PFR8_P80 = 1u; }while(0)
    02902
    02903 /*--- FRCK0_2 ---*/
    02904 #define SetPinFunc_FRCK0_2(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 18u, 2u, 0x03u ); \
    02905                                                  bFM0P_GPIO_PFR1_P11 = 1u; \
    02906                                                  bFM0P_GPIO_ADE_AN01 = 0u; }while(0)
    02907
    02908 /*--- IC00_0 ---*/
    02909 #define SetPinFunc_IC00_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 20u, 3u, 0x01u ); \
    02910                                                  bFM0P_GPIO_PFR6_P60 = 1u; }while(0)
    02911
    02912 /*--- IC00_2 ---*/
    02913 #define SetPinFunc_IC00_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 20u, 3u, 0x03u ); \
    02914                                                  bFM0P_GPIO_PFR1_P12 = 1u; \
    02915                                                  bFM0P_GPIO_ADE_AN02 = 0u; }while(0)
    02916
    02917 /*--- IC01_0 ---*/
    02918 #define SetPinFunc_IC01_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 23u, 3u, 0x01u ); \
    02919                                                  bFM0P_GPIO_PFR5_P50 = 1u; }while(0)
    02920
    02921 /*--- IC01_1 ---*/
    02922 #define SetPinFunc_IC01_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 23u, 3u, 0x02u ); \
    02923                                                  bFM0P_GPIO_PFR2_P21 = 1u; }while(0)
    02924
    02925 /*--- IC01_2 ---*/
    02926 #define SetPinFunc_IC01_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 23u, 3u, 0x03u ); \
    02927                                                  bFM0P_GPIO_PFR1_P13 = 1u; \
    02928                                                  bFM0P_GPIO_ADE_AN03 = 0u; }while(0)
    02929
    02930 /*--- IC02_0 ---*/
    02931 #define SetPinFunc_IC02_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 26u, 3u, 0x01u ); \
    02932                                                  bFM0P_GPIO_PFR1_P11 = 1u; \
    02933                                                  bFM0P_GPIO_ADE_AN01 = 0u; }while(0)
    02934
    02935 /*--- IC02_1 ---*/
    02936 #define SetPinFunc_IC02_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 26u, 3u, 0x02u ); \
    02937                                                  bFM0P_GPIO_PFR2_P23 = 1u; \
    02938                                                  bFM0P_GPIO_ADE_AN06 = 0u; }while(0)
    02939
    02940 /*--- IC02_2 ---*/
    02941 #define SetPinFunc_IC02_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 26u, 3u, 0x03u ); \
    02942                                                  bFM0P_GPIO_PFR1_P14 = 1u; \
    02943                                                  bFM0P_GPIO_ADE_AN04 = 0u; }while(0)
    02944
    02945 /*--- IC03_1 ---*/
    02946 #define SetPinFunc_IC03_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 29u, 3u, 0x02u ); \
    02947                                                  bFM0P_GPIO_PFR2_P22 = 1u; \
    02948                                                  bFM0P_GPIO_ADE_AN07 = 0u; }while(0)
    02949
    02950 /*--- IC03_2 ---*/
    02951 #define SetPinFunc_IC03_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 29u, 3u, 0x03u ); \
    02952                                                  bFM0P_GPIO_PFR1_P15 = 1u; \
    02953                                                  bFM0P_GPIO_ADE_AN05 = 0u; }while(0)
    02954
    02955 /*--- IGTRG0_0 ---*/
    02956 #define SetPinFunc_IGTRG0_0(dummy)           do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 13u, 1u, 0x00u ); \
    02957                                                  bFM0P_GPIO_PFR6_P60 = 1u; }while(0)
    02958
    02959 /*--- IGTRG0_1 ---*/
    02960 #define SetPinFunc_IGTRG0_1(dummy)           do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 13u, 1u, 0x01u ); \
    02961                                                  bFM0P_GPIO_PFR0_P04 = 1u; }while(0)
    02962
    02963 /*--- INT00_0 ---*/
    02964 #define SetPinFunc_INT00_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 0u, 2u, 0x01u ); \
    02965                                                  bFM0P_GPIO_PFR5_P50 = 1u; }while(0)
    02966
    02967 /*--- INT00_1 ---*/
    02968 #define SetPinFunc_INT00_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 0u, 2u, 0x02u ); \
    02969                                                  bFM0P_GPIO_PFR1_P13 = 1u; \
    02970                                                  bFM0P_GPIO_ADE_AN03 = 0u; }while(0)
    02971
    02972 /*--- INT01_0 ---*/
    02973 #define SetPinFunc_INT01_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 2u, 2u, 0x01u ); \
    02974                                                  bFM0P_GPIO_PFR5_P51 = 1u; }while(0)
    02975
    02976 /*--- INT01_1 ---*/
    02977 #define SetPinFunc_INT01_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 2u, 2u, 0x02u ); \
    02978                                                  bFM0P_GPIO_PFR1_P12 = 1u; \
    02979                                                  bFM0P_GPIO_ADE_AN02 = 0u; }while(0)
    02980
    02981 /*--- INT02_0 ---*/
    02982 #define SetPinFunc_INT02_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 4u, 2u, 0x01u ); \
    02983                                                  bFM0P_GPIO_PFR5_P52 = 1u; }while(0)
    02984
    02985 /*--- INT02_1 ---*/
    02986 #define SetPinFunc_INT02_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 4u, 2u, 0x02u ); \
    02987                                                  bFM0P_GPIO_PFR1_P11 = 1u; \
    02988                                                  bFM0P_GPIO_ADE_AN01 = 0u; }while(0)
    02989
    02990 /*--- INT02_2 ---*/
    02991 #define SetPinFunc_INT02_2(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 4u, 2u, 0x03u ); \
    02992                                                  bFM0P_GPIO_PFRE_PE0 = 1u; }while(0)
    02993
    02994 /*--- INT03_0 ---*/
    02995 #define SetPinFunc_INT03_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 6u, 2u, 0x01u ); \
    02996                                                  bFM0P_GPIO_PFR3_P3A = 1u; }while(0)
    02997
    02998 /*--- INT03_1 ---*/
    02999 #define SetPinFunc_INT03_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 6u, 2u, 0x02u ); \
    03000                                                  bFM0P_GPIO_PFR1_P14 = 1u; \
    03001                                                  bFM0P_GPIO_ADE_AN04 = 0u; }while(0)
    03002
    03003 /*--- INT03_2 ---*/
    03004 #define SetPinFunc_INT03_2(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 6u, 2u, 0x03u ); \
    03005                                                  bFM0P_GPIO_PFR0_P04 = 1u; }while(0)
    03006
    03007 /*--- INT04_0 ---*/
    03008 #define SetPinFunc_INT04_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 8u, 2u, 0x01u ); \
    03009                                                  bFM0P_GPIO_PFR3_P3B = 1u; }while(0)
    03010
    03011 /*--- INT04_1 ---*/
    03012 #define SetPinFunc_INT04_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 8u, 2u, 0x02u ); \
    03013                                                  bFM0P_GPIO_PFR2_P23 = 1u; \
    03014                                                  bFM0P_GPIO_ADE_AN06 = 0u; }while(0)
    03015
    03016 /*--- INT05_0 ---*/
    03017 #define SetPinFunc_INT05_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 10u, 2u, 0x01u ); \
    03018                                                  bFM0P_GPIO_PFR3_P3C = 1u; }while(0)
    03019
    03020 /*--- INT05_1 ---*/
    03021 #define SetPinFunc_INT05_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 10u, 2u, 0x02u ); \
    03022                                                  bFM0P_GPIO_PFR2_P22 = 1u; \
    03023                                                  bFM0P_GPIO_ADE_AN07 = 0u; }while(0)
    03024
    03025 /*--- INT06_0 ---*/
    03026 #define SetPinFunc_INT06_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 12u, 2u, 0x01u ); \
    03027                                                  bFM0P_GPIO_PFR3_P3D = 1u; }while(0)
    03028
    03029 /*--- INT06_1 ---*/
    03030 #define SetPinFunc_INT06_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 12u, 2u, 0x02u ); \
    03031                                                  bFM0P_GPIO_PFR2_P21 = 1u; }while(0)
    03032
    03033 /*--- INT15_0 ---*/
    03034 #define SetPinFunc_INT15_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 30u, 2u, 0x01u ); \
    03035                                                  bFM0P_GPIO_PFR3_P3E = 1u; }while(0)
    03036
    03037 /*--- INT15_1 ---*/
    03038 #define SetPinFunc_INT15_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 30u, 2u, 0x02u ); \
    03039                                                  bFM0P_GPIO_PFR6_P60 = 1u; }while(0)
    03040
    03041 /*--- INT15_2 ---*/
    03042 #define SetPinFunc_INT15_2(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR06, 30u, 2u, 0x03u ); \
    03043                                                  bFM0P_GPIO_PFR1_P15 = 1u; \
    03044                                                  bFM0P_GPIO_ADE_AN05 = 0u; }while(0)
    03045
    03046 /*--- NMIX ---*/
    03047 #define SetPinFunc_NMIX(dummy)               do{ bFM0P_GPIO_EPFR00_NMIS = 1; \
    03048                                                  bFM0P_GPIO_PFR0_P0F = 1u; }while(0)
    03049
    03050 /*--- RTCCO_0 ---*/
    03051 #define SetPinFunc_RTCCO_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR00, 4u, 2u, 0x01u ); \
    03052                                                  bFM0P_GPIO_PFR0_P0F = 1u; }while(0)
    03053
    03054 /*--- RTCCO_1 ---*/
    03055 #define SetPinFunc_RTCCO_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR00, 4u, 2u, 0x02u ); \
    03056                                                  bFM0P_GPIO_PFR1_P13 = 1u; \
    03057                                                  bFM0P_GPIO_ADE_AN03 = 0u; }while(0)
    03058
    03059 /*--- RTCCO_2 ---*/
    03060 #define SetPinFunc_RTCCO_2(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR00, 4u, 2u, 0x03u ); \
    03061                                                  bFM0P_GPIO_PFR3_P3A = 1u; }while(0)
    03062
    03063 /*--- RTO00_0 ---*/
    03064 #define SetPinFunc_RTO00_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 0u, 2u, 0x01u ); \
    03065                                                  bFM0P_GPIO_PFR3_P3A = 1u; }while(0)
    03066
    03067 /*--- RTO01_0 ---*/
    03068 #define SetPinFunc_RTO01_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 2u, 2u, 0x01u ); \
    03069                                                  bFM0P_GPIO_PFR3_P3B = 1u; }while(0)
    03070
    03071 /*--- RTO02_0 ---*/
    03072 #define SetPinFunc_RTO02_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 4u, 2u, 0x01u ); \
    03073                                                  bFM0P_GPIO_PFR3_P3C = 1u; }while(0)
    03074
    03075 /*--- RTO03_0 ---*/
    03076 #define SetPinFunc_RTO03_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 6u, 2u, 0x01u ); \
    03077                                                  bFM0P_GPIO_PFR3_P3D = 1u; }while(0)
    03078
    03079 /*--- RTO04_0 ---*/
    03080 #define SetPinFunc_RTO04_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 8u, 2u, 0x01u ); \
    03081                                                  bFM0P_GPIO_PFR3_P3E = 1u; }while(0)
    03082
    03083 /*--- RTO05_0 ---*/
    03084 #define SetPinFunc_RTO05_0(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR01, 10u, 2u, 0x01u ); \
    03085                                                  bFM0P_GPIO_PFR3_P3F = 1u; }while(0)
    03086
    03087 /*--- SCK0_0 ---*/
    03088 #define SetPinFunc_SCK0_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 8u, 2u, 0x01u ); \
    03089                                                  bFM0P_GPIO_PFR2_P23 = 1u; \
    03090                                                  bFM0P_GPIO_ADE_AN06 = 0u; }while(0)
    03091
    03092 /*--- SCK0_2 ---*/
    03093 #define SetPinFunc_SCK0_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 8u, 2u, 0x03u ); \
    03094                                                  bFM0P_GPIO_PFR3_P3A = 1u; }while(0)
    03095
    03096 /*--- SCK1_1 ---*/
    03097 #define SetPinFunc_SCK1_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 14u, 2u, 0x02u ); \
    03098                                                  bFM0P_GPIO_PFR1_P13 = 1u; \
    03099                                                  bFM0P_GPIO_ADE_AN03 = 0u; }while(0)
    03100
    03101 /*--- SCK1_2 ---*/
    03102 #define SetPinFunc_SCK1_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 14u, 2u, 0x03u ); \
    03103                                                  bFM0P_GPIO_PFR8_P80 = 1u; }while(0)
    03104
    03105 /*--- SCK3_0 ---*/
    03106 #define SetPinFunc_SCK3_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 26u, 2u, 0x01u ); \
    03107                                                  bFM0P_GPIO_PFR0_P04 = 1u; }while(0)
    03108
    03109 /*--- SCK3_1 ---*/
    03110 #define SetPinFunc_SCK3_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 26u, 2u, 0x02u ); \
    03111                                                  bFM0P_GPIO_PFR5_P52 = 1u; }while(0)
    03112
    03113 /*--- SCK3_2 ---*/
    03114 #define SetPinFunc_SCK3_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 26u, 2u, 0x03u ); \
    03115                                                  bFM0P_GPIO_PFR3_P3D = 1u; }while(0)
    03116
    03117 /*--- SCS10_1 ---*/
    03118 #define SetPinFunc_SCS10_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR22, 4u, 2u, 0x02u ); \
    03119                                                  bFM0P_GPIO_PFR1_P14 = 1u; \
    03120                                                  bFM0P_GPIO_ADE_AN04 = 0u; }while(0)
    03121
    03122 /*--- SCS10_2 ---*/
    03123 #define SetPinFunc_SCS10_2(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR22, 4u, 2u, 0x03u ); \
    03124                                                  bFM0P_GPIO_PFR6_P60 = 1u; }while(0)
    03125
    03126 /*--- SCS11_1 ---*/
    03127 #define SetPinFunc_SCS11_1(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR22, 6u, 2u, 0x02u ); \
    03128                                                  bFM0P_GPIO_PFR1_P15 = 1u; \
    03129                                                  bFM0P_GPIO_ADE_AN05 = 0u; }while(0)
    03130
    03131 /*--- SCS11_2 ---*/
    03132 #define SetPinFunc_SCS11_2(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR22, 6u, 2u, 0x03u ); \
    03133                                                  bFM0P_GPIO_PFR6_P61 = 1u; }while(0)
    03134
    03135 /*--- SCS30_2 ---*/
    03136 #define SetPinFunc_SCS30_2(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR22, 12u, 2u, 0x03u ); \
    03137                                                  bFM0P_GPIO_PFR3_P3C = 1u; }while(0)
    03138
    03139 /*--- SCS31_2 ---*/
    03140 #define SetPinFunc_SCS31_2(dummy)            do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR22, 14u, 2u, 0x03u ); \
    03141                                                  bFM0P_GPIO_PFR3_P3B = 1u; }while(0)
    03142
    03143 /*--- SIN0_0 ---*/
    03144 #define SetPinFunc_SIN0_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 4u, 2u, 0x01u ); \
    03145                                                  bFM0P_GPIO_PFR2_P21 = 1u; }while(0)
    03146
    03147 /*--- SIN0_1 ---*/
    03148 #define SetPinFunc_SIN0_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 4u, 2u, 0x02u ); \
    03149                                                  bFM0P_GPIO_PFR1_P14 = 1u; \
    03150                                                  bFM0P_GPIO_ADE_AN04 = 0u; }while(0)
    03151
    03152 /*--- SIN0_2 ---*/
    03153 #define SetPinFunc_SIN0_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 4u, 2u, 0x03u ); \
    03154                                                  bFM0P_GPIO_PFR3_P3C = 1u; }while(0)
    03155
    03156 /*--- SIN1_1 ---*/
    03157 #define SetPinFunc_SIN1_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 10u, 2u, 0x02u ); \
    03158                                                  bFM0P_GPIO_PFR1_P11 = 1u; \
    03159                                                  bFM0P_GPIO_ADE_AN01 = 0u; }while(0)
    03160
    03161 /*--- SIN1_2 ---*/
    03162 #define SetPinFunc_SIN1_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 10u, 2u, 0x03u ); \
    03163                                                  bFM0P_GPIO_PFR8_P82 = 1u; }while(0)
    03164
    03165 /*--- SIN3_0 ---*/
    03166 #define SetPinFunc_SIN3_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 22u, 2u, 0x01u ); \
    03167                                                  bFM0P_GPIO_PFR6_P60 = 1u; }while(0)
    03168
    03169 /*--- SIN3_1 ---*/
    03170 #define SetPinFunc_SIN3_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 22u, 2u, 0x02u ); \
    03171                                                  bFM0P_GPIO_PFR5_P50 = 1u; }while(0)
    03172
    03173 /*--- SIN3_2 ---*/
    03174 #define SetPinFunc_SIN3_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 22u, 2u, 0x03u ); \
    03175                                                  bFM0P_GPIO_PFR3_P3F = 1u; }while(0)
    03176
    03177 /*--- SOT0_0 ---*/
    03178 #define SetPinFunc_SOT0_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 6u, 2u, 0x01u ); \
    03179                                                  bFM0P_GPIO_PFR2_P22 = 1u; \
    03180                                                  bFM0P_GPIO_ADE_AN07 = 0u; }while(0)
    03181
    03182 /*--- SOT0_1 ---*/
    03183 #define SetPinFunc_SOT0_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 6u, 2u, 0x02u ); \
    03184                                                  bFM0P_GPIO_PFR1_P15 = 1u; \
    03185                                                  bFM0P_GPIO_ADE_AN05 = 0u; }while(0)
    03186
    03187 /*--- SOT0_2 ---*/
    03188 #define SetPinFunc_SOT0_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 6u, 2u, 0x03u ); \
    03189                                                  bFM0P_GPIO_PFR3_P3B = 1u; }while(0)
    03190
    03191 /*--- SOT1_1 ---*/
    03192 #define SetPinFunc_SOT1_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 12u, 2u, 0x02u ); \
    03193                                                  bFM0P_GPIO_PFR1_P12 = 1u; \
    03194                                                  bFM0P_GPIO_ADE_AN02 = 0u; }while(0)
    03195
    03196 /*--- SOT1_2 ---*/
    03197 #define SetPinFunc_SOT1_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 12u, 2u, 0x03u ); \
    03198                                                  bFM0P_GPIO_PFR8_P81 = 1u; }while(0)
    03199
    03200 /*--- SOT3_0 ---*/
    03201 #define SetPinFunc_SOT3_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 24u, 2u, 0x01u ); \
    03202                                                  bFM0P_GPIO_PFR6_P61 = 1u; }while(0)
    03203
    03204 /*--- SOT3_1 ---*/
    03205 #define SetPinFunc_SOT3_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 24u, 2u, 0x02u ); \
    03206                                                  bFM0P_GPIO_PFR5_P51 = 1u; }while(0)
    03207
    03208 /*--- SOT3_2 ---*/
    03209 #define SetPinFunc_SOT3_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR07, 24u, 2u, 0x03u ); \
    03210                                                  bFM0P_GPIO_PFR3_P3E = 1u; }while(0)
    03211
    03212 /*--- SUBOUT_0 ---*/
    03213 #define SetPinFunc_SUBOUT_0(dummy)           do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR00, 6u, 2u, 0x01u ); \
    03214                                                  bFM0P_GPIO_PFR0_P0F = 1u; }while(0)
    03215
    03216 /*--- SUBOUT_1 ---*/
    03217 #define SetPinFunc_SUBOUT_1(dummy)           do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR00, 6u, 2u, 0x02u ); \
    03218                                                  bFM0P_GPIO_PFR1_P13 = 1u; \
    03219                                                  bFM0P_GPIO_ADE_AN03 = 0u; }while(0)
    03220
    03221 /*--- SUBOUT_2 ---*/
    03222 #define SetPinFunc_SUBOUT_2(dummy)           do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR00, 6u, 2u, 0x03u ); \
    03223                                                  bFM0P_GPIO_PFR3_P3A = 1u; }while(0)
    03224
    03225 /*--- TIOA0_0_OUT ---*/
    03226 #define SetPinFunc_TIOA0_0_OUT(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 2u, 2u, 0x01u ); \
    03227                                                  bFM0P_GPIO_PFR3_P3E = 1u; }while(0)
    03228
    03229 /*--- TIOA0_1_OUT ---*/
    03230 #define SetPinFunc_TIOA0_1_OUT(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 2u, 2u, 0x02u ); \
    03231                                                  bFM0P_GPIO_PFR3_P3A = 1u; }while(0)
    03232
    03233 /*--- TIOA1_0_IN ---*/
    03234 #define SetPinFunc_TIOA1_0_IN(dummy)         do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 8u, 2u, 0x01u ); \
    03235                                                  bFM0P_GPIO_PFR3_P3F = 1u; }while(0)
    03236
    03237 /*--- TIOA1_0_OUT ---*/
    03238 #define SetPinFunc_TIOA1_0_OUT(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 10u, 2u, 0x01u ); \
    03239                                                  bFM0P_GPIO_PFR3_P3F = 1u; }while(0)
    03240
    03241 /*--- TIOA1_1_IN ---*/
    03242 #define SetPinFunc_TIOA1_1_IN(dummy)         do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 8u, 2u, 0x02u ); \
    03243                                                  bFM0P_GPIO_PFR3_P3B = 1u; }while(0)
    03244
    03245 /*--- TIOA1_1_OUT ---*/
    03246 #define SetPinFunc_TIOA1_1_OUT(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 10u, 2u, 0x02u ); \
    03247                                                  bFM0P_GPIO_PFR3_P3B = 1u; }while(0)
    03248
    03249 /*--- TIOA2_0_OUT ---*/
    03250 #define SetPinFunc_TIOA2_0_OUT(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 18u, 2u, 0x01u ); \
    03251                                                  bFM0P_GPIO_PFR2_P23 = 1u; \
    03252                                                  bFM0P_GPIO_ADE_AN06 = 0u; }while(0)
    03253
    03254 /*--- TIOA2_1_OUT ---*/
    03255 #define SetPinFunc_TIOA2_1_OUT(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 18u, 2u, 0x02u ); \
    03256                                                  bFM0P_GPIO_PFR3_P3C = 1u; }while(0)
    03257
    03258 /*--- TIOA2_2_OUT ---*/
    03259 #define SetPinFunc_TIOA2_2_OUT(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 18u, 2u, 0x03u ); \
    03260                                                  bFM0P_GPIO_PFR6_P60 = 1u; }while(0)
    03261
    03262 /*--- TIOA3_1_IN ---*/
    03263 #define SetPinFunc_TIOA3_1_IN(dummy)         do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 24u, 2u, 0x02u ); \
    03264                                                  bFM0P_GPIO_PFR3_P3D = 1u; }while(0)
    03265
    03266 /*--- TIOA3_1_OUT ---*/
    03267 #define SetPinFunc_TIOA3_1_OUT(dummy)        do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 26u, 2u, 0x02u ); \
    03268                                                  bFM0P_GPIO_PFR3_P3D = 1u; }while(0)
    03269
    03270 /*--- TIOB0_0_IN ---*/
    03271 #define SetPinFunc_TIOB0_0_IN(dummy)         do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 4u, 3u, 0x01u ); \
    03272                                                  bFM0P_GPIO_PFR4_P49 = 1u; }while(0)
    03273
    03274 /*--- TIOB0_1_IN ---*/
    03275 #define SetPinFunc_TIOB0_1_IN(dummy)         do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 4u, 3u, 0x02u ); \
    03276                                                  bFM0P_GPIO_PFR0_P04 = 1u; }while(0)
    03277
    03278 /*--- TIOB1_0_IN ---*/
    03279 #define SetPinFunc_TIOB1_0_IN(dummy)         do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 12u, 2u, 0x01u ); \
    03280                                                  bFM0P_GPIO_PFR4_P4A = 1u; }while(0)
    03281
    03282 /*--- TIOB1_1_IN ---*/
    03283 #define SetPinFunc_TIOB1_1_IN(dummy)         do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 12u, 2u, 0x02u ); \
    03284                                                  bFM0P_GPIO_PFR2_P21 = 1u; }while(0)
    03285
    03286 /*--- TIOB2_0_IN ---*/
    03287 #define SetPinFunc_TIOB2_0_IN(dummy)         do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 20u, 2u, 0x01u ); \
    03288                                                  bFM0P_GPIO_PFR2_P22 = 1u; \
    03289                                                  bFM0P_GPIO_ADE_AN07 = 0u; }while(0)
    03290
    03291 /*--- TIOB2_2_IN ---*/
    03292 #define SetPinFunc_TIOB2_2_IN(dummy)         do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR04, 20u, 2u, 0x03u ); \
    03293                                                  bFM0P_GPIO_PFR6_P61 = 1u; }while(0)
    03294
    03295 /*--- ZIN0_0 ---*/
    03296 #define SetPinFunc_ZIN0_0(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 4u, 2u, 0x01u ); \
    03297                                                  bFM0P_GPIO_PFR3_P3F = 1u; }while(0)
    03298
    03299 /*--- ZIN0_1 ---*/
    03300 #define SetPinFunc_ZIN0_1(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 4u, 2u, 0x02u ); \
    03301                                                  bFM0P_GPIO_PFR2_P22 = 1u; \
    03302                                                  bFM0P_GPIO_ADE_AN07 = 0u; }while(0)
    03303
    03304 /*--- ZIN0_2 ---*/
    03305 #define SetPinFunc_ZIN0_2(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 4u, 2u, 0x03u ); \
    03306                                                  bFM0P_GPIO_PFR5_P52 = 1u; }while(0)
    03307
    03308 /*--- ZIN0_3 ---*/
    03309 #define SetPinFunc_ZIN0_3(dummy)             do{ PINRELOC_SET_EPFR( FM0P_GPIO->EPFR09, 4u, 2u, 0x00u ); \
    03310                                                  bFM0P_GPIO_EPFR21_QZIN0S = 1u; \
    03311                                                  bFM0P_GPIO_PFR3_P3C = 1u; }while(0)
    03312
    03313
    03314 /******************************************************************************
    03315    ANALOG PINS
    03316 *******************************************************************************/
    03317
    03318 /*--- AN00 ---*/
    03319 #define SetPinFunc_AN00(dummy)               ( bFM0P_GPIO_ADE_AN00 = 1 )
    03320
    03321 /*--- AN01 ---*/
    03322 #define SetPinFunc_AN01(dummy)               ( bFM0P_GPIO_ADE_AN01 = 1 )
    03323
    03324 /*--- AN02 ---*/
    03325 #define SetPinFunc_AN02(dummy)               ( bFM0P_GPIO_ADE_AN02 = 1 )
    03326
    03327 /*--- AN03 ---*/
    03328 #define SetPinFunc_AN03(dummy)               ( bFM0P_GPIO_ADE_AN03 = 1 )
    03329
    03330 /*--- AN04 ---*/
    03331 #define SetPinFunc_AN04(dummy)               ( bFM0P_GPIO_ADE_AN04 = 1 )
    03332
    03333 /*--- AN05 ---*/
    03334 #define SetPinFunc_AN05(dummy)               ( bFM0P_GPIO_ADE_AN05 = 1 )
    03335
    03336 /*--- AN06 ---*/
    03337 #define SetPinFunc_AN06(dummy)               ( bFM0P_GPIO_ADE_AN06 = 1 )
    03338
    03339 /*--- AN07 ---*/
    03340 #define SetPinFunc_AN07(dummy)               ( bFM0P_GPIO_ADE_AN07 = 1 )
    03341
    03342
    03343 #endif // #ifndef __GPIO_S6E1A1XC0A_H__
    03344
    03345
    03346 /******************************************************************************/
    03347 /* EOF (not truncated)                                                        */
    03348 /******************************************************************************/
    03349