|
|
@ -273,7 +273,7 @@ BASpiMemoryDMA::BASpiMemoryDMA(SpiDeviceId memDeviceId) |
|
|
|
cs = SPI_CS_MEM0; |
|
|
|
cs = SPI_CS_MEM0; |
|
|
|
m_cs = new ActiveLowChipSelect(cs, m_settings); |
|
|
|
m_cs = new ActiveLowChipSelect(cs, m_settings); |
|
|
|
break; |
|
|
|
break; |
|
|
|
#if defined(__MK64FX512__) || defined(__MK66FX1M0__) |
|
|
|
#if defined(__MK66FX1M0__) |
|
|
|
case SpiDeviceId::SPI_DEVICE1 : |
|
|
|
case SpiDeviceId::SPI_DEVICE1 : |
|
|
|
cs = SPI_CS_MEM1; |
|
|
|
cs = SPI_CS_MEM1; |
|
|
|
m_cs = new ActiveLowChipSelect1(cs, m_settings); |
|
|
|
m_cs = new ActiveLowChipSelect1(cs, m_settings); |
|
|
@ -299,7 +299,7 @@ BASpiMemoryDMA::BASpiMemoryDMA(SpiDeviceId memDeviceId, uint32_t speedHz) |
|
|
|
cs = SPI_CS_MEM0; |
|
|
|
cs = SPI_CS_MEM0; |
|
|
|
m_cs = new ActiveLowChipSelect(cs, m_settings); |
|
|
|
m_cs = new ActiveLowChipSelect(cs, m_settings); |
|
|
|
break; |
|
|
|
break; |
|
|
|
#if defined(__MK64FX512__) || defined(__MK66FX1M0__) |
|
|
|
#if defined(__MK66FX1M0__) |
|
|
|
case SpiDeviceId::SPI_DEVICE1 : |
|
|
|
case SpiDeviceId::SPI_DEVICE1 : |
|
|
|
cs = SPI_CS_MEM1; |
|
|
|
cs = SPI_CS_MEM1; |
|
|
|
m_cs = new ActiveLowChipSelect1(cs, m_settings); |
|
|
|
m_cs = new ActiveLowChipSelect1(cs, m_settings); |
|
|
@ -346,7 +346,7 @@ void BASpiMemoryDMA::begin(void) |
|
|
|
m_spiDma = new DmaSpiGeneric(); |
|
|
|
m_spiDma = new DmaSpiGeneric(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
#if defined(__MK64FX512__) || defined(__MK66FX1M0__) |
|
|
|
#if defined(__MK66FX1M0__) // DMA on SPI1 is only supported on T3.6
|
|
|
|
case SpiDeviceId::SPI_DEVICE1 : |
|
|
|
case SpiDeviceId::SPI_DEVICE1 : |
|
|
|
m_csPin = SPI_CS_MEM1; |
|
|
|
m_csPin = SPI_CS_MEM1; |
|
|
|
m_spi = &SPI1; |
|
|
|
m_spi = &SPI1; |
|
|
|