summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/c/elementaryFunctions/discrete_mathematics/gcd/u8gcda.c8
-rw-r--r--src/c/elementaryFunctions/discrete_mathematics/lcm/u8lcma.c3
-rw-r--r--src/c/hardware/rasberrypi/Interrupt/u8RPI_waitForInterrupts.c33
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/INIT_FillSCI2LivCDirs.backup316
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_adress.c13
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_analogRead.c13
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_analogWrite.c13
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_commande.c13
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_i2cdetect.c13
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_send.c13
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/ISR/i16RPIPinISRs.c25
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/gpio/RPI_DigitalRead.c24
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/gpio/RPI_DigitalWrite.c26
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/gpio/RPI_pinMode.c40
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmClock.c27
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmMode.c28
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmRange.c25
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmWrite.c26
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/dRPISerialSendDataa.c27
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/dRPISerialSendDatas.c35
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/gRPISerialSendDatas.c27
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i16RPISerialDataAvails.c25
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i16RPISerialGetChars.c27
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i16RPISerialSendDataa.c27
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i16RPISerialSendDatas.c24
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i8RPISerialSendDataa.c26
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i8RPISerialSendDatas.c22
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/sRPISerialSendDataa.c27
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/sRPISerialSendDatas.c34
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u16RPISerialSendDataa.c28
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u16RPISerialSendDatas.c23
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u16RPISerialSetups.c25
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialCloses.c21
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialFlushs.c21
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendChars.c21
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendDataa.c27
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendDatas.c22
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/threading/u16RPIThreadCreates.c24
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_delay.c25
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_delayMicro.c22
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_micros.c21
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_millis.c21
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/raspi.c13
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/NotToDo/raspi_close.c13
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/SPI/RPI_SPIDataRW.c13
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/SPI/RPI_SPISetup.c13
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_locks.c13
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_prioritys.c13
-rw-r--r--src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_unlocks.c13
-rw-r--r--src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h4
-rw-r--r--src/c/hardware/rasberrypi/includes/RPIPeripheralLCD128x64.h43
-rw-r--r--src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h4
-rw-r--r--src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralInterrupt.h1
-rw-r--r--src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralLCD.h8
-rw-r--r--src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralLCD128x64.h58
-rw-r--r--src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSetup.h15
-rw-r--r--src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h2
-rw-r--r--src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64Orientation.c (renamed from src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64Orientation.c)8
-rw-r--r--src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64circle.c (renamed from src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64circle.c)8
-rw-r--r--src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64clear.c (renamed from src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64clear.c)8
-rw-r--r--src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64ellipse.c (renamed from src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64ellipse.c)8
-rw-r--r--src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64line.c (renamed from src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64line.c)8
-rw-r--r--src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64lineTo.c (renamed from src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64lineTo.c)8
-rw-r--r--src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64point.c (renamed from src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64point.c)8
-rw-r--r--src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64putchar.c (renamed from src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64putchar.c)8
-rw-r--r--src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64puts.c (renamed from src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64puts.c)8
-rw-r--r--src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64rectangle.c (renamed from src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64rectangle.c)8
-rw-r--r--src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64setOrigin.c (renamed from src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64setOrigin.c)8
-rw-r--r--src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64setup.c (renamed from src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64setup.c)10
-rw-r--r--src/c/signalProcessing/includes/dct.h2
-rw-r--r--src/c/signalProcessing/interfaces/int_dct.h4
-rw-r--r--src/c/string/strcspn/gstrcspna.c2
72 files changed, 243 insertions, 1350 deletions
diff --git a/src/c/elementaryFunctions/discrete_mathematics/gcd/u8gcda.c b/src/c/elementaryFunctions/discrete_mathematics/gcd/u8gcda.c
index 3d58623..121d26a 100644
--- a/src/c/elementaryFunctions/discrete_mathematics/gcd/u8gcda.c
+++ b/src/c/elementaryFunctions/discrete_mathematics/gcd/u8gcda.c
@@ -31,7 +31,8 @@ uint8 u8gcdua(uint8* in,int size)
int x=*in;
int y=*(in+1);
int max=(x>y)?x:y;
- for(int i=max;i>=1;i--)
+ int i;
+ for(i=max;i>=1;i--)
{
if(x%i==0 && y%i==0)
{
@@ -39,12 +40,13 @@ uint8 u8gcdua(uint8* in,int size)
break;
}
}
- for(int j=2;j<size;j++)
+ int j;
+ for(j=2;j<size;j++)
{
x=temp;
y=*(in+j);
max=(x>y)?x:y;
- for(int i=max;i>=1;i--)
+ for(i=max;i>=1;i--)
{
if(x%i==0 && y%i==0)
{
diff --git a/src/c/elementaryFunctions/discrete_mathematics/lcm/u8lcma.c b/src/c/elementaryFunctions/discrete_mathematics/lcm/u8lcma.c
index 56856e4..b01c804 100644
--- a/src/c/elementaryFunctions/discrete_mathematics/lcm/u8lcma.c
+++ b/src/c/elementaryFunctions/discrete_mathematics/lcm/u8lcma.c
@@ -44,7 +44,8 @@ uint8 u8lcma(uint8* in,int size)
else
i+=max;
}
- for(int j=2;j<size;j++)
+ int j;
+ for(j=2;j<size;j++)
{
x1=lcm_temp;
x2=*(in+j);
diff --git a/src/c/hardware/rasberrypi/Interrupt/u8RPI_waitForInterrupts.c b/src/c/hardware/rasberrypi/Interrupt/u8RPI_waitForInterrupts.c
index 32a4a1f..ab15b8d 100644
--- a/src/c/hardware/rasberrypi/Interrupt/u8RPI_waitForInterrupts.c
+++ b/src/c/hardware/rasberrypi/Interrupt/u8RPI_waitForInterrupts.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+/* 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
@@ -11,9 +11,34 @@
*/
#include "RPIPeripheralInterrupt.h"
+#include "RPI_wfi.h"
+#include <sys/time.h>
+#include <math.h>
+#include <stdlib.h>
int8 u8RPI_waitForInterrupts(uint8 pin,int16 time){
- int8 out;
- out=waitForInterrupt(pin,time);
- return (out);
+ __RPI_wfi=0;
+ if (wiringPiISR(pin,3,&RPI_wfi)<0){
+ return -1;
+ }
+ if (time==-1){
+ while (__RPI_wfi==0){;}
+ return 1;
+ }
+ else{
+ struct timeval time1,time2;
+ int nDigits;
+ double t1,t2;
+ gettimeofday(&time1, NULL);
+ nDigits=floor(log10(abs(time1.tv_usec)))+1;
+ t1=time1.tv_sec+time1.tv_usec/nDigits;
+ t2=t1;
+ while (__RPI_wfi==0 && t2-t1<time){
+ gettimeofday(&time2,NULL);
+ nDigits=floor(log10(abs(time2.tv_usec)))+1;
+ t2=time2.tv_sec+time2.tv_usec/nDigits;
+ }
+ if (__RPI_wfi==0){return 0;}
+ else{return 1;}
+ }
}
diff --git a/src/c/hardware/rasberrypi/NotYetDone/INIT_FillSCI2LivCDirs.backup b/src/c/hardware/rasberrypi/NotYetDone/INIT_FillSCI2LivCDirs.backup
deleted file mode 100644
index c1db609..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/INIT_FillSCI2LivCDirs.backup
+++ /dev/null
@@ -1,316 +0,0 @@
-
-//------------------------------------
-//---- Class RPI_DigitalSetup --------
-//------------------------------------
-ClassName = 'RPI_DigitalSetup';
-
-// --- Class Annotation. ---
-PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y');
-ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls);
-PrintStringInfo('NIN= 2',ClassFileName,'file','y');
-PrintStringInfo('NOUT= 0 ',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y');
-
-// --- Function List Class. ---
-ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls);
-PrintStringInfo(''+ArgSeparator+'',ClassFileName,'file','y');
-
-// --- Annotation Function And Function List Function. ---
-FunctionName = 'RPI_DigitalSetup';
-PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-
-FunctionName = 'RPI_DigitalOut';
-PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-
-FunctionName = 'RPI_HardPWMWrite';
-PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-
-//------------------------------------
-//---- Class RPI_DigitalIn -----------
-//------------------------------------
-ClassName = 'RPI_DigitalIn';
-
-// --- Class Annotation. ---
-PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y');
-ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls);
-PrintStringInfo('NIN= 1',ClassFileName,'file','y');
-PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y');
-
-// --- Function List Class. ---
-ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls);
-
-PrintStringInfo(''+ArgSeparator+'',ClassFileName,'file','y');
-
-// --- Annotation Function And Function List Function. ---
-FunctionName = 'RPI_DigitalIn';
-PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-
-//------------------------------------
-//---- Class RPI_delay ----------
-//------------------------------------
-ClassName = 'RPI_delay';
-
-//--- Class Annotation. ---
-PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y');
-ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls);
-PrintStringInfo('NIN= 1',ClassFileName,'file','y');
-PrintStringInfo('NOUT= 0 ',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y');
-
-//--- Function List Class. ---
-ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls);
-
-PrintStringInfo(''+ArgSeparator+'',ClassFileName,'file','y');
-
-// --- Annotation Function And Function List Function. ---
-FunctionName = 'RPI_delay';
-PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-
-FunctionName = 'RPI_delayMicro';
-PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-
-FunctionName = 'RPI_SerialClose';
-PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-
-FunctionName = 'RPI_SerialFlush';
-PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-
-FunctionName = 'RPI_HardPWMSetRange';
-PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-
-FunctionName = 'RPI_HardPWMSetClock';
-PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-
-FunctionName = 'RPI_HardPWMSetMode';
-PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-
-//------------------------------------
-//---- Class RPI_milli ----------
-//------------------------------------
-ClassName = 'RPI_milli';
-
-// --- Class Annotation. ---
-PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y');
-ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls);
-PrintStringInfo('NIN= 0',ClassFileName,'file','y');
-PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).TP= ''u32''',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y');
-
-// --- Function List Class. ---
-ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls);
-
-PrintStringInfo(''+ArgSeparator+'',ClassFileName,'file','y');
-
-// --- Annotation Function And Function List Function. ---
-FunctionName = 'RPI_millis';
-PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-
-FunctionName = 'RPI_micros';
-PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-
-//------------------------------------
-//---- Class RPI_SetupSerial ----------
-//------------------------------------
-ClassName = 'RPI_SetupSerial';
-
-// --- Class Annotation. ---
-PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y');
-ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls);
-PrintStringInfo('NIN= 2',ClassFileName,'file','y');
-PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).TP= ''u16''',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y');
-
-// --- Function List Class. ---
-ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls);
-
-PrintStringInfo(''+ArgSeparator+'',ClassFileName,'file','y');
-
-// --- Annotation Function And Function List Function. ---
-FunctionName = 'RPI_SerialSetup';
-PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-
-//------------------------------------
-//---- Class RPI_SetupClose ----------
-//------------------------------------
-//ClassName = 'RPI_SetupClose';
-
-// --- Class Annotation. ---
-//PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y');
-//ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls);
-//PrintStringInfo('NIN= 1',ClassFileName,'file','y');
-//PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y');
-//PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y');
-//PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y');
-//PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y');
-
-// --- Function List Class. ---
-//ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls);
-
-//PrintStringInfo(''+ArgSeparator+'',ClassFileName,'file','y');
-
-// --- Annotation Function And Function List Function. ---
-//FunctionName = 'RPI_SerialClose';
-//PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-//INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-//INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-//FunctionName = 'RPI_SerialFlush';
-//PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-//INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-//INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-
-//------------------------------------
-//---- Class RPI_SerialSendData ----------
-//------------------------------------
-ClassName = 'RPI_SerialSendData';
-
-// --- Class Annotation. ---
-PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y');
-ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls);
-PrintStringInfo('NIN= 2',ClassFileName,'file','y');
-PrintStringInfo('NOUT= 0 ',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y');
-
-// --- Function List Class. ---
-ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls);
-
-PrintStringInfo('u80u80'+ArgSeparator+'u80',ClassFileName,'file','y');
-PrintStringInfo('u80i80'+ArgSeparator+'u80',ClassFileName,'file','y');
-PrintStringInfo('u80u160'+ArgSeparator+'u80',ClassFileName,'file','y');
-PrintStringInfo('u80i160'+ArgSeparator+'u80',ClassFileName,'file','y');
-PrintStringInfo('u80s0'+ArgSeparator+'u80',ClassFileName,'file','y');
-PrintStringInfo('u80d0'+ArgSeparator+'u80',ClassFileName,'file','y');
-
-PrintStringInfo('u80u82'+ArgSeparator+'u80',ClassFileName,'file','y');
-PrintStringInfo('u80i82'+ArgSeparator+'u80',ClassFileName,'file','y');
-PrintStringInfo('u80u162'+ArgSeparator+'u80',ClassFileName,'file','y');
-PrintStringInfo('u80i162'+ArgSeparator+'u80',ClassFileName,'file','y');
-PrintStringInfo('u80s2'+ArgSeparator+'u80',ClassFileName,'file','y');
-PrintStringInfo('u80d2'+ArgSeparator+'u80',ClassFileName,'file','y');
-PrintStringInfo('u80g2'+ArgSeparator+'u80',ClassFileName,'file','y');
-
-// --- Annotation Function And Function List Function. ---
-FunctionName = 'RPI_SerialSendData';
-PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-
-//------------------------------------
-//---- Class RPI_SerialDataAvail ----------
-//------------------------------------
-ClassName = 'RPI_SerialDataAvail';
-
-// --- Class Annotation. ---
-PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y');
-ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls);
-PrintStringInfo('NIN= 1',ClassFileName,'file','y');
-PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).TP= ''i16''',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y');
-
-// --- Function List Class. ---
-ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls);
-
-PrintStringInfo(''+ArgSeparator+'',ClassFileName,'file','y');
-
-// --- Annotation Function And Function List Function. ---
-FunctionName = 'RPI_SerialDataAvail';
-PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-FunctionName = 'RPI_SerialGetChar';
-PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-
-
-//------------------------------------
-//---- Class RPI_ThreadCreate ----------
-//------------------------------------
-ClassName = 'RPI_ThreadCreate';
-
-// --- Class Annotation. ---
-PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y');
-ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls);
-PrintStringInfo('NIN= 1',ClassFileName,'file','y');
-PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).TP= ''u16''',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y');
-
-// --- Function List Class. ---
-ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls);
-
-PrintStringInfo(''+ArgSeparator+'',ClassFileName,'file','y');
-
-// --- Annotation Function And Function List Function. ---
-FunctionName = 'RPI_ThreadCreate';
-PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
-
-//------------------------------------
-//---- Class RPI_PinISR --------------
-//------------------------------------
-ClassName = 'RPI_PinISR';
-
-// --- Class Annotation. ---
-PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y');
-ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls);
-PrintStringInfo('NIN= 3',ClassFileName,'file','y');
-PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).TP= ''i16''',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y');
-PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y');
-
-// --- Function List Class. ---
-ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls);
-
-PrintStringInfo(''+ArgSeparator+'',ClassFileName,'file','y');
-
-// --- Annotation Function And Function List Function. ---
-FunctionName = 'RPI_PinISR';
-PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
-INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_adress.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_adress.c
deleted file mode 100644
index 3e94b92..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_adress.c
+++ /dev/null
@@ -1,13 +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: Jorawar Singh
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-#include "types.h" \ No newline at end of file
diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_analogRead.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_analogRead.c
deleted file mode 100644
index 3e94b92..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_analogRead.c
+++ /dev/null
@@ -1,13 +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: Jorawar Singh
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-#include "types.h" \ No newline at end of file
diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_analogWrite.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_analogWrite.c
deleted file mode 100644
index 3e94b92..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_analogWrite.c
+++ /dev/null
@@ -1,13 +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: Jorawar Singh
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-#include "types.h" \ No newline at end of file
diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_commande.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_commande.c
deleted file mode 100644
index 3e94b92..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_commande.c
+++ /dev/null
@@ -1,13 +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: Jorawar Singh
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-#include "types.h" \ No newline at end of file
diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_i2cdetect.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_i2cdetect.c
deleted file mode 100644
index 3e94b92..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_i2cdetect.c
+++ /dev/null
@@ -1,13 +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: Jorawar Singh
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-#include "types.h" \ No newline at end of file
diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_send.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_send.c
deleted file mode 100644
index 3e94b92..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/RPI_send.c
+++ /dev/null
@@ -1,13 +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: Jorawar Singh
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-#include "types.h" \ No newline at end of file
diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/ISR/i16RPIPinISRs.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/ISR/i16RPIPinISRs.c
deleted file mode 100644
index 6e398a1..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/gpio/RPI_DigitalRead.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/gpio/RPI_DigitalRead.c
deleted file mode 100644
index 4ab496e..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/gpio/RPI_DigitalRead.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, Jorawar Singh
- 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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/gpio/RPI_DigitalWrite.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/gpio/RPI_DigitalWrite.c
deleted file mode 100644
index 259bb3b..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/gpio/RPI_DigitalWrite.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, Jorawar Singh
- 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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/gpio/RPI_pinMode.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/gpio/RPI_pinMode.c
deleted file mode 100644
index 8646e8f..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/gpio/RPI_pinMode.c
+++ /dev/null
@@ -1,40 +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, Jorawar Singh
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to setup digital pins
- direction = 2 -> PWM_output (BCM pin 18 only)
- 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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmClock.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmClock.c
deleted file mode 100644
index 0ad575b..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmClock.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, Jorawar Singh
- 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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmMode.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmMode.c
deleted file mode 100644
index 7679a1a..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmMode.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, Jorawar Singh
- 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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmRange.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmRange.c
deleted file mode 100644
index 07936b3..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmRange.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, Jorawar Singh
- 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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmWrite.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmWrite.c
deleted file mode 100644
index a16a1d8..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/pwm/RPI_pwmWrite.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, Jorawar Singh
- 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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/dRPISerialSendDataa.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/dRPISerialSendDataa.c
deleted file mode 100644
index f990255..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/dRPISerialSendDatas.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/dRPISerialSendDatas.c
deleted file mode 100644
index 39112fc..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/gRPISerialSendDatas.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/gRPISerialSendDatas.c
deleted file mode 100644
index f4ec8a8..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i16RPISerialDataAvails.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i16RPISerialDataAvails.c
deleted file mode 100644
index b56a819..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i16RPISerialGetChars.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i16RPISerialGetChars.c
deleted file mode 100644
index 18ca2a7..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i16RPISerialSendDataa.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i16RPISerialSendDataa.c
deleted file mode 100644
index 24180f4..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i16RPISerialSendDatas.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i16RPISerialSendDatas.c
deleted file mode 100644
index fe6fe6f..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i8RPISerialSendDataa.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i8RPISerialSendDataa.c
deleted file mode 100644
index c4dd199..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i8RPISerialSendDatas.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/i8RPISerialSendDatas.c
deleted file mode 100644
index e637871..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/sRPISerialSendDataa.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/sRPISerialSendDataa.c
deleted file mode 100644
index 14c0bc7..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/sRPISerialSendDatas.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/sRPISerialSendDatas.c
deleted file mode 100644
index ff78dd1..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u16RPISerialSendDataa.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u16RPISerialSendDataa.c
deleted file mode 100644
index b444047..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u16RPISerialSendDatas.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u16RPISerialSendDatas.c
deleted file mode 100644
index b4a90c2..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u16RPISerialSetups.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u16RPISerialSetups.c
deleted file mode 100644
index cde4cba..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialCloses.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialCloses.c
deleted file mode 100644
index 5162d15..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialFlushs.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialFlushs.c
deleted file mode 100644
index c80a92c..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendChars.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendChars.c
deleted file mode 100644
index e381351..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendDataa.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendDataa.c
deleted file mode 100644
index 9d09714..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendDatas.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/serial/u8RPISerialSendDatas.c
deleted file mode 100644
index 9edb439..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/threading/u16RPIThreadCreates.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/threading/u16RPIThreadCreates.c
deleted file mode 100644
index c05c959..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/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/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_delay.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_delay.c
deleted file mode 100644
index 8374c2b..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_delay.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, Jorawar Singh
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to insert some delay in code execution. */
-
-
-
-#include "types.h"
-#include "RPIPeripheralTiming.h"
-
-void u16RPI_delay(uint16 time)
-{
- delay(time);
-
-}
-
diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_delayMicro.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_delayMicro.c
deleted file mode 100644
index df2a7a7..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_delayMicro.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, Jorawar Singh
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-/* Function to insert some delay in code execution. */
-
-#include "types.h"
-#include "RPIPeripheralTiming.h"
-
-void u16RPI_delayMicro(uint16 time)
-{
- delayMicroseconds(time);
-}
-
diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_micros.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_micros.c
deleted file mode 100644
index 8d06742..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_micros.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, Jorawar Singh
- 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 u32RPI_micros()
-{
- return(micros());
-}
diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_millis.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_millis.c
deleted file mode 100644
index 92b6e1b..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/backup/timing/RPI_millis.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, Jorawar Singh
- 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 u32RPI_millis()
-{
- return(millis());
-}
diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/raspi.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/raspi.c
deleted file mode 100644
index 3e94b92..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/raspi.c
+++ /dev/null
@@ -1,13 +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: Jorawar Singh
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-#include "types.h" \ No newline at end of file
diff --git a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/raspi_close.c b/src/c/hardware/rasberrypi/NotYetDone/NotToDo/raspi_close.c
deleted file mode 100644
index 3e94b92..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/NotToDo/raspi_close.c
+++ /dev/null
@@ -1,13 +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: Jorawar Singh
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-#include "types.h" \ No newline at end of file
diff --git a/src/c/hardware/rasberrypi/NotYetDone/SPI/RPI_SPIDataRW.c b/src/c/hardware/rasberrypi/NotYetDone/SPI/RPI_SPIDataRW.c
deleted file mode 100644
index 3e94b92..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/SPI/RPI_SPIDataRW.c
+++ /dev/null
@@ -1,13 +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: Jorawar Singh
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-#include "types.h" \ No newline at end of file
diff --git a/src/c/hardware/rasberrypi/NotYetDone/SPI/RPI_SPISetup.c b/src/c/hardware/rasberrypi/NotYetDone/SPI/RPI_SPISetup.c
deleted file mode 100644
index 3e94b92..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/SPI/RPI_SPISetup.c
+++ /dev/null
@@ -1,13 +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: Jorawar Singh
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-#include "types.h" \ No newline at end of file
diff --git a/src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_locks.c b/src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_locks.c
deleted file mode 100644
index 3e94b92..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_locks.c
+++ /dev/null
@@ -1,13 +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: Jorawar Singh
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-#include "types.h" \ No newline at end of file
diff --git a/src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_prioritys.c b/src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_prioritys.c
deleted file mode 100644
index 3e94b92..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_prioritys.c
+++ /dev/null
@@ -1,13 +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: Jorawar Singh
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-#include "types.h" \ No newline at end of file
diff --git a/src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_unlocks.c b/src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_unlocks.c
deleted file mode 100644
index 3e94b92..0000000
--- a/src/c/hardware/rasberrypi/NotYetDone/multiThreading/u8RPI_unlocks.c
+++ /dev/null
@@ -1,13 +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: Jorawar Singh
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
-*/
-
-#include "types.h" \ No newline at end of file
diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h
index 842fd73..22d470a 100644
--- a/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h
+++ b/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+/* 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
@@ -21,8 +21,6 @@ extern "C" {
#include "types.h"
-extern int phy_pin[]; //Not needed???
-
uint8 u8RPI_digitalReads(uint8 pin);
uint8 RPI_digitalReadByte();
void u8RPI_digitalWrites(uint8 pin, uint8 state);
diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralLCD128x64.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralLCD128x64.h
new file mode 100644
index 0000000..d541c9f
--- /dev/null
+++ b/src/c/hardware/rasberrypi/includes/RPIPeripheralLCD128x64.h
@@ -0,0 +1,43 @@
+ /* 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: Jorawar Singh, Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+ */
+#ifndef __RPIPERIPHERALLCD128x64_H__
+#define __RPIPERIPHERALLCD128x64_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "types.h"
+#include "lcd128x64.h"
+
+int8 RPI_lcd128x64setup(void);
+void u8RPI_lcd128x64clears(uint8 colour);
+void u8RPI_lcd128x64Orientations(uint8 orientation);
+void u8RPI_lcd128x64setOrigins(uint8 x, uint8 y);
+void u8RPI_lcd128x64points(uint8 x, uint8 y, uint8 colour);
+void u8RPI_lcd128x64lineTos(uint8 x, uint8 y, uint8 colour);
+void u8RPI_lcd128x64lines(uint8 x0, uint8 y0, uint8 x1, uint8 y1, uint8 colour);
+void u8RPI_lcd128x64circles(uint8 x, uint8 y, uint8 r, uint8 colour, uint8 filled);
+void u8RPI_lcd128x64putchars(uint8 x, uint8 y, uint8 c, uint8 bgCol, uint8 fgCol);
+void u8RPI_lcd128x64putss(uint8 x, uint8 y, char *str,int size, uint8 bgCol, uint8 fgCol);
+void u8RPI_lcd128x64rectangles(uint8 x1, uint8 y1, uint8 x2, uint8 y2, uint8 colour, uint8 filled);
+void u8RPI_lcd128x64ellipses(uint8 cx, uint8 cy, uint8 xRadius, uint8 yRadius, uint8 colour, uint8 filled);
+
+//void u8RPI_lcd128x64orientCoordinatess(uint8 *x, uint8 *y);
+//void u8RPI_lcd128x64getScreenSizes(uint8 *x, uint8 *y);
+//void RPI_lcd128x64update(void);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /*__RPIPERIPHERALLCD128x64_H__*/
diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h
index 7de051f..096fed0 100644
--- a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h
+++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h
@@ -21,8 +21,12 @@ extern "C" {
#endif
#define u80RPI_digitalReadu80(pin) u8RPI_digitalReads(pin);
+#define d0RPI_digitalReadd0(pin) u8RPI_digitalReads(pin);
+
#define RPI_digitalReadByteu80() RPI_digitalReadByte();
#define u80u80RPI_digitalWrite(pin,state) u8RPI_digitalWrites(pin,state);
+#define d0d0RPI_digitalWrite(pin,state) u8RPI_digitalWrites(pin,state);
+
#define u80RPI_digitalWriteByte(value) u8RPI_digitalWriteBytes(value);
#ifdef __cplusplus
diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralInterrupt.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralInterrupt.h
index cb55572..572d028 100644
--- a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralInterrupt.h
+++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralInterrupt.h
@@ -21,6 +21,7 @@ extern "C" {
#endif
#define u80i160RPI_waitForInterrupti80(pin,time) u8RPI_waitForInterrupts(pin,time);
+#define d0d0RPI_waitForInterrupti80(pin,time) u8RPI_waitForInterrupts(pin,time);
#ifdef __cplusplus
} /* extern "C" */
diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralLCD.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralLCD.h
index da23bee..e4f3ca2 100644
--- a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralLCD.h
+++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralLCD.h
@@ -1,11 +1,11 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+/* 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: Jorawar Singh, Siddhesh Wani
+ Author: Jorawar Singh
Organization: FOSSEE, IIT Bombay
Email: toolbox@scilab.in
*/
@@ -30,8 +30,8 @@ extern "C" {
#define u80u80u80RPI_lcdPosition(fd,row,col) u8RPI_lcdPositions(fd,row,col);
#define u80u80RPI_lcdPutchar(fd,char) u8RPI_lcdPutchars(fd,char);
#define u80u80RPI_lcdSendCommand(fd,cmd) u8RPI_lcdSendCommands(fd,cmd);
-#define u80g2RPI_lcdPutss(fd,msg,size) u8RPI_lcdPutss(fd,msg,size[1]);;
-#define u80g2RPI_lcdPrintfs(fd,data,size) u8RPI_lcdPrintfs(fd,data,size[1]);
+#define u80g2RPI_lcdPuts(fd,msg,size) u8RPI_lcdPutss(fd,msg,size[1]);;
+#define u80g2RPI_lcdPrintf(fd,data,size) u8RPI_lcdPrintfs(fd,data,size[1]);
#ifdef __cplusplus
} /* extern "C" */
diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralLCD128x64.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralLCD128x64.h
new file mode 100644
index 0000000..46b6328
--- /dev/null
+++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralLCD128x64.h
@@ -0,0 +1,58 @@
+/* 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: Jorawar Singh
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+#ifndef __INT_RPIPERIPHERALLCD128x64_H__
+#define __INT_RPIPERIPHERALLCD128x64_H__
+
+#include "types.h"
+#include "RPIPeripheralLCD128x64.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define RPI_lcd128x64setupi80() RPI_lcd128x64setup();
+
+#define u80RPI_lcd128x64clear(colour) u8RPI_lcd128x64clears(colour);
+#define d0RPI_lcd128x64clear(colour) u8RPI_lcd128x64clears(colour);
+
+#define u80RPI_lcd128x64Orientation(orientation) u8RPI_lcd128x64Orientations(orientation);
+#define d0RPI_lcd128x64Orientation(orientation) u8RPI_lcd128x64Orientations(orientation);
+
+#define u80u80RPI_lcd128x64setOrigin(x,y) u8RPI_lcd128x64setOrigins(x,y);
+#define d0d0RPI_lcd128x64setOrigin(x,y) u8RPI_lcd128x64setOrigins(x,y);
+
+#define u80u80u80RPI_lcd128x64point(x,y,colour) u8RPI_lcd128x64points(x,y,colour);
+#define d0d0d0RPI_lcd128x64point(x,y,colour) u8RPI_lcd128x64points(x,y,colour);
+#define u80u80u80RPI_lcd128x64lineTo(x,y,colour) u8RPI_lcd128x64lineTos(x,y,colour);
+#define d0d0d0RPI_lcd128x64lineTo(x,y,colour) u8RPI_lcd128x64lineTos(x,y,colour);
+
+#define u80u80u80u80u80RPI_lcd128x64line(x0,y0,x1,y1,colour) u8RPI_lcd128x64lines(x0,y0,x1,y1,colour);
+#define d0d0d0d0d0RPI_lcd128x64line(x0,y0,x1,y1,colour) u8RPI_lcd128x64lines(x0,y0,x1,y1,colour);
+#define u80u80u80u80u80RPI_lcd128x64circle(x,y,r,colour,filled) u8RPI_lcd128x64circles(x,y,r,colour,filled);
+#define d0d0d0d0d0RPI_lcd128x64circle(x,y,r,colour,filled) u8RPI_lcd128x64circles(x,y,r,colour,filled);
+#define u80u80u80u80u80RPI_lcd128x64putchar(x,y,c,bgCol,fgCol) u8RPI_lcd128x64putchars(x,y,c,bgCol,fgCol);
+#define d0d0d0d0u80RPI_lcd128x64putchar(x,y,c,bgCol,fgCol) u8RPI_lcd128x64putchars(x,y,c,bgCol,fgCol);
+
+#define u80u80g2u80u80RPI_lcd128x64puts(x,y,str,size,bgCol,fgCol) u8RPI_lcd128x64putss(x,y,str,size[1],bgCol,fgCol);
+#define d0d0g2d0d0RPI_lcd128x64puts(x,y,str,size,bgCol,fgCol) u8RPI_lcd128x64putss(x,y,str,size[1],bgCol,fgCol);
+
+#define u80u80u80u80u80u80RPI_lcd128x64rectangle(x1,y1,x2,y2,colour,filled) u8RPI_lcd128x64rectangles(x1,y1,x2,y2,colour,filled);
+#define d0d0d0d0d0d0RPI_lcd128x64rectangle(x1,y1,x2,y2,colour,filled) u8RPI_lcd128x64rectangles(x1,y1,x2,y2,colour,filled);
+#define u80u80u80u80u80u80RPI_lcd128x64ellipse(cx,cy,xRadius,yRadius,colour,filled) u8RPI_lcd128x64ellipses(cx,cy,xRadius,yRadius,colour,filled);
+#define d0d0d0d0d0d0RPI_lcd128x64ellipse(cx,cy,xRadius,yRadius,colour,filled) u8RPI_lcd128x64ellipses(cx,cy,xRadius,yRadius,colour,filled);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /* !__INT_RPIPERIPHERALLCD128x64_H__ */
diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSetup.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSetup.h
index 0e1f7b4..bd82702 100644
--- a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSetup.h
+++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralSetup.h
@@ -19,11 +19,26 @@
extern "C" {
#endif
+//pinNumbering
#define g2RPI_pinNumberingi80(seq,size) gRPI_pinNumberinga(seq,size[1]);
+//getAlt
#define u80RPI_getAltu80(pin) u8RPI_getAlts(pin);
+#define u160RPI_getAltu80(pin) u8RPI_getAlts(pin);
+#define u320RPI_getAltu80(pin) u8RPI_getAlts(pin);
+#define d0RPI_getAltu80(pin) u8RPI_getAlts(pin);
+//pinModeAlt
#define u80u80RPI_pinModeAlt(pin,mode) u8RPI_pinModeAlts(pin,mode);
+#define u160u160RPI_pinModeAlt(pin,mode) u8RPI_pinModeAlts(pin,mode);
+#define u320u320RPI_pinModeAlt(pin,mode) u8RPI_pinModeAlts(pin,mode);
+#define d0d0RPI_pinModeAlt(pin,mode) u8RPI_pinModeAlts(pin,mode);
+//pinMode
#define u80g2RPI_pinMode(pin,mode,size) u8RPI_pinModes(pin,mode,size[1]);
+#define u160g2RPI_pinMode(pin,mode,size) u8RPI_pinModes(pin,mode,size[1]);
+#define u320g2RPI_pinMode(pin,mode,size) u8RPI_pinModes(pin,mode,size[1]);
+#define d0g2RPI_pinMode(pin,mode,size) u8RPI_pinModes(pin,mode,size[1]);
+//pullControl
#define u80g2RPI_pullControl(pin,mode,size) u8RPI_pullControls(pin,mode,size[1]);
+#define d0g2RPI_pullControl(pin,mode,size) u8RPI_pullControls(pin,mode,size[1]);
#ifdef __cplusplus
} /* extern "C" */
diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h
index 5c4e618..d2fae23 100644
--- a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h
+++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h
@@ -21,6 +21,8 @@ extern "C" {
#endif
#define u320RPI_delay(time) u32RPI_delays(time);
+#define d0RPI_delay(time) u32RPI_delays(time);
+
#define u320RPI_delayMicro(time) u32RPI_delayMicros(time);
#define RPI_millisu320() RPI_millis();
#define RPI_microsu320() RPI_micros();
diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64Orientation.c b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64Orientation.c
index 3e94b92..5239102 100644
--- a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64Orientation.c
+++ b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64Orientation.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+/* 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
@@ -10,4 +10,8 @@
Email: toolbox@scilab.in
*/
-#include "types.h" \ No newline at end of file
+#include "RPIPeripheralLCD128x64.h"
+
+void u8RPI_lcd128x64Orientations(uint8 orientation){
+ lcd128x64setOrientation(orientation);
+}
diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64circle.c b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64circle.c
index 3e94b92..9019d8f 100644
--- a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64circle.c
+++ b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64circle.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+/* 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
@@ -10,4 +10,8 @@
Email: toolbox@scilab.in
*/
-#include "types.h" \ No newline at end of file
+#include "RPIPeripheralLCD128x64.h"
+
+void u8RPI_lcd128x64circles(uint8 x,uint8 y,uint8 r,uint8 colour,uint8 filled){
+ lcd128x64circle(x,y,r,colour,filled);
+}
diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64clear.c b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64clear.c
index 3e94b92..a83cef2 100644
--- a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64clear.c
+++ b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64clear.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+/* 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
@@ -10,4 +10,8 @@
Email: toolbox@scilab.in
*/
-#include "types.h" \ No newline at end of file
+#include "RPIPeripheralLCD128x64.h"
+
+void u8RPI_lcd128x64clears(uint8 colour){
+ lcd128x64clear(colour);
+}
diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64ellipse.c b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64ellipse.c
index 3e94b92..d2e2f54 100644
--- a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64ellipse.c
+++ b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64ellipse.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+/* 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
@@ -10,4 +10,8 @@
Email: toolbox@scilab.in
*/
-#include "types.h" \ No newline at end of file
+#include "RPIPeripheralLCD128x64.h"
+
+void u8RPI_lcd128x64ellipses(uint8 cx, uint8 cy, uint8 xRadius, uint8 yRadius, uint8 colour, uint8 filled){
+ lcd128x64ellipse(cx,cy,xRadius,yRadius,colour,filled);
+}
diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64line.c b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64line.c
index 3e94b92..f585080 100644
--- a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64line.c
+++ b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64line.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+/* 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
@@ -10,4 +10,8 @@
Email: toolbox@scilab.in
*/
-#include "types.h" \ No newline at end of file
+#include "RPIPeripheralLCD128x64.h"
+
+void u8RPI_lcd128x64lines(uint8 x0, uint8 y0, uint8 x1, uint8 y1, uint8 colour){
+ lcd128x64line(x0,y0,x1,y1,colour);
+}
diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64lineTo.c b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64lineTo.c
index 3e94b92..3f791f6 100644
--- a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64lineTo.c
+++ b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64lineTo.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+/* 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
@@ -10,4 +10,8 @@
Email: toolbox@scilab.in
*/
-#include "types.h" \ No newline at end of file
+#include "RPIPeripheralLCD128x64.h"
+
+void u8RPI_lcd128x64lineTos(uint8 x, uint8 y, uint8 colour){
+ lcd128x64lineTo(x,y,colour);
+}
diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64point.c b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64point.c
index 3e94b92..a23cddd 100644
--- a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64point.c
+++ b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64point.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+/* 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
@@ -10,4 +10,8 @@
Email: toolbox@scilab.in
*/
-#include "types.h" \ No newline at end of file
+#include "RPIPeripheralLCD128x64.h"
+
+void u8RPI_lcd128x64points(uint8 x,uint8 y,uint8 colour){
+ lcd128x64point(x,y,colour);
+}
diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64putchar.c b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64putchar.c
index 3e94b92..2dadb44 100644
--- a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64putchar.c
+++ b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64putchar.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+/* 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
@@ -10,4 +10,8 @@
Email: toolbox@scilab.in
*/
-#include "types.h" \ No newline at end of file
+#include "RPIPeripheralLCD128x64.h"
+
+void u8RPI_lcd128x64putchars(uint8 x, uint8 y, uint8 c, uint8 bgCol, uint8 fgCol){
+ lcd128x64putchar(x,y,c,bgCol,fgCol);
+}
diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64puts.c b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64puts.c
index 3e94b92..15c54da 100644
--- a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64puts.c
+++ b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64puts.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+/* 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
@@ -10,4 +10,8 @@
Email: toolbox@scilab.in
*/
-#include "types.h" \ No newline at end of file
+#include "RPIPeripheralLCD128x64.h"
+
+void u8RPI_lcd128x64putss(uint8 x, uint8 y, char* str,int size, uint8 bgCol, uint8 fgCol){
+ lcd128x64puts(x,y,str,bgCol,fgCol);
+}
diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64rectangle.c b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64rectangle.c
index 3e94b92..78239d9 100644
--- a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64rectangle.c
+++ b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64rectangle.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+/* 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
@@ -10,4 +10,8 @@
Email: toolbox@scilab.in
*/
-#include "types.h" \ No newline at end of file
+#include "RPIPeripheralLCD128x64.h"
+
+void u8RPI_lcd128x64rectangles(uint8 x1,uint8 y1,uint8 x2,uint8 y2,uint8 colour,uint8 filled){
+ lcd128x64rectangle(x1,y1,x2,y2,colour,filled);
+}
diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64setOrigin.c b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64setOrigin.c
index 3e94b92..c4b1939 100644
--- a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64setOrigin.c
+++ b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64setOrigin.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+/* 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
@@ -10,4 +10,8 @@
Email: toolbox@scilab.in
*/
-#include "types.h" \ No newline at end of file
+#include "RPIPeripheralLCD128x64.h"
+
+void u8RPI_lcd128x64setOrigins(uint8 x,uint8 y){
+ lcd128x64setOrigin(x,y);
+}
diff --git a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64setup.c b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64setup.c
index 3e94b92..8f6e6b6 100644
--- a/src/c/hardware/rasberrypi/NotYetDone/lcd128x64/RPI_lcd128x64setup.c
+++ b/src/c/hardware/rasberrypi/lcd128x64/RPI_lcd128x64setup.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+/* 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
@@ -10,4 +10,10 @@
Email: toolbox@scilab.in
*/
-#include "types.h" \ No newline at end of file
+#include "RPIPeripheralLCD128x64.h"
+
+int8 RPI_lcd128x64setup(){
+ int8 out;
+ out=lcd128x64setup();
+ return (out);
+}
diff --git a/src/c/signalProcessing/includes/dct.h b/src/c/signalProcessing/includes/dct.h
index 80668ff..db95274 100644
--- a/src/c/signalProcessing/includes/dct.h
+++ b/src/c/signalProcessing/includes/dct.h
@@ -29,7 +29,7 @@ void sdcta(float *in,int row,int col,int sign,float *out);
void zdcta(doubleComplex *in,int row,int col,int sign,doubleComplex *out);
-void cdcta(floatComplex *in,int row,int col,int sign,floatComplex *out);
+//void cdcta(floatComplex *in,int row,int col,int sign,floatComplex *out);
#ifdef __cplusplus
} /* extern "C" */
diff --git a/src/c/signalProcessing/interfaces/int_dct.h b/src/c/signalProcessing/interfaces/int_dct.h
index 3481c4d..ef58b48 100644
--- a/src/c/signalProcessing/interfaces/int_dct.h
+++ b/src/c/signalProcessing/interfaces/int_dct.h
@@ -29,8 +29,8 @@
#define z2d0dctz2(in,size,sign,out) zdcta(in,size[0],size[1],sign,out)
-#define c2dctc2(in,size,out) cdcta(in,size[0],size[1],-1,out)
+//#define c2dctc2(in,size,out) cdcta(in,size[0],size[1],-1,out)
-#define c2s0dctc2(in,size,sign,out) cdcta(in,size[0],size[1],sign,out)
+//#define c2s0dctc2(in,size,sign,out) cdcta(in,size[0],size[1],sign,out)
#endif
diff --git a/src/c/string/strcspn/gstrcspna.c b/src/c/string/strcspn/gstrcspna.c
index 5617e17..75912e9 100644
--- a/src/c/string/strcspn/gstrcspna.c
+++ b/src/c/string/strcspn/gstrcspna.c
@@ -16,6 +16,8 @@ uint8 gstrcspna(char *str1,int size1,char *str2,int size2)
{
int ind,i,j;;
for(i=0;i<=size1;i++)
+ int j;
+ for(i=0;i<=size1;i++)
{
for(j=0;j<=size2;j++)
{