diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2005-11-11 20:59:28 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2005-11-11 20:59:28 +0000 |
commit | 979392c3e5cd32a4d570f7d37f22baebd04699ba (patch) | |
tree | 1bccc4c3dc493bc998219d15e46c1a2edbec84a6 /tools/bccmd.c | |
parent | 1a31ffaa3c1bca7a26448069bf2aa5007ae7f826 (diff) |
Add skeleton for 3-Wire UART transport
Diffstat (limited to 'tools/bccmd.c')
-rw-r--r-- | tools/bccmd.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/bccmd.c b/tools/bccmd.c index 3bdf702a..7c1260cf 100644 --- a/tools/bccmd.c +++ b/tools/bccmd.c @@ -70,6 +70,8 @@ static inline int transport_open(int transport, char *device) return csr_open_bcsp(device); case CSR_TRANSPORT_H4: return csr_open_h4(device); + case CSR_TRANSPORT_3WIRE: + return csr_open_3wire(device); default: fprintf(stderr, "Unsupported transport\n"); return -1; @@ -87,6 +89,8 @@ static inline int transport_read(int transport, uint16_t varid, uint8_t *value, return csr_read_bcsp(varid, value, length); case CSR_TRANSPORT_H4: return csr_read_h4(varid, value, length); + case CSR_TRANSPORT_3WIRE: + return csr_read_3wire(varid, value, length); default: errno = EOPNOTSUPP; return -1; @@ -104,6 +108,8 @@ static inline int transport_write(int transport, uint16_t varid, uint8_t *value, return csr_write_bcsp(varid, value, length); case CSR_TRANSPORT_H4: return csr_write_h4(varid, value, length); + case CSR_TRANSPORT_3WIRE: + return csr_write_3wire(varid, value, length); default: errno = EOPNOTSUPP; return -1; @@ -125,6 +131,9 @@ static inline void transport_close(int transport) case CSR_TRANSPORT_H4: csr_close_h4(); break; + case CSR_TRANSPORT_3WIRE: + csr_close_3wire(); + break; } } |