mirror of
https://github.com/JorjBauer/aiie.git
synced 2025-01-14 13:33:08 +00:00
_cs, not _rst
This commit is contained in:
parent
12a84422c9
commit
69ee74079c
@ -81,12 +81,12 @@ protected:
|
|||||||
_pspi->beginTransaction(SPISettings(_clock, MSBFIRST, SPI_MODE3));
|
_pspi->beginTransaction(SPISettings(_clock, MSBFIRST, SPI_MODE3));
|
||||||
/* _spi_tcr_current = _pimxrt_spi->TCR; -- do we need this? related to the _dc line... */
|
/* _spi_tcr_current = _pimxrt_spi->TCR; -- do we need this? related to the _dc line... */
|
||||||
// DIRECT_WRITE_LOW(_csport, _cspinmask);
|
// DIRECT_WRITE_LOW(_csport, _cspinmask);
|
||||||
digitalWrite(_rst, LOW);
|
digitalWrite(_cs, LOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _endSend() __attribute__((always_inline)) {
|
void _endSend() __attribute__((always_inline)) {
|
||||||
// DIRECT_WRITE_HIGH(_csport, _cspinmask);
|
// DIRECT_WRITE_HIGH(_csport, _cspinmask);
|
||||||
digitalWrite(_rst, HIGH);
|
digitalWrite(_cs, HIGH);
|
||||||
_pspi->endTransaction();
|
_pspi->endTransaction();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user