summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authorJorawar Singh2017-07-16 22:41:14 +0530
committerJorawar Singh2017-07-16 22:41:14 +0530
commit3d61d19dba96a677e63e6a8d349d8352ebcf9e64 (patch)
treed314598b6272c021df6a2582ff6f9cf624a7406c /macros
parentd9d92203ea349d5eb44c0edc5565d827322caabe (diff)
downloadScilab2C_fossee_old-3d61d19dba96a677e63e6a8d349d8352ebcf9e64.tar.gz
Scilab2C_fossee_old-3d61d19dba96a677e63e6a8d349d8352ebcf9e64.tar.bz2
Scilab2C_fossee_old-3d61d19dba96a677e63e6a8d349d8352ebcf9e64.zip
Toolbox merge, RPI demos and structured demos
Diffstat (limited to 'macros')
-rw-r--r--macros/Hardware/RasberryPi/old/GetRPISupportFunctions.sci48
-rw-r--r--macros/Hardware/RasberryPi/old/IsRPISupportFunction.sci32
-rw-r--r--macros/Hardware/RasberryPi/old/RPI_DelayMicro.sci38
-rw-r--r--macros/Hardware/RasberryPi/old/RPI_DelayMilli.sci39
-rw-r--r--macros/Hardware/RasberryPi/old/RPI_DigitalIn.sci43
-rw-r--r--macros/Hardware/RasberryPi/old/RPI_DigitalOut.sci44
-rw-r--r--macros/Hardware/RasberryPi/old/RPI_DigitalSetup.sci36
-rw-r--r--macros/Hardware/RasberryPi/old/RPI_GetMicros.sci39
-rw-r--r--macros/Hardware/RasberryPi/old/RPI_GetMillis.sci39
-rw-r--r--macros/Hardware/RasberryPi/old/RPI_HardPWMSetClock.sci35
-rw-r--r--macros/Hardware/RasberryPi/old/RPI_HardPWMSetMode.sci32
-rw-r--r--macros/Hardware/RasberryPi/old/RPI_HardPWMSetRange.sci35
-rw-r--r--macros/Hardware/RasberryPi/old/RPI_HardPWMWrite.sci39
-rw-r--r--macros/Hardware/RasberryPi/old/RPI_PinISR.sci56
-rw-r--r--macros/Hardware/RasberryPi/old/RPI_SerialClose.sci33
-rw-r--r--macros/Hardware/RasberryPi/old/RPI_SerialFlush.sci34
-rw-r--r--macros/Hardware/RasberryPi/old/RPI_SerialGetChar.sci36
-rw-r--r--macros/Hardware/RasberryPi/old/RPI_SerialSendChar.sci37
-rw-r--r--macros/Hardware/RasberryPi/old/RPI_SerialSendData.sci38
-rw-r--r--macros/Hardware/RasberryPi/old/RPI_SerialSetup.sci36
-rw-r--r--macros/Hardware/RasberryPi/old/buildmacros.sce4
-rw-r--r--macros/Hardware/RasberryPi/old/names21
-rw-r--r--macros/Hardware/RasberryPi/old/u16RPISerialDataAvail.sci37
23 files changed, 0 insertions, 831 deletions
diff --git a/macros/Hardware/RasberryPi/old/GetRPISupportFunctions.sci b/macros/Hardware/RasberryPi/old/GetRPISupportFunctions.sci
deleted file mode 100644
index 3e6397b..0000000
--- a/macros/Hardware/RasberryPi/old/GetRPISupportFunctions.sci
+++ /dev/null
@@ -1,48 +0,0 @@
-function RPiSupportFunctions = GetRPISupportFunctions()
-// -----------------------------------------------------------------
-// Get list of RPI peripherals supported
-//
-// Input data:
-// None
-//
-// Output data:
-// None
-// 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: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-//
-// -----------------------------------------------------------------
-
-RPiSupportFunctions = [
- "RPI_DigitalIn"
- "RPI_DigitalOut"
- "RPI_DigitalSetup"
- "RPI_DelayMilli"
- "RPI_DelayMicro"
- "RPI_GetMillis"
- "RPI_GetMicros"
- "RPI_SerialSetup"
- "RPI_SerialClose"
- "RPI_SerialSendChar"
- "RPI_SerialFlush"
- "RPI_SerialGetChar"
- "RPI_ThreadCreate"
- "RPI_PinISR"
- "RPI_HardPWMWrite"
- "RPI_HardPWMSetRange"
- "RPI_HardPWMSetClock"
- "RPI_HardPWMSetMode"
- ];
-
-//Note: "RPI_SerialSendData" is removed since distinction between input data
-//types is required
-
-
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/IsRPISupportFunction.sci b/macros/Hardware/RasberryPi/old/IsRPISupportFunction.sci
deleted file mode 100644
index c6a2c36..0000000
--- a/macros/Hardware/RasberryPi/old/IsRPISupportFunction.sci
+++ /dev/null
@@ -1,32 +0,0 @@
-function Output = IsRPISupportFunction(FunName)
-// -----------------------------------------------------------------
-// Check whether input function name is a RPi support function or not.
-//
-// Input data:
-// FunName: Name of the function to be checked
-//
-// Output data:
-// Output: True or False depending whether given function is a RPi
-// support functions or not
-//
-// 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: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-//
-// -----------------------------------------------------------------
-
-//Get list of supported functions for AVR
-RPISupportFunctions = GetRPISupportFunctions();
-
-//Check whether input function is present in above list or not
-FunNameInRPISupport = members(FunName,RPISupportFunctions);
-Output = bool2s(FunNameInRPISupport~=0);
-
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/RPI_DelayMicro.sci b/macros/Hardware/RasberryPi/old/RPI_DelayMicro.sci
deleted file mode 100644
index bbb0bb3..0000000
--- a/macros/Hardware/RasberryPi/old/RPI_DelayMicro.sci
+++ /dev/null
@@ -1,38 +0,0 @@
-// 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
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
-function RPI_DelayMicro(time)
-// Function to insert some delay in code execution.
-//
-// Calling Sequence
-// RPI_DelayMicro(time)
-//
-// Parameters
-// time: time(microseconds) for which execution is to be delayed
-//
-// Description
-// this function can be used for insertig execution delays. 'time' should be
-// specified in microseconds.'time' should be between (1-65536).
-// Note: Delay inserted by this function is not accurate, but depedent on
-// operating system, other running tasks etc.
-//
-// Examples
-// RPI_DelayMilli(100) //This will delay the execution of next code by 100 ms.
-//
-// See also
-// RPI_DelayMicro
-//
-//
-// Authors
-// Siddhesh Wani
-//
-
-// This is curretly dummy function. It provides no functionality but is required
-// for providing support for generating C code for RPi.
-
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/RPI_DelayMilli.sci b/macros/Hardware/RasberryPi/old/RPI_DelayMilli.sci
deleted file mode 100644
index 13b7962..0000000
--- a/macros/Hardware/RasberryPi/old/RPI_DelayMilli.sci
+++ /dev/null
@@ -1,39 +0,0 @@
-// 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
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
-function RPI_DelayMilli(time)
-// Function to insert some delay in milli seconds in code execution.
-//
-// Calling Sequence
-// RPI_DelayMilli(time)
-//
-// Parameters
-// time: time(milliseconds) for which execution is to be delayed
-//
-// Description
-// This function can be used for insertig execution delays. 'time' should be
-// specified in milliseconds. If more resolution is required, use 'RPI_DelayMicro'
-// for inserting delay in microseconds.
-// Note: Delay inserted by this function is not accurate, but depedent on
-// operating system, other running tasks etc.
-//
-// Examples
-// RPI_DelayMilli(100) //This will delay the execution of next code by 100 ms.
-//
-// See also
-// RPI_DelayMicro
-//
-//
-// Authors
-// Siddhesh Wani
-//
-
-// This is curretly dummy function. It provides no functionality but is required
-// for providing support for generating C code for RPi.
-
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/RPI_DigitalIn.sci b/macros/Hardware/RasberryPi/old/RPI_DigitalIn.sci
deleted file mode 100644
index 781c49c..0000000
--- a/macros/Hardware/RasberryPi/old/RPI_DigitalIn.sci
+++ /dev/null
@@ -1,43 +0,0 @@
-// 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
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
-function state = RPI_DigitalIn(pin)
-// Function to read current state on digital pins.
-//
-// Calling Sequence
-// state = RPI_DigitalIn(pin)
-//
-// Parameters
-// pin : pin of RPi to be used
-// state : current state of the pin (0 -> LOW, 1 -> HIGH)
-//
-// Description
-// This fucntion is used for reading the current state on gpio pins of RPi. 'RPI_DigitalSetup' function must be called before this for setting up pin as input. 'pin' must be specified from list given. 'state' specifies the input state (0 -> Low, 1-> High)
-// Examples
-// RPI_DigitalIn(RPI_GPIO_P1_03) //Reads the state of pin 3 of header P1.
-//
-// See also
-// RPI_DigitalSetup RPI_DigitalOut
-//
-//
-// Authors
-// Siddhesh Wani
-//
-// -----------------------------------------------------------------
-//Pins of header P1 which can be used as GPIO
-supported_pins = [3,5,7,8,10,11,12,13,15,16,18,19,21,22,23,24,26,27,28,29,...
- 31,31,33,35,36,37,38,40];
-
-PinIsGPIO = members(pin, supported_pins); //Check if input pin supports GPIO
-
-//If given pin does not support GPIO functionality, raise the error
-if(PinIsGPIO == 0)
- error(9999, 'SCI2CERROR: Given pin number doesnot support GPIO functionality.');
-end
-state = 1;
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/RPI_DigitalOut.sci b/macros/Hardware/RasberryPi/old/RPI_DigitalOut.sci
deleted file mode 100644
index dde3c93..0000000
--- a/macros/Hardware/RasberryPi/old/RPI_DigitalOut.sci
+++ /dev/null
@@ -1,44 +0,0 @@
-// 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
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
-function RPI_DigitalOut(pin, state)
-// Function to output desired state on digital pins.
-//
-// Calling Sequence
-// RPI_DigitalOut(pin, state)
-//
-// Parameters
-// pin : pin of RPi to be used
-// state : desired state of the pin (0 -> LOW, 1 -> HIGH)
-//
-// Description
-// This fucntion is used for outputting the desired state on gpio pins of RPi. 'RPI_DigitalSetup' function must be called before this for setting up pin as output. 'pin' must be specified from list given. 'state' specifies the output state (0 -> Low, 1-> High)
-// Examples
-// RPI_DigitalOut(RPI_GPIO_P1_03,0) //Changes the state of pin 3 of header P1 as 'Low'.
-//
-// See also
-// RPI_DigitalSetup RPI_DigitalIn
-//
-//
-// Authors
-// Siddhesh Wani
-//
-// -----------------------------------------------------------------
-//Pins of header P1 which can be used as GPIO
-supported_pins = [3,5,7,8,10,11,12,13,15,16,18,19,21,22,23,24,26,27,28,29,...
- 31,31,33,35,36,37,38,40];
-
-PinIsGPIO = members(pin, supported_pins); //Check if output pin supports GPIO
-
-//If given pin does not support GPIO functionality, raise the error
-if(PinIsGPIO == 0)
- error(9999, 'SCI2CERROR: Given pin number doesnot support GPIO functionality.');
-end
-state = 1;
-
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/RPI_DigitalSetup.sci b/macros/Hardware/RasberryPi/old/RPI_DigitalSetup.sci
deleted file mode 100644
index 01d6e07..0000000
--- a/macros/Hardware/RasberryPi/old/RPI_DigitalSetup.sci
+++ /dev/null
@@ -1,36 +0,0 @@
-function RPI_DigitalSetup(pin, direction)
-// Function to setup digital pins.
-//
-// Calling Sequence
-// RPI_DigitalSetup(pin,direction)
-//
-// Parameters
-// pin : pin of RPi to be used
-// direction : direction to be set for pin
-// 0 -> INPUT, 1 -> OUTPUT, 2->PWM Output
-//
-// Description
-// There are few pins available on RPi as Gpio or digital io. These pins can be used as digital output or input. Pin name must be provided from list provided. Please refer '' for complete list of pins. Direction can be 0 or 1 depending upon desired function (Input/output)
-// Examples
-// RPI_DigitalSetup(3,0) //Sets pin 3 of header P1 as input
-//
-// See also
-// RPI_DigitalIn RPI_DigitalOut
-//
-//
-// Authors
-// Siddhesh Wani
-// -----------------------------------------------------------------
-//Pins of header P1 which can be used as GPIO
-supported_pins = [3,5,7,8,10,11,12,13,15,16,18,19,21,22,23,24,26,27,28,29,...
- 31,31,33,35,36,37,38,40];
-
-PinIsGPIO = members(pin, supported_pins); //Check if input pin supports GPIO
-
-//If given pin does not support GPIO functionality, raise the error
-if(PinIsGPIO == 0)
- error(9999, 'SCI2CERROR: Given pin number doesnot support GPIO functionality.');
-end
-state = 1;
-
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/RPI_GetMicros.sci b/macros/Hardware/RasberryPi/old/RPI_GetMicros.sci
deleted file mode 100644
index 6c4db57..0000000
--- a/macros/Hardware/RasberryPi/old/RPI_GetMicros.sci
+++ /dev/null
@@ -1,39 +0,0 @@
-// 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
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
-function Micros = RPI_GetMicros()
-// Function to get time in Microsecond since first setup function called.
-//
-// Calling Sequence
-// Micros = RPI_GetMicros()
-//
-// Parameters
-// Micros: time in Microseconds since first setup function called
-//
-// Description
-// This function can be used to get time since first setup function called.
-// Note: To use this function atleast one setup function must be called.
-//
-// Examples
-// start = RPI_GetMicros()
-// RPI_DelayMicro(1000) //This will delay the execution of next code by 100 ms.
-// end = RPI_GetMicros()
-// delay = end- start //This should be approximately 1000 us.
-//
-// See also
-// RPI_GetMillis RPI_DelayMilli RPI_DelayMicro
-//
-//
-// Authors
-// Siddhesh Wani
-//
-
-// This is curretly dummy function. It provides no functionality but is required
-// for providing support for generating C code for RPi.
-Micros = 0;
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/RPI_GetMillis.sci b/macros/Hardware/RasberryPi/old/RPI_GetMillis.sci
deleted file mode 100644
index c034a70..0000000
--- a/macros/Hardware/RasberryPi/old/RPI_GetMillis.sci
+++ /dev/null
@@ -1,39 +0,0 @@
-// 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
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
-function Millis = RPI_GetMillis()
-// Function to get time in millisecond since first setup function called.
-//
-// Calling Sequence
-// Millis = RPI_GetMillis()
-//
-// Parameters
-// Millis: time in milliseconds since first setup function called
-//
-// Description
-// This function can be used to get time since first setup function called.
-// Note: To use this function atleast one setup function must be called.
-//
-// Examples
-// start = RPI_GetMillis()
-// RPI_DelayMilli(100) //This will delay the execution of next code by 100 ms.
-// end = RPI_GetMillis()
-// delay = end- start //This should be approximately 100ms.
-//
-// See also
-// RPI_GetMicros RPI_DelayMilli RPI_DelayMicro
-//
-//
-// Authors
-// Siddhesh Wani
-//
-
-// This is curretly dummy function. It provides no functionality but is required
-// for providing support for generating C code for RPi.
-Millis = 0;
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/RPI_HardPWMSetClock.sci b/macros/Hardware/RasberryPi/old/RPI_HardPWMSetClock.sci
deleted file mode 100644
index 8448d36..0000000
--- a/macros/Hardware/RasberryPi/old/RPI_HardPWMSetClock.sci
+++ /dev/null
@@ -1,35 +0,0 @@
-// 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
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
-function RPI_HardPWMSetClock(clock_divisor)
-// Function to set PWM clock. PWM clock frequency is 19.2MHz, which can be reduced
-// using suitable clock_divisor (1 to 2048, powers of 2)
-//
-// Calling Sequence
-// RPI_HardPWMSetClock(clock_divisor)
-//
-// Parameters
-// clock_divisor: Value can be from 1 to 2048, powers of 2.
-// Description
-// This function decides pwm clock.
-// PWM frequency = (PWM Clock frequency/Clock divisor/range)
-// PWM clock frequency = 19.2 MHz
-// clock divisor is setup using RPI_HardPWMSetClock
-// range is setup using RPI_HardPWMSetRange
-// Examples
-//
-// See also
-// RPI_HardPWMSetWrite RPI_HardPWMSetRange
-//
-// Authors
-// Siddhesh Wani
-// -----------------------------------------------------------------
-
-// This is curretly dummy function. It provides no functionality but is required
-// for providing support for generating C code for RPi.
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/RPI_HardPWMSetMode.sci b/macros/Hardware/RasberryPi/old/RPI_HardPWMSetMode.sci
deleted file mode 100644
index 57b8260..0000000
--- a/macros/Hardware/RasberryPi/old/RPI_HardPWMSetMode.sci
+++ /dev/null
@@ -1,32 +0,0 @@
-// 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
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
-function RPI_HardPWMSetMode(pwm_mode)
-// Function to set PWM mode. Two modes are available - balanced and mark/space
-//
-// Calling Sequence
-// RPI_HardPWMSetMode(pwm_mode)
-//
-// Parameters
-// pwm_mode: decides pwm mode
-// 0 -> balanced
-// 1 -> mark/space
-// Description
-// This function decides pwm mode
-// Examples
-//
-// See also
-// RPI_HardPWMSetWrite RPI_HardPWMSetRange
-//
-// Authors
-// Siddhesh Wani
-// -----------------------------------------------------------------
-
-// This is curretly dummy function. It provides no functionality but is required
-// for providing support for generating C code for RPi.
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/RPI_HardPWMSetRange.sci b/macros/Hardware/RasberryPi/old/RPI_HardPWMSetRange.sci
deleted file mode 100644
index c2075e2..0000000
--- a/macros/Hardware/RasberryPi/old/RPI_HardPWMSetRange.sci
+++ /dev/null
@@ -1,35 +0,0 @@
-// 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
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
-function RPI_HardPWMSetRange(range_val)
-// Function to set range value for PWM. Range value along with clock divisor
-// decides pwm frequency. Range value must be less than 1024
-//
-// Calling Sequence
-// RPI_HardPWMSetRange(range_val)
-//
-// Parameters
-// range_val: range for pwm
-// Description
-// This function decides range for pwm.
-// PWM frequency = (PWM Clock frequency/Clock divisor/range)
-// PWM clock frequency = 19.2 MHz
-// clock divisor is setup using RPI_HardPWMSetClock
-// range is setup using RPI_HardPWMSetRange
-// Examples
-//
-// See also
-// RPI_HardPWMSetClock RPI_HardPWMWrite
-//
-// Authors
-// Siddhesh Wani
-// -----------------------------------------------------------------
-
-// This is curretly dummy function. It provides no functionality but is required
-// for providing support for generating C code for RPi.
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/RPI_HardPWMWrite.sci b/macros/Hardware/RasberryPi/old/RPI_HardPWMWrite.sci
deleted file mode 100644
index dba5e67..0000000
--- a/macros/Hardware/RasberryPi/old/RPI_HardPWMWrite.sci
+++ /dev/null
@@ -1,39 +0,0 @@
-// 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
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
-function RPI_HardPWMWrite(pin,value)
-// Function to change pwm duty on specified pin. Hardware PWM is available
-// only on pin 12. So, only '12' should be provided as pin
-//
-// Calling Sequence
-// RPI_HardPWMWrite(12,512) //Value must be smaller than the range set
-// using RPI_HARDPWMSetRange
-//
-// Parameters
-// pin: pin no on which pwm value is to be changed. Currently only 12 is allowed
-// value: pwm value for given pin. This must be less than range value set
-// Description
-// This function changes pwm duty on specified pin. As for RPi, only one pin
-// (pin 12) is available for hardware PWM.
-// PWM frequency = (PWM Clock frequency/Clock divisor/range)
-// PWM clock frequency = 19.2 MHz
-// clock divisor is setup using RPI_HardPWMSetClock
-// range is setup using RPI_HardPWMSetRange
-// Actual PWM duty = value/range
-// Examples
-//
-// See also
-// RPI_HardPWMSetClock RPI_HardPWMSetRange
-//
-// Authors
-// Siddhesh Wani
-// -----------------------------------------------------------------
-
-// This is curretly dummy function. It provides no functionality but is required
-// for providing support for generating C code for RPi.
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/RPI_PinISR.sci b/macros/Hardware/RasberryPi/old/RPI_PinISR.sci
deleted file mode 100644
index c2354c1..0000000
--- a/macros/Hardware/RasberryPi/old/RPI_PinISR.sci
+++ /dev/null
@@ -1,56 +0,0 @@
-// 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
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
-function RPI_PinISR(pin, edgetype, fn)
-// Function to assign a function to be run when an interrupt occurs on
-// specified pin.
-//
-// Calling Sequence
-// RPI_PinISR(pin, edgetype, fn)
-//
-// Parameters
-// pin : pin whose interrupt is to be configured
-// edgetype: edge on which interrupt is to be monitored
-// 1 -> Falling egde
-// 2 -> Rising egde
-// 3 -> Both egde
-// fn: name of the function to be executed on interrupt occurance
-// Description
-// This functions monitors interrupt on specified pin for specified edge,
-// When that interrupt occurs, function specified by 'fn' is executed.
-// Examples
-// RPI_PinISR(12, 0, Pin12ISR) //executes 'Pin12ISR' on falling edge on
-// pin 12
-// See also
-// RPI_ThreadCreate RPI_DigitalSetup
-//
-//
-// Authors
-// Siddhesh Wani
-// -----------------------------------------------------------------
-
-// This is curretly dummy function. It provides no functionality but is required
-// for providing support for generating C code for RPi.
-
-//Pins of header P1 which can be used as GPIO
-supported_pins = [3,5,7,8,10,11,12,13,15,16,18,19,21,22,23,24,26,27,28,29,...
- 31,31,33,35,36,37,38,40];
-
-PinIsGPIO = members(pin, supported_pins); //Check if input pin supports GPIO
-
-//If given pin does not support GPIO functionality, raise the error
-if(PinIsGPIO == 0)
- error(9999, 'SCI2CERROR: Given pin number doesnot support GPIO functionality.');
-end
-EdgeTypeSupported = members(edgetype,[1 2 3]);
-
-if(EdgeTypeSupported == 0)
- error(9999, 'SCI2CERROR: Given edgetype is incorrect. Please specify correct edgetype from [1,2,3]')
-end
-
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/RPI_SerialClose.sci b/macros/Hardware/RasberryPi/old/RPI_SerialClose.sci
deleted file mode 100644
index f27dd43..0000000
--- a/macros/Hardware/RasberryPi/old/RPI_SerialClose.sci
+++ /dev/null
@@ -1,33 +0,0 @@
-// 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
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
-function RPI_SerialClose(fd)
-// Function to close serial port specified by file descriptor.
-//
-// Calling Sequence
-// RPI_SerialClose(fd)
-//
-// Parameters
-// fd : file descriptor for opened port
-// Description
-// This functions closes the specified serial port
-// Examples
-// serial1 = RPI_SerialSetup('/dev/ttyAMA0',9600) //opens port 'USBtty0'
-// RPI_SerialClose(serial1)
-// See also
-// RPI_SerialOpen RPI_SerialSendChar
-//
-//
-// Authors
-// Siddhesh Wani
-// -----------------------------------------------------------------
-
-// This is curretly dummy function. It provides no functionality but is required
-// for providing support for generating C code for RPi.
-
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/RPI_SerialFlush.sci b/macros/Hardware/RasberryPi/old/RPI_SerialFlush.sci
deleted file mode 100644
index 9bab386..0000000
--- a/macros/Hardware/RasberryPi/old/RPI_SerialFlush.sci
+++ /dev/null
@@ -1,34 +0,0 @@
-// 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
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
-function data = RPI_SerialGetChar(fd)
-// Function to read data from specified serial port
-//
-// Calling Sequence
-// RPI_SerialGetCharfd)
-//
-// Parameters
-// fd: file descriptor returned when serial port was opened
-// Description
-// This functions reads character form specified port. In case no
-// character is available, -1 is returned after 10 sec.
-// Examples
-// serial = RPI_SetupSerial("/dev/ttyAMA0", 9600);
-// RPI_SerialFlush(serial);
-// bytes = RPI_SerialDataAvail(serial);
-//
-// See also
-// RPI_SetupSerial RPI_SendData
-//
-// Authors
-// Siddhesh Wani
-// -----------------------------------------------------------------
-
-// This is curretly dummy function. It provides no functionality but is required
-// for providing support for generating C code for RPi.
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/RPI_SerialGetChar.sci b/macros/Hardware/RasberryPi/old/RPI_SerialGetChar.sci
deleted file mode 100644
index a26e5b9..0000000
--- a/macros/Hardware/RasberryPi/old/RPI_SerialGetChar.sci
+++ /dev/null
@@ -1,36 +0,0 @@
-// 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
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
-function data = RPI_SerialGetChar(fd)
-// Function to read data from specified serial port
-//
-// Calling Sequence
-// RPI_SerialGetChar(fd)
-//
-// Parameters
-// fd: file descriptor returned when serial port was opened
-// Description
-// This functions reads character form specified port. In case no
-// character is available, -1 is returned after 10 sec.
-// Examples
-// serial = RPI_SetupSerial("/dev/ttyAMA0", 9600);
-// bytes = RPI_SerialDataAvail(serial);
-// if(bytes>0)
-// data = RPI_SerialGetChar(serial) //Reads single character
-// end
-// See also
-// RPI_SetupSerial RPI_SendData
-//
-// Authors
-// Siddhesh Wani
-// -----------------------------------------------------------------
-
-// This is curretly dummy function. It provides no functionality but is required
-// for providing support for generating C code for RPi.
-data = 0;
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/RPI_SerialSendChar.sci b/macros/Hardware/RasberryPi/old/RPI_SerialSendChar.sci
deleted file mode 100644
index 769b21d..0000000
--- a/macros/Hardware/RasberryPi/old/RPI_SerialSendChar.sci
+++ /dev/null
@@ -1,37 +0,0 @@
-// 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
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
-function RPI_SerialSendChar(fd, data)
-// Function to send 8-bit char through serial port.
-//
-// Calling Sequence
-// RPI_SerialSendChar(fd, data)
-//
-// Parameters
-// fd : file descriptor for opened port
-// data: 8-bit character data to be sent
-// Description
-// This functions sends input 8-bit character data on specified serial port
-// Examples
-// serial1 = RPI_SerialSetup('/dev/ttyAMA0',9600) //opens port 'USBtty0'
-// RPI_SerialSendChar(serial1, 'H');
-// RPI_SerialSendChar(serial1, 'i');
-// RPI_SerialClose(serial1);
-//
-// See also
-// RPI_SerialOpen RPI_SerialClose
-//
-//
-// Authors
-// Siddhesh Wani
-// -----------------------------------------------------------------
-
-// This is curretly dummy function. It provides no functionality but is required
-// for providing support for generating C code for RPi.
-
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/RPI_SerialSendData.sci b/macros/Hardware/RasberryPi/old/RPI_SerialSendData.sci
deleted file mode 100644
index c05852b..0000000
--- a/macros/Hardware/RasberryPi/old/RPI_SerialSendData.sci
+++ /dev/null
@@ -1,38 +0,0 @@
-// 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
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
-function RPI_SerialSendData(fd, data)
-// Function to send data through serial port. Data can be of any datatype and
-// can be scalar or matrix
-//
-// Calling Sequence
-// RPI_SerialSendData(fd, data)
-//
-// Parameters
-// fd : file descriptor for opened port
-// data: data to be sent
-// Description
-// This functions sends input data on specified serial port
-// Examples
-// A = [2 3; 4 5]
-// serial1 = RPI_SerialSetup('/dev/ttyAMA0',9600) //opens port 'USBtty0'
-// RPI_SerialSendData(serial1, A);
-// RPI_SerialClose(serial1);
-//
-// See also
-// RPI_SerialOpen RPI_SerialClose
-//
-//
-// Authors
-// Siddhesh Wani
-// -----------------------------------------------------------------
-
-// This is curretly dummy function. It provides no functionality but is required
-// for providing support for generating C code for RPi.
-
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/RPI_SerialSetup.sci b/macros/Hardware/RasberryPi/old/RPI_SerialSetup.sci
deleted file mode 100644
index 0f26661..0000000
--- a/macros/Hardware/RasberryPi/old/RPI_SerialSetup.sci
+++ /dev/null
@@ -1,36 +0,0 @@
-// 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
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
-function fd = RPI_SerialSetup(port, baudrate)
-// Function to setup serial port.
-//
-// Calling Sequence
-// RPI_SerialSetup(port, baudrate)
-//
-// Parameters
-// port : port of RPi to be used (eg. )
-// direction : direction to be set for pin (0 -> INPUT, 1 -> OUTPUT)
-// fd : file descriptor for opened port, -1 for error
-// Description
-// This functions opens the specified serial port and returns file descriptor
-// for the same
-// Examples
-// serial1 = RPI_SerialSetup('/dev/ttyAMA0',9600) //opens port 'USBtty0'
-//
-// See also
-// RPI_SerialClose RPI_SerialSendChar
-//
-//
-// Authors
-// Siddhesh Wani
-// -----------------------------------------------------------------
-
-// This is curretly dummy function. It provides no functionality but is required
-// for providing support for generating C code for RPi.
-fd = 0;
-endfunction
diff --git a/macros/Hardware/RasberryPi/old/buildmacros.sce b/macros/Hardware/RasberryPi/old/buildmacros.sce
deleted file mode 100644
index 2954a42..0000000
--- a/macros/Hardware/RasberryPi/old/buildmacros.sce
+++ /dev/null
@@ -1,4 +0,0 @@
-
-tbx_build_macros(TOOLBOX_NAME, get_absolute_file_path('buildmacros.sce'));
-
-clear tbx_build_macros;
diff --git a/macros/Hardware/RasberryPi/old/names b/macros/Hardware/RasberryPi/old/names
deleted file mode 100644
index fa64776..0000000
--- a/macros/Hardware/RasberryPi/old/names
+++ /dev/null
@@ -1,21 +0,0 @@
-GetRPISupportFunctions
-IsRPISupportFunction
-RPI_DelayMicro
-RPI_DelayMilli
-RPI_DigitalIn
-RPI_DigitalOut
-RPI_DigitalSetup
-RPI_GetMicros
-RPI_GetMillis
-RPI_HardPWMSetClock
-RPI_HardPWMSetMode
-RPI_HardPWMSetRange
-RPI_HardPWMWrite
-RPI_PinISR
-RPI_SerialClose
-RPI_SerialFlush
-RPI_SerialGetChar
-RPI_SerialSendChar
-RPI_SerialSendData
-RPI_SerialSetup
-u16RPISerialDataAvail
diff --git a/macros/Hardware/RasberryPi/old/u16RPISerialDataAvail.sci b/macros/Hardware/RasberryPi/old/u16RPISerialDataAvail.sci
deleted file mode 100644
index 6eb29a1..0000000
--- a/macros/Hardware/RasberryPi/old/u16RPISerialDataAvail.sci
+++ /dev/null
@@ -1,37 +0,0 @@
-// 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
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
-function bytes = RPI_SerialDataAvail(fd)
-// Function to get number of data bytes available on serial port specified by
-// file descriptor
-// Calling Sequence
-// RPI_SerialDataAvail(fd)
-//
-// Parameters
-// fd : file descriptor for already opened serial port
-// Description
-// This functions returns number of characters available to read,
-// otherwise reads -1 in case of error. This function can be used to check
-// new data is available on serial port
-// Examples
-// serial = RPI_SerialOpen("/dev/ttyAMA0", 9600);
-// charsToRead = RPI_SerialDataAvail(serial);
-// See also
-// RPI_SerialOpen RPI_SerialGetChar
-//
-//
-// Authors
-// Siddhesh Wani
-// -----------------------------------------------------------------
-
-// This is curretly dummy function. It provides no functionality but is required
-// for providing support for generating C code for RPi.
-
-bytes = 0;
-
-endfunction \ No newline at end of file