summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/hardware
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/src/c/hardware')
-rw-r--r--2.3-1/src/c/hardware/avr/adc/u8AVRADCSetups.c3
-rw-r--r--2.3-1/src/c/hardware/avr/gpio/u8AVRDigitalOuts.c3
-rw-r--r--2.3-1/src/c/hardware/avr/gpio/u8AVRDigitalSetups.c3
-rw-r--r--2.3-1/src/c/hardware/avr/includes/AVRPeripheralADC.h2
-rw-r--r--2.3-1/src/c/hardware/avr/includes/AVRPeripheralGPIO.h4
-rw-r--r--2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h4
-rw-r--r--2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetDutys.c2
-rw-r--r--2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetups.c4
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c4
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c4
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h4
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h8
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h34
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h4
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSerial.h30
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c4
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c4
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c4
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c4
-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
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/timing/u16RPIDelayMicros.c3
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/timing/u16RPIDelayMillis.c4
38 files changed, 80 insertions, 114 deletions
diff --git a/2.3-1/src/c/hardware/avr/adc/u8AVRADCSetups.c b/2.3-1/src/c/hardware/avr/adc/u8AVRADCSetups.c
index 620f80fe..f9d310b8 100644
--- a/2.3-1/src/c/hardware/avr/adc/u8AVRADCSetups.c
+++ b/2.3-1/src/c/hardware/avr/adc/u8AVRADCSetups.c
@@ -26,7 +26,7 @@
#include "AVRPeripheralADC.h"
-uint8 u8AVRADCSetups(uint8 prescalar, uint8 adc_ref)
+void u8AVRADCSetups(uint8 prescalar, uint8 adc_ref)
{
/*Set the prescalar value*/
ADCSRA |= (prescalar & 0x07);
@@ -37,6 +37,5 @@ uint8 u8AVRADCSetups(uint8 prescalar, uint8 adc_ref)
/*Enable ADC hardware. Set ADEN bit*/
ADCSRA |= (1<<7);
- return 0;
}
diff --git a/2.3-1/src/c/hardware/avr/gpio/u8AVRDigitalOuts.c b/2.3-1/src/c/hardware/avr/gpio/u8AVRDigitalOuts.c
index 5ee84a80..118da542 100644
--- a/2.3-1/src/c/hardware/avr/gpio/u8AVRDigitalOuts.c
+++ b/2.3-1/src/c/hardware/avr/gpio/u8AVRDigitalOuts.c
@@ -25,7 +25,7 @@
#include "AVRPeripheralGPIO.h"
-uint8 u8AVRDigitalOuts(uint8 port,uint8 pin,uint8 state)
+void u8AVRDigitalOuts(uint8 port,uint8 pin,uint8 state)
{
if(state == LOW)
{/*Make output pin high*/
@@ -65,5 +65,4 @@ uint8 u8AVRDigitalOuts(uint8 port,uint8 pin,uint8 state)
PORTD = PORTD | (1<<pin);
}
}
-return 0;
}
diff --git a/2.3-1/src/c/hardware/avr/gpio/u8AVRDigitalSetups.c b/2.3-1/src/c/hardware/avr/gpio/u8AVRDigitalSetups.c
index 46697f70..e28c468c 100644
--- a/2.3-1/src/c/hardware/avr/gpio/u8AVRDigitalSetups.c
+++ b/2.3-1/src/c/hardware/avr/gpio/u8AVRDigitalSetups.c
@@ -25,7 +25,7 @@
#include "AVRPeripheralGPIO.h"
-uint8 u8AVRDigitalSetups(uint8 port,uint8 pin,uint8 direction)
+void u8AVRDigitalSetups(uint8 port,uint8 pin,uint8 direction)
{
if (direction == INPUT)
@@ -66,6 +66,5 @@ uint8 u8AVRDigitalSetups(uint8 port,uint8 pin,uint8 direction)
DDRD = DDRD | (1<<pin);
}
}
-return 0;
}
diff --git a/2.3-1/src/c/hardware/avr/includes/AVRPeripheralADC.h b/2.3-1/src/c/hardware/avr/includes/AVRPeripheralADC.h
index e343de63..736c3406 100644
--- a/2.3-1/src/c/hardware/avr/includes/AVRPeripheralADC.h
+++ b/2.3-1/src/c/hardware/avr/includes/AVRPeripheralADC.h
@@ -15,7 +15,7 @@ extern "C" {
#endif
//Function prototypes
-uint8 u8AVRADCSetups(uint8 prescalar, uint8 adc_ref);
+void u8AVRADCSetups(uint8 prescalar, uint8 adc_ref);
uint16 u8AVRReadADCs(uint8 channel);
diff --git a/2.3-1/src/c/hardware/avr/includes/AVRPeripheralGPIO.h b/2.3-1/src/c/hardware/avr/includes/AVRPeripheralGPIO.h
index ddbeb2d8..37f2377e 100644
--- a/2.3-1/src/c/hardware/avr/includes/AVRPeripheralGPIO.h
+++ b/2.3-1/src/c/hardware/avr/includes/AVRPeripheralGPIO.h
@@ -32,11 +32,11 @@ extern "C" {
#define HIGH 1
//Function prototypes
-uint8 u8AVRDigitalSetups(uint8 port,uint8 pin,uint8 direction);
+void u8AVRDigitalSetups(uint8 port,uint8 pin,uint8 direction);
uint8 u8AVRDigitalIns(uint8 port,uint8 pin);
-uint8 u8AVRDigitalOuts(uint8 port,uint8 pin,uint8 state);
+void u8AVRDigitalOuts(uint8 port,uint8 pin,uint8 state);
#ifdef __cplusplus
} /* extern "C" */
diff --git a/2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h b/2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h
index 7371dd74..2e41db6e 100644
--- a/2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h
+++ b/2.3-1/src/c/hardware/avr/includes/AVRPeripheralPWM.h
@@ -15,9 +15,9 @@ extern "C" {
#endif
//Function prototypes
-uint8 u8AVRPWMSetups(uint8 timer, uint8 prescalar, uint8 waveform_mode, uint8 output_mode);
+void u8AVRPWMSetups(uint8 timer, uint8 prescalar, uint8 waveform_mode, uint8 output_mode);
-uint8 u8AVRPWMSetDutys(uint8 timer, uint8 duty);
+void u8AVRPWMSetDutys(uint8 timer, uint8 duty);
#ifdef __cplusplus
diff --git a/2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetDutys.c b/2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetDutys.c
index adb186a6..0f358fc3 100644
--- a/2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetDutys.c
+++ b/2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetDutys.c
@@ -19,7 +19,7 @@
#include "AVRPeripheralPWM.h"
-uint8 u8AVRPWMSetDutys(uint8 timer, uint8 duty)
+void u8AVRPWMSetDutys(uint8 timer, uint8 duty)
{
uint8 duty_value=0;
diff --git a/2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetups.c b/2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetups.c
index 5110d812..945f2312 100644
--- a/2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetups.c
+++ b/2.3-1/src/c/hardware/avr/pwm/u8AVRPWMSetups.c
@@ -33,7 +33,7 @@
#include "AVRPeripheralPWM.h"
-uint8 u8AVRPWMSetups(uint8 timer, uint8 prescalar, uint8 waveform_mode, uint8 output_mode)
+void u8AVRPWMSetups(uint8 timer, uint8 prescalar, uint8 waveform_mode, uint8 output_mode)
{
switch(timer)
{
@@ -56,7 +56,5 @@ uint8 u8AVRPWMSetups(uint8 timer, uint8 prescalar, uint8 waveform_mode, uint8 ou
TCCR2 |= ((output_mode & 0x02) << 6); //WGM1
break;
}
-
- return 0;
}
diff --git a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c b/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c
index a5f80e5d..f828f77e 100644
--- a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c
+++ b/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c
@@ -17,12 +17,10 @@
#include "RPIPeripheralDigital.h"
/*pin is reduced by one as array index starts from 0 and pin no starts from 1*/
-uint8 u8RPIDigitalOuts(uint8 pin, uint8 state)
+void u8RPIDigitalOuts(uint8 pin, uint8 state)
{
if (state == 0) /*low output*/
digitalWrite(phy_pin[pin-1], LOW);
if (state == 1) /*high output*/
digitalWrite(phy_pin[pin-1], HIGH);
-
- return 0;
}
diff --git a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c b/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c
index 37cfc037..fa860255 100644
--- a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c
+++ b/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c
@@ -26,7 +26,7 @@ int phy_pin[] = {17, 17, 8, 17, 9, 17, 7, 15, 17, 16, /*Pin 1 to 10*/
13, 6, 14, 10, 17, 11 }; /*Pin 21 to 26*/
/*pin is reduced by one as arrayiindex starts from 0 and pin no starts from 1*/
-uint8 u8RPIDigitalSetups(uint8 pin, uint8 direction)
+void u8RPIDigitalSetups(uint8 pin, uint8 direction)
{
if(direction == 1) /*Pin to be used as output*/
pinMode(phy_pin[pin-1], OUTPUT);
@@ -35,6 +35,4 @@ uint8 u8RPIDigitalSetups(uint8 pin, uint8 direction)
else
pinMode(phy_pin[pin-1], INPUT);
-
- return 0;
}
diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h
index 60561cca..2f40ffb2 100644
--- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h
+++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h
@@ -25,8 +25,8 @@ extern "C" {
extern int phy_pin[];
-uint8 u8RPIDigitalSetups(uint8 pin, uint8 direction);
-uint8 u8RPIDigitalOuts(uint8 pin, uint8 state);
+void u8RPIDigitalSetups(uint8 pin, uint8 direction);
+void u8RPIDigitalOuts(uint8 pin, uint8 state);
uint8 u8RPIDigitalIns(uint8 pin);
#ifdef __cplusplus
diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h
index 47634d05..d463d9c9 100644
--- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h
+++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h
@@ -19,10 +19,10 @@
extern "C" {
#endif
-uint8 u8RPIHardPWMWrites(uint8 pin, uint16 value);
-uint8 u8RPIHardPWMSetRanges(uint16 value);
-uint8 u8RPIHardPWMSetModes(uint8 mode);
-uint8 u8RPIHardPWMSetClocks(uint16 clk_divisor);
+void u8RPIHardPWMWrites(uint8 pin, uint16 value);
+void u8RPIHardPWMSetRanges(uint16 value);
+void u8RPIHardPWMSetModes(uint8 mode);
+void u8RPIHardPWMSetClocks(uint16 clk_divisor);
#ifdef __cplusplus
} /* extern "C" */
diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h
index 199caf9f..76a229e2 100644
--- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h
+++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h
@@ -20,27 +20,27 @@ extern "C" {
#endif
int u8RPISerialSetups(char* port, int baudrate);
-uint8 u8RPISerialCloses(int fd);
-
-uint8 u8RPISerialSendChars(int fd, uint8 data);
-uint8 u8RPISerialSendDatas(int fd, uint8 data);
-uint8 i8RPISerialSendDatas(int fd, int8 data);
-uint8 u16RPISerialSendDatas(int fd, uint16 data);
-uint8 i16RPISerialSendDatas(int fd, int16 data);
-uint8 sRPISerialSendDatas(int fd, float data);
-uint8 dRPISerialSendDatas(int fd, double data);
-uint8 u8RPISerialSendDataa(int fd, uint8* data, int size);
-uint8 i8RPISerialSendDataa(int fd, int8* data, int size);
-uint8 u16RPISerialSendDataa(int fd, uint16* data, int size);
-uint8 i16RPISerialSendDataa(int fd, int16* data, int size);
-uint8 sRPISerialSendDataa(int fd, float* data, int size);
-uint8 dRPISerialSendDataa(int fd, double* data, int size);
-uint8 gRPISerialSendDatas(int fd, uint8* data, int size);
+void u8RPISerialCloses(int fd);
+
+void u8RPISerialSendChars(int fd, uint8 data);
+void u8RPISerialSendDatas(int fd, uint8 data);
+void i8RPISerialSendDatas(int fd, int8 data);
+void u16RPISerialSendDatas(int fd, uint16 data);
+void i16RPISerialSendDatas(int fd, int16 data);
+void sRPISerialSendDatas(int fd, float data);
+void dRPISerialSendDatas(int fd, double data);
+void u8RPISerialSendDataa(int fd, void* data, int size);
+void i8RPISerialSendDataa(int fd, int8* data, int size);
+void u16RPISerialSendDataa(int fd, uint16* data, int size);
+void i16RPISerialSendDataa(int fd, int16* data, int size);
+void sRPISerialSendDataa(int fd, float* data, int size);
+void dRPISerialSendDataa(int fd, double* data, int size);
+void gRPISerialSendDatas(int fd, void* data, int size);
int16 i16RPISerialDataAvails(int fd);
int16 i16RPISerialGetChars(int fd);
-uint8 u8RPISerialFlushs(int fd);
+void u8RPISerialFlushs(int fd);
#ifdef __cplusplus
} /* extern "C" */
diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h
index d1ca027e..854073f3 100644
--- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h
+++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h
@@ -22,8 +22,8 @@ extern "C" {
#include "types.h"
#include "wiringPi.h"
-uint8 u16RPIDelayMillis(uint16 time);
-uint8 u16RPIDelayMicros(uint16 time);
+void u16RPIDelayMillis(uint16 time);
+void u16RPIDelayMicros(uint16 time);
uint32 u32RPIGetMillis();
uint32 u32RPIGetMicros();
diff --git a/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSerial.h b/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSerial.h
index 570e9441..5d53b98b 100644
--- a/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSerial.h
+++ b/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSerial.h
@@ -18,23 +18,23 @@
extern "C" {
#endif
-#define RPI_SerialSetup(port,size,baudrate) u8RPISerialSetups(port,baudrate)
+#define RPI_SerialSetup(port,size,baudrate) u16RPISerialSetups(port,baudrate)
#define RPI_SerialClose(fd) u8RPISerialCloses(fd)
-#define u80u80RPI_SerialSendDatau80(fd,data) u8RPISerialSendDatas(fd,data)
-#define u80i80RPI_SerialSendDatau80(fd,data) i8RPISerialSendDatas(fd,data)
-#define u80u160RPI_SerialSendDatau80(fd,data) u16RPISerialSendDatas(fd,data)
-#define u80i160RPI_SerialSendDatau80(fd,data) i16RPISerialSendDatas(fd,data)
-#define u80s0RPI_SerialSendDatau80(fd,data) sRPISerialSendDatas(fd,data)
-#define u80d0RPI_SerialSendDatau80(fd,data) dRPISerialSendDatas(fd,data)
-
-#define u80u82RPI_SerialSendDatau80(fd,data,size) u8RPISerialSendDataa(fd,data,size[0]*size[1]);
-#define u80i82RPI_SerialSendDatau80(fd,data,size) i8RPISerialSendDataa(fd,data,size[0]*size[1]);
-#define u80u162RPI_SerialSendDatau80(fd,data,size) u16RPISerialSendDataa(fd,data,size[0]*size[1]);
-#define u80i162RPI_SerialSendDatau80(fd,data,size) i16RPISerialSendDataa(fd,data,size[0]*size[1]);
-#define u80s2RPI_SerialSendDatau80(fd,data,size) sRPISerialSendDataa(fd,data,size[0]*size[1]);
-#define u80d2RPI_SerialSendDatau80(fd,data,size) dRPISerialSendDataa(fd,data,size[0]*size[1]);
-#define u80g2RPI_SerialSendDatau80(fd,data,size) gRPISerialSendDatas(fd,data,size[0]*size[1]);
+#define u80u80RPI_SerialSendData(fd,data) u8RPISerialSendDatas(fd,data)
+#define u80i80RPI_SerialSendData(fd,data) i8RPISerialSendDatas(fd,data)
+#define u80u160RPI_SerialSendData(fd,data) u16RPISerialSendDatas(fd,data)
+#define u80i160RPI_SerialSendData(fd,data) i16RPISerialSendDatas(fd,data)
+#define u80s0RPI_SerialSendData(fd,data) sRPISerialSendDatas(fd,data)
+#define u80d0RPI_SerialSendData(fd,data) dRPISerialSendDatas(fd,data)
+
+#define u80u82RPI_SerialSendData(fd,data,size) u8RPISerialSendDataa(fd,data,size[0]*size[1]);
+#define u80i82RPI_SerialSendData(fd,data,size) i8RPISerialSendDataa(fd,data,size[0]*size[1]);
+#define u80u162RPI_SerialSendData(fd,data,size) u16RPISerialSendDataa(fd,data,size[0]*size[1]);
+#define u80i162RPI_SerialSendData(fd,data,size) i16RPISerialSendDataa(fd,data,size[0]*size[1]);
+#define u80s2RPI_SerialSendData(fd,data,size) sRPISerialSendDataa(fd,data,size[0]*size[1]);
+#define u80d2RPI_SerialSendData(fd,data,size) dRPISerialSendDataa(fd,data,size[0]*size[1]);
+#define u80g2RPI_SerialSendData(fd,data,size) gRPISerialSendDatas(fd,data,size[0]*size[1]);
#define RPI_SerialDataAvail(fd) i16RPISerialDataAvails(fd)
#define RPI_SerialGetChar(fd) i16RPISerialGetChars(fd)
diff --git a/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c b/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c
index 883f3faf..d06b135c 100644
--- a/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c
+++ b/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c
@@ -19,9 +19,9 @@
#include "types.h"
#include "RPIPeripheralPWM.h"
-uint8 u8RPIHardPWMSetClocks(uint16 clk_divisor)
+void u8RPIHardPWMSetClocks(uint16 clk_divisor)
{
pwmSetClock(clk_divisor);
- return 0;
+
}
diff --git a/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c b/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c
index 5a7ccd15..0cca7a70 100644
--- a/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c
+++ b/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c
@@ -18,11 +18,11 @@
#include "types.h"
#include "RPIPeripheralPWM.h"
-uint8 u8RPIHardPWMSetModes(uint8 mode)
+void u8RPIHardPWMSetModes(uint8 mode)
{
if (mode == 1) /*mark/space mode*/
pwmSetMode(PWM_MODE_MS);
else
pwmSetMode(PWM_MODE_BAL);
- return 0;
+
}
diff --git a/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c b/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c
index e3cda77e..b2489f59 100644
--- a/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c
+++ b/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c
@@ -18,8 +18,8 @@
#include "types.h"
#include "RPIPeripheralPWM.h"
-uint8 u8RPIHardPWMSetRanges(uint16 value)
+void u8RPIHardPWMSetRanges(uint16 value)
{
pwmSetRange(value);
- return 0;
+
}
diff --git a/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c b/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c
index 546cfd5f..ae02bf0d 100644
--- a/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c
+++ b/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c
@@ -19,8 +19,8 @@
#include "RPIPeripheralPWM.h"
#include "RPIPeripheralDigital.h"
-uint8 u8RPIHardPWMWrites(uint8 pin, uint16 value)
+void u8RPIHardPWMWrites(uint8 pin, uint16 value)
{
pwmWrite((int)phy_pin[pin-1], value);
- return 0;
+
}
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;
diff --git a/2.3-1/src/c/hardware/rasberrypi/timing/u16RPIDelayMicros.c b/2.3-1/src/c/hardware/rasberrypi/timing/u16RPIDelayMicros.c
index fe756c96..9aeeab7d 100644
--- a/2.3-1/src/c/hardware/rasberrypi/timing/u16RPIDelayMicros.c
+++ b/2.3-1/src/c/hardware/rasberrypi/timing/u16RPIDelayMicros.c
@@ -15,9 +15,8 @@
#include "types.h"
#include "RPIPeripheralTiming.h"
-uint8 u16RPIDelayMicros(uint16 time)
+void u16RPIDelayMicros(uint16 time)
{
delayMicroseconds(time);
- return 0;
}
diff --git a/2.3-1/src/c/hardware/rasberrypi/timing/u16RPIDelayMillis.c b/2.3-1/src/c/hardware/rasberrypi/timing/u16RPIDelayMillis.c
index d7be3f88..26790861 100644
--- a/2.3-1/src/c/hardware/rasberrypi/timing/u16RPIDelayMillis.c
+++ b/2.3-1/src/c/hardware/rasberrypi/timing/u16RPIDelayMillis.c
@@ -17,9 +17,9 @@
#include "types.h"
#include "RPIPeripheralTiming.h"
-uint8 u16RPIDelayMillis(uint16 time)
+void u16RPIDelayMillis(uint16 time)
{
delay(time);
- return 0;
+
}