- Added Sycamore protocol and command context to SICS

- Added sinfo to SICS
- Added driver for TCP/IP Astrium velocity selector
- Added driver for TCP/IP Astrium chopper controller
This commit is contained in:
koennecke
2005-12-22 22:16:13 +00:00
parent 6b224a4520
commit a5f315b56a
22 changed files with 2225 additions and 90 deletions

4
ecb.c
View File

@ -24,7 +24,7 @@
#define READ_BYTES 3
#define WRITE_BYTES 4
#define DMAREAD 5
#define ECB_BYTES 65536L
#define ECB_BYTES 65535
typedef union /* Used to swap bytes in 'address' and 'byte_count' */
{
@ -112,7 +112,7 @@ static int ecbPrepareIO(pECB self, int func, unsigned short address,
Swap save, adr, count;
int status, bytes;
if(byteCount > ECB_BYTES){
if(byteCount >= ECB_BYTES){
self->lastError = ECBOVERFLOW;
return 0;
}