From 12e4adab99164a92ea2388a9c887de5a57fe6983 Mon Sep 17 00:00:00 2001 From: "panyz0725@thundersoft.com" <1354643858@163.com> Date: Tue, 19 Feb 2019 10:15:06 +0800 Subject: [PATCH] Add USER_BUTTON and SPI in file PinNames.h --- targets/TARGET_TT/TARGET_TT_M4G9/PinNames.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/targets/TARGET_TT/TARGET_TT_M4G9/PinNames.h b/targets/TARGET_TT/TARGET_TT_M4G9/PinNames.h index cd22fd967b..161758fdef 100644 --- a/targets/TARGET_TT/TARGET_TT_M4G9/PinNames.h +++ b/targets/TARGET_TT/TARGET_TT_M4G9/PinNames.h @@ -101,6 +101,7 @@ typedef enum { MBED_CONF_APP_UART0_RX = PE2, // Switches + USER_BUTTON = PL4, SW1 = PL4, SW2 = PL5, SW3 = PV0, @@ -112,6 +113,13 @@ typedef enum { I2C_SDA = SDA, I2C_SCL = SCL, + // SPI pins + SPI_MOSI = D11, + SPI_MISO = D12, + SPI_SCK = D13, + SPI_CS = D10, + + // Not connected NC = (int)0xFFFFFFFF, } PinName;