Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix SPI mode and bit order settings
  • Loading branch information
trevor-makes committed Jun 28, 2023
commit 18c0b66b4cb41fed97c617fd74208b7fba43b21c
2 changes: 1 addition & 1 deletion libraries/SPI/SPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ void ArduinoSPI::configSpi(arduino::SPISettings const & settings)
spcmd0 |= (uint32_t) bit_order << 12;

/* Configure the Bit Rate Division Setting */
spcmd0 &= !(((uint32_t)0xFF) << 2);
spcmd0 &= ~(((uint32_t)0xFF) << 2);
spcmd0 |= (uint32_t) spck_div.brdv << 2;

/* Update settings. */
Expand Down