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 | |
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')
67 files changed, 145 insertions, 178 deletions
diff --git a/src/c/hardware/avr/adc/u8AVRADCSetups.c b/src/c/hardware/avr/adc/u8AVRADCSetups.c index 620f80f..f9d310b 100644 --- a/src/c/hardware/avr/adc/u8AVRADCSetups.c +++ b/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/src/c/hardware/avr/gpio/u8AVRDigitalOuts.c b/src/c/hardware/avr/gpio/u8AVRDigitalOuts.c index 5ee84a8..118da54 100644 --- a/src/c/hardware/avr/gpio/u8AVRDigitalOuts.c +++ b/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/src/c/hardware/avr/gpio/u8AVRDigitalSetups.c b/src/c/hardware/avr/gpio/u8AVRDigitalSetups.c index 46697f7..e28c468 100644 --- a/src/c/hardware/avr/gpio/u8AVRDigitalSetups.c +++ b/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/src/c/hardware/avr/includes/AVRPeripheralADC.h b/src/c/hardware/avr/includes/AVRPeripheralADC.h index e343de6..736c340 100644 --- a/src/c/hardware/avr/includes/AVRPeripheralADC.h +++ b/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/src/c/hardware/avr/includes/AVRPeripheralGPIO.h b/src/c/hardware/avr/includes/AVRPeripheralGPIO.h index ddbeb2d..37f2377 100644 --- a/src/c/hardware/avr/includes/AVRPeripheralGPIO.h +++ b/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/src/c/hardware/avr/includes/AVRPeripheralPWM.h b/src/c/hardware/avr/includes/AVRPeripheralPWM.h index 7371dd7..2e41db6 100644 --- a/src/c/hardware/avr/includes/AVRPeripheralPWM.h +++ b/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/src/c/hardware/avr/pwm/u8AVRPWMSetDutys.c b/src/c/hardware/avr/pwm/u8AVRPWMSetDutys.c index adb186a..0f358fc 100644 --- a/src/c/hardware/avr/pwm/u8AVRPWMSetDutys.c +++ b/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/src/c/hardware/avr/pwm/u8AVRPWMSetups.c b/src/c/hardware/avr/pwm/u8AVRPWMSetups.c index 5110d81..945f231 100644 --- a/src/c/hardware/avr/pwm/u8AVRPWMSetups.c +++ b/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/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c b/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c index a5f80e5..f828f77 100644 --- a/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c +++ b/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/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c b/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c index 37cfc03..fa86025 100644 --- a/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c +++ b/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/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h index 60561cc..2f40ffb 100644 --- a/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h +++ b/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/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h index 47634d0..d463d9c 100644 --- a/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h +++ b/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/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h index 199caf9..76a229e 100644 --- a/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h +++ b/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/src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h index d1ca027..854073f 100644 --- a/src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h +++ b/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/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSerial.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSerial.h index 570e944..5d53b98 100644 --- a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSerial.h +++ b/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/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c b/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c index 883f3fa..d06b135 100644 --- a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c +++ b/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/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c b/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c index 5a7ccd1..0cca7a7 100644 --- a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c +++ b/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/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c b/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c index e3cda77..b2489f5 100644 --- a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c +++ b/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/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c b/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c index 546cfd5..ae02bf0 100644 --- a/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c +++ b/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/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; diff --git a/src/c/hardware/rasberrypi/timing/u16RPIDelayMicros.c b/src/c/hardware/rasberrypi/timing/u16RPIDelayMicros.c index fe756c9..9aeeab7 100644 --- a/src/c/hardware/rasberrypi/timing/u16RPIDelayMicros.c +++ b/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/src/c/hardware/rasberrypi/timing/u16RPIDelayMillis.c b/src/c/hardware/rasberrypi/timing/u16RPIDelayMillis.c index d7be3f8..2679086 100644 --- a/src/c/hardware/rasberrypi/timing/u16RPIDelayMillis.c +++ b/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; + } diff --git a/src/c/imageProcessing/interfaces/int_cvhighgui.hpp b/src/c/imageProcessing/interfaces/int_cvhighgui.hpp index 8e1a989..60d6ffd 100644 --- a/src/c/imageProcessing/interfaces/int_cvhighgui.hpp +++ b/src/c/imageProcessing/interfaces/int_cvhighgui.hpp @@ -20,9 +20,16 @@ //#define g2d0CV_LoadImageim0(filename,name_size,loadtype) imcvLoadImages(filename,loadtype) #define g2d0CV_LoadImagemt0(filename,name_size,loadtype) imread(filename,loadtype) -#define g2mt0CV_ShowImageu80(winname,win_size,img) imcvShowImages(winname,img) -#define mt0CV_ShowImageu80(img) imcvShowImages("",img) -#define d0CV_WaitKeyu80(delay) cvWaitKey(delay) -#define g2mt0CV_SaveImageu80(filename,name_size,img) imwrite(filename,img) +#define g2mt0CV_ShowImageu80(winname,win_size,img) imshow(winname,img) +#define mt0CV_ShowImage(img) imshow("",img) + +#define d0CV_WaitKey(delay) waitKey((int)delay) +#define s80CV_WaitKey(delay) waitKey((int)delay) +#define u80CV_WaitKey(delay) waitKey((int)delay) +#define i80CV_WaitKey(delay) waitKey((int)delay) +#define u160CV_WaitKey(delay) waitKey((int)delay) +#define i160CV_WaitKey(delay) waitKey((int)delay) + +#define g2mt0CV_SaveImage(filename,name_size,img) imwrite(filename,img) #endif /*__INT_CVHIGHGUI_H__*/ diff --git a/src/c/matrixOperations/tril/dtrila.c b/src/c/matrixOperations/tril/dtrila.c index b16d7e5..b45c85f 100644 --- a/src/c/matrixOperations/tril/dtrila.c +++ b/src/c/matrixOperations/tril/dtrila.c @@ -12,7 +12,7 @@ /*Function to extract lower triagular entries from given matrix*/ -#include "triu.h" +#include "tril.h" void dtrila (double *in, int row, int column, double diag, double *out) { diff --git a/src/c/matrixOperations/tril/i16trila.c b/src/c/matrixOperations/tril/i16trila.c index 5253647..98174d9 100644 --- a/src/c/matrixOperations/tril/i16trila.c +++ b/src/c/matrixOperations/tril/i16trila.c @@ -12,7 +12,7 @@ /*Function to extract lower triagular entries from given matrix*/ -#include "triu.h" +#include "tril.h" void i16trila (int16 *in, int row, int column, double diag, int16 *out) { diff --git a/src/c/matrixOperations/tril/i8trila.c b/src/c/matrixOperations/tril/i8trila.c index f361c64..d06b2aa 100644 --- a/src/c/matrixOperations/tril/i8trila.c +++ b/src/c/matrixOperations/tril/i8trila.c @@ -12,7 +12,7 @@ /*Function to extract lower triagular entries from given matrix*/ -#include "triu.h" +#include "tril.h" void i8trila (int8 *in, int row, int column, double diag, int8 *out) { diff --git a/src/c/matrixOperations/tril/strila.c b/src/c/matrixOperations/tril/strila.c index d086936..bc7f1f2 100644 --- a/src/c/matrixOperations/tril/strila.c +++ b/src/c/matrixOperations/tril/strila.c @@ -12,7 +12,7 @@ /*Function to extract lower triagular entries from given matrix*/ -#include "triu.h" +#include "tril.h" void strila (float *in, int row, int column, double diag, float *out) { diff --git a/src/c/matrixOperations/tril/u16trila.c b/src/c/matrixOperations/tril/u16trila.c index 23d86cd..418a595 100644 --- a/src/c/matrixOperations/tril/u16trila.c +++ b/src/c/matrixOperations/tril/u16trila.c @@ -12,7 +12,7 @@ /*Function to extract lower triagular entries from given matrix*/ -#include "triu.h" +#include "tril.h" void u16trila (uint16 *in, int row, int column, double diag, uint16 *out) { diff --git a/src/c/matrixOperations/tril/u8trila.c b/src/c/matrixOperations/tril/u8trila.c index e80c05c..5c21d88 100644 --- a/src/c/matrixOperations/tril/u8trila.c +++ b/src/c/matrixOperations/tril/u8trila.c @@ -12,7 +12,7 @@ /*Function to extract lower triagular entries from given matrix*/ -#include "triu.h" +#include "tril.h" void u8trila (uint8 *in, int row, int column, double diag, uint8 *out) { diff --git a/src/c/scilab-arduino/cmd_analog_out/u8cmd_analog_outs.c b/src/c/scilab-arduino/cmd_analog_out/u8cmd_analog_outs.c index aa7dac0..07e1805 100644 --- a/src/c/scilab-arduino/cmd_analog_out/u8cmd_analog_outs.c +++ b/src/c/scilab-arduino/cmd_analog_out/u8cmd_analog_outs.c @@ -13,9 +13,9 @@ #include "cmd_analog_out.h" #include "Arduino.h" -uint8 u8cmd_analog_outs(uint8 board_no, uint8 pin, uint8 value) +void u8cmd_analog_outs(uint8 board_no, uint8 pin, uint8 value) { analogWrite(pin,value); - return 0; + } diff --git a/src/c/scilab-arduino/cmd_dcmotor_run/u8cmd_dcmotor_runs.c b/src/c/scilab-arduino/cmd_dcmotor_run/u8cmd_dcmotor_runs.c index 07798ab..ff2f6e5 100644 --- a/src/c/scilab-arduino/cmd_dcmotor_run/u8cmd_dcmotor_runs.c +++ b/src/c/scilab-arduino/cmd_dcmotor_run/u8cmd_dcmotor_runs.c @@ -13,7 +13,7 @@ #include "cmd_dcmotor_run.h" #include "Arduino.h" -uint8 u8cmd_dcmotor_runs(uint8 board_no, uint8 motor_no, int16 duty) +void u8cmd_dcmotor_runs(uint8 board_no, uint8 motor_no, int16 duty) { uint8 direction = 1; if(duty >= 0) @@ -55,6 +55,5 @@ uint8 u8cmd_dcmotor_runs(uint8 board_no, uint8 motor_no, int16 duty) } } - return 0; } diff --git a/src/c/scilab-arduino/cmd_dcmotor_setup/u8cmd_dcmotor_setups.c b/src/c/scilab-arduino/cmd_dcmotor_setup/u8cmd_dcmotor_setups.c index d1d0fea..194074e 100644 --- a/src/c/scilab-arduino/cmd_dcmotor_setup/u8cmd_dcmotor_setups.c +++ b/src/c/scilab-arduino/cmd_dcmotor_setup/u8cmd_dcmotor_setups.c @@ -15,7 +15,7 @@ uint8 dcm_pin_1[4], dcm_pin_2[4], dcm_mode[4]; -uint8 u8cmd_dcmotor_setups(uint8 board_no, uint8 driver_type, uint8 motor_no,\ +void u8cmd_dcmotor_setups(uint8 board_no, uint8 driver_type, uint8 motor_no,\ uint8 pin_1, uint8 pin_2) { dcm_pin_1[motor_no] = pin_1; @@ -38,6 +38,5 @@ uint8 u8cmd_dcmotor_setups(uint8 board_no, uint8 driver_type, uint8 motor_no,\ digitalWrite(pin_2,LOW); } - return 0; } diff --git a/src/c/scilab-arduino/cmd_digital_out/u8cmd_digital_outs.c b/src/c/scilab-arduino/cmd_digital_out/u8cmd_digital_outs.c index 2e5c90d..58e7a85 100644 --- a/src/c/scilab-arduino/cmd_digital_out/u8cmd_digital_outs.c +++ b/src/c/scilab-arduino/cmd_digital_out/u8cmd_digital_outs.c @@ -14,9 +14,9 @@ #include "Arduino.h" -uint8 u8cmd_digital_outs(uint8 board_no, uint8 pin, uint8 value) +void u8cmd_digital_outs(uint8 board_no, uint8 pin, uint8 value) { digitalWrite(pin,value); - return 0; + } diff --git a/src/c/scilab-arduino/cmd_servo_attach/u8cmd_servo_attach.cpp b/src/c/scilab-arduino/cmd_servo_attach/u8cmd_servo_attachs.cpp index a89363b..ae2c68c 100644 --- a/src/c/scilab-arduino/cmd_servo_attach/u8cmd_servo_attach.cpp +++ b/src/c/scilab-arduino/cmd_servo_attach/u8cmd_servo_attachs.cpp @@ -6,7 +6,7 @@ #include "Arduino.h" #include<Servo.h> Servo servo1,servo2; -uint8 u8cmd_servo_attach(uint8 h,uint8 servo_no) +void u8cmd_servo_attach(uint8 h,uint8 servo_no) { // h -> Board no. reserve for future use // servo_no -> pin no.(9 and 10). @@ -21,6 +21,5 @@ uint8 u8cmd_servo_attach(uint8 h,uint8 servo_no) servo2.write(0); } - return 0; } diff --git a/src/c/scilab-arduino/cmd_servo_detach/u8cmd_servo_detach.cpp b/src/c/scilab-arduino/cmd_servo_detach/u8cmd_servo_detachs.cpp index 95faf4c..c8c5beb 100644 --- a/src/c/scilab-arduino/cmd_servo_detach/u8cmd_servo_detach.cpp +++ b/src/c/scilab-arduino/cmd_servo_detach/u8cmd_servo_detachs.cpp @@ -5,7 +5,7 @@ #include "Arduino.h" #include<Servo.h> Servo servo1,servo2; -uint8 u8cmd_servo_detach(uint8 h,uint8 servo_no) +void u8cmd_servo_detach(uint8 h,uint8 servo_no) { // h -> Board no. reserve for future use // servo_no -> pin no.(9 and 10). @@ -18,7 +18,6 @@ uint8 u8cmd_servo_detach(uint8 h,uint8 servo_no) { servo2.detach(); } - - return 0; + } diff --git a/src/c/scilab-arduino/cmd_servo_move/u8cmd_servo_move.cpp b/src/c/scilab-arduino/cmd_servo_move/u8cmd_servo_moves.cpp index e887476..94f3563 100644 --- a/src/c/scilab-arduino/cmd_servo_move/u8cmd_servo_move.cpp +++ b/src/c/scilab-arduino/cmd_servo_move/u8cmd_servo_moves.cpp @@ -6,7 +6,7 @@ #include "Arduino.h" #include<Servo.h> Servo servo1,servo2; -uint8 u8cmd_servo_move(uint8 h,uint8 servo_no,uint8 val) +void u8cmd_servo_move(uint8 h,uint8 servo_no,uint8 val) { // h -> Board no. reserve for future use // servo_no -> pin no.(9 and 10). @@ -22,6 +22,5 @@ uint8 u8cmd_servo_move(uint8 h,uint8 servo_no,uint8 val) servo2.write(val); } } - return 0; } diff --git a/src/c/scilab-arduino/includes/cmd_analog_out.h b/src/c/scilab-arduino/includes/cmd_analog_out.h index a0da68e..5f9e527 100644 --- a/src/c/scilab-arduino/includes/cmd_analog_out.h +++ b/src/c/scilab-arduino/includes/cmd_analog_out.h @@ -19,7 +19,7 @@ extern "C" { #endif -uint8 u8cmd_analog_outs(uint8 board_no, uint8 pin, uint8 value); +void u8cmd_analog_outs(uint8 board_no, uint8 pin, uint8 value); #ifdef __cplusplus } /* extern "C" */ diff --git a/src/c/scilab-arduino/includes/cmd_dcmotor_run.h b/src/c/scilab-arduino/includes/cmd_dcmotor_run.h index 82df60a..4bc1ccc 100644 --- a/src/c/scilab-arduino/includes/cmd_dcmotor_run.h +++ b/src/c/scilab-arduino/includes/cmd_dcmotor_run.h @@ -22,7 +22,7 @@ extern "C" { extern uint8 dcm_pin_1[4], dcm_pin_2[4], dcm_mode[4]; -uint8 u8cmd_dc_motor_runs(uint8 board_no, uint8 motor_no, int16 duty); +void u8cmd_dc_motor_runs(uint8 board_no, uint8 motor_no, int16 duty); #ifdef __cplusplus } /* extern "C" */ diff --git a/src/c/scilab-arduino/includes/cmd_dcmotor_setup.h b/src/c/scilab-arduino/includes/cmd_dcmotor_setup.h index 66fa04e..e7de474 100644 --- a/src/c/scilab-arduino/includes/cmd_dcmotor_setup.h +++ b/src/c/scilab-arduino/includes/cmd_dcmotor_setup.h @@ -22,7 +22,7 @@ extern "C" { extern uint8 dcm_pin_1[4], dcm_pin_2[4], dcm_mode[4]; -uint8 u8cmd_dc_motor_setups(uint8 board_no, uint8 driver_type, uint8 motor_no,\ +void u8cmd_dc_motor_setups(uint8 board_no, uint8 driver_type, uint8 motor_no,\ uint8 pin_1, uint8 pin_2); #ifdef __cplusplus diff --git a/src/c/scilab-arduino/includes/cmd_digital_out.h b/src/c/scilab-arduino/includes/cmd_digital_out.h index ee459d1..a0150ce 100644 --- a/src/c/scilab-arduino/includes/cmd_digital_out.h +++ b/src/c/scilab-arduino/includes/cmd_digital_out.h @@ -20,7 +20,7 @@ extern "C" { #endif -uint8 u8cmd_digital_outs(uint8 board_no, uint8 pin, uint8 value); +void u8cmd_digital_outs(uint8 board_no, uint8 pin, uint8 value); #ifdef __cplusplus } /* extern "C" */ diff --git a/src/c/scilab-arduino/includes/cmd_servo_attach.h b/src/c/scilab-arduino/includes/cmd_servo_attach.h index 5dd3ed6..8707833 100644 --- a/src/c/scilab-arduino/includes/cmd_servo_attach.h +++ b/src/c/scilab-arduino/includes/cmd_servo_attach.h @@ -14,7 +14,7 @@ extern "C" { extern Servo servo1,servo2; -uint8 u8cmd_servo_attach(uint8 h, uint8 servo_no ); +void u8cmd_servo_attach(uint8 h, uint8 servo_no ); #ifdef __cplusplus } /* extern "C" */ diff --git a/src/c/scilab-arduino/includes/cmd_servo_detach.h b/src/c/scilab-arduino/includes/cmd_servo_detach.h index ce74d62..6ac5e2b 100644 --- a/src/c/scilab-arduino/includes/cmd_servo_detach.h +++ b/src/c/scilab-arduino/includes/cmd_servo_detach.h @@ -15,7 +15,7 @@ extern "C" { extern Servo servo1,servo2; -uint8 u8cmd_servo_detach(uint8 h, uint8 servo_no ); +void u8cmd_servo_detach(uint8 h, uint8 servo_no ); #ifdef __cplusplus } /* extern "C" */ diff --git a/src/c/scilab-arduino/includes/cmd_servo_move.h b/src/c/scilab-arduino/includes/cmd_servo_move.h index 9013d3c..7f9bc0d 100644 --- a/src/c/scilab-arduino/includes/cmd_servo_move.h +++ b/src/c/scilab-arduino/includes/cmd_servo_move.h @@ -15,7 +15,7 @@ extern "C" { extern Servo servo1,servo2; -uint8 u8cmd_servo_move(uint8 h, uint8 servo_no,uint8 val); +void u8cmd_servo_move(uint8 h, uint8 servo_no,uint8 val); #ifdef __cplusplus } /* extern "C" */ diff --git a/src/c/scilab-arduino/includes/sleep.h b/src/c/scilab-arduino/includes/sleep.h index 4c8cbc2..8daab69 100644 --- a/src/c/scilab-arduino/includes/sleep.h +++ b/src/c/scilab-arduino/includes/sleep.h @@ -19,7 +19,7 @@ extern "C" { #endif -uint8 u16sleeps(uint16 delay_ms); +void u16sleeps(uint16 delay_ms); #ifdef __cplusplus } /* extern "C" */ diff --git a/src/c/scilab-arduino/interfaces/int_cmd_analog_out.h b/src/c/scilab-arduino/interfaces/int_cmd_analog_out.h index ead26ac..2410523 100644 --- a/src/c/scilab-arduino/interfaces/int_cmd_analog_out.h +++ b/src/c/scilab-arduino/interfaces/int_cmd_analog_out.h @@ -20,10 +20,10 @@ extern "C" { #endif -#define d0d0d0cmd_analog_outu80(in1,in2,in3) u8cmd_analog_outs((uint8)in1,\ +#define d0d0d0cmd_analog_out(in1,in2,in3) u8cmd_analog_outs((uint8)in1,\ (uint8)in2,(uint8)in3) -#define d0d0u80cmd_analog_outu80(in1,in2,in3) u8cmd_analog_outs((uint8)in1,\ +#define d0d0u80cmd_analog_out(in1,in2,in3) u8cmd_analog_outs((uint8)in1,\ (uint8)in2,(uint8)in3) #ifdef __cplusplus diff --git a/src/c/scilab-arduino/interfaces/int_cmd_dcmotor.h b/src/c/scilab-arduino/interfaces/int_cmd_dcmotor.h index b35583d..7f8db41 100644 --- a/src/c/scilab-arduino/interfaces/int_cmd_dcmotor.h +++ b/src/c/scilab-arduino/interfaces/int_cmd_dcmotor.h @@ -20,15 +20,15 @@ extern "C" { #endif -#define d0d0d0d0d0cmd_dcmotor_setupu80(in1,in2,in3,in4,in5)\ +#define d0d0d0d0d0cmd_dcmotor_setup(in1,in2,in3,in4,in5)\ u8cmd_dcmotor_setups((uint8)in1,(uint8)in2,(uint8)in3,\ (uint8)in4,(uint8)in5) -#define d0d0d0cmd_dcmotor_runu80(in1,in2,in3) u8cmd_dcmotor_runs((uint8)in1,\ +#define d0d0d0cmd_dcmotor_run(in1,in2,in3) u8cmd_dcmotor_runs((uint8)in1,\ (uint8)in2, (int16)in3); -#define d0d0u160cmd_dcmotor_runu80(in1,in2,in3) u8cmd_dcmotor_runs((uint8)in1,\ +#define d0d0u160cmd_dcmotor_run(in1,in2,in3) u8cmd_dcmotor_runs((uint8)in1,\ (uint8)in2, (int16)in3); diff --git a/src/c/scilab-arduino/interfaces/int_cmd_digital_out.h b/src/c/scilab-arduino/interfaces/int_cmd_digital_out.h index 4585f12..009ff7d 100644 --- a/src/c/scilab-arduino/interfaces/int_cmd_digital_out.h +++ b/src/c/scilab-arduino/interfaces/int_cmd_digital_out.h @@ -20,11 +20,11 @@ extern "C" { #endif -#define d0d0d0cmd_digital_outu80(in1,in2,in3) u8cmd_digital_outs((uint8)in1,\ +#define d0d0d0cmd_digital_out(in1,in2,in3) u8cmd_digital_outs((uint8)in1,\ (uint8)in2,(uint8)in3) //Required when input from one pin is directed to other output pin. -#define d0d0u80cmd_digital_outu80(in1,in2,in3) u8cmd_digital_outs((uint8)in1,\ +#define d0d0u80cmd_digital_out(in1,in2,in3) u8cmd_digital_outs((uint8)in1,\ (uint8)in2, (uint8)in3) diff --git a/src/c/scilab-arduino/interfaces/int_cmd_servo.h b/src/c/scilab-arduino/interfaces/int_cmd_servo.h index d99a044..3b48273 100644 --- a/src/c/scilab-arduino/interfaces/int_cmd_servo.h +++ b/src/c/scilab-arduino/interfaces/int_cmd_servo.h @@ -13,11 +13,11 @@ extern "C" { #endif -#define d0d0cmd_servo_attachu80(in1,in2) u8cmd_servo_attach((uint8)in1,(uint8)in2); +#define d0d0cmd_servo_attach(in1,in2) u8cmd_servo_attach((uint8)in1,(uint8)in2); -#define d0d0cmd_servo_detachu80(in1,in2) u8cmd_servo_detach((uint8)in1,(uint8)in2); +#define d0d0cmd_servo_detach(in1,in2) u8cmd_servo_detach((uint8)in1,(uint8)in2); -#define d0d0d0cmd_servo_moveu80(in1,in2,in3) u8cmd_servo_move((uint8)in1,(uint8)in2,(uint8)in3); +#define d0d0d0cmd_servo_move(in1,in2,in3) u8cmd_servo_move((uint8)in1,(uint8)in2,(uint8)in3); #ifdef __cplusplus diff --git a/src/c/scilab-arduino/interfaces/int_sleep.h b/src/c/scilab-arduino/interfaces/int_sleep.h index 8e2d082..a0d3545 100644 --- a/src/c/scilab-arduino/interfaces/int_sleep.h +++ b/src/c/scilab-arduino/interfaces/int_sleep.h @@ -20,7 +20,7 @@ extern "C" { #endif -#define d0sleepu80(in1) u16sleeps((uint16)in1) +#define d0sleep(in1) u16sleeps((uint16)in1) #ifdef __cplusplus } /* extern "C" */ diff --git a/src/c/scilab-arduino/sleep/u16sleeps.c b/src/c/scilab-arduino/sleep/u16sleeps.c index 14da0ba..fc59ca8 100644 --- a/src/c/scilab-arduino/sleep/u16sleeps.c +++ b/src/c/scilab-arduino/sleep/u16sleeps.c @@ -12,9 +12,8 @@ #include "sleep.h" -uint8 u16sleeps(uint16 delay_ms) +void u16sleeps(uint16 delay_ms) { delay(delay_ms); - return 0; } diff --git a/src/c/string/interfaces/int_disp.h b/src/c/string/interfaces/int_disp.h index 4b6f896..3bb7852 100644 --- a/src/c/string/interfaces/int_disp.h +++ b/src/c/string/interfaces/int_disp.h @@ -17,41 +17,41 @@ #include <stdio.h> -#define s0dispd0(in) sdisps(in) +#define s0disp(in) sdisps(in) -#define d0dispd0(in) ddisps(in) +#define d0disp(in) ddisps(in) -#define c0dispd0(in) cdisps(in) +#define c0disp(in) cdisps(in) -#define z0dispd0(in) zdisps(in) +#define z0disp(in) zdisps(in) -#define u80dispd0(in) u8disps(in) +#define u80disp(in) u8disps(in) -#define i80dispd0(in) i8disps(in) +#define i80disp(in) i8disps(in) -#define u160dispd0(in) u16disps(in) +#define u160disp(in) u16disps(in) -#define i160dispd0(in) i16disps(in) +#define i160disp(in) i16disps(in) -#define s2dispd0(in,size) sdispa(in,size[0],size[1]) +#define s2disp(in,size) sdispa(in,size[0],size[1]) -#define d2dispd0(in,size) ddispa(in,size[0],size[1]) +#define d2disp(in,size) ddispa(in,size[0],size[1]) -#define c2dispd0(in,size) cdispa(in,size[0],size[1]) +#define c2disp(in,size) cdispa(in,size[0],size[1]) -#define z2dispd0(in,size) zdispa(in,size[0],size[1]) +#define z2disp(in,size) zdispa(in,size[0],size[1]) -#define u82dispd0(in,size) u8dispa(in,size[0],size[1]) +#define u82disp(in,size) u8dispa(in,size[0],size[1]) -#define i82dispd0(in,size) i8dispa(in,size[0],size[1]) +#define i82disp(in,size) i8dispa(in,size[0],size[1]) -#define u162dispd0(in,size) u16dispa(in,size[0],size[1]) +#define u162disp(in,size) u16dispa(in,size[0],size[1]) -#define i162dispd0(in,size) i16dispa(in,size[0],size[1]) +#define i162disp(in,size) i16dispa(in,size[0],size[1]) -#define d3dispd0(in,size) ddisph(in,size[0],size[1],size[2]) +#define d3disp(in,size) ddisph(in,size[0],size[1],size[2]) -#define g2dispd0(in, size) printf("%s\n",in) +#define g2disp(in, size) printf("%s\n",in) #endif /* __INT_DISP_H__ */ |