Skip to content

Commit 6c4ffe8

Browse files
committed
add SPI1 channel
1 parent 0fc158e commit 6c4ffe8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

variants/DWM3001CDK/variant.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static const uint8_t A0 = PIN_A0 ; // AIN4
7373
/*
7474
* SPI Interfaces
7575
*/
76-
#define SPI_INTERFACES_COUNT 1
76+
#define SPI_INTERFACES_COUNT 2
7777

7878
#define PIN_SPI_MISO (20)
7979
#define PIN_SPI_MOSI (21)
@@ -85,6 +85,16 @@ static const uint8_t MOSI = PIN_SPI_MOSI ;
8585
static const uint8_t MISO = PIN_SPI_MISO ;
8686
static const uint8_t SCK = PIN_SPI_SCK ;
8787

88+
#define PIN_SPI1_MISO (24)
89+
#define PIN_SPI1_MOSI (25)
90+
#define PIN_SPI1_SCK (26)
91+
#define PIN_SPI1_SS (23)
92+
93+
static const uint8_t SS1 = PIN_SPI1_SS ;
94+
static const uint8_t MOSI1 = PIN_SPI1_MOSI ;
95+
static const uint8_t MISO1 = PIN_SPI1_MISO ;
96+
static const uint8_t SCK1 = PIN_SPI1_SCK ;
97+
8898
/*
8999
* Wire Interfaces
90100
*/

0 commit comments

Comments
 (0)