Freescale Semiconductor Inc.
    Regional Technical Application Center

 

Main Page | Directories | File List | File Members

GPIO_macros.h

Go to the documentation of this file.
00001 /*******************************************************************************/
00013 /*******************************************************************************/
00014 /*                                                                             */
00015 /* All software, source code, included documentation, and any implied know-how */
00016 /* are property of Freescale Semiconductor and therefore considered            */ 
00017 /* CONFIDENTIAL INFORMATION.                                                   */
00018 /*                                                                             */
00019 /* This confidential information is disclosed FOR DEMONSTRATION PURPOSES ONLY. */
00020 /*                                                                             */
00021 /* All Confidential Information remains the property of Freescale Semiconductor*/
00022 /* and will not be copied or reproduced without the express written permission */
00023 /* of the Discloser, except for copies that are absolutely necessary in order  */
00024 /* to fulfill the Purpose.                                                     */
00025 /*                                                                             */
00026 /* Services performed by FREESCALE in this matter are performed AS IS and      */
00027 /* without any warranty. CUSTOMER retains the final decision relative to the   */
00028 /* total design and functionality of the end product.                          */
00029 /*                                                                             */
00030 /* FREESCALE neither guarantees nor will be held liable by CUSTOMER for the    */
00031 /* success of this project.                                                    */
00032 /*                                                                             */
00033 /* FREESCALE disclaims all warranties, express, implied or statutory including,*/
00034 /* but not limited to, implied warranty of merchantability or fitness for a    */
00035 /* particular purpose on any hardware, software or advise supplied to the     */
00036 /* project by FREESCALE, and or any product resulting from FREESCALE services. */
00037 /*                                                                             */
00038 /* In no event shall FREESCALE be liable for incidental or consequential       */
00039 /* damages arising out of this agreement. CUSTOMER agrees to hold FREESCALE    */
00040 /* harmless against any and all claims demands or actions by anyone on account */
00041 /* of any damage,or injury, whether commercial, contractual, or tortuous,      */
00042 /* rising directly or indirectly as a result of the advise or assistance       */
00043 /* supplied CUSTOMER in connection with product, services or goods supplied     */
00044 /* under this Agreement.                                                       */
00045 /*                                                                             */
00046 /*******************************************************************************/
00047 
00048 #ifndef _GPIO_MACROS_H
00049 #define _GPIO_MACROS_H
00050 
00052 #include "typedefs.h"   
00053 
00054 #define D22 PT1AD_PT1AD0                    
00055 #define D23 PT1AD_PT1AD1                    
00056 #define D24 PT1AD_PT1AD2                    
00057 #define D25 PT1AD_PT1AD3
00058 
00059 #define D26 PTT_PTT0                     
00060 #define D27 PTT_PTT1                     
00061 #define D28 PTT_PTT2                      
00062 #define D29 PTT_PTT3     
00063                  
00064 
00068 #define LED_ON(BitName)         (BitName = 0)
00069 
00071 #define LED_OFF(BitName)        (BitName = 1)
00072 
00074 #define LED_TOGGLE(BitName)     (BitName ^= 1) 
00075 
00076 
00077 #endif /* _GPIO_MACROS_H */
00078 
00079 /*******************************************************************************/