[LPC812] enable SPISlave

pull/138/head
ytsuboi 2013-12-29 19:18:50 +09:00
parent fba199a9c4
commit 0a11767877
2 changed files with 5 additions and 1 deletions

View File

@ -32,7 +32,7 @@
#define DEVICE_I2CSLAVE 0
#define DEVICE_SPI 1
#define DEVICE_SPISLAVE 0
#define DEVICE_SPISLAVE 1
#define DEVICE_CAN 0

View File

@ -2,6 +2,10 @@
#if defined(TARGET_KL25Z)
SPISlave device(PTD2, PTD3, PTD1, PTD0); // mosi, miso, sclk, ssel
#elif defined(TARGET_LPC812)
SPISlave device(P0_14, P0_15, P0_12, P0_13); // mosi, miso, sclk, ssel
#else
SPISlave device(p5, p6, p7, p8); // mosi, miso, sclk, ssel
#endif