summaryrefslogtreecommitdiff
path: root/2.3-1/src
diff options
context:
space:
mode:
authorBrijeshcr2017-07-08 20:18:17 +0530
committerGitHub2017-07-08 20:18:17 +0530
commit39874e472e540ca1bb923b97b52900e1d60439cc (patch)
treee0f47fecb8b5d5e63491c7440d9ecc3072e5cd05 /2.3-1/src
parent3adebb16388c6712f7d9c268b91849d164e696df (diff)
downloadScilab2C-39874e472e540ca1bb923b97b52900e1d60439cc.tar.gz
Scilab2C-39874e472e540ca1bb923b97b52900e1d60439cc.tar.bz2
Scilab2C-39874e472e540ca1bb923b97b52900e1d60439cc.zip
Revert "SCi2cDeps updated, Windows compatibility resolved"
Diffstat (limited to '2.3-1/src')
-rw-r--r--2.3-1/src/c/CACSD/includes/lqr.h4
-rw-r--r--2.3-1/src/c/CACSD/interfaces/int_lqr.h4
-rw-r--r--2.3-1/src/c/CACSD/lqe/dlqea.c4
-rw-r--r--2.3-1/src/c/CACSD/lqr/dlqra.c45
-rw-r--r--2.3-1/src/c/elementaryFunctions/includes/linspace.h5
-rw-r--r--2.3-1/src/c/elementaryFunctions/interfaces/int_linspace.h5
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/ISR/i16RPIPinISRs.c25
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalIns.c24
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c26
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c39
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h16
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h17
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPinISR.h26
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h35
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralThreading.h28
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h11
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPinISR.h25
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralThreading.h25
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h20
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c27
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c28
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c25
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c26
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/dRPISerialSendDataa.c27
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/dRPISerialSendDatas.c35
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/gRPISerialSendDatas.c27
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialDataAvails.c25
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialGetChars.c27
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialSendDataa.c27
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialSendDatas.c24
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/i8RPISerialSendDataa.c26
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/i8RPISerialSendDatas.c22
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/sRPISerialSendDataa.c27
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/sRPISerialSendDatas.c34
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSendDataa.c28
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSendDatas.c23
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSetups.c25
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialCloses.c21
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialFlushs.c21
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendChars.c21
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendDataa.c27
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendDatas.c22
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/threading/u16RPIThreadCreates.c24
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/timing/u16RPIDelayMicros.c22
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/timing/u16RPIDelayMillis.c25
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/timing/u32RPIGetMicros.c21
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/timing/u32RPIGetMillis.c21
-rw-r--r--2.3-1/src/c/matrixOperations/cat/ccata.c4
-rw-r--r--2.3-1/src/c/matrixOperations/cat/zcata.c4
-rw-r--r--2.3-1/src/c/scilab-arduino/cmd_analog_in_volt/u8cmd_analog_in_volts.c5
-rw-r--r--2.3-1/src/c/scilab-arduino/cmd_analog_out_volt/u8cmd_analog_out_volts.c6
-rw-r--r--2.3-1/src/c/scilab-arduino/cmd_dcmotor_release/u8cmd_dcmotor_releases.c13
-rw-r--r--2.3-1/src/c/scilab-arduino/cmd_i2c_dev/u8cmd_i2c_devs.cpp24
-rw-r--r--2.3-1/src/c/scilab-arduino/cmd_i2c_read/u8cmd_i2c_reads.cpp17
-rw-r--r--2.3-1/src/c/scilab-arduino/cmd_i2c_read_register/u8cmd_i2c_read_registers.cpp17
-rw-r--r--2.3-1/src/c/scilab-arduino/cmd_i2c_write/u8cmd_i2c_writes.cpp16
-rw-r--r--2.3-1/src/c/scilab-arduino/cmd_i2c_write_register/u8cmd_i2c_write_registers.cpp17
-rw-r--r--2.3-1/src/c/scilab-arduino/default_files/sci2c_arduino.ino5
-rw-r--r--2.3-1/src/c/scilab-arduino/includes/cmd_i2c_dev.h15
-rw-r--r--2.3-1/src/c/scilab-arduino/includes/cmd_i2c_read.h15
-rw-r--r--2.3-1/src/c/scilab-arduino/includes/cmd_i2c_read_register.h15
-rw-r--r--2.3-1/src/c/scilab-arduino/includes/cmd_i2c_write.h15
-rw-r--r--2.3-1/src/c/scilab-arduino/includes/cmd_i2c_write_register.h15
-rw-r--r--2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_dev.h15
-rw-r--r--2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_read.h15
-rw-r--r--2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_read_register.h15
-rw-r--r--2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_write.h15
-rw-r--r--2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_write_register.h15
-rw-r--r--2.3-1/src/c/string/disp/ddispa.c4
-rw-r--r--2.3-1/src/c/type/doubleComplex.h21
-rw-r--r--2.3-1/src/c/type/floatComplex.h18
-rw-r--r--2.3-1/src/c/type/types.h4
72 files changed, 0 insertions, 1417 deletions
diff --git a/2.3-1/src/c/CACSD/includes/lqr.h b/2.3-1/src/c/CACSD/includes/lqr.h
index aab06d33..5b20ee83 100644
--- a/2.3-1/src/c/CACSD/includes/lqr.h
+++ b/2.3-1/src/c/CACSD/includes/lqr.h
@@ -17,11 +17,7 @@
extern "C" {
#endif
-<<<<<<< HEAD
void dlqra(double* sys, int sys_rows, int sys_cols, double* Q, double* R, double* S, double* X, double* K);
-=======
-void dlqra(double* sys, int sys_rows, int sys_cols, double* X, double* K);
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifdef __cplusplus
} /* extern "C" */
diff --git a/2.3-1/src/c/CACSD/interfaces/int_lqr.h b/2.3-1/src/c/CACSD/interfaces/int_lqr.h
index c292f8c1..8deba90b 100644
--- a/2.3-1/src/c/CACSD/interfaces/int_lqr.h
+++ b/2.3-1/src/c/CACSD/interfaces/int_lqr.h
@@ -16,7 +16,6 @@
extern "C" {
#endif
-<<<<<<< HEAD
#define ss2lqrd2d2(in1,size1,out1,out2) dlqra(in1,size1[0],size1[1],NULL,\
NULL,NULL,out1,out2);
@@ -25,9 +24,6 @@ extern "C" {
#define ss2d2d2d2lqrd2d2(in1,size1,in2,size2,in3,size3,in4,size4,out1,out2) \
dlqra(in1,size1[0],size1[1],in2,in3,in4,out1,out2);
-=======
-#define ss2lqrd2d2(in1,size1,out1,out2) dlqra(in1,size1[0],size1[1],out1,out2);
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifdef __cplusplus
} /* extern "C" */
diff --git a/2.3-1/src/c/CACSD/lqe/dlqea.c b/2.3-1/src/c/CACSD/lqe/dlqea.c
index 06c1c6e0..e0be5b34 100644
--- a/2.3-1/src/c/CACSD/lqe/dlqea.c
+++ b/2.3-1/src/c/CACSD/lqe/dlqea.c
@@ -54,11 +54,7 @@ void dlqea(double* sys, int sys_rows, int sys_cols, double* X, double* K)
/*Calculate LQR gain*/
K_lqr = (double*) malloc(no_of_ip*no_of_st*sizeof(double));
-<<<<<<< HEAD
dlqra(sys_lqr,sys_lqr_rows,sys_lqr_cols,NULL,NULL,NULL,X,K_lqr);
-=======
- dlqra(sys_lqr,sys_lqr_rows,sys_lqr_cols,X,K_lqr);
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
dtransposea(K_lqr,sys_rows - no_of_st,no_of_st,K);
} \ No newline at end of file
diff --git a/2.3-1/src/c/CACSD/lqr/dlqra.c b/2.3-1/src/c/CACSD/lqr/dlqra.c
index 15120f7d..1440c3a8 100644
--- a/2.3-1/src/c/CACSD/lqr/dlqra.c
+++ b/2.3-1/src/c/CACSD/lqr/dlqra.c
@@ -22,12 +22,8 @@
#include "schur.h"
#include "matrixDivision.h"
-<<<<<<< HEAD
void dlqra(double* sys, int sys_rows, int sys_cols, double* Q, double* R, \
double* S, double* K, double* X)
-=======
-void dlqra(double* sys, int sys_rows, int sys_cols, double* X, double* K)
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
{
int no_of_states, no_of_inputs, no_of_outputs, dom = 1;
int row,col;
@@ -37,11 +33,7 @@ void dlqra(double* sys, int sys_rows, int sys_cols, double* X, double* K)
double *A, *B, *C, *D;
double *B_t, *C_t, *D_t;
-<<<<<<< HEAD
//double *Q, *R, *S;
-=======
- double *Q, *R, *S;
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
double *Ri, *LA, *LE;
double *BRi, *StRi, *S_t;
double *buf1, *buf2, *buf3, *buf4, *buf5, *buf6;
@@ -99,18 +91,10 @@ void dlqra(double* sys, int sys_rows, int sys_cols, double* X, double* K)
dom = (int)sys[(sys_rows*(sys_cols-2)) + no_of_states];
-<<<<<<< HEAD
-=======
- Q = (double*) malloc (no_of_states*no_of_states*sizeof(double));
- R = (double*) malloc (no_of_inputs*no_of_inputs*sizeof(double));
- S = (double*) malloc (no_of_inputs*no_of_states*sizeof(double));
-
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
dtransposea(B,no_of_states,no_of_inputs,B_t);
dtransposea(C,no_of_outputs,no_of_states,C_t);
dtransposea(D,no_of_outputs,no_of_inputs,D_t);
-<<<<<<< HEAD
if(Q == NULL)
{/*If Q is not provided*/
Q = (double*) malloc (no_of_states*no_of_states*sizeof(double));
@@ -130,14 +114,6 @@ void dlqra(double* sys, int sys_rows, int sys_cols, double* X, double* K)
}
/*Free up unwanted variables*/
-=======
- dmulma(C_t,no_of_states,no_of_outputs,C,no_of_outputs,no_of_states,Q);
- dmulma(D_t,no_of_inputs,no_of_outputs,D,no_of_outputs,no_of_inputs,R);
- dmulma(D_t,no_of_inputs,no_of_outputs,C,no_of_outputs,no_of_states,S);
-
- /*Free up unwanted variables*/
-
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
free(C);
free(C_t);
free(D);
@@ -211,13 +187,8 @@ void dlqra(double* sys, int sys_rows, int sys_cols, double* X, double* K)
/*Freeup umwanted variables*/
free(A);
-<<<<<<< HEAD
//free(Q);
//free(R);
-=======
- free(Q);
- free(R);
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
free(BRi);
free(S_t);
free(StRi);
@@ -317,11 +288,7 @@ void dlqra(double* sys, int sys_rows, int sys_cols, double* X, double* K)
}
-<<<<<<< HEAD
//free(Q);
-=======
- free(Q);
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
free(BRi);
free(S_t);
free(StRi);
@@ -359,11 +326,7 @@ void dlqra(double* sys, int sys_rows, int sys_cols, double* X, double* K)
/*inv(B'XB+R)*/
dmulma(B_t,no_of_inputs,no_of_states,X,no_of_states,no_of_states,buf3);
-<<<<<<< HEAD
dmulma(buf3,no_of_inputs,no_of_states,B,no_of_states,no_of_inputs,buf6);
-=======
- dmulma(buf3,no_of_inputs,no_of_states,B_t,no_of_states,no_of_inputs,buf6);
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
dadda(buf6,no_of_inputs*no_of_inputs,R,no_of_inputs*no_of_inputs,buf5);
dinverma(buf5,buf6,no_of_inputs);
/*B'XA+S*/
@@ -380,22 +343,14 @@ void dlqra(double* sys, int sys_rows, int sys_cols, double* X, double* K)
free(A);
free(B);
-<<<<<<< HEAD
//free(R);
-=======
- free(R);
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
free(buf5);
free(buf6);
}
free(B_t);
-<<<<<<< HEAD
//free(S);
-=======
- free(S);
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
free(wsmall);
free(X12);
free(phi12);
diff --git a/2.3-1/src/c/elementaryFunctions/includes/linspace.h b/2.3-1/src/c/elementaryFunctions/includes/linspace.h
index 00b1471a..62d45015 100644
--- a/2.3-1/src/c/elementaryFunctions/includes/linspace.h
+++ b/2.3-1/src/c/elementaryFunctions/includes/linspace.h
@@ -21,16 +21,11 @@ extern "C" {
EXTERN_ELEMFUNCT void dlinspaces(double low_limit,double up_limit,double range_num, double* out);
-<<<<<<< HEAD
EXTERN_ELEMFUNCT void slinspaces(float low_limit,float up_limit,float range_num, float* out);
EXTERN_ELEMFUNCT void dlinspacea(double *low_limit,int row,double *up_limit,double range_num, double* out);
EXTERN_ELEMFUNCT void slinspacea(float *low_limit,int row,float *up_limit,float range_num, float* out);
-=======
-EXTERN_ELEMFUNCT void dlinspacea(double *low_limit,int row,double *up_limit,double range_num, double* out);
-
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_linspace.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_linspace.h
index febe516e..15ea2696 100644
--- a/2.3-1/src/c/elementaryFunctions/interfaces/int_linspace.h
+++ b/2.3-1/src/c/elementaryFunctions/interfaces/int_linspace.h
@@ -15,15 +15,10 @@
#define d0d0d0linspaced2(in1,in2,in3,out) dlinspaces(in1,in2,in3,out)
-<<<<<<< HEAD
#define s0s0s0linspaces2(in1,in2,in3,out) slinspaces(in1,in2,in3,out)
#define d2d2d0linspaced2(in1,size1,in2,size2,in3,out) dlinspacea(in1,size1[0],in2,in3,out)
#define s2s2s0linspaces2(in1,size1,in2,size2,in3,out) slinspacea(in1,size1[0],in2,in3,out)
-=======
-#define d2d2d0linspaced2(in1,size1,in2,size2,in3,out) dlinspacea(in1,size1[0],in2,in3,out)
-
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#endif
diff --git a/2.3-1/src/c/hardware/rasberrypi/ISR/i16RPIPinISRs.c b/2.3-1/src/c/hardware/rasberrypi/ISR/i16RPIPinISRs.c
deleted file mode 100644
index 6e398a17..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/ISR/i16RPIPinISRs.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to declare interrupt on pins and corresponding ISRs */
-
-#include "types.h"
-#include "RPIPeripheralPinISR.h"
-#include "RPIPeripheralDigital.h"
-
-int16 i16RPIPinISRs(uint8 pin, uint8 edgetype, void (*ISRFunction)(void))
-{
- int status;
- status = wiringPiISR((int)phy_pin[pin-1], (int) edgetype, ISRFunction);
- return status;
-}
-
diff --git a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalIns.c b/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalIns.c
deleted file mode 100644
index 7b84350f..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalIns.c
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to read the state of the gpio pin */
-
-#include "types.h"
-#include "RPIPeripheralDigital.h"
-
-/*pin is reduced by one as array index starts from 0 and pin no starts from 1*/
-uint8 u8RPIDigitalIns(uint8 pin)
-{
- uint8 state = 0;
- state = digitalRead(phy_pin[pin-1]);
- return (state);
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c b/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c
deleted file mode 100644
index f828f77e..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to change the output state of the gpio pin */
-
-
-#include "types.h"
-#include "RPIPeripheralDigital.h"
-
-/*pin is reduced by one as array index starts from 0 and pin no starts from 1*/
-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);
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c b/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c
deleted file mode 100644
index f5fefe08..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to setup digital pins
- direction = 1 -> output
- direction = 0 -> input
-*/
-
-#include "types.h"
-#include "RPIPeripheralDigital.h"
-
-
-/*This array maps pin numbers on RPi board, with pin numbers corrsponding
-to WiringPi library*/
-int phy_pin[] = {17, 17, 8, 17, 9, 17, 7, 15, 17, 16, /*Pin 1 to 10*/
- 0, 1, 2, 17, 3, 4, 17, 5, 12, 17, /*Pin 11 to 20*/
- 13, 6, 14, 10, 17, 11, 30, 31, 21, 17, /*Pin 21 to 30*/
- 22, 26, 23, 17, 24, 27, 25, 28, 17, 29 }; /*Pin 31 to 40*/
-
-/*pin is reduced by one as arrayiindex starts from 0 and pin no starts from 1*/
-void u8RPIDigitalSetups(uint8 pin, uint8 direction)
-{
- if(direction == 1) /*Pin to be used as output*/
- pinMode(phy_pin[pin-1], OUTPUT);
- else if(direction == 2)
- pinMode(phy_pin[pin-1], PWM_OUTPUT);
- else
- pinMode(phy_pin[pin-1], INPUT);
-
-}
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 b9b88e79..22d470a2 100644
--- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h
+++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h
@@ -1,8 +1,4 @@
-<<<<<<< HEAD
/* Copyright (C) 2017 - IIT Bombay - FOSSEE
-=======
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
This file must be used under the terms of the CeCILL.
This source file is licensed as described in the file COPYING, which
@@ -23,24 +19,12 @@
extern "C" {
#endif
-<<<<<<< HEAD
#include "types.h"
uint8 u8RPI_digitalReads(uint8 pin);
uint8 RPI_digitalReadByte();
void u8RPI_digitalWrites(uint8 pin, uint8 state);
void u8RPI_digitalWriteBytes(uint8 value);
-=======
-
-#include "types.h"
-#include "wiringPi.h"
-
-extern int phy_pin[];
-
-void u8RPIDigitalSetups(uint8 pin, uint8 direction);
-void u8RPIDigitalOuts(uint8 pin, uint8 state);
-uint8 u8RPIDigitalIns(uint8 pin);
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifdef __cplusplus
} /* extern "C" */
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 9c523f93..f1d3024e 100644
--- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h
+++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h
@@ -5,28 +5,17 @@
you should have received as part of this distribution. The terms
are also available at
http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
-<<<<<<< HEAD
Author: Siddhesh Wani, Jorawar Singh
-=======
- Author: Siddhesh Wani
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
Organization: FOSSEE, IIT Bombay
Email: toolbox@scilab.in
*/
#ifndef __RPIPERIPHERALPWM_H__
#define __RPIPERIPHERALPWM_H__
-<<<<<<< HEAD
-=======
-#include "types.h"
-#include "wiringPi.h"
-
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifdef __cplusplus
extern "C" {
#endif
-<<<<<<< HEAD
#include "types.h"
void u8RPI_pwmWrites(uint8 pin,uint16 value);
@@ -34,12 +23,6 @@ void u32RPI_pwmRanges(uint32 value);
void gRPI_pwmModea(char* mode,int size);
void u16RPI_pwmClocks(uint16 divisor);
void u8RPI_pwmToneWrites(uint8 pin,uint16 value);
-=======
-void u8RPIHardPWMWrites(uint8 pin, uint16 value);
-void u8RPIHardPWMSetRanges(uint16 value);
-void u8RPIHardPWMSetModes(uint8 mode);
-void u8RPIHardPWMSetClocks(uint16 clk_divisor);
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifdef __cplusplus
} /* extern "C" */
diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPinISR.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPinISR.h
deleted file mode 100644
index fc5a8d04..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPinISR.h
+++ /dev/null
@@ -1,26 +0,0 @@
- /* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
- */
-#ifndef __RPIPERIPHERALPINISR_H__
-#define __RPIPERIPHERALPINISR_H__
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-int16 i16RPIPinISRs(uint8 pin, uint8 edgetype, void (*ISRFunction)(void));
-
-#ifdef __cplusplus
-} /* extern "C" */
-#endif
-
-#endif /*__RPIPERIPHERALPINISR_H__*/
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 19ddcb21..67284bd0 100644
--- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h
+++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h
@@ -5,28 +5,17 @@
you should have received as part of this distribution. The terms
are also available at
http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
-<<<<<<< HEAD
Author: Siddhesh Wani, Jorawar Singh
-=======
- Author: Siddhesh Wani
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
Organization: FOSSEE, IIT Bombay
Email: toolbox@scilab.in
*/
#ifndef __RPIPERIPHERALSERIAL_H__
#define __RPIPERIPHERALSERIAL_H__
-<<<<<<< HEAD
-=======
-#include "types.h"
-#include "wiringSerial.h"
-
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifdef __cplusplus
extern "C" {
#endif
-<<<<<<< HEAD
#include "types.h"
#include "wiringSerial.h"
@@ -38,30 +27,6 @@ void u8RPI_serialGetchars(uint8 fd,char* out);
void u8RPI_serialPrintfs(uint8 fd,char* msg,int size);
void u8RPI_serialPutchars(uint8 fd,uint8 character);
void u8RPI_serialPutss(uint8 fd,char* character,int size);
-=======
-int u8RPISerialSetups(char* port, int baudrate);
-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, uint8* 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, uint8* data, int size);
-
-int16 i16RPISerialDataAvails(int fd);
-int16 i16RPISerialGetChars(int fd);
-
-void u8RPISerialFlushs(int fd);
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifdef __cplusplus
} /* extern "C" */
diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralThreading.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralThreading.h
deleted file mode 100644
index a7b2adb4..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralThreading.h
+++ /dev/null
@@ -1,28 +0,0 @@
- /* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
- */
-#ifndef __RPIPERIPHERALTHREADING_H__
-#define __RPIPERIPHERALTHREADING_H__
-
-#include "types.h"
-#include "wiringPi.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-uint16 RPIThreadCreate(void *(*threadFunction)(void*));
-
-#ifdef __cplusplus
-} /* extern "C" */
-#endif
-
-#endif /*__RPIPERIPHERALTHREADING_H__*/
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 b9087d77..e75a5394 100644
--- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h
+++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h
@@ -5,11 +5,7 @@
you should have received as part of this distribution. The terms
are also available at
http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
-<<<<<<< HEAD
Author: Siddhesh Wani, Jorawar Singh
-=======
- Author: Siddhesh Wani
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
Organization: FOSSEE, IIT Bombay
Email: toolbox@scilab.in
*/
@@ -26,17 +22,10 @@ extern "C" {
#include "types.h"
#include "wiringPi.h"
-<<<<<<< HEAD
void u32RPI_delays(uint32 time);
void u32RPI_delayMicros(uint32 time);
uint32 RPI_millis();
uint32 RPI_micros();
-=======
-void u16RPIDelayMillis(uint16 time);
-void u16RPIDelayMicros(uint16 time);
-uint32 u32RPIGetMillis();
-uint32 u32RPIGetMicros();
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifdef __cplusplus
} /* extern "C" */
diff --git a/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPinISR.h b/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPinISR.h
deleted file mode 100644
index b2c1ed16..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralPinISR.h
+++ /dev/null
@@ -1,25 +0,0 @@
- /* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
- */
-#ifndef __INT_RPIPERIPHERALPINISR_H__
-#define __INT_RPIPERIPHERALPINISR_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define RPI_PinISR(pin,edge,funname) i16RPIPinISRs((uint8)pin,(uint8)edge,funname)
-
-#ifdef __cplusplus
-} /* extern "C" */
-#endif
-
-#endif /*__INT_RPIPERIPHERALPINISR_H__*/
diff --git a/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralThreading.h b/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralThreading.h
deleted file mode 100644
index 68ed6e0e..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralThreading.h
+++ /dev/null
@@ -1,25 +0,0 @@
- /* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
- */
-#ifndef __INT_RPIPERIPHERALTHREADING_H__
-#define __INT_RPIPERIPHERALTHREADING_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define RPI_ThreadCreate(fn) RPIThreadCreate(fn);
-
-#ifdef __cplusplus
-} /* extern "C" */
-#endif
-
-#endif /*__INT_RPIPERIPHERALTHREADING_H__*/
diff --git a/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h b/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h
index c91fdfb2..cbbb47ae 100644
--- a/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h
+++ b/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h
@@ -5,19 +5,11 @@
you should have received as part of this distribution. The terms
are also available at
http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
-<<<<<<< HEAD
Author: Jorawar Singh, Siddhesh Wani
-=======
- Author: Siddhesh Wani
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
Organization: FOSSEE, IIT Bombay
Email: toolbox@scilab.in
*/
-<<<<<<< HEAD
-=======
-
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifndef __INT_RPIPERIPHERALTIMING_H__
#define __INT_RPIPERIPHERALTIMING_H__
@@ -28,7 +20,6 @@
extern "C" {
#endif
-<<<<<<< HEAD
#define u320RPI_delay(time) u32RPI_delays(time);
#define d0RPI_delay(time) u32RPI_delays(time);
@@ -37,20 +28,9 @@ extern "C" {
#define RPI_millisu320() RPI_millis();
#define RPI_microsu320() RPI_micros();
-=======
-#define RPI_DelayMicro(in1) u16RPIDelayMicros((uint16) in1)
-#define RPI_DelayMilli(in1) u16RPIDelayMillis((uint16) in1)
-#define RPI_GetMicro() u32RPIGetMicros()
-#define RPI_GetMillis() u32RPIGetMillis()
-
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifdef __cplusplus
} /* extern "C" */
#endif
-<<<<<<< HEAD
#endif /* !__INT_RPIPERIPHERALTIMING_H__ */
-=======
-#endif /* !__RPIPERIPHERALTIMING_H__ */
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
diff --git a/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c b/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c
deleted file mode 100644
index d06b135c..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetClocks.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/*Function to set clock for pwm channel. Default clock is 19.2 MHz. 'clk_divisor'
- along with range decides frequency for PWM
- PWM frequency = 19.2 MHz / clk_divisor/ range
- Range for clk_divisor = 1-2048
- */
-
-#include "types.h"
-#include "RPIPeripheralPWM.h"
-
-void u8RPIHardPWMSetClocks(uint16 clk_divisor)
-{
- pwmSetClock(clk_divisor);
-
-
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c b/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c
deleted file mode 100644
index 0cca7a70..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetModes.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/*Function to set mode for PWM channel. Two modes are available
- 0 --> balanced mode
- 1 --> mark/space mode
- */
-
-#include "types.h"
-#include "RPIPeripheralPWM.h"
-
-void u8RPIHardPWMSetModes(uint8 mode)
-{
- if (mode == 1) /*mark/space mode*/
- pwmSetMode(PWM_MODE_MS);
- else
- pwmSetMode(PWM_MODE_BAL);
-
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c b/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c
deleted file mode 100644
index b2489f59..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMSetRanges.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/*Function to assigne pwm duty to specified pin. PWM duty is decided by 'value'
- and 'range' specified using corresponding function.
- PWM duty = value/range
- */
-
-#include "types.h"
-#include "RPIPeripheralPWM.h"
-
-void u8RPIHardPWMSetRanges(uint16 value)
-{
- pwmSetRange(value);
-
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c b/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c
deleted file mode 100644
index ae02bf0d..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/pwm/u8RPIHardPWMWrites.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/*Function to set range for pwm channel. PWM duty is decided by 'range'
- and 'value' specified using corresponding function.
- PWM duty = value/range
- */
-
-#include "types.h"
-#include "RPIPeripheralPWM.h"
-#include "RPIPeripheralDigital.h"
-
-void u8RPIHardPWMWrites(uint8 pin, uint16 value)
-{
- pwmWrite((int)phy_pin[pin-1], value);
-
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/dRPISerialSendDataa.c b/2.3-1/src/c/hardware/rasberrypi/serial/dRPISerialSendDataa.c
deleted file mode 100644
index f9902550..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/serial/dRPISerialSendDataa.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to send double data array/matrix on specified serial port. */
-
-#include "types.h"
-#include "RPIPeripheralSerial.h"
-
-void dRPISerialSendDataa(int fd, double* data, int size)
-{
- int count = 0;
-
- for (count = 0; count < size; count++)
- {
- dRPISerialSendDatas(fd, data[count]);
- }
-
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/dRPISerialSendDatas.c b/2.3-1/src/c/hardware/rasberrypi/serial/dRPISerialSendDatas.c
deleted file mode 100644
index 39112fc2..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/serial/dRPISerialSendDatas.c
+++ /dev/null
@@ -1,35 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to send double data on specified serial port. */
-
-#include "types.h"
-#include "RPIPeripheralSerial.h"
-
-void dRPISerialSendDatas(int fd, double data)
-{
- uint8 count;
-
- union double_bytes{
- double double_data;
- unsigned char bytes[sizeof(double)];
- } in_data;
-
- in_data.double_data = data;
-
- for(count=0; count<sizeof(double); count++)
- {
- /*Send lsb first*/
- serialPutchar(fd, (uint8) in_data.bytes[count]);
- }
-
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/gRPISerialSendDatas.c b/2.3-1/src/c/hardware/rasberrypi/serial/gRPISerialSendDatas.c
deleted file mode 100644
index f4ec8a85..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/serial/gRPISerialSendDatas.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to send string on specified serial port. */
-
-#include "types.h"
-#include "RPIPeripheralSerial.h"
-
-void gRPISerialSendDatas(int fd, uint8* data, int size)
-{
- int count = 0;
-
- while(data[count] != '\0')
- {
- serialPutchar(fd, data[count]);
- }
-
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialDataAvails.c b/2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialDataAvails.c
deleted file mode 100644
index b56a8196..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialDataAvails.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to check for data availability at specified port. Returns no of
- bytes to be read */
-
-#include "types.h"
-#include "RPIPeripheralSerial.h"
-
-int16 i16RPISerialDataAvails(int fd)
-{
- int bytes = 0;
- bytes = serialDataAvail(fd);
-
- return bytes;
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialGetChars.c b/2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialGetChars.c
deleted file mode 100644
index 18ca2a7a..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialGetChars.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to read character from spcified serial port (file descriptor).
- This function will block execution for 10 secs if no character is available,
- and will return -1 in that case*/
-
-#include "types.h"
-#include "RPIPeripheralSerial.h"
-
-int16 i16RPISerialGetChars(int fd)
-{
- int data = 0;
-
- data = serialGetchar(fd);
-
- return data;
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialSendDataa.c b/2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialSendDataa.c
deleted file mode 100644
index 24180f41..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialSendDataa.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to send signed 16-bit data array/matrix on specified serial port. */
-
-#include "types.h"
-#include "RPIPeripheralSerial.h"
-
-void i16RPISerialSendDataa(int fd, int16* data, int size)
-{
- int count = 0;
-
- for (count = 0; count < size; ++count)
- {
- i16RPISerialSendDatas(fd, data[count]);
- }
-
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialSendDatas.c b/2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialSendDatas.c
deleted file mode 100644
index fe6fe6f4..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/serial/i16RPISerialSendDatas.c
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to send signed 16-bit byte on specified serial port. */
-
-#include "types.h"
-#include "RPIPeripheralSerial.h"
-
-void i16RPISerialSendDatas(int fd, int16 data)
-{
- /*Send lsb first*/
- serialPutchar(fd, (uint8) data);
- serialPutchar(fd, (uint8) (data>>8));
-
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/i8RPISerialSendDataa.c b/2.3-1/src/c/hardware/rasberrypi/serial/i8RPISerialSendDataa.c
deleted file mode 100644
index c4dd199c..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/serial/i8RPISerialSendDataa.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to send signed 8-bit byte array/matrix on specified serial port. */
-
-#include "types.h"
-#include "RPIPeripheralSerial.h"
-
-void i8RPISerialSendDataa(int fd, int8* data, int size)
-{
- int count = 0;
-
- for (count = 0; count < size; ++count)
- {
- i8RPISerialSendDatas(fd, data[count]);
- }
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/i8RPISerialSendDatas.c b/2.3-1/src/c/hardware/rasberrypi/serial/i8RPISerialSendDatas.c
deleted file mode 100644
index e637871f..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/serial/i8RPISerialSendDatas.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to send signed 8-bit byte on specified serial port. */
-
-#include "types.h"
-#include "RPIPeripheralSerial.h"
-
-void i8RPISerialSendDatas(int fd, int8 data)
-{
- serialPutchar(fd, (uint8) data);
-
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/sRPISerialSendDataa.c b/2.3-1/src/c/hardware/rasberrypi/serial/sRPISerialSendDataa.c
deleted file mode 100644
index 14c0bc70..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/serial/sRPISerialSendDataa.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to send float data array/matrix on specified serial port. */
-
-#include "types.h"
-#include "RPIPeripheralSerial.h"
-
-void sRPISerialSendDataa(int fd, float* data, int size)
-{
- int count = 0;
-
- for (count = 0; count < size; ++count)
- {
- sRPISerialSendDatas(fd, data[count]);
- }
-
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/sRPISerialSendDatas.c b/2.3-1/src/c/hardware/rasberrypi/serial/sRPISerialSendDatas.c
deleted file mode 100644
index ff78dd1f..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/serial/sRPISerialSendDatas.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to send float data on specified serial port. */
-
-#include "types.h"
-#include "RPIPeripheralSerial.h"
-
-void sRPISerialSendDatas(int fd, float data)
-{
- uint8 count;
-
- union float_bytes{
- float float_data;
- unsigned char bytes[sizeof(float)];
- } in_data;
- in_data.float_data = data;
-
- for(count=0; count<sizeof(float); count++)
- {
- /*Send lsb first*/
- serialPutchar(fd, (uint8) in_data.bytes[count]);
- }
-
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSendDataa.c b/2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSendDataa.c
deleted file mode 100644
index b444047b..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSendDataa.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to send unsigned 16-bit data array/matrix on specified serial port. */
-
-#include "types.h"
-#include "RPIPeripheralSerial.h"
-
-void u16RPISerialSendDataa(int fd, uint16* data, int size)
-{
- int count = 0;
-
- for (count = 0; count < size; ++count)
- {
- u16RPISerialSendDatas(fd, data[count]);
- }
-
-
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSendDatas.c b/2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSendDatas.c
deleted file mode 100644
index b4a90c29..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSendDatas.c
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to send unsigned 16-bit data on specified serial port. */
-
-#include "types.h"
-#include "RPIPeripheralSerial.h"
-
-void u16RPISerialSendDatas(int fd, uint16 data)
-{
- /*Send lsb first*/
- serialPutchar(fd, (uint8) data);
- serialPutchar(fd, (uint8) (data>>8));
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSetups.c b/2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSetups.c
deleted file mode 100644
index cde4cba2..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/serial/u16RPISerialSetups.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to setup port with desired baud rate. */
-
-#include "types.h"
-#include "RPIPeripheralSerial.h"
-
-int u16RPISerialSetups(char* port, int baudrate)
-{
- int fd;
-
- fd = serialOpen (port, baudrate);
-
- return fd;
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialCloses.c b/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialCloses.c
deleted file mode 100644
index 5162d15e..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialCloses.c
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to close serial port opened. */
-
-#include "types.h"
-#include "RPIPeripheralSerial.h"
-
-void u8RPISerialCloses(int fd)
-{
- serialClose (fd);
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialFlushs.c b/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialFlushs.c
deleted file mode 100644
index c80a92c5..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialFlushs.c
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to discards data serial buffer (received as well as waiting to be sent */
-
-#include "types.h"
-#include "RPIPeripheralSerial.h"
-
-void u8RPISerialFlushs(int fd)
-{
- serialFlush(fd);
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendChars.c b/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendChars.c
deleted file mode 100644
index e3813514..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendChars.c
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to send 8-bit char on specified serial port. */
-
-#include "types.h"
-#include "RPIPeripheralSerial.h"
-
-void u8RPISerialSendChars(int fd, uint8 data)
-{
- serialPutchar(fd, data);
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendDataa.c b/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendDataa.c
deleted file mode 100644
index 9d097141..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendDataa.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to send unsigned 8-bit byte array/matrix on specified serial port. */
-
-#include "types.h"
-#include "RPIPeripheralSerial.h"
-
-void u8RPISerialSendDataa(int fd, uint8* data, int size)
-{
- int count = 0;
-
- for (count = 0; count < size; ++count)
- {
- u8RPISerialSendDatas(fd, data[count]);
- }
-
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendDatas.c b/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendDatas.c
deleted file mode 100644
index 9edb439f..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/serial/u8RPISerialSendDatas.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to send unsigned 8-bit byte on specified serial port. */
-
-#include "types.h"
-#include "RPIPeripheralSerial.h"
-
-void u8RPISerialSendDatas(int fd, uint8 data)
-{
- serialPutchar(fd, data);
-
-}
diff --git a/2.3-1/src/c/hardware/rasberrypi/threading/u16RPIThreadCreates.c b/2.3-1/src/c/hardware/rasberrypi/threading/u16RPIThreadCreates.c
deleted file mode 100644
index c05c959c..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/threading/u16RPIThreadCreates.c
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to create thread for given function */
-
-#include "types.h"
-#include "RPIPeripheralThreading.h"
-
-uint16 RPIThreadCreate(void *(*threadFunction)(void*))
-{
- int status;
- status = piThreadCreate (threadFunction);
- return status;
-}
-
diff --git a/2.3-1/src/c/hardware/rasberrypi/timing/u16RPIDelayMicros.c b/2.3-1/src/c/hardware/rasberrypi/timing/u16RPIDelayMicros.c
deleted file mode 100644
index 9aeeab7d..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/timing/u16RPIDelayMicros.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to insert some delay in code execution. */
-
-#include "types.h"
-#include "RPIPeripheralTiming.h"
-
-void u16RPIDelayMicros(uint16 time)
-{
- delayMicroseconds(time);
-}
-
diff --git a/2.3-1/src/c/hardware/rasberrypi/timing/u16RPIDelayMillis.c b/2.3-1/src/c/hardware/rasberrypi/timing/u16RPIDelayMillis.c
deleted file mode 100644
index 26790861..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/timing/u16RPIDelayMillis.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to insert some delay in code execution. */
-
-
-
-#include "types.h"
-#include "RPIPeripheralTiming.h"
-
-void u16RPIDelayMillis(uint16 time)
-{
- delay(time);
-
-}
-
diff --git a/2.3-1/src/c/hardware/rasberrypi/timing/u32RPIGetMicros.c b/2.3-1/src/c/hardware/rasberrypi/timing/u32RPIGetMicros.c
deleted file mode 100644
index eb086a9f..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/timing/u32RPIGetMicros.c
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to get time in microsecond since first setup function called */
-
-#include "types.h"
-#include "RPIPeripheralTiming.h"
-
-uint32 u32RPIGetMicros()
-{
- return(micros());
-} \ No newline at end of file
diff --git a/2.3-1/src/c/hardware/rasberrypi/timing/u32RPIGetMillis.c b/2.3-1/src/c/hardware/rasberrypi/timing/u32RPIGetMillis.c
deleted file mode 100644
index c1189753..00000000
--- a/2.3-1/src/c/hardware/rasberrypi/timing/u32RPIGetMillis.c
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Siddhesh Wani
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to get time in millisecond since first setup function called */
-
-#include "types.h"
-#include "RPIPeripheralTiming.h"
-
-uint32 u32RPIGetMillis()
-{
- return(millis());
-} \ No newline at end of file
diff --git a/2.3-1/src/c/matrixOperations/cat/ccata.c b/2.3-1/src/c/matrixOperations/cat/ccata.c
index 6a2a6d99..cd2b4c92 100644
--- a/2.3-1/src/c/matrixOperations/cat/ccata.c
+++ b/2.3-1/src/c/matrixOperations/cat/ccata.c
@@ -26,11 +26,7 @@ void crowcata(floatComplex *in1, int lines1, int columns1, floatComplex *in2, i
{
for (j = 0 ; j < lines1 ; ++j)
{
-<<<<<<< HEAD
out[i*(lines1 + lines2) + j] = in1[i*lines1 + j];
-=======
- /*out[i*(lines1 + lines2) + j] = in1[i*lines1 + j];*/
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
}
for (j = 0 ; j < lines2 ; ++j)
{
diff --git a/2.3-1/src/c/matrixOperations/cat/zcata.c b/2.3-1/src/c/matrixOperations/cat/zcata.c
index 659f14c0..485553d7 100644
--- a/2.3-1/src/c/matrixOperations/cat/zcata.c
+++ b/2.3-1/src/c/matrixOperations/cat/zcata.c
@@ -26,11 +26,7 @@ void zrowcata(doubleComplex *in1, int lines1, int columns1, doubleComplex *in2,
{
for (j = 0 ; j < lines1 ; ++j)
{
-<<<<<<< HEAD
out[i*(lines1 + lines2) + j] = in1[i*lines1 + j];
-=======
- /*out[i*(lines1 + lines2) + j] = in1[i*lines1 + j];*/
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
}
for (j = 0 ; j < lines2 ; ++j)
{
diff --git a/2.3-1/src/c/scilab-arduino/cmd_analog_in_volt/u8cmd_analog_in_volts.c b/2.3-1/src/c/scilab-arduino/cmd_analog_in_volt/u8cmd_analog_in_volts.c
index 27f63c75..7018df2c 100644
--- a/2.3-1/src/c/scilab-arduino/cmd_analog_in_volt/u8cmd_analog_in_volts.c
+++ b/2.3-1/src/c/scilab-arduino/cmd_analog_in_volt/u8cmd_analog_in_volts.c
@@ -15,13 +15,8 @@
float u8cmd_analog_in_volts(uint8 board_no, uint8 pin)
{
-<<<<<<< HEAD
float a;
a = ((5*(float)analogRead(pin))/1023);
-=======
- float a; //declaration of variable
- a = ((5*(float)analogRead(pin))/1023); //recieved 10 bit input from analog pin is convert to voltage(0 - 50
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
return(a);
}
diff --git a/2.3-1/src/c/scilab-arduino/cmd_analog_out_volt/u8cmd_analog_out_volts.c b/2.3-1/src/c/scilab-arduino/cmd_analog_out_volt/u8cmd_analog_out_volts.c
index 19a73fcf..2dd82e41 100644
--- a/2.3-1/src/c/scilab-arduino/cmd_analog_out_volt/u8cmd_analog_out_volts.c
+++ b/2.3-1/src/c/scilab-arduino/cmd_analog_out_volt/u8cmd_analog_out_volts.c
@@ -15,14 +15,8 @@
void u8cmd_analog_out_volts(uint8 board_no, uint8 pin, float value)
{
-<<<<<<< HEAD
int a;
a = ((value*255)/5);
analogWrite(pin,a);
-=======
- int a; //declaring variable
- a = ((value*255)/5); //converting given voltage to duty cycle value (0 - 255)
- analogWrite(pin,a); //passing pin no. and duty cycle value
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
}
diff --git a/2.3-1/src/c/scilab-arduino/cmd_dcmotor_release/u8cmd_dcmotor_releases.c b/2.3-1/src/c/scilab-arduino/cmd_dcmotor_release/u8cmd_dcmotor_releases.c
index a2283035..349bcb17 100644
--- a/2.3-1/src/c/scilab-arduino/cmd_dcmotor_release/u8cmd_dcmotor_releases.c
+++ b/2.3-1/src/c/scilab-arduino/cmd_dcmotor_release/u8cmd_dcmotor_releases.c
@@ -15,7 +15,6 @@
void u8cmd_dcmotor_releases(uint8 board_no, uint8 motor_no)
{
-<<<<<<< HEAD
if (dcm_mode[motor_no] == 3)
{
analogWrite(dcm_pin_1[motor_no],0);
@@ -26,17 +25,5 @@ void u8cmd_dcmotor_releases(uint8 board_no, uint8 motor_no)
{
digitalWrite(dcm_pin_1[motor_no],LOW);
digitalWrite(dcm_pin_2[motor_no],LOW);
-=======
- if (dcm_mode[motor_no] == 3) //for IC accepting analog value
- {
- analogWrite(dcm_pin_1[motor_no],0); //passing LOW to IC pins to stop the motor
- analogWrite(dcm_pin_2[motor_no],0);
- }
-
- else //for IC accepting digital value
- {
- digitalWrite(dcm_pin_1[motor_no],LOW);
- digitalWrite(dcm_pin_2[motor_no],LOW); //passing LOW to IC pins to stop the motor
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
}
}
diff --git a/2.3-1/src/c/scilab-arduino/cmd_i2c_dev/u8cmd_i2c_devs.cpp b/2.3-1/src/c/scilab-arduino/cmd_i2c_dev/u8cmd_i2c_devs.cpp
index 2ba4d393..adc1a6e5 100644
--- a/2.3-1/src/c/scilab-arduino/cmd_i2c_dev/u8cmd_i2c_devs.cpp
+++ b/2.3-1/src/c/scilab-arduino/cmd_i2c_dev/u8cmd_i2c_devs.cpp
@@ -1,34 +1,10 @@
-<<<<<<< HEAD
-=======
-/* Copyright (C) 2017 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Yash Pratap Singh Tomar
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-//This function establishes I2C communication between arduino and given device
-
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#include "cmd_i2c_dev.h"
#include "Arduino.h"
#include "Wire.h"
-<<<<<<< HEAD
uint8 u8cmd_i2c_devs(uint8 address)
{
Wire.begin();
return((uint8)address);
-=======
-uint8 u8cmd_i2c_devs(uint8 address)
-{
- Wire.begin(); //To initiate connection
- return((uint8)address); //Returns address to create a device object
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
}
diff --git a/2.3-1/src/c/scilab-arduino/cmd_i2c_read/u8cmd_i2c_reads.cpp b/2.3-1/src/c/scilab-arduino/cmd_i2c_read/u8cmd_i2c_reads.cpp
index 78ef0ce1..8f02a87e 100644
--- a/2.3-1/src/c/scilab-arduino/cmd_i2c_read/u8cmd_i2c_reads.cpp
+++ b/2.3-1/src/c/scilab-arduino/cmd_i2c_read/u8cmd_i2c_reads.cpp
@@ -1,20 +1,3 @@
-<<<<<<< HEAD
-=======
-/* Copyright (C) 2017 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Yash Pratap Singh Tomar
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-
-//This function reads data from I2C bus.
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#include "cmd_i2c_read.h"
#include "Arduino.h"
#include "Wire.h"
diff --git a/2.3-1/src/c/scilab-arduino/cmd_i2c_read_register/u8cmd_i2c_read_registers.cpp b/2.3-1/src/c/scilab-arduino/cmd_i2c_read_register/u8cmd_i2c_read_registers.cpp
index 6b54159c..0a2ec2ed 100644
--- a/2.3-1/src/c/scilab-arduino/cmd_i2c_read_register/u8cmd_i2c_read_registers.cpp
+++ b/2.3-1/src/c/scilab-arduino/cmd_i2c_read_register/u8cmd_i2c_read_registers.cpp
@@ -1,20 +1,3 @@
-<<<<<<< HEAD
-=======
-/* Copyright (C) 2017 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Yash Pratap Singh Tomar
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-
-//this function reads data from the device register with given address
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#include "cmd_i2c_read_register.h"
#include "Arduino.h"
#include "Wire.h"
diff --git a/2.3-1/src/c/scilab-arduino/cmd_i2c_write/u8cmd_i2c_writes.cpp b/2.3-1/src/c/scilab-arduino/cmd_i2c_write/u8cmd_i2c_writes.cpp
index 788fd088..0239097a 100644
--- a/2.3-1/src/c/scilab-arduino/cmd_i2c_write/u8cmd_i2c_writes.cpp
+++ b/2.3-1/src/c/scilab-arduino/cmd_i2c_write/u8cmd_i2c_writes.cpp
@@ -1,19 +1,3 @@
-<<<<<<< HEAD
-=======
-/* Copyright (C) 2017 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Yash Pratap Singh Tomar
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-//This function writes data to the connected device
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#include "cmd_i2c_write.h"
#include "Arduino.h"
#include "Wire.h"
diff --git a/2.3-1/src/c/scilab-arduino/cmd_i2c_write_register/u8cmd_i2c_write_registers.cpp b/2.3-1/src/c/scilab-arduino/cmd_i2c_write_register/u8cmd_i2c_write_registers.cpp
index f10dd979..63cc7c7a 100644
--- a/2.3-1/src/c/scilab-arduino/cmd_i2c_write_register/u8cmd_i2c_write_registers.cpp
+++ b/2.3-1/src/c/scilab-arduino/cmd_i2c_write_register/u8cmd_i2c_write_registers.cpp
@@ -1,20 +1,3 @@
-<<<<<<< HEAD
-=======
-/* Copyright (C) 2017 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Yash Pratap Singh Tomar
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-
-//This function writes to the register of the device
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#include "cmd_i2c_write_register.h"
#include "Arduino.h"
#include "Wire.h"
diff --git a/2.3-1/src/c/scilab-arduino/default_files/sci2c_arduino.ino b/2.3-1/src/c/scilab-arduino/default_files/sci2c_arduino.ino
index 5d5d101b..df28950c 100644
--- a/2.3-1/src/c/scilab-arduino/default_files/sci2c_arduino.ino
+++ b/2.3-1/src/c/scilab-arduino/default_files/sci2c_arduino.ino
@@ -11,13 +11,8 @@
*/
#include "Arduino.h"
-<<<<<<< HEAD
#include <loop_arduino.h>
#include <setup_arduino.h>
-=======
-#include "loop_arduino.h"
-#include "setup_arduino.h"
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
void setup()
{
diff --git a/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_dev.h b/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_dev.h
index 85d154a3..861a8e7b 100644
--- a/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_dev.h
+++ b/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_dev.h
@@ -1,18 +1,3 @@
-<<<<<<< HEAD
-=======
-/* Copyright (C) 2017 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Yash Pratap Singh Tomar
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifndef __CMD_I2C_DEV_H__
#define __CMD_I2C_DEV_H__
diff --git a/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_read.h b/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_read.h
index e49abcd3..791bdd38 100644
--- a/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_read.h
+++ b/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_read.h
@@ -1,18 +1,3 @@
-<<<<<<< HEAD
-=======
-/* Copyright (C) 2017 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Yash Pratap Singh Tomar
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifndef __CMD_I2C_READ_H__
#define __CMD_I2C_READ_H__
diff --git a/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_read_register.h b/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_read_register.h
index 1b3a3cf9..ea203adf 100644
--- a/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_read_register.h
+++ b/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_read_register.h
@@ -1,18 +1,3 @@
-<<<<<<< HEAD
-=======
-/* Copyright (C) 2017 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Yash Pratap Singh Tomar
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifndef __CMD_I2C_READ_REGISTER_H__
#define __CMD_I2C_READ_REGISTER_H__
diff --git a/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_write.h b/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_write.h
index 58667c70..6a57222b 100644
--- a/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_write.h
+++ b/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_write.h
@@ -1,18 +1,3 @@
-<<<<<<< HEAD
-=======
-/* Copyright (C) 2017 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Yash Pratap Singh Tomar
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifndef __CMD_I2C_WRITE_H__
#define __CMD_I2C_WRITE_H__
diff --git a/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_write_register.h b/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_write_register.h
index bf8e7886..ff1b9ec0 100644
--- a/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_write_register.h
+++ b/2.3-1/src/c/scilab-arduino/includes/cmd_i2c_write_register.h
@@ -1,18 +1,3 @@
-<<<<<<< HEAD
-=======
-/* Copyright (C) 2017 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Yash Pratap Singh Tomar
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifndef __CMD_I2C_WRITE_REGISTER_H__
#define __CMD_I2C_WRITE_REGISTER_H__
diff --git a/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_dev.h b/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_dev.h
index c1de1b7a..c4d93d74 100644
--- a/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_dev.h
+++ b/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_dev.h
@@ -1,18 +1,3 @@
-<<<<<<< HEAD
-=======
-/* Copyright (C) 2017 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Yash Pratap Singh Tomar
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifndef __INT_CMD_I2C_DEV_H__
#define __INT_CMD_I2C_DEV_H__
diff --git a/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_read.h b/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_read.h
index ef114266..b0633a07 100644
--- a/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_read.h
+++ b/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_read.h
@@ -1,18 +1,3 @@
-<<<<<<< HEAD
-=======
-/* Copyright (C) 2017 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Yash Pratap Singh Tomar
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifndef __INT_CMD_I2C_READ_H__
#define __INT_CMD_I2C_READ_H__
diff --git a/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_read_register.h b/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_read_register.h
index c2cdc65a..5f4c5298 100644
--- a/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_read_register.h
+++ b/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_read_register.h
@@ -1,18 +1,3 @@
-<<<<<<< HEAD
-=======
-/* Copyright (C) 2017 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Yash Pratap Singh Tomar
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifndef __INT_CMD_I2C_READ_REGISTER_H__
#define __INT_CMD_I2C_READ_REGISTER_H__
diff --git a/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_write.h b/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_write.h
index 23474a74..a7705a89 100644
--- a/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_write.h
+++ b/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_write.h
@@ -1,18 +1,3 @@
-<<<<<<< HEAD
-=======
-/* Copyright (C) 2017 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Yash Pratap Singh Tomar
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifndef __INT_CMD_I2C_WRITE_H__
#define __INT_CMD_I2C_WRITE_H__
diff --git a/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_write_register.h b/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_write_register.h
index e385b3f7..35c0527e 100644
--- a/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_write_register.h
+++ b/2.3-1/src/c/scilab-arduino/interfaces/int_cmd_i2c_write_register.h
@@ -1,18 +1,3 @@
-<<<<<<< HEAD
-=======
-/* Copyright (C) 2017 - IIT Bombay - FOSSEE
-
- This file must be used under the terms of the CeCILL.
- This source file is licensed as described in the file COPYING, which
- you should have received as part of this distribution. The terms
- are also available at
- http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- Author: Yash Pratap Singh Tomar
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifndef __INT_CMD_I2C_WRITE_REGISTER_H__
#define __INT_CMD_I2C_WRITE_REGISTER_H__
diff --git a/2.3-1/src/c/string/disp/ddispa.c b/2.3-1/src/c/string/disp/ddispa.c
index 3ae1d15a..29aaceeb 100644
--- a/2.3-1/src/c/string/disp/ddispa.c
+++ b/2.3-1/src/c/string/disp/ddispa.c
@@ -16,11 +16,7 @@ double ddispa (double* in, int rows, int columns){
int i = 0,j = 0;
for (i = 0; i < rows; ++i) {
-<<<<<<< HEAD
for (j=0;j<columns;j++) printf (" %e ", in[i+j*rows]);
-=======
- for (j=0;j<columns;j++) printf (" %1.20f ", in[i+j*rows]);
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
printf("\n");
}
return 0;
diff --git a/2.3-1/src/c/type/doubleComplex.h b/2.3-1/src/c/type/doubleComplex.h
index c2e2d2e9..4be0d7d3 100644
--- a/2.3-1/src/c/type/doubleComplex.h
+++ b/2.3-1/src/c/type/doubleComplex.h
@@ -45,24 +45,6 @@ typedef struct double_complex doubleComplex;
/*
** }
*/
-<<<<<<< HEAD
-=======
-#elif defined(ARDUINO)
-/*
-** Hand made Double Complex definition
-** {
-*/
-struct double_complex
-{
- double real;
- double imag;
-};
-
-typedef struct double_complex doubleComplex;
-/*
-** }
-*/
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#else
/*
** Standard C99 Complex
@@ -75,10 +57,7 @@ typedef double complex doubleComplex;
** }
*/
#endif
-<<<<<<< HEAD
-=======
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/2.3-1/src/c/type/floatComplex.h b/2.3-1/src/c/type/floatComplex.h
index fb4039b6..fe35ca48 100644
--- a/2.3-1/src/c/type/floatComplex.h
+++ b/2.3-1/src/c/type/floatComplex.h
@@ -44,24 +44,6 @@ struct float_complex
typedef struct float_complex floatComplex;
/*
** }
-<<<<<<< HEAD
-=======
-*/
-#elif defined(ARDUINO)
-/*
-** Hand made Float Complex definition
-** {
-*/
-struct float_complex
-{
- float real;
- float imag;
-};
-
-typedef struct float_complex floatComplex;
-/*
-** }
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
*/
#else
/*
diff --git a/2.3-1/src/c/type/types.h b/2.3-1/src/c/type/types.h
index 8379003b..a76bf303 100644
--- a/2.3-1/src/c/type/types.h
+++ b/2.3-1/src/c/type/types.h
@@ -4,11 +4,7 @@
/*****************************************************************************/
/* TYPE DEFINITIONS */
/*****************************************************************************/
-<<<<<<< HEAD
typedef unsigned char boolean;
-=======
-/*typedef unsigned char boolean;*/
->>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
typedef unsigned char uint8;
typedef unsigned short uint16;