We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0c5148 commit f465a7cCopy full SHA for f465a7c
libraries/SPI/SPI.cpp
@@ -444,7 +444,7 @@ void ArduinoSPI::configSpi(arduino::SPISettings const & settings)
444
445
/* register undocumented for the RA4M1 but found to be working and necessary */
446
/* BYSW - Byte Swap Operating Mode Select - 1 = Byte Swap ON - essential for 32 bit transfers */
447
- _spi_ctrl.p_regs->SPDCR2_b.BYSW = 1;
+ _spi_ctrl.p_regs->SPDCR2_b.BYSW = ~bit_order;
448
449
_spi_ctrl.p_regs->SPCKD = 0;
450
0 commit comments