static int stmSpiSlaveStopSync(struct SpiDevice *dev) { struct StmSpiDev *pdev = dev->pdata; if (pdev->nss) gpioRelease(pdev->nss); stmSpiDisable(dev, false); pdev->nss = NULL; return 0; }
static int stmSpiMasterStopSync(struct SpiDevice *dev) { struct StmSpiDev *pdev = dev->pdata; if (pdev->nss) { gpioSet(pdev->nss, 1); gpioRelease(pdev->nss); } stmSpiDisable(dev, true); pdev->nss = NULL; return 0; }
Stm32p::~Stm32p() { delete STM32; gpioRelease(); if (doneProgramming) vddStateSet(false); if (doneProgramming && startAfterProgramming) { printf("Starting...\n"); QThread::msleep(300); } if (startAfterProgramming) vddStateSet(true); }