afLib 1.3 which is supporting both SPI and UART

Dependencies:   vt100 mbed afLib_1_3

Committer:
Rhyme
Date:
Mon Apr 23 06:15:26 2018 +0000
Revision:
0:87662653a3c6
First UART working version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Rhyme 0:87662653a3c6 1 #ifndef _EDGE_PIN_H_
Rhyme 0:87662653a3c6 2 #define _EDGE_PIN_H_
Rhyme 0:87662653a3c6 3
Rhyme 0:87662653a3c6 4 #if defined (TARGET_KL25Z)
Rhyme 0:87662653a3c6 5 #define PIN_INTR PTD4
Rhyme 0:87662653a3c6 6 #define PIN_ASR_RESET PTA13
Rhyme 0:87662653a3c6 7 #define PIN_SCK PTD1
Rhyme 0:87662653a3c6 8 #define PIN_MOSI PTD2
Rhyme 0:87662653a3c6 9 #define PIN_MISO PTD3
Rhyme 0:87662653a3c6 10 #define PIN_CS PTD0
Rhyme 0:87662653a3c6 11 /* ILI9341 */
Rhyme 0:87662653a3c6 12 #define PIN_CS_TFT PTC7
Rhyme 0:87662653a3c6 13 #define PIN_RESET_TFT PTC4
Rhyme 0:87662653a3c6 14 #define PIN_DC_TFT PTC0
Rhyme 0:87662653a3c6 15 #define PIN_BL_TFT PTC3
Rhyme 0:87662653a3c6 16
Rhyme 0:87662653a3c6 17 #define PIN_FRDM_LEDR PTB18
Rhyme 0:87662653a3c6 18 #define PIN_FRDM_LEDG PTB19
Rhyme 0:87662653a3c6 19 #define PIN_FRDM_LEDB PTD1 /* conflict with SCK orz */
Rhyme 0:87662653a3c6 20 /* on board I2C0 */
Rhyme 0:87662653a3c6 21 // #define PIN_I2C0_SCL PTE24
Rhyme 0:87662653a3c6 22 // #define PIN_I2C0_SDA PTE25
Rhyme 0:87662653a3c6 23 /* external I2C0 */
Rhyme 0:87662653a3c6 24 #define PIN_I2C0_SCL PTC8
Rhyme 0:87662653a3c6 25 #define PIN_I2C0_SDA PTC9
Rhyme 0:87662653a3c6 26 #define PIN_I2C1_SCL PTE1
Rhyme 0:87662653a3c6 27 #define PIN_I2C1_SDA PTE0
Rhyme 0:87662653a3c6 28 #define PIN_AN0 PTB0
Rhyme 0:87662653a3c6 29 #define PIN_AN1 PTB1
Rhyme 0:87662653a3c6 30 #define PIN_AN2 PTB2
Rhyme 0:87662653a3c6 31 #define PIN_LED_R PTB18
Rhyme 0:87662653a3c6 32 #define PIN_LED_G PTB19
Rhyme 0:87662653a3c6 33 #define PIN_LED_B PTD1
Rhyme 0:87662653a3c6 34
Rhyme 0:87662653a3c6 35 #define PIN_UART2_TX PTE22
Rhyme 0:87662653a3c6 36 #define PIN_UART2_RX PTE23
Rhyme 0:87662653a3c6 37 #endif /* TARGET_KL25Z */
Rhyme 0:87662653a3c6 38
Rhyme 0:87662653a3c6 39 #endif /* _EDGE_PIN_H_ */