Skip to content

Commit

Permalink
Initialize RF SPI with our hal::Initialize()
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Schloms committed Feb 4, 2024
1 parent 558e5c0 commit 92acdb4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Sts1CobcSw/Periphery/Rf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 92acdb4

Please sign in to comment.