From 92acdb4a28927ca9e1173768b06a0874698801bd Mon Sep 17 00:00:00 2001 From: Daniel Schloms Date: Sun, 4 Feb 2024 17:04:23 +0100 Subject: [PATCH] Initialize RF SPI with our hal::Initialize() --- Sts1CobcSw/Periphery/Rf.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Sts1CobcSw/Periphery/Rf.cpp b/Sts1CobcSw/Periphery/Rf.cpp index 4acd89a7..8b9a5598 100644 --- a/Sts1CobcSw/Periphery/Rf.cpp +++ b/Sts1CobcSw/Periphery/Rf.cpp @@ -671,13 +671,7 @@ auto InitializeGpioAndSpi() -> void watchdogResetGpioPin.Reset(); constexpr auto baudrate = 10'000'000; - auto spiError = spi.init(baudrate, /*slave=*/false, /*tiMode=*/false); - if(spiError == -1) - { - RODOS::PRINTF("Error initializing RF SPI!\n"); - // TODO: proper error handling - return; - } + hal::Initialize(&spi, baudrate); // Enable Si4463 and wait for PoR to finish AT(NOW() + porCircuitSettlePause);