diff options
Diffstat (limited to 'usrp2/firmware/lib/bsm12.c')
-rw-r--r-- | usrp2/firmware/lib/bsm12.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usrp2/firmware/lib/bsm12.c b/usrp2/firmware/lib/bsm12.c index 25c5a3fda..845046d65 100644 --- a/usrp2/firmware/lib/bsm12.c +++ b/usrp2/firmware/lib/bsm12.c @@ -25,9 +25,17 @@ #include "buffer_pool.h" #include "bool.h" #include "nonstdio.h" -#include "buffer_state.h" #include <stdlib.h> +typedef enum { + BS_EMPTY, + BS_FILLING, + BS_FULL, + BS_EMPTYING, +} buffer_state_t; + +static buffer_state_t buffer_state[NBUFFERS]; +static unsigned char buffer_dst[NBUFFERS]; // 0 or 1 static uint32_t last_send_ctrl[NBUFFERS]; void |