mirror of
https://github.com/meshtastic/firmware.git
synced 2025-05-10 07:11:59 +00:00
Add SPIM3/SPIM2 for SPI/SPI1 selection
The SPIM3 is faster (max 32Mhz) than SPIM2 (max 8Mhz) Default is SPI_32MHZ_INTERFACE 0 in SPI library
This commit is contained in:
parent
95fe4aed04
commit
db376532ad
@ -108,11 +108,14 @@ static const uint8_t AREF = PIN_AREF;
|
||||
* SPI Interfaces
|
||||
*/
|
||||
#define SPI_INTERFACES_COUNT 2
|
||||
#define SPI_32MHZ_INTERFACE 0 //0: use SPIM3 for SPI and SPIM2 for SPI1; 1: the opposite
|
||||
|
||||
//SPI pins for SX1262
|
||||
#define PIN_SPI_MISO (45)
|
||||
#define PIN_SPI_MOSI (44)
|
||||
#define PIN_SPI_SCK (43)
|
||||
|
||||
//SPI1 pins for external(rak4630) spi (incl. SDCard)
|
||||
#define PIN_SPI1_MISO (29) // (0 + 29)
|
||||
#define PIN_SPI1_MOSI (30) // (0 + 30)
|
||||
#define PIN_SPI1_SCK (3) // (0 + 3)
|
||||
|
Loading…
Reference in New Issue
Block a user