[hal] Remove use of getDmaDescriptor from autospi (#3717)

It’s not necessary, as the index equals the channel.
This commit is contained in:
Thad House
2021-11-13 08:55:21 -08:00
committed by GitHub
parent 38611e9dd7
commit 32468a40cb

View File

@@ -496,9 +496,8 @@ void HAL_InitSPIAuto(HAL_SPIPort port, int32_t bufferSize, int32_t* status) {
}
// configure DMA
tDMAChannelDescriptor desc;
spiSystem->getSystemInterface()->getDmaDescriptor(g_SpiAutoData_index, &desc);
spiAutoDMA = std::make_unique<tDMAManager>(desc.channel, bufferSize, status);
spiAutoDMA =
std::make_unique<tDMAManager>(g_SpiAutoData_index, bufferSize, status);
}
void HAL_FreeSPIAuto(HAL_SPIPort port, int32_t* status) {