File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F429xI/TARGET_NUCLEO_F429ZI Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,11 @@ typedef enum {
66
66
SPI_5 = (int )SPI5_BASE ,
67
67
SPI_6 = (int )SPI6_BASE
68
68
} SPIName ;
69
+ /* Specify master/slave SPI interfaces for testing purposes. */
70
+ #define SPI_TEST_MASTER SPI_1
71
+ #define SPI_TEST_SLAVE SPI_4
72
+ #define SPI_TEST_MASTER_PIN (SPI_PIN ) SPI_1##_##SPI_PIN
73
+ #define SPI_TEST_SLAVE_PIN (SPI_PIN ) SPI_4##_##SPI_PIN
69
74
70
75
typedef enum {
71
76
I2C_1 = (int )I2C1_BASE ,
Original file line number Diff line number Diff line change @@ -269,12 +269,17 @@ typedef enum {
269
269
USBRX = STDIO_UART_RX , // Virtual Com Port
270
270
I2C_SCL = D15 ,
271
271
I2C_SDA = D14 ,
272
- SPI_MOSI = D11 ,
273
- SPI_MISO = D12 ,
274
- SPI_SCK = D13 ,
275
- SPI_CS = D10 ,
276
272
PWM_OUT = D9 ,
277
273
274
+ SPI_1_MOSI = PB_5 ,
275
+ SPI_1_MISO = PA_6 ,
276
+ SPI_1_SCK = PA_5 ,
277
+ SPI_1_CS = PA_4 ,
278
+ SPI_4_MOSI = PE_6 ,
279
+ SPI_4_MISO = PE_5 ,
280
+ SPI_4_SCK = PE_2 ,
281
+ SPI_4_CS = PE_4 ,
282
+
278
283
/**** USB pins ****/
279
284
USB_OTG_FS_DM = PA_11 ,
280
285
USB_OTG_FS_DP = PA_12 ,
You can’t perform that action at this time.
0 commit comments