DM: add spi DMA to other boards and reserved channels macro

This commit is contained in:
dean 2018-07-25 17:44:53 -04:00
parent 703c6dd497
commit a278034831
8 changed files with 44 additions and 0 deletions

View file

@ -146,6 +146,13 @@ static const uint8_t MOSI = PIN_SPI_MOSI ;
static const uint8_t MISO = PIN_SPI_MISO ;
static const uint8_t SCK = PIN_SPI_SCK ;
#define SPI_HAS_DMA
#define SPI_DMA_CHANNEL_RX (DMAC_CH_NUM-2)
#define SPI_DMA_CHANNEL_TX (DMAC_CH_NUM-1)
#define DMAC_RESERVED_CHANNELS ((1UL << SPI_DMA_CHANNEL_RX) | \
(1UL << SPI_DMA_CHANNEL_TX))
/*
* Wire Interfaces
*/

View file

@ -151,6 +151,13 @@ static const uint8_t MOSI = PIN_SPI_MOSI ;
static const uint8_t MISO = PIN_SPI_MISO ;
static const uint8_t SCK = PIN_SPI_SCK ;
#define SPI_HAS_DMA
#define SPI_DMA_CHANNEL_RX (DMAC_CH_NUM-2)
#define SPI_DMA_CHANNEL_TX (DMAC_CH_NUM-1)
#define DMAC_RESERVED_CHANNELS ((1UL << SPI_DMA_CHANNEL_RX) | \
(1UL << SPI_DMA_CHANNEL_TX))
#define PIN_SPI1_MISO (36u)
#define PIN_SPI1_MOSI (37u)

View file

@ -147,6 +147,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define SPI_DMA_CHANNEL_RX (DMAC_CH_NUM-2)
#define SPI_DMA_CHANNEL_TX (DMAC_CH_NUM-1)
#define DMAC_RESERVED_CHANNELS ((1UL << SPI_DMA_CHANNEL_RX) | \
(1UL << SPI_DMA_CHANNEL_TX))
/*
* Wire Interfaces
*/

View file

@ -130,6 +130,13 @@ static const uint8_t MOSI = PIN_SPI_MOSI ;
static const uint8_t MISO = PIN_SPI_MISO ;
static const uint8_t SCK = PIN_SPI_SCK ;
#define SPI_HAS_DMA
#define SPI_DMA_CHANNEL_RX (DMAC_CH_NUM-2)
#define SPI_DMA_CHANNEL_TX (DMAC_CH_NUM-1)
#define DMAC_RESERVED_CHANNELS ((1UL << SPI_DMA_CHANNEL_RX) | \
(1UL << SPI_DMA_CHANNEL_TX))
/*
* Wire Interfaces

View file

@ -145,6 +145,13 @@ static const uint8_t MOSI = PIN_SPI_MOSI ;
static const uint8_t MISO = PIN_SPI_MISO ;
static const uint8_t SCK = PIN_SPI_SCK ;
#define SPI_HAS_DMA
#define SPI_DMA_CHANNEL_RX (DMAC_CH_NUM-2)
#define SPI_DMA_CHANNEL_TX (DMAC_CH_NUM-1)
#define DMAC_RESERVED_CHANNELS ((1UL << SPI_DMA_CHANNEL_RX) | \
(1UL << SPI_DMA_CHANNEL_TX))
#define PIN_SPI1_MISO (36u)
#define PIN_SPI1_MOSI (37u)

View file

@ -142,6 +142,13 @@ static const uint8_t MOSI = PIN_SPI_MOSI ;
static const uint8_t MISO = PIN_SPI_MISO ;
static const uint8_t SCK = PIN_SPI_SCK ;
#define SPI_HAS_DMA
#define SPI_DMA_CHANNEL_RX (DMAC_CH_NUM-2)
#define SPI_DMA_CHANNEL_TX (DMAC_CH_NUM-1)
#define DMAC_RESERVED_CHANNELS ((1UL << SPI_DMA_CHANNEL_RX) | \
(1UL << SPI_DMA_CHANNEL_TX))
/*
* Wire Interfaces
*/

View file

@ -155,6 +155,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define SPI_DMA_CHANNEL_RX (DMAC_CH_NUM-2)
#define SPI_DMA_CHANNEL_TX (DMAC_CH_NUM-1)
#define DMAC_RESERVED_CHANNELS ((1UL << SPI_DMA_CHANNEL_RX) | \
(1UL << SPI_DMA_CHANNEL_TX))
#define PIN_SPI1_MISO (36u)
#define PIN_SPI1_MOSI (37u)
#define PIN_SPI1_SCK (38u)

View file

@ -147,6 +147,9 @@ static const uint8_t ATN = PIN_ATN;
#define SPI_DMA_CHANNEL_RX (DMAC_CH_NUM-2)
#define SPI_DMA_CHANNEL_TX (DMAC_CH_NUM-1)
#define DMAC_RESERVED_CHANNELS ((1UL << SPI_DMA_CHANNEL_RX) | \
(1UL << SPI_DMA_CHANNEL_TX))
static const uint8_t SS = PIN_A2 ;
static const uint8_t MOSI = PIN_SPI_MOSI ;
static const uint8_t MISO = PIN_SPI_MISO ;