UniGraphic library test using MPS2+

Dependencies:   MMA8451Q SPI_STMPE610 UniGraphic mbed

Fork of testUniGraphic_150217 by GraphicsDisplay

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

main.h

00001 #ifndef _MAIN_H_
00002 #define _MAIN_H_ included
00003 
00004 #if   defined (TARGET_KL25Z) 
00005 #define PIN_MOSI        PTD2
00006 #define PIN_MISO        PTD3 
00007 #define PIN_SCLK        PTD1 
00008 #define PIN_CS_TFT      PTD0 
00009 #define PIN_DC_TFT      PTD5 
00010 #define PIN_BL_TFT      PTC9 
00011 #define PIN_CS_SD       PTA4 
00012 #define PIN_CS_TSC      PTA13
00013 #define PIN_TSC_INTR    PTC9
00014 #define PIN_RESET_TFT   PTB10
00015  
00016 #elif defined (TARGET_KL46Z)
00017 #define PIN_MOSI        PTD6
00018 #define PIN_MISO        PTD7 
00019 #define PIN_SCLK        PTD5 
00020 #define PIN_CS_TFT      PTD4 
00021 #define PIN_DC_TFT      PTD2 
00022 #define PIN_BL_TFT      PTC9 
00023 #define PIN_CS_SD       PTA4 
00024 #define PIN_CS_TSC      PTA13
00025 #define PIN_TSC_INTR    PTC9
00026 #define PIN_RESET_TFT   PTB10
00027 
00028 #elif defined (TARGET_ARM_MPS2_M7)
00029 #define PIN_MOSI        CLCD_MOSI
00030 #define PIN_MISO        CLCD_MISO
00031 #define PIN_SCLK        CLCD_SCLK
00032 #define PIN_CS_TFT      CLCD_SSEL 
00033 #define PIN_DC_TFT      PTD2 
00034 #define PIN_BL_TFT      PTC9 
00035 #define PIN_CS_SD       PTA4 
00036 #define PIN_CS_TSC      PTA13
00037 #define PIN_TSC_INTR    PTC9
00038 #define PIN_RESET_TFT   CLCD_RESET
00039 
00040 //#elif defined (TARGET_K64F)
00041 #else
00042 #define PIN_MOSI        D11
00043 #define PIN_MISO        D12
00044 #define PIN_SCLK        D13
00045 #define PIN_CS_TFT      D10
00046 #define PIN_DC_TFT      D9
00047 #define PIN_BL_TFT      D7
00048 #define PIN_CS_SD       D4
00049 #define PIN_CS_TSC      D8
00050 #define PIN_TSC_INTR    D7
00051 #define PIN_RESET_TFT   LED1
00052 
00053 //#else
00054 //  #error TARGET NOT DEFINED
00055 #endif
00056 
00057 #endif /* _MAIN_H_ */