V67: #160 buffer size to 512, improved active test

This commit is contained in:
joan 2018-03-13 13:38:58 +00:00
parent eafa0b1d66
commit 424ce5af6a
2 changed files with 8 additions and 3 deletions

View File

@ -10651,7 +10651,12 @@ int bscXfer(bsc_xfer_t *xfer)
active = 1;
}
myGpioSleep(0, 200);
if (!active)
{
active = bscsReg[BSC_FR] & (BSC_FR_RXBUSY | BSC_FR_TXBUSY);
}
if (active) myGpioSleep(0, 20);
}
bscFR = bscsReg[BSC_FR] & 0xffff;

View File

@ -31,7 +31,7 @@ For more information, please refer to <http://unlicense.org/>
#include <stdint.h>
#include <pthread.h>
#define PIGPIO_VERSION 6702
#define PIGPIO_VERSION 6703
/*TEXT
@ -496,7 +496,7 @@ typedef struct
/* BSC FIFO size */
#define BSC_FIFO_SIZE 16
#define BSC_FIFO_SIZE 512
typedef struct
{