From d3dd586362cba05e57fadd162038967efb50fa0b Mon Sep 17 00:00:00 2001 From: Thad House Date: Tue, 12 Dec 2017 11:31:20 -0800 Subject: [PATCH] Revert "Fixes SPI bad chip select (#818)" (#822) This is no longer required for image 2018v16. This reverts commit b42285fddd7632e889e5736801dcd4901f381c70. --- hal/src/main/native/athena/DigitalInternal.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/hal/src/main/native/athena/DigitalInternal.cpp b/hal/src/main/native/athena/DigitalInternal.cpp index 3030d5a95f..94fecdb33f 100644 --- a/hal/src/main/native/athena/DigitalInternal.cpp +++ b/hal/src/main/native/athena/DigitalInternal.cpp @@ -104,15 +104,6 @@ void initializeDigital(int32_t* status) { // SPI setup spiSystem.reset(tSPI::create(status)); - // Image 13 requires a SPI select and a strobe to enable SPI CS on MXP. - // Switch to SPI 1, strobe the signal, and then switch back to previous. - bool existingSelect = spiSystem->readAutoSPI1Select(status); - spiSystem->writeAutoSPI1Select(true, status); - spiSystem->strobeAutoForceOne(status); - // Delay enough time to actually trigger strobe - std::this_thread::sleep_for(std::chrono::milliseconds(50)); - spiSystem->writeAutoSPI1Select(existingSelect, status); - initialized = true; }