1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-27 02:05:31 +03:00

Do not automatically negate CS at end of SPI transfer

This commit is contained in:
Steve Evans 2022-09-16 17:26:37 +01:00
parent 3e842b67d4
commit 92e50d548f
3 changed files with 0 additions and 15 deletions

View file

@ -408,11 +408,6 @@ static void spiIrqHandler(const extDevice_t *dev)
nextSegment = (busSegment_t *)bus->curSegment + 1; nextSegment = (busSegment_t *)bus->curSegment + 1;
if (nextSegment->len == 0) { if (nextSegment->len == 0) {
if (!bus->curSegment->negateCS) {
// Negate Chip Select if not done so already
IOHi(dev->busType_u.spi.csnPin);
}
// If a following transaction has been linked, start it // If a following transaction has been linked, start it
if (nextSegment->u.link.dev) { if (nextSegment->u.link.dev) {
const extDevice_t *nextDev = nextSegment->u.link.dev; const extDevice_t *nextDev = nextSegment->u.link.dev;

View file

@ -689,11 +689,6 @@ void spiSequenceStart(const extDevice_t *dev)
} }
} }
if (lastSegment && !lastSegment->negateCS) {
// Negate Chip Select if not done so already
IOHi(dev->busType_u.spi.csnPin);
}
// If a following transaction has been linked, start it // If a following transaction has been linked, start it
if (bus->curSegment->u.link.dev) { if (bus->curSegment->u.link.dev) {
const extDevice_t *nextDev = bus->curSegment->u.link.dev; const extDevice_t *nextDev = bus->curSegment->u.link.dev;

View file

@ -416,11 +416,6 @@ void spiSequenceStart(const extDevice_t *dev)
bus->curSegment++; bus->curSegment++;
} }
if (lastSegment && !lastSegment->negateCS) {
// Negate Chip Select if not done so already
IOHi(dev->busType_u.spi.csnPin);
}
// If a following transaction has been linked, start it // If a following transaction has been linked, start it
if (bus->curSegment->u.link.dev) { if (bus->curSegment->u.link.dev) {
const extDevice_t *nextDev = bus->curSegment->u.link.dev; const extDevice_t *nextDev = bus->curSegment->u.link.dev;