summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/hardware/rasberrypi/serial
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/src/c/hardware/rasberrypi/serial')
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/dRPISerialSendDataa.c3
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/dRPISerialSendDatas.c3
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/gRPISerialSendDatas.c3
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialSendDataa.c4
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialSendDatas.c3
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/i8RPISerialSendDataa.c4
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/i8RPISerialSendDatas.c3
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/sRPISerialSendDataa.c4
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/sRPISerialSendDatas.c3
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSendDataa.c3
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSendDatas.c4
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialCloses.c4
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialFlushs.c4
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendChars.c4
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendDataa.c4
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendDatas.c3
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSetups.c2
17 files changed, 17 insertions, 41 deletions
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/dRPISerialSendDataa.c b/2.3-1/src/c/hardware/rasberrypi/serial/dRPISerialSendDataa.c
index 271a6b1f..f9902550 100644
--- a/2.3-1/src/c/hardware/rasberrypi/serial/dRPISerialSendDataa.c
+++ b/2.3-1/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/2.3-1/src/c/hardware/rasberrypi/serial/dRPISerialSendDatas.c b/2.3-1/src/c/hardware/rasberrypi/serial/dRPISerialSendDatas.c
index c1553f79..39112fc2 100644
--- a/2.3-1/src/c/hardware/rasberrypi/serial/dRPISerialSendDatas.c
+++ b/2.3-1/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/2.3-1/src/c/hardware/rasberrypi/serial/gRPISerialSendDatas.c b/2.3-1/src/c/hardware/rasberrypi/serial/gRPISerialSendDatas.c
index 4ad671a0..f4ec8a85 100644
--- a/2.3-1/src/c/hardware/rasberrypi/serial/gRPISerialSendDatas.c
+++ b/2.3-1/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/2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialSendDataa.c b/2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialSendDataa.c
index f5b7d71e..24180f41 100644
--- a/2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialSendDataa.c
+++ b/2.3-1/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/2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialSendDatas.c b/2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialSendDatas.c
index ff6edfff..fe6fe6f4 100644
--- a/2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialSendDatas.c
+++ b/2.3-1/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/2.3-1/src/c/hardware/rasberrypi/serial/i8RPISerialSendDataa.c b/2.3-1/src/c/hardware/rasberrypi/serial/i8RPISerialSendDataa.c
index d208a01c..c4dd199c 100644
--- a/2.3-1/src/c/hardware/rasberrypi/serial/i8RPISerialSendDataa.c
+++ b/2.3-1/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/2.3-1/src/c/hardware/rasberrypi/serial/i8RPISerialSendDatas.c b/2.3-1/src/c/hardware/rasberrypi/serial/i8RPISerialSendDatas.c
index 0d130d1d..e637871f 100644
--- a/2.3-1/src/c/hardware/rasberrypi/serial/i8RPISerialSendDatas.c
+++ b/2.3-1/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/2.3-1/src/c/hardware/rasberrypi/serial/sRPISerialSendDataa.c b/2.3-1/src/c/hardware/rasberrypi/serial/sRPISerialSendDataa.c
index 92fa5a72..14c0bc70 100644
--- a/2.3-1/src/c/hardware/rasberrypi/serial/sRPISerialSendDataa.c
+++ b/2.3-1/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/2.3-1/src/c/hardware/rasberrypi/serial/sRPISerialSendDatas.c b/2.3-1/src/c/hardware/rasberrypi/serial/sRPISerialSendDatas.c
index bd0cd949..ff78dd1f 100644
--- a/2.3-1/src/c/hardware/rasberrypi/serial/sRPISerialSendDatas.c
+++ b/2.3-1/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/2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSendDataa.c b/2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSendDataa.c
index e979882e..b444047b 100644
--- a/2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSendDataa.c
+++ b/2.3-1/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/2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSendDatas.c b/2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSendDatas.c
index 2f0536c3..b4a90c29 100644
--- a/2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSendDatas.c
+++ b/2.3-1/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/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialCloses.c b/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialCloses.c
index d5d4e37e..5162d15e 100644
--- a/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialCloses.c
+++ b/2.3-1/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/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialFlushs.c b/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialFlushs.c
index 2df1f37d..c80a92c5 100644
--- a/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialFlushs.c
+++ b/2.3-1/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/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendChars.c b/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendChars.c
index ca15b21d..e3813514 100644
--- a/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendChars.c
+++ b/2.3-1/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/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendDataa.c b/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendDataa.c
index e2fe32f7..9d097141 100644
--- a/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendDataa.c
+++ b/2.3-1/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/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendDatas.c b/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendDatas.c
index 86d2be5c..9edb439f 100644
--- a/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendDatas.c
+++ b/2.3-1/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/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSetups.c b/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSetups.c
index 6912279e..cde4cba2 100644
--- a/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSetups.c
+++ b/2.3-1/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;