Skip to content

Commit 281a954

Browse files
committed
add internal SPI for Flash memory
1 parent 7bf7f6b commit 281a954

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

variants/FEATHER_F405/variant.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ extern "C" {
122122
#define PIN_SPI_SCK PB13
123123
#define PIN_SPI_SS PA15
124124

125+
#define PIN_SPI1_MOSI PB5
126+
#define PIN_SPI1_MISO PB4
127+
#define PIN_SPI1_SCK PB3
128+
#define PIN_SPI1_SS PA15
129+
125130
// I2C Definitions
126131
#define PIN_WIRE_SDA PB7
127132
#define PIN_WIRE_SCL PB6
@@ -133,7 +138,7 @@ extern "C" {
133138

134139
// UART Definitions
135140
// Define here Serial instance number to map on Serial generic name
136-
#define SERIAL_UART_INSTANCE 1 //ex: 2 for Serial2 (USART2)
141+
#define SERIAL_UART_INSTANCE 3 //ex: 2 for Serial2 (USART2)
137142
// DEBUG_UART could be redefined to print on another instance than 'Serial'
138143
//#define DEBUG_UART ((USART_TypeDef *) U(S)ARTX) // ex: USART3
139144
// DEBUG_UART baudrate, default: 9600 if not defined

0 commit comments

Comments
 (0)