Skip to content

Commit

Permalink
Merge pull request #246 from RudolphRiedel/main
Browse files Browse the repository at this point in the history
- fix for #244, byte-order wrong for LSBFIRST buffer transfers
  • Loading branch information
aentinger authored Jan 22, 2024
2 parents d0c5148 + f465a7c commit 5020fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/SPI/SPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ void ArduinoSPI::configSpi(arduino::SPISettings const & settings)

/* register undocumented for the RA4M1 but found to be working and necessary */
/* BYSW - Byte Swap Operating Mode Select - 1 = Byte Swap ON - essential for 32 bit transfers */
_spi_ctrl.p_regs->SPDCR2_b.BYSW = 1;
_spi_ctrl.p_regs->SPDCR2_b.BYSW = ~bit_order;

_spi_ctrl.p_regs->SPCKD = 0;

Expand Down

0 comments on commit 5020fd4

Please sign in to comment.