diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2005-12-02 19:34:29 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2005-12-02 19:34:29 +0000 |
commit | 138621bf2dbcfa89e85a35010a406d447365cf7e (patch) | |
tree | d7751e11648be5689eb7fd0ff7a8043ed2ebdcc0 /tools/csr_bcsp.c | |
parent | 2a6755856c498491474e64aa506b81031a1269f7 (diff) | |
download | bluez-138621bf2dbcfa89e85a35010a406d447365cf7e.tar.gz |
Add MicroBCSP implementation
Diffstat (limited to 'tools/csr_bcsp.c')
-rw-r--r-- | tools/csr_bcsp.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/tools/csr_bcsp.c b/tools/csr_bcsp.c index f39a4182f..2e1cea6ec 100644 --- a/tools/csr_bcsp.c +++ b/tools/csr_bcsp.c @@ -34,34 +34,12 @@ #include <termios.h> #include "csr.h" +#include "ubcsp.h" static uint16_t seqnum = 0x0000; static int fd = -1; -#ifdef HAVE_UBCSP -#include "ubcsp.h" -#else -#define UBCSP_PACKET_SENT 0x01 -#define UBCSP_PACKET_RECEIVED 0x02 -#define UBCSP_PEER_RESET 0x04 -#define UBCSP_PACKET_ACK 0x08 - -struct ubcsp_packet -{ - uint8_t channel; - uint8_t reliable; - uint8_t use_crc; - uint16_t length; - uint8_t *payload; -}; - -static inline void ubcsp_initialize(void) {} -static inline void ubcsp_send_packet(struct ubcsp_packet *send_packet) {} -static inline void ubcsp_receive_packet(struct ubcsp_packet *receive_packet) {} -static inline uint8_t ubcsp_poll(uint8_t *activity) { return 20; } -#endif - static struct ubcsp_packet send_packet; static uint8_t send_buffer[512]; |