projects
/
pigpio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eafa0b1
)
V67: #160 buffer size to 512, improved active test
author
joan
<joan@abyz.co.uk>
Tue, 13 Mar 2018 13:38:58 +0000
(13:38 +0000)
committer
joan
<joan@abyz.co.uk>
Tue, 13 Mar 2018 13:38:58 +0000
(13:38 +0000)
pigpio.c
patch
|
blob
|
history
pigpio.h
patch
|
blob
|
history
diff --git
a/pigpio.c
b/pigpio.c
index 3fc6402a13b8c9a34ab5d27a2076e43606765dff..68dab59b56157c1b19a6f7a971bbef2e96bc194e 100644
(file)
--- a/
pigpio.c
+++ b/
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;
diff --git
a/pigpio.h
b/pigpio.h
index 11ee4b9ff7a02fc6f83157c73e40e40f2b3be5a9..dd6d2f82a0af63be10ca7d23d28967729846cb21 100644
(file)
--- a/
pigpio.h
+++ b/
pigpio.h
@@
-31,7
+31,7
@@
For more information, please refer to <http://unlicense.org/>
#include <stdint.h>
#include <pthread.h>
-#define PIGPIO_VERSION 670
2
+#define PIGPIO_VERSION 670
3
/*TEXT
@@
-496,7
+496,7
@@
typedef struct
/* BSC FIFO size */
-#define BSC_FIFO_SIZE
16
+#define BSC_FIFO_SIZE
512
typedef struct
{