diff options
author | siddhu8990 | 2016-10-18 10:31:23 +0530 |
---|---|---|
committer | siddhu8990 | 2016-10-18 10:31:23 +0530 |
commit | 52de97290366abe6cfb0576ca19d9c1732c1f0ea (patch) | |
tree | c2effe8b6e60c112b126f1d39ddb0d82253dc4e9 /src/c/hardware/rasberrypi/serial | |
parent | 9a30882032e80661fe6c69d7c50da0154e4e431f (diff) | |
download | Scilab2C_fossee_old-52de97290366abe6cfb0576ca19d9c1732c1f0ea.tar.gz Scilab2C_fossee_old-52de97290366abe6cfb0576ca19d9c1732c1f0ea.tar.bz2 Scilab2C_fossee_old-52de97290366abe6cfb0576ca19d9c1732c1f0ea.zip |
Suppressed declaration of not required variables and functions
Diffstat (limited to 'src/c/hardware/rasberrypi/serial')
17 files changed, 17 insertions, 41 deletions
diff --git a/src/c/hardware/rasberrypi/serial/dRPISerialSendDataa.c b/src/c/hardware/rasberrypi/serial/dRPISerialSendDataa.c index 271a6b1..f990255 100644 --- a/src/c/hardware/rasberrypi/serial/dRPISerialSendDataa.c +++ b/src/c/hardware/rasberrypi/serial/dRPISerialSendDataa.c @@ -15,7 +15,7 @@ #include "types.h" #include "RPIPeripheralSerial.h" -uint8 dRPISerialSendDataa(int fd, double* data, int size) +void dRPISerialSendDataa(int fd, double* data, int size) { int count = 0; @@ -24,5 +24,4 @@ uint8 dRPISerialSendDataa(int fd, double* data, int size) dRPISerialSendDatas(fd, data[count]); } - return 0; } diff --git a/src/c/hardware/rasberrypi/serial/dRPISerialSendDatas.c b/src/c/hardware/rasberrypi/serial/dRPISerialSendDatas.c index c1553f7..39112fc 100644 --- a/src/c/hardware/rasberrypi/serial/dRPISerialSendDatas.c +++ b/src/c/hardware/rasberrypi/serial/dRPISerialSendDatas.c @@ -15,7 +15,7 @@ #include "types.h" #include "RPIPeripheralSerial.h" -uint8 dRPISerialSendDatas(int fd, double data) +void dRPISerialSendDatas(int fd, double data) { uint8 count; @@ -32,5 +32,4 @@ uint8 dRPISerialSendDatas(int fd, double data) serialPutchar(fd, (uint8) in_data.bytes[count]); } - return 0; } diff --git a/src/c/hardware/rasberrypi/serial/gRPISerialSendDatas.c b/src/c/hardware/rasberrypi/serial/gRPISerialSendDatas.c index 4ad671a..f4ec8a8 100644 --- a/src/c/hardware/rasberrypi/serial/gRPISerialSendDatas.c +++ b/src/c/hardware/rasberrypi/serial/gRPISerialSendDatas.c @@ -15,7 +15,7 @@ #include "types.h" #include "RPIPeripheralSerial.h" -uint8 gRPISerialSendDatas(int fd, uint8* data, int size) +void gRPISerialSendDatas(int fd, uint8* data, int size) { int count = 0; @@ -24,5 +24,4 @@ uint8 gRPISerialSendDatas(int fd, uint8* data, int size) serialPutchar(fd, data[count]); } - return 0; } diff --git a/src/c/hardware/rasberrypi/serial/i16RPISerialSendDataa.c b/src/c/hardware/rasberrypi/serial/i16RPISerialSendDataa.c index f5b7d71..24180f4 100644 --- a/src/c/hardware/rasberrypi/serial/i16RPISerialSendDataa.c +++ b/src/c/hardware/rasberrypi/serial/i16RPISerialSendDataa.c @@ -15,7 +15,7 @@ #include "types.h" #include "RPIPeripheralSerial.h" -uint8 i16RPISerialSendDataa(int fd, int16* data, int size) +void i16RPISerialSendDataa(int fd, int16* data, int size) { int count = 0; @@ -24,6 +24,4 @@ uint8 i16RPISerialSendDataa(int fd, int16* data, int size) i16RPISerialSendDatas(fd, data[count]); } - - return 0; } diff --git a/src/c/hardware/rasberrypi/serial/i16RPISerialSendDatas.c b/src/c/hardware/rasberrypi/serial/i16RPISerialSendDatas.c index ff6edff..fe6fe6f 100644 --- a/src/c/hardware/rasberrypi/serial/i16RPISerialSendDatas.c +++ b/src/c/hardware/rasberrypi/serial/i16RPISerialSendDatas.c @@ -15,11 +15,10 @@ #include "types.h" #include "RPIPeripheralSerial.h" -uint8 i16RPISerialSendDatas(int fd, int16 data) +void i16RPISerialSendDatas(int fd, int16 data) { /*Send lsb first*/ serialPutchar(fd, (uint8) data); serialPutchar(fd, (uint8) (data>>8)); - return 0; } diff --git a/src/c/hardware/rasberrypi/serial/i8RPISerialSendDataa.c b/src/c/hardware/rasberrypi/serial/i8RPISerialSendDataa.c index d208a01..c4dd199 100644 --- a/src/c/hardware/rasberrypi/serial/i8RPISerialSendDataa.c +++ b/src/c/hardware/rasberrypi/serial/i8RPISerialSendDataa.c @@ -15,7 +15,7 @@ #include "types.h" #include "RPIPeripheralSerial.h" -uint8 i8RPISerialSendDataa(int fd, int8* data, int size) +void i8RPISerialSendDataa(int fd, int8* data, int size) { int count = 0; @@ -23,6 +23,4 @@ uint8 i8RPISerialSendDataa(int fd, int8* data, int size) { i8RPISerialSendDatas(fd, data[count]); } - - return 0; } diff --git a/src/c/hardware/rasberrypi/serial/i8RPISerialSendDatas.c b/src/c/hardware/rasberrypi/serial/i8RPISerialSendDatas.c index 0d130d1..e637871 100644 --- a/src/c/hardware/rasberrypi/serial/i8RPISerialSendDatas.c +++ b/src/c/hardware/rasberrypi/serial/i8RPISerialSendDatas.c @@ -15,9 +15,8 @@ #include "types.h" #include "RPIPeripheralSerial.h" -uint8 i8RPISerialSendDatas(int fd, int8 data) +void i8RPISerialSendDatas(int fd, int8 data) { serialPutchar(fd, (uint8) data); - return 0; } diff --git a/src/c/hardware/rasberrypi/serial/sRPISerialSendDataa.c b/src/c/hardware/rasberrypi/serial/sRPISerialSendDataa.c index 92fa5a7..14c0bc7 100644 --- a/src/c/hardware/rasberrypi/serial/sRPISerialSendDataa.c +++ b/src/c/hardware/rasberrypi/serial/sRPISerialSendDataa.c @@ -15,7 +15,7 @@ #include "types.h" #include "RPIPeripheralSerial.h" -uint8 sRPISerialSendDataa(int fd, float* data, int size) +void sRPISerialSendDataa(int fd, float* data, int size) { int count = 0; @@ -24,6 +24,4 @@ uint8 sRPISerialSendDataa(int fd, float* data, int size) sRPISerialSendDatas(fd, data[count]); } - - return 0; } diff --git a/src/c/hardware/rasberrypi/serial/sRPISerialSendDatas.c b/src/c/hardware/rasberrypi/serial/sRPISerialSendDatas.c index bd0cd94..ff78dd1 100644 --- a/src/c/hardware/rasberrypi/serial/sRPISerialSendDatas.c +++ b/src/c/hardware/rasberrypi/serial/sRPISerialSendDatas.c @@ -15,7 +15,7 @@ #include "types.h" #include "RPIPeripheralSerial.h" -uint8 sRPISerialSendDatas(int fd, float data) +void sRPISerialSendDatas(int fd, float data) { uint8 count; @@ -31,5 +31,4 @@ uint8 sRPISerialSendDatas(int fd, float data) serialPutchar(fd, (uint8) in_data.bytes[count]); } - return 0; } diff --git a/src/c/hardware/rasberrypi/serial/u16RPISerialSendDataa.c b/src/c/hardware/rasberrypi/serial/u16RPISerialSendDataa.c index e979882..b444047 100644 --- a/src/c/hardware/rasberrypi/serial/u16RPISerialSendDataa.c +++ b/src/c/hardware/rasberrypi/serial/u16RPISerialSendDataa.c @@ -15,7 +15,7 @@ #include "types.h" #include "RPIPeripheralSerial.h" -uint8 u16RPISerialSendDataa(int fd, uint16* data, int size) +void u16RPISerialSendDataa(int fd, uint16* data, int size) { int count = 0; @@ -25,5 +25,4 @@ uint8 u16RPISerialSendDataa(int fd, uint16* data, int size) } - return 0; } diff --git a/src/c/hardware/rasberrypi/serial/u16RPISerialSendDatas.c b/src/c/hardware/rasberrypi/serial/u16RPISerialSendDatas.c index 2f0536c..b4a90c2 100644 --- a/src/c/hardware/rasberrypi/serial/u16RPISerialSendDatas.c +++ b/src/c/hardware/rasberrypi/serial/u16RPISerialSendDatas.c @@ -15,11 +15,9 @@ #include "types.h" #include "RPIPeripheralSerial.h" -uint8 u16RPISerialSendDatas(int fd, uint16 data) +void u16RPISerialSendDatas(int fd, uint16 data) { /*Send lsb first*/ serialPutchar(fd, (uint8) data); serialPutchar(fd, (uint8) (data>>8)); - - return 0; } diff --git a/src/c/hardware/rasberrypi/serial/u8RPISerialCloses.c b/src/c/hardware/rasberrypi/serial/u8RPISerialCloses.c index d5d4e37..5162d15 100644 --- a/src/c/hardware/rasberrypi/serial/u8RPISerialCloses.c +++ b/src/c/hardware/rasberrypi/serial/u8RPISerialCloses.c @@ -15,9 +15,7 @@ #include "types.h" #include "RPIPeripheralSerial.h" -uint8 u8RPISerialCloses(int fd) +void u8RPISerialCloses(int fd) { serialClose (fd); - - return 0; } diff --git a/src/c/hardware/rasberrypi/serial/u8RPISerialFlushs.c b/src/c/hardware/rasberrypi/serial/u8RPISerialFlushs.c index 2df1f37..c80a92c 100644 --- a/src/c/hardware/rasberrypi/serial/u8RPISerialFlushs.c +++ b/src/c/hardware/rasberrypi/serial/u8RPISerialFlushs.c @@ -15,9 +15,7 @@ #include "types.h" #include "RPIPeripheralSerial.h" -uint8 u8RPISerialFlushs(int fd) +void u8RPISerialFlushs(int fd) { serialFlush(fd); - - return 0; } diff --git a/src/c/hardware/rasberrypi/serial/u8RPISerialSendChars.c b/src/c/hardware/rasberrypi/serial/u8RPISerialSendChars.c index ca15b21..e381351 100644 --- a/src/c/hardware/rasberrypi/serial/u8RPISerialSendChars.c +++ b/src/c/hardware/rasberrypi/serial/u8RPISerialSendChars.c @@ -15,9 +15,7 @@ #include "types.h" #include "RPIPeripheralSerial.h" -uint8 u8RPISerialSendChars(int fd, uint8 data) +void u8RPISerialSendChars(int fd, uint8 data) { serialPutchar(fd, data); - - return 0; } diff --git a/src/c/hardware/rasberrypi/serial/u8RPISerialSendDataa.c b/src/c/hardware/rasberrypi/serial/u8RPISerialSendDataa.c index e2fe32f..9d09714 100644 --- a/src/c/hardware/rasberrypi/serial/u8RPISerialSendDataa.c +++ b/src/c/hardware/rasberrypi/serial/u8RPISerialSendDataa.c @@ -15,7 +15,7 @@ #include "types.h" #include "RPIPeripheralSerial.h" -uint8 u8RPISerialSendDataa(int fd, uint8* data, int size) +void u8RPISerialSendDataa(int fd, uint8* data, int size) { int count = 0; @@ -24,6 +24,4 @@ uint8 u8RPISerialSendDataa(int fd, uint8* data, int size) u8RPISerialSendDatas(fd, data[count]); } - - return 0; } diff --git a/src/c/hardware/rasberrypi/serial/u8RPISerialSendDatas.c b/src/c/hardware/rasberrypi/serial/u8RPISerialSendDatas.c index 86d2be5..9edb439 100644 --- a/src/c/hardware/rasberrypi/serial/u8RPISerialSendDatas.c +++ b/src/c/hardware/rasberrypi/serial/u8RPISerialSendDatas.c @@ -15,9 +15,8 @@ #include "types.h" #include "RPIPeripheralSerial.h" -uint8 u8RPISerialSendDatas(int fd, uint8 data) +void u8RPISerialSendDatas(int fd, uint8 data) { serialPutchar(fd, data); - return 0; } diff --git a/src/c/hardware/rasberrypi/serial/u8RPISerialSetups.c b/src/c/hardware/rasberrypi/serial/u8RPISerialSetups.c index 6912279..cde4cba 100644 --- a/src/c/hardware/rasberrypi/serial/u8RPISerialSetups.c +++ b/src/c/hardware/rasberrypi/serial/u8RPISerialSetups.c @@ -15,7 +15,7 @@ #include "types.h" #include "RPIPeripheralSerial.h" -int u8RPISerialSetups(char* port, int baudrate) +int u16RPISerialSetups(char* port, int baudrate) { int fd; |