Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KW24D: Add missing SPI defines and Arduino connector definitions #3979

Merged
merged 1 commit into from
Mar 29, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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