Skip to content

Commit 0a11767

Browse files
committed
[LPC812] enable SPISlave
1 parent fba199a commit 0a11767

File tree

2 files changed

+5
-1
lines changed
  • libraries

2 files changed

+5
-1
lines changed

libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC81X/device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#define DEVICE_I2CSLAVE 0
3333

3434
#define DEVICE_SPI 1
35-
#define DEVICE_SPISLAVE 0
35+
#define DEVICE_SPISLAVE 1
3636

3737
#define DEVICE_CAN 0
3838

libraries/tests/mbed/spi_slave/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
#if defined(TARGET_KL25Z)
44
SPISlave device(PTD2, PTD3, PTD1, PTD0); // mosi, miso, sclk, ssel
5+
6+
#elif defined(TARGET_LPC812)
7+
SPISlave device(P0_14, P0_15, P0_12, P0_13); // mosi, miso, sclk, ssel
8+
59
#else
610
SPISlave device(p5, p6, p7, p8); // mosi, miso, sclk, ssel
711
#endif

0 commit comments

Comments
 (0)