mirror of https://github.com/joan2937/pigpio
V67: #160 buffer size to 512, improved active test
This commit is contained in:
parent
eafa0b1d66
commit
424ce5af6a
7
pigpio.c
7
pigpio.c
|
@ -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;
|
||||
|
|
4
pigpio.h
4
pigpio.h
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue