Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Commit

Permalink
Moved SPI SPI definitions out of this project
Browse files Browse the repository at this point in the history
  • Loading branch information
dc42 committed May 12, 2020
1 parent 983d424 commit c0ad4e5
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions variants/same70/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,25 +130,11 @@ constexpr Pin APIN_USART_SSPI_SCK = PortBPin(13);
constexpr Pin APIN_USART_SSPI_MOSI = PortBPin(1);
constexpr Pin APIN_USART_SSPI_MISO = PortBPin(0);

// ESP SPI on Duet 3 version 0.3
#define ESP_SPI SPI0
#define ESP_SPI_INTERFACE_ID ID_SPI0
#define ESP_SPI_IRQn SPI0_IRQn
#define ESP_SPI_HANDLER SPI0_Handler
constexpr Pin APIN_ESP_SPI_MOSI = PortDPin(21);
constexpr Pin APIN_ESP_SPI_MISO = PortDPin(20);
constexpr Pin APIN_ESP_SPI_SCK = PortDPin(22);
constexpr Pin APIN_ESP_SPI_SS0 = PortBPin(2);

// Single Board Computer SPI
#define SBC_SPI SPI1
#define SBC_SPI_INTERFACE_ID ID_SPI1
#define SBC_SPI_IRQn SPI1_IRQn
#define SBC_SPI_HANDLER SPI1_Handler
constexpr Pin APIN_SBC_SPI_MOSI = PortCPin(27);
constexpr Pin APIN_SBC_SPI_MISO = PortCPin(26);
constexpr Pin APIN_SBC_SPI_SCK = PortCPin(24);
constexpr Pin APIN_SBC_SPI_SS0 = PortCPin(25);
// SPI1 pin definitions
constexpr Pin APIN_SPI1_MOSI = PortCPin(27);
constexpr Pin APIN_SPI1_MISO = PortCPin(26);
constexpr Pin APIN_SPI1_SCK = PortCPin(24);
constexpr Pin APIN_SPI1_SS0 = PortCPin(25);

#endif

Expand Down

0 comments on commit c0ad4e5

Please sign in to comment.