File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K66F/TARGET_FRDM Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -124,14 +124,19 @@ typedef enum {
124
124
DAC_0 = 0
125
125
} DACName ;
126
126
127
-
128
127
#define SPI_COUNT 3
129
128
typedef enum {
130
129
SPI_0 = 0 ,
131
130
SPI_1 = 1 ,
132
131
SPI_2 = 2 ,
133
132
} SPIName ;
134
133
134
+ /* Specify master/slave interfaces for testing purposes. */
135
+ #define SPI_TEST_MASTER SPI_2
136
+ #define SPI_TEST_SLAVE SPI_0
137
+ #define SPI_TEST_MASTER_PIN (SPI_PIN ) SPI_2##_##SPI_PIN
138
+ #define SPI_TEST_SLAVE_PIN (SPI_PIN ) SPI_0##_##SPI_PIN
139
+
135
140
#ifdef __cplusplus
136
141
}
137
142
#endif
Original file line number Diff line number Diff line change @@ -232,6 +232,26 @@ typedef enum {
232
232
233
233
I2C_SCL = D15 ,
234
234
I2C_SDA = D14 ,
235
+
236
+ /* Note:
237
+ This board does not provide SPI MOSI/MISO pins, instead we have SIN/SOUT pins which can be used
238
+ as SPI MOSI/MISO lines depending on SPI operation mode(master or slave):
239
+ master: SIN ---> MISO
240
+ SOUT ---> MOSI
241
+ slave: SIN ---> MOSI
242
+ SOUT ---> MISO
243
+
244
+ SPI_0 interface represents SPI pins configuration for slave and SPI_2 respresents spi configuration
245
+ for master.
246
+ */
247
+ SPI_0_MOSI = PTD3 ,
248
+ SPI_0_MISO = PTD2 ,
249
+ SPI_0_SCK = PTD1 ,
250
+ SPI_0_CS = PTD0 ,
251
+ SPI_2_MOSI = PTD13 ,
252
+ SPI_2_MISO = PTB23 ,
253
+ SPI_2_SCK = PTD12 ,
254
+ SPI_2_CS = PTB20 ,
235
255
236
256
A0 = PTB7 ,
237
257
A1 = PTB6 ,
You can’t perform that action at this time.
0 commit comments