![](/media/cache/profiles/9bd5ee6fe55aaeb673025dbcb8f939c1.50x50_q85.jpg)
UniGraphic library test using MPS2+
Dependencies: MMA8451Q SPI_STMPE610 UniGraphic mbed
Fork of testUniGraphic_150217 by
main.h@4:76d15fd29c9f, 2017-02-21 (annotated)
- Committer:
- MACRUM
- Date:
- Tue Feb 21 13:37:48 2017 +0000
- Revision:
- 4:76d15fd29c9f
- Parent:
- 0:be311b6a294c
MPS2+ board test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Rhyme | 0:be311b6a294c | 1 | #ifndef _MAIN_H_ |
Rhyme | 0:be311b6a294c | 2 | #define _MAIN_H_ included |
Rhyme | 0:be311b6a294c | 3 | |
Rhyme | 0:be311b6a294c | 4 | #if defined (TARGET_KL25Z) |
Rhyme | 0:be311b6a294c | 5 | #define PIN_MOSI PTD2 |
Rhyme | 0:be311b6a294c | 6 | #define PIN_MISO PTD3 |
Rhyme | 0:be311b6a294c | 7 | #define PIN_SCLK PTD1 |
Rhyme | 0:be311b6a294c | 8 | #define PIN_CS_TFT PTD0 |
Rhyme | 0:be311b6a294c | 9 | #define PIN_DC_TFT PTD5 |
Rhyme | 0:be311b6a294c | 10 | #define PIN_BL_TFT PTC9 |
Rhyme | 0:be311b6a294c | 11 | #define PIN_CS_SD PTA4 |
Rhyme | 0:be311b6a294c | 12 | #define PIN_CS_TSC PTA13 |
Rhyme | 0:be311b6a294c | 13 | #define PIN_TSC_INTR PTC9 |
Rhyme | 0:be311b6a294c | 14 | #define PIN_RESET_TFT PTB10 |
Rhyme | 0:be311b6a294c | 15 | |
Rhyme | 0:be311b6a294c | 16 | #elif defined (TARGET_KL46Z) |
Rhyme | 0:be311b6a294c | 17 | #define PIN_MOSI PTD6 |
Rhyme | 0:be311b6a294c | 18 | #define PIN_MISO PTD7 |
Rhyme | 0:be311b6a294c | 19 | #define PIN_SCLK PTD5 |
Rhyme | 0:be311b6a294c | 20 | #define PIN_CS_TFT PTD4 |
Rhyme | 0:be311b6a294c | 21 | #define PIN_DC_TFT PTD2 |
Rhyme | 0:be311b6a294c | 22 | #define PIN_BL_TFT PTC9 |
Rhyme | 0:be311b6a294c | 23 | #define PIN_CS_SD PTA4 |
Rhyme | 0:be311b6a294c | 24 | #define PIN_CS_TSC PTA13 |
Rhyme | 0:be311b6a294c | 25 | #define PIN_TSC_INTR PTC9 |
Rhyme | 0:be311b6a294c | 26 | #define PIN_RESET_TFT PTB10 |
Rhyme | 0:be311b6a294c | 27 | |
MACRUM | 4:76d15fd29c9f | 28 | #elif defined (TARGET_ARM_MPS2_M7) |
MACRUM | 4:76d15fd29c9f | 29 | #define PIN_MOSI CLCD_MOSI |
MACRUM | 4:76d15fd29c9f | 30 | #define PIN_MISO CLCD_MISO |
MACRUM | 4:76d15fd29c9f | 31 | #define PIN_SCLK CLCD_SCLK |
MACRUM | 4:76d15fd29c9f | 32 | #define PIN_CS_TFT CLCD_SSEL |
MACRUM | 4:76d15fd29c9f | 33 | #define PIN_DC_TFT PTD2 |
MACRUM | 4:76d15fd29c9f | 34 | #define PIN_BL_TFT PTC9 |
MACRUM | 4:76d15fd29c9f | 35 | #define PIN_CS_SD PTA4 |
MACRUM | 4:76d15fd29c9f | 36 | #define PIN_CS_TSC PTA13 |
MACRUM | 4:76d15fd29c9f | 37 | #define PIN_TSC_INTR PTC9 |
MACRUM | 4:76d15fd29c9f | 38 | #define PIN_RESET_TFT CLCD_RESET |
MACRUM | 4:76d15fd29c9f | 39 | |
MACRUM | 4:76d15fd29c9f | 40 | //#elif defined (TARGET_K64F) |
Rhyme | 0:be311b6a294c | 41 | #else |
MACRUM | 4:76d15fd29c9f | 42 | #define PIN_MOSI D11 |
MACRUM | 4:76d15fd29c9f | 43 | #define PIN_MISO D12 |
MACRUM | 4:76d15fd29c9f | 44 | #define PIN_SCLK D13 |
MACRUM | 4:76d15fd29c9f | 45 | #define PIN_CS_TFT D10 |
MACRUM | 4:76d15fd29c9f | 46 | #define PIN_DC_TFT D9 |
MACRUM | 4:76d15fd29c9f | 47 | #define PIN_BL_TFT D7 |
MACRUM | 4:76d15fd29c9f | 48 | #define PIN_CS_SD D4 |
MACRUM | 4:76d15fd29c9f | 49 | #define PIN_CS_TSC D8 |
MACRUM | 4:76d15fd29c9f | 50 | #define PIN_TSC_INTR D7 |
MACRUM | 4:76d15fd29c9f | 51 | #define PIN_RESET_TFT LED1 |
MACRUM | 4:76d15fd29c9f | 52 | |
MACRUM | 4:76d15fd29c9f | 53 | //#else |
MACRUM | 4:76d15fd29c9f | 54 | // #error TARGET NOT DEFINED |
Rhyme | 0:be311b6a294c | 55 | #endif |
Rhyme | 0:be311b6a294c | 56 | |
Rhyme | 0:be311b6a294c | 57 | #endif /* _MAIN_H_ */ |