Skip to content

Commit

Permalink
KW24D: Add missing SPI defines and Arduino connector definitions
Browse files Browse the repository at this point in the history
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
  • Loading branch information
mmahadevan108 committed Mar 23, 2017
1 parent cc58a7f commit c1ed01e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ const PinMap PinMap_UART_TX[] = {
{PTA2, UART_0, 2},
{PTD7, UART_0, 3},
{PTC4, UART_1, 3},
{PTE0, UART_1, 3},
{PTE0, UART_1, 3},
{PTD3, UART_2, 3},
{PTE16, UART_2, 3},
{NC , NC , 0}
};

const PinMap PinMap_UART_RX[] = {
{PTA1, UART_0, 2},
{PTA1, UART_0, 2},
{PTD6, UART_0, 3},
{PTE1, UART_1, 3},
{PTD2, UART_2, 3},
Expand Down Expand Up @@ -92,6 +92,7 @@ const PinMap PinMap_UART_RTS[] = {

/************SPI***************/
const PinMap PinMap_SPI_SCLK[] = {
{PTB11, SPI_1, 2},
{PTC5, SPI_0, 2},
{PTD1, SPI_0, 2},
{PTE2, SPI_1, 2},
Expand All @@ -100,6 +101,7 @@ const PinMap PinMap_SPI_SCLK[] = {
};

const PinMap PinMap_SPI_MOSI[] = {
{PTB16, SPI_1, 2},
{PTC6, SPI_0, 2},
{PTD2, SPI_0, 2},
{PTE1, SPI_1, 2},
Expand All @@ -109,6 +111,7 @@ const PinMap PinMap_SPI_MOSI[] = {
};

const PinMap PinMap_SPI_MISO[] = {
{PTB17, SPI_1, 2},
{PTC7, SPI_0, 2},
{PTD3, SPI_0, 2},
{PTE1, SPI_1, 7},
Expand All @@ -118,6 +121,7 @@ const PinMap PinMap_SPI_MISO[] = {
};

const PinMap PinMap_SPI_SSEL[] = {
{PTB10, SPI_1, 2},
{PTC4, SPI_0, 2},
{PTE4, SPI_1, 2},
{PTE16, SPI_0, 2},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,16 @@ typedef enum {
USBTX = PTE0,
USBRX = PTE1,

// Not connected
NC = (int)0xFFFFFFFF,

// Arduino Headers
D0 = PTD7,
D1 = PTD6,
D2 = PTD5,
D3 = PTD4,
D4 = NC,
D5 = NC,
D6 = PTE4,
D7 = PTD1,
D8 = PTA19,
Expand All @@ -106,8 +111,12 @@ typedef enum {
I2C_SCL = D15,
I2C_SDA = D14,

// Not connected
NC = (int)0xFFFFFFFF
A0 = NC,
A1 = NC,
A2 = NC,
A3 = NC,
A4 = NC,
A5 = NC
} PinName;


Expand Down

0 comments on commit c1ed01e

Please sign in to comment.