добавила выводы для второго spi
This commit is contained in:
parent
efe01dc876
commit
7a787c969c
@ -89,6 +89,7 @@ HAL_TIMER32_CHANNEL_IndexTypeDef pwmPinToTimerChannel(uint32_t digPinNumber);
|
|||||||
|
|
||||||
// SPI
|
// SPI
|
||||||
#define SPI_COMMON_QTY 2
|
#define SPI_COMMON_QTY 2
|
||||||
|
|
||||||
#define PIN_SPI_SS 10
|
#define PIN_SPI_SS 10
|
||||||
#define PIN_SPI_MOSI 11
|
#define PIN_SPI_MOSI 11
|
||||||
#define PIN_SPI_MISO 12
|
#define PIN_SPI_MISO 12
|
||||||
@ -97,6 +98,16 @@ static const uint8_t SS = PIN_SPI_SS;
|
|||||||
static const uint8_t MOSI = PIN_SPI_MOSI;
|
static const uint8_t MOSI = PIN_SPI_MOSI;
|
||||||
static const uint8_t MISO = PIN_SPI_MISO;
|
static const uint8_t MISO = PIN_SPI_MISO;
|
||||||
static const uint8_t SCK = PIN_SPI_SCK;
|
static const uint8_t SCK = PIN_SPI_SCK;
|
||||||
|
|
||||||
|
#define PIN_SPI1_SS 9
|
||||||
|
#define PIN_SPI1_MOSI 5
|
||||||
|
#define PIN_SPI1_MISO 3
|
||||||
|
#define PIN_SPI1_SCK 6
|
||||||
|
static const uint8_t SS1 = PIN_SPI1_SS;
|
||||||
|
static const uint8_t MOSI1 = PIN_SPI1_MOSI;
|
||||||
|
static const uint8_t MISO1 = PIN_SPI1_MISO;
|
||||||
|
static const uint8_t SCK1 = PIN_SPI1_SCK;
|
||||||
|
|
||||||
// config SEL_NSS1 to replace D10 to different controller pin,
|
// config SEL_NSS1 to replace D10 to different controller pin,
|
||||||
// because NSS which is D9/D10 by default is needed to spi
|
// because NSS which is D9/D10 by default is needed to spi
|
||||||
void spi_onBegin(uint8_t spiNum);
|
void spi_onBegin(uint8_t spiNum);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user