From 3425c4fedbdbc7e1a3440df7502d9af93f466b84 Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Mon, 1 Feb 2016 11:05:35 +0530 Subject: Support for RPi gpios added --- .../Hardware/RasberryPi/GetRPISupportFunctions.bin | Bin 0 -> 1604 bytes .../Hardware/RasberryPi/GetRPISupportFunctions.sci | 21 ++++++++++++++ .../Hardware/RasberryPi/IsRPISupportFunction.bin | Bin 0 -> 2704 bytes .../Hardware/RasberryPi/IsRPISupportFunction.sci | 22 +++++++++++++++ 2.3-1/macros/Hardware/RasberryPi/RPIDelay.bin | Bin 0 -> 3528 bytes 2.3-1/macros/Hardware/RasberryPi/RPIDelay.sci | 31 +++++++++++++++++++++ 2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.bin | Bin 0 -> 3280 bytes 2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.sci | 30 ++++++++++++++++++++ 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin | Bin 0 -> 3400 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci | 27 ++++++++++++++++++ .../macros/Hardware/RasberryPi/RPI_DigitalOut.bin | Bin 0 -> 3480 bytes .../macros/Hardware/RasberryPi/RPI_DigitalOut.sci | 27 ++++++++++++++++++ .../Hardware/RasberryPi/RPI_DigitalSetup.bin | Bin 0 -> 3452 bytes .../Hardware/RasberryPi/RPI_DigitalSetup.sci | 27 ++++++++++++++++++ 2.3-1/macros/Hardware/RasberryPi/buildmacros.sce | 4 +++ 2.3-1/macros/Hardware/RasberryPi/lib | Bin 0 -> 816 bytes 2.3-1/macros/Hardware/RasberryPi/names | 7 +++++ 17 files changed, 196 insertions(+) create mode 100644 2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPIDelay.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPIDelay.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/buildmacros.sce create mode 100644 2.3-1/macros/Hardware/RasberryPi/lib create mode 100644 2.3-1/macros/Hardware/RasberryPi/names (limited to '2.3-1/macros/Hardware/RasberryPi') diff --git a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin new file mode 100644 index 00000000..5bea6458 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci new file mode 100644 index 00000000..24c2f556 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci @@ -0,0 +1,21 @@ +function AVRSupportFunctions = GetRPISupportFunctions() +// ----------------------------------------------------------------- +// Get list of RPI peripherals supported +// +// Input data: +// None +// +// Output data: +// None +// +// Author: Siddhesh Wani +// ----------------------------------------------------------------- + +AVRSupportFunctions = [ + "RPI_DigitalIn" + "RPI_DigitalOut" + "RPI_DigitalSetup" + "RPI_DelayMilli" + "RPI_DelayMicro"]; + +endfunction diff --git a/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.bin b/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.bin new file mode 100644 index 00000000..728e3d80 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.sci b/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.sci new file mode 100644 index 00000000..647b0c85 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.sci @@ -0,0 +1,22 @@ +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 +// +// Author: Siddhesh Wani +// ----------------------------------------------------------------- + +//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/2.3-1/macros/Hardware/RasberryPi/RPIDelay.bin b/2.3-1/macros/Hardware/RasberryPi/RPIDelay.bin new file mode 100644 index 00000000..bb8279ec Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPIDelay.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPIDelay.sci b/2.3-1/macros/Hardware/RasberryPi/RPIDelay.sci new file mode 100644 index 00000000..c5080dd8 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPIDelay.sci @@ -0,0 +1,31 @@ +function RPI_DelayMilli(time) +// Function to insert some delay 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/2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.bin b/2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.bin new file mode 100644 index 00000000..a4d32cb6 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.sci b/2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.sci new file mode 100644 index 00000000..730755b7 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.sci @@ -0,0 +1,30 @@ +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/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin new file mode 100644 index 00000000..a3269a0a Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci new file mode 100644 index 00000000..3ea3bf12 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci @@ -0,0 +1,27 @@ +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 +// + +// 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/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.bin new file mode 100644 index 00000000..d6b6b7bf Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.sci new file mode 100644 index 00000000..4836f54f --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.sci @@ -0,0 +1,27 @@ +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 +// + +// 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/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin new file mode 100644 index 00000000..46836cd9 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci new file mode 100644 index 00000000..5ce48f0b --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci @@ -0,0 +1,27 @@ +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) +// +// 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(RPI_GPIO_P1_03,0) //Sets pin 3 of header P1 as input +// +// See also +// RPI_DigitalIn RPI_DigitalOut +// +// +// 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/2.3-1/macros/Hardware/RasberryPi/buildmacros.sce b/2.3-1/macros/Hardware/RasberryPi/buildmacros.sce new file mode 100644 index 00000000..2954a424 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/buildmacros.sce @@ -0,0 +1,4 @@ + +tbx_build_macros(TOOLBOX_NAME, get_absolute_file_path('buildmacros.sce')); + +clear tbx_build_macros; diff --git a/2.3-1/macros/Hardware/RasberryPi/lib b/2.3-1/macros/Hardware/RasberryPi/lib new file mode 100644 index 00000000..5884511a Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/lib differ diff --git a/2.3-1/macros/Hardware/RasberryPi/names b/2.3-1/macros/Hardware/RasberryPi/names new file mode 100644 index 00000000..87fe2cd1 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/names @@ -0,0 +1,7 @@ +GetRPISupportFunctions +IsRPISupportFunction +RPIDelay +RPIDelayMicro +RPI_DigitalIn +RPI_DigitalOut +RPI_DigitalSetup -- cgit From d7d53dc95a7cb9878a4e49bdd06e626e981b0eb2 Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Mon, 27 Jun 2016 19:16:41 +0530 Subject: test commit --- .../Hardware/RasberryPi/GetRPISupportFunctions.bin | Bin 1604 -> 1604 bytes .../Hardware/RasberryPi/GetRPISupportFunctions.sci | 4 +-- 2.3-1/macros/Hardware/RasberryPi/RPIDelay.bin | Bin 3528 -> 0 bytes 2.3-1/macros/Hardware/RasberryPi/RPIDelay.sci | 31 --------------------- 2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.bin | Bin 3280 -> 0 bytes 2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.sci | 30 -------------------- .../macros/Hardware/RasberryPi/RPI_DelayMicro.bin | Bin 0 -> 3280 bytes .../macros/Hardware/RasberryPi/RPI_DelayMicro.sci | 30 ++++++++++++++++++++ .../macros/Hardware/RasberryPi/RPI_DelayMilli.bin | Bin 0 -> 3528 bytes .../macros/Hardware/RasberryPi/RPI_DelayMilli.sci | 31 +++++++++++++++++++++ 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin | Bin 3400 -> 4952 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci | 13 +++++++-- .../Hardware/RasberryPi/RPI_DigitalSetup.bin | Bin 3452 -> 4884 bytes .../Hardware/RasberryPi/RPI_DigitalSetup.sci | 15 ++++++---- 2.3-1/macros/Hardware/RasberryPi/lib | Bin 816 -> 816 bytes 2.3-1/macros/Hardware/RasberryPi/names | 4 +-- 16 files changed, 85 insertions(+), 73 deletions(-) delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPIDelay.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPIDelay.sci delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.sci (limited to '2.3-1/macros/Hardware/RasberryPi') diff --git a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin index 5bea6458..545334ac 100644 Binary files a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin and b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci index 24c2f556..61bb6c0d 100644 --- a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci +++ b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci @@ -1,4 +1,4 @@ -function AVRSupportFunctions = GetRPISupportFunctions() +function RPiSupportFunctions = GetRPISupportFunctions() // ----------------------------------------------------------------- // Get list of RPI peripherals supported // @@ -11,7 +11,7 @@ function AVRSupportFunctions = GetRPISupportFunctions() // Author: Siddhesh Wani // ----------------------------------------------------------------- -AVRSupportFunctions = [ +RPiSupportFunctions = [ "RPI_DigitalIn" "RPI_DigitalOut" "RPI_DigitalSetup" diff --git a/2.3-1/macros/Hardware/RasberryPi/RPIDelay.bin b/2.3-1/macros/Hardware/RasberryPi/RPIDelay.bin deleted file mode 100644 index bb8279ec..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPIDelay.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPIDelay.sci b/2.3-1/macros/Hardware/RasberryPi/RPIDelay.sci deleted file mode 100644 index c5080dd8..00000000 --- a/2.3-1/macros/Hardware/RasberryPi/RPIDelay.sci +++ /dev/null @@ -1,31 +0,0 @@ -function RPI_DelayMilli(time) -// Function to insert some delay 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/2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.bin b/2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.bin deleted file mode 100644 index a4d32cb6..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.sci b/2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.sci deleted file mode 100644 index 730755b7..00000000 --- a/2.3-1/macros/Hardware/RasberryPi/RPIDelayMicro.sci +++ /dev/null @@ -1,30 +0,0 @@ -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/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.bin new file mode 100644 index 00000000..a4d32cb6 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.sci new file mode 100644 index 00000000..730755b7 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.sci @@ -0,0 +1,30 @@ +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/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.bin new file mode 100644 index 00000000..bb8279ec Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.sci new file mode 100644 index 00000000..c5080dd8 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.sci @@ -0,0 +1,31 @@ +function RPI_DelayMilli(time) +// Function to insert some delay 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/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin index a3269a0a..ec8fd0d7 100644 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin and b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci index 3ea3bf12..8775e4cd 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci @@ -20,8 +20,15 @@ function state = RPI_DigitalIn(pin) // 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] + +PinIsGPIO = members(pin, supported_pins); //Check if input pin supports GPIO -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for RPi. - +//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/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin index 46836cd9..1de4e224 100644 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin and b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci index 5ce48f0b..aede0b7a 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci @@ -11,7 +11,7 @@ function RPI_DigitalSetup(pin, direction) // 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(RPI_GPIO_P1_03,0) //Sets pin 3 of header P1 as input +// RPI_DigitalSetup(3,0) //Sets pin 3 of header P1 as input // // See also // RPI_DigitalIn RPI_DigitalOut @@ -19,9 +19,14 @@ function RPI_DigitalSetup(pin, direction) // // 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] + +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 endfunction diff --git a/2.3-1/macros/Hardware/RasberryPi/lib b/2.3-1/macros/Hardware/RasberryPi/lib index 5884511a..10317441 100644 Binary files a/2.3-1/macros/Hardware/RasberryPi/lib and b/2.3-1/macros/Hardware/RasberryPi/lib differ diff --git a/2.3-1/macros/Hardware/RasberryPi/names b/2.3-1/macros/Hardware/RasberryPi/names index 87fe2cd1..138ac2a5 100644 --- a/2.3-1/macros/Hardware/RasberryPi/names +++ b/2.3-1/macros/Hardware/RasberryPi/names @@ -1,7 +1,7 @@ GetRPISupportFunctions IsRPISupportFunction -RPIDelay -RPIDelayMicro +RPI_DelayMicro +RPI_DelayMilli RPI_DigitalIn RPI_DigitalOut RPI_DigitalSetup -- cgit From 21ab4886b202a52189b398bd9d3137e2a567d62a Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Mon, 25 Jul 2016 15:59:40 +0530 Subject: WiringPi used for RaspberryPi (Gpio, serial, Threads, ISRs) --- .../Hardware/RasberryPi/GetRPISupportFunctions.bin | Bin 1604 -> 2784 bytes .../Hardware/RasberryPi/GetRPISupportFunctions.sci | 16 ++++++- 2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.bin | Bin 0 -> 3568 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.sci | 31 ++++++++++++++ 2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.bin | Bin 0 -> 3556 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.sci | 31 ++++++++++++++ 2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin | Bin 0 -> 6640 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.sci | 47 +++++++++++++++++++++ .../macros/Hardware/RasberryPi/RPI_SerialClose.bin | Bin 0 -> 2724 bytes .../macros/Hardware/RasberryPi/RPI_SerialClose.sci | 25 +++++++++++ .../macros/Hardware/RasberryPi/RPI_SerialFlush.bin | Bin 0 -> 3120 bytes .../macros/Hardware/RasberryPi/RPI_SerialFlush.sci | 26 ++++++++++++ .../Hardware/RasberryPi/RPI_SerialGetChar.bin | Bin 0 -> 3400 bytes .../Hardware/RasberryPi/RPI_SerialGetChar.sci | 28 ++++++++++++ .../Hardware/RasberryPi/RPI_SerialSendChar.bin | Bin 0 -> 3344 bytes .../Hardware/RasberryPi/RPI_SerialSendChar.sci | 29 +++++++++++++ .../Hardware/RasberryPi/RPI_SerialSendData.bin | Bin 0 -> 3344 bytes .../Hardware/RasberryPi/RPI_SerialSendData.sci | 30 +++++++++++++ .../macros/Hardware/RasberryPi/RPI_SerialSetup.bin | Bin 0 -> 3356 bytes .../macros/Hardware/RasberryPi/RPI_SerialSetup.sci | 28 ++++++++++++ 2.3-1/macros/Hardware/RasberryPi/lib | Bin 816 -> 1056 bytes 2.3-1/macros/Hardware/RasberryPi/names | 10 +++++ .../Hardware/RasberryPi/u16RPISerialDataAvail.bin | Bin 0 -> 3520 bytes .../Hardware/RasberryPi/u16RPISerialDataAvail.sci | 29 +++++++++++++ 24 files changed, 329 insertions(+), 1 deletion(-) create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.sci (limited to '2.3-1/macros/Hardware/RasberryPi') diff --git a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin index 545334ac..960068e0 100644 Binary files a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin and b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci index 61bb6c0d..fe4edb1c 100644 --- a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci +++ b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci @@ -16,6 +16,20 @@ RPiSupportFunctions = [ "RPI_DigitalOut" "RPI_DigitalSetup" "RPI_DelayMilli" - "RPI_DelayMicro"]; + "RPI_DelayMicro" + "RPI_GetMillis" + "RPI_GetMicros" + "RPI_SerialSetup" + "RPI_SerialClose" + "RPI_SerialSendChar" + "RPI_SerialFlush" + "RPI_SerialGetChar" + "RPI_ThreadCreate" + "RPI_PinISR" + ]; + +//Note: "RPI_SerialSendData" is removed since distinction between input data +//types is required + endfunction diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.bin new file mode 100644 index 00000000..3e6c08fa Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.sci new file mode 100644 index 00000000..7f825efd --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.sci @@ -0,0 +1,31 @@ +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/2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.bin new file mode 100644 index 00000000..b9143650 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.sci new file mode 100644 index 00000000..b83f5fea --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.sci @@ -0,0 +1,31 @@ +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/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin new file mode 100644 index 00000000..a6c0bd98 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.sci new file mode 100644 index 00000000..2de7d9e8 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.sci @@ -0,0 +1,47 @@ +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] + +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/2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.bin new file mode 100644 index 00000000..dce972dc Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.sci new file mode 100644 index 00000000..0d393f39 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.sci @@ -0,0 +1,25 @@ +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/2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.bin new file mode 100644 index 00000000..2a3704d0 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.sci new file mode 100644 index 00000000..ffef70b4 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.sci @@ -0,0 +1,26 @@ +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/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.bin new file mode 100644 index 00000000..9e6dd09a Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.sci new file mode 100644 index 00000000..ce17ea89 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.sci @@ -0,0 +1,28 @@ +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); +// 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/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.bin new file mode 100644 index 00000000..7614ebcb Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.sci new file mode 100644 index 00000000..82051d66 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.sci @@ -0,0 +1,29 @@ +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/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.bin new file mode 100644 index 00000000..a3524a6c Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.sci new file mode 100644 index 00000000..6bfe80d1 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.sci @@ -0,0 +1,30 @@ +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/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.bin new file mode 100644 index 00000000..0128c27b Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.sci new file mode 100644 index 00000000..25a70a38 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.sci @@ -0,0 +1,28 @@ +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/2.3-1/macros/Hardware/RasberryPi/lib b/2.3-1/macros/Hardware/RasberryPi/lib index 10317441..40a6b049 100644 Binary files a/2.3-1/macros/Hardware/RasberryPi/lib and b/2.3-1/macros/Hardware/RasberryPi/lib differ diff --git a/2.3-1/macros/Hardware/RasberryPi/names b/2.3-1/macros/Hardware/RasberryPi/names index 138ac2a5..a97a189a 100644 --- a/2.3-1/macros/Hardware/RasberryPi/names +++ b/2.3-1/macros/Hardware/RasberryPi/names @@ -5,3 +5,13 @@ RPI_DelayMilli RPI_DigitalIn RPI_DigitalOut RPI_DigitalSetup +RPI_GetMicros +RPI_GetMillis +RPI_PinISR +RPI_SerialClose +RPI_SerialFlush +RPI_SerialGetChar +RPI_SerialSendChar +RPI_SerialSendData +RPI_SerialSetup +u16RPISerialDataAvail diff --git a/2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.bin b/2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.bin new file mode 100644 index 00000000..3789bd6c Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.sci b/2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.sci new file mode 100644 index 00000000..5a291569 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.sci @@ -0,0 +1,29 @@ +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 -- cgit From 1552675d4ac3be8d265bcf089fbc1ac5be1547f9 Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Thu, 18 Aug 2016 15:47:18 +0530 Subject: RPi-PWM and basic imaage processing --- .../Hardware/RasberryPi/GetRPISupportFunctions.bin | Bin 2784 -> 3184 bytes .../Hardware/RasberryPi/GetRPISupportFunctions.sci | 4 +++ .../Hardware/RasberryPi/RPI_DigitalSetup.bin | Bin 4884 -> 4964 bytes .../Hardware/RasberryPi/RPI_DigitalSetup.sci | 3 +- .../Hardware/RasberryPi/RPI_HardPWMSetClock.bin | Bin 0 -> 3488 bytes .../Hardware/RasberryPi/RPI_HardPWMSetClock.sci | 27 ++++++++++++++++++ .../Hardware/RasberryPi/RPI_HardPWMSetMode.bin | Bin 0 -> 2448 bytes .../Hardware/RasberryPi/RPI_HardPWMSetMode.sci | 24 ++++++++++++++++ .../Hardware/RasberryPi/RPI_HardPWMSetRange.bin | Bin 0 -> 3340 bytes .../Hardware/RasberryPi/RPI_HardPWMSetRange.sci | 27 ++++++++++++++++++ .../Hardware/RasberryPi/RPI_HardPWMWrite.bin | Bin 0 -> 4628 bytes .../Hardware/RasberryPi/RPI_HardPWMWrite.sci | 31 +++++++++++++++++++++ .../Hardware/RasberryPi/RPI_SerialGetChar.bin | Bin 3400 -> 3404 bytes .../Hardware/RasberryPi/RPI_SerialGetChar.sci | 2 +- 2.3-1/macros/Hardware/RasberryPi/lib | Bin 1056 -> 1152 bytes 2.3-1/macros/Hardware/RasberryPi/names | 4 +++ 16 files changed, 120 insertions(+), 2 deletions(-) create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.sci create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.sci (limited to '2.3-1/macros/Hardware/RasberryPi') diff --git a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin index 960068e0..0c64927f 100644 Binary files a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin and b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci index fe4edb1c..a791f1e7 100644 --- a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci +++ b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci @@ -26,6 +26,10 @@ RPiSupportFunctions = [ "RPI_SerialGetChar" "RPI_ThreadCreate" "RPI_PinISR" + "RPI_HardPWMWrite" + "RPI_HardPWMSetRange" + "RPI_HardPWMSetClock" + "RPI_HardPWMSetMode" ]; //Note: "RPI_SerialSendData" is removed since distinction between input data diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin index 1de4e224..1f20deb2 100644 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin and b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci index aede0b7a..460a4174 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci @@ -6,7 +6,8 @@ function RPI_DigitalSetup(pin, direction) // // Parameters // pin : pin of RPi to be used -// direction : direction to be set for pin (0 -> INPUT, 1 -> OUTPUT) +// 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) diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.bin new file mode 100644 index 00000000..1efe0803 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.sci new file mode 100644 index 00000000..3c050306 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.sci @@ -0,0 +1,27 @@ +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/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.bin new file mode 100644 index 00000000..075d6e60 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.sci new file mode 100644 index 00000000..2ab697bc --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.sci @@ -0,0 +1,24 @@ +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/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.bin new file mode 100644 index 00000000..8ded2709 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.sci new file mode 100644 index 00000000..cb7dd67d --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.sci @@ -0,0 +1,27 @@ +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/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.bin new file mode 100644 index 00000000..9957f3a4 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.sci new file mode 100644 index 00000000..9f9f7977 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.sci @@ -0,0 +1,31 @@ +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/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.bin index 9e6dd09a..928f28a3 100644 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.bin and b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.sci index ce17ea89..0271449d 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.sci @@ -2,7 +2,7 @@ function data = RPI_SerialGetChar(fd) // Function to read data from specified serial port // // Calling Sequence -// RPI_SerialGetCharfd) +// RPI_SerialGetChar(fd) // // Parameters // fd: file descriptor returned when serial port was opened diff --git a/2.3-1/macros/Hardware/RasberryPi/lib b/2.3-1/macros/Hardware/RasberryPi/lib index 40a6b049..d25d9440 100644 Binary files a/2.3-1/macros/Hardware/RasberryPi/lib and b/2.3-1/macros/Hardware/RasberryPi/lib differ diff --git a/2.3-1/macros/Hardware/RasberryPi/names b/2.3-1/macros/Hardware/RasberryPi/names index a97a189a..fa647761 100644 --- a/2.3-1/macros/Hardware/RasberryPi/names +++ b/2.3-1/macros/Hardware/RasberryPi/names @@ -7,6 +7,10 @@ RPI_DigitalOut RPI_DigitalSetup RPI_GetMicros RPI_GetMillis +RPI_HardPWMSetClock +RPI_HardPWMSetMode +RPI_HardPWMSetRange +RPI_HardPWMWrite RPI_PinISR RPI_SerialClose RPI_SerialFlush -- cgit From 160eb350837f8cd3cdb0943b5929e11f44036826 Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Thu, 13 Apr 2017 10:42:02 +0530 Subject: Functions added - balance,rcond,obscont --- 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin | Bin 4952 -> 5264 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to '2.3-1/macros/Hardware/RasberryPi') diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin index ec8fd0d7..f4c16f39 100644 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin and b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci index 8775e4cd..4df03f67 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci @@ -22,7 +22,8 @@ function state = RPI_DigitalIn(pin) // // ----------------------------------------------------------------- //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] +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 -- cgit From 645c51daadc9a5c9374b0465ded05f84bca65183 Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Wed, 19 Apr 2017 11:56:09 +0530 Subject: Copyright message updated in added files and libraries separated in 'thirdparty' folder --- .../Hardware/RasberryPi/GetRPISupportFunctions.bin | Bin 3184 -> 4760 bytes .../Hardware/RasberryPi/GetRPISupportFunctions.sci | 11 ++++++++++- .../Hardware/RasberryPi/IsRPISupportFunction.bin | Bin 2704 -> 4292 bytes .../Hardware/RasberryPi/IsRPISupportFunction.sci | 12 +++++++++++- .../macros/Hardware/RasberryPi/RPI_DelayMicro.sci | 8 ++++++++ .../macros/Hardware/RasberryPi/RPI_DelayMilli.bin | Bin 3528 -> 3596 bytes .../macros/Hardware/RasberryPi/RPI_DelayMilli.sci | 12 ++++++++++-- 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci | 8 ++++++++ .../macros/Hardware/RasberryPi/RPI_DigitalOut.bin | Bin 3480 -> 5352 bytes .../macros/Hardware/RasberryPi/RPI_DigitalOut.sci | 21 +++++++++++++++++++-- .../Hardware/RasberryPi/RPI_DigitalSetup.bin | Bin 4964 -> 5336 bytes .../Hardware/RasberryPi/RPI_DigitalSetup.sci | 5 ++++- 2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.sci | 8 ++++++++ 2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.sci | 8 ++++++++ .../Hardware/RasberryPi/RPI_HardPWMSetClock.sci | 8 ++++++++ .../Hardware/RasberryPi/RPI_HardPWMSetMode.sci | 8 ++++++++ .../Hardware/RasberryPi/RPI_HardPWMSetRange.sci | 8 ++++++++ .../Hardware/RasberryPi/RPI_HardPWMWrite.sci | 8 ++++++++ 2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin | Bin 6640 -> 6952 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.sci | 13 +++++++++++-- .../macros/Hardware/RasberryPi/RPI_SerialClose.sci | 8 ++++++++ .../macros/Hardware/RasberryPi/RPI_SerialFlush.sci | 8 ++++++++ .../Hardware/RasberryPi/RPI_SerialGetChar.sci | 8 ++++++++ .../Hardware/RasberryPi/RPI_SerialSendChar.sci | 8 ++++++++ .../Hardware/RasberryPi/RPI_SerialSendData.sci | 8 ++++++++ .../macros/Hardware/RasberryPi/RPI_SerialSetup.sci | 8 ++++++++ .../Hardware/RasberryPi/u16RPISerialDataAvail.sci | 8 ++++++++ 27 files changed, 185 insertions(+), 9 deletions(-) (limited to '2.3-1/macros/Hardware/RasberryPi') diff --git a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin index 0c64927f..a70999c0 100644 Binary files a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin and b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci index a791f1e7..3e6397b2 100644 --- a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci +++ b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.sci @@ -7,8 +7,17 @@ function RPiSupportFunctions = GetRPISupportFunctions() // // 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 // -// Author: Siddhesh Wani // ----------------------------------------------------------------- RPiSupportFunctions = [ diff --git a/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.bin b/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.bin index 728e3d80..11533d3e 100644 Binary files a/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.bin and b/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.sci b/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.sci index 647b0c85..c6a2c365 100644 --- a/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.sci +++ b/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.sci @@ -9,7 +9,17 @@ function Output = IsRPISupportFunction(FunName) // Output: True or False depending whether given function is a RPi // support functions or not // -// Author: Siddhesh Wani +// 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 diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.sci index 730755b7..bbb0bb3b 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.sci @@ -1,3 +1,11 @@ +// 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. // diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.bin index bb8279ec..b6eeb30b 100644 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.bin and b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.sci index c5080dd8..13b79625 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.sci @@ -1,5 +1,13 @@ +// 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 code execution. +// Function to insert some delay in milli seconds in code execution. // // Calling Sequence // RPI_DelayMilli(time) @@ -8,7 +16,7 @@ function RPI_DelayMilli(time) // time: time(milliseconds) for which execution is to be delayed // // Description -// this function can be used for insertig execution delays. 'time' should be +// 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 diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci index 4df03f67..781c49c8 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.sci @@ -1,3 +1,11 @@ +// 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. // diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.bin index d6b6b7bf..b7ad06e5 100644 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.bin and b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.sci index 4836f54f..dde3c934 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.sci @@ -1,3 +1,11 @@ +// 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. // @@ -20,8 +28,17 @@ function RPI_DigitalOut(pin, state) // 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 -// This is curretly dummy function. It provides no functionality but is required -// for providing support for generating C code for RPi. +//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/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin index 1f20deb2..1ac5b582 100644 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin and b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci index 460a4174..01d6e07d 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.sci @@ -22,7 +22,8 @@ function RPI_DigitalSetup(pin, direction) // 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] +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 @@ -30,4 +31,6 @@ PinIsGPIO = members(pin, supported_pins); //Check if input pin supports GPIO if(PinIsGPIO == 0) error(9999, 'SCI2CERROR: Given pin number doesnot support GPIO functionality.'); end +state = 1; + endfunction diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.sci index 7f825efd..6c4db57a 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.sci @@ -1,3 +1,11 @@ +// 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. // diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.sci index b83f5fea..c034a705 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.sci @@ -1,3 +1,11 @@ +// 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. // diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.sci index 3c050306..8448d364 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.sci @@ -1,3 +1,11 @@ +// 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) diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.sci index 2ab697bc..57b82601 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.sci @@ -1,3 +1,11 @@ +// 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 // diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.sci index cb7dd67d..c2075e2d 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.sci @@ -1,3 +1,11 @@ +// 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 diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.sci index 9f9f7977..dba5e674 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.sci @@ -1,3 +1,11 @@ +// 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 diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin index a6c0bd98..ddeff684 100644 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin and b/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.sci index 2de7d9e8..c2354c1f 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.sci @@ -1,3 +1,11 @@ +// 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. @@ -30,7 +38,8 @@ function RPI_PinISR(pin, edgetype, fn) // 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] +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 @@ -38,7 +47,7 @@ PinIsGPIO = members(pin, supported_pins); //Check if input pin supports GPIO if(PinIsGPIO == 0) error(9999, 'SCI2CERROR: Given pin number doesnot support GPIO functionality.'); end -EdgeTypeSupported = members(edgetype,[1 2 3]) +EdgeTypeSupported = members(edgetype,[1 2 3]); if(EdgeTypeSupported == 0) error(9999, 'SCI2CERROR: Given edgetype is incorrect. Please specify correct edgetype from [1,2,3]') diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.sci index 0d393f39..f27dd432 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.sci @@ -1,3 +1,11 @@ +// 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. // diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.sci index ffef70b4..9bab386f 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.sci @@ -1,3 +1,11 @@ +// 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 // diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.sci index 0271449d..a26e5b97 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.sci @@ -1,3 +1,11 @@ +// 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 // diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.sci index 82051d66..769b21d2 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.sci @@ -1,3 +1,11 @@ +// 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. // diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.sci index 6bfe80d1..c05852b1 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.sci @@ -1,3 +1,11 @@ +// 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 diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.sci b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.sci index 25a70a38..0f266610 100644 --- a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.sci +++ b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.sci @@ -1,3 +1,11 @@ +// 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. // diff --git a/2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.sci b/2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.sci index 5a291569..6eb29a1c 100644 --- a/2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.sci +++ b/2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.sci @@ -1,3 +1,11 @@ +// 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 -- cgit From 586db6343e7b472d8dc3e63a82f4c73f99cdcbd7 Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Wed, 19 Apr 2017 14:28:34 +0530 Subject: Merged Ashish's work --- 2.3-1/macros/Hardware/RasberryPi/lib | Bin 1152 -> 1312 bytes 1 file changed, 0 insertions(+), 0 deletions(-) (limited to '2.3-1/macros/Hardware/RasberryPi') diff --git a/2.3-1/macros/Hardware/RasberryPi/lib b/2.3-1/macros/Hardware/RasberryPi/lib index d25d9440..2426bc1a 100644 Binary files a/2.3-1/macros/Hardware/RasberryPi/lib and b/2.3-1/macros/Hardware/RasberryPi/lib differ -- cgit From b9cfdca438347fe4d28f7caff3cb7b382e455d3a Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Wed, 19 Apr 2017 14:57:49 +0530 Subject: Merged Shamik's work --- 2.3-1/macros/Hardware/RasberryPi/names | 2 ++ 1 file changed, 2 insertions(+) (limited to '2.3-1/macros/Hardware/RasberryPi') diff --git a/2.3-1/macros/Hardware/RasberryPi/names b/2.3-1/macros/Hardware/RasberryPi/names index fa647761..39cb5432 100644 --- a/2.3-1/macros/Hardware/RasberryPi/names +++ b/2.3-1/macros/Hardware/RasberryPi/names @@ -2,6 +2,8 @@ GetRPISupportFunctions IsRPISupportFunction RPI_DelayMicro RPI_DelayMilli +RPI_DelayMicro +RPI_DelayMilli RPI_DigitalIn RPI_DigitalOut RPI_DigitalSetup -- cgit From 472b2e7ebbd2d8b3ecd00b228128aa8a0bd3f920 Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Mon, 24 Apr 2017 14:08:37 +0530 Subject: Fixed float.h issue. OpenCV with built libraries working for linux x64 --- .../Hardware/RasberryPi/GetRPISupportFunctions.bin | Bin 4760 -> 0 bytes .../Hardware/RasberryPi/IsRPISupportFunction.bin | Bin 4292 -> 0 bytes .../macros/Hardware/RasberryPi/RPI_DelayMicro.bin | Bin 3280 -> 0 bytes .../macros/Hardware/RasberryPi/RPI_DelayMilli.bin | Bin 3596 -> 0 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin | Bin 5264 -> 0 bytes .../macros/Hardware/RasberryPi/RPI_DigitalOut.bin | Bin 5352 -> 0 bytes .../Hardware/RasberryPi/RPI_DigitalSetup.bin | Bin 5336 -> 0 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.bin | Bin 3568 -> 0 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.bin | Bin 3556 -> 0 bytes .../Hardware/RasberryPi/RPI_HardPWMSetClock.bin | Bin 3488 -> 0 bytes .../Hardware/RasberryPi/RPI_HardPWMSetMode.bin | Bin 2448 -> 0 bytes .../Hardware/RasberryPi/RPI_HardPWMSetRange.bin | Bin 3340 -> 0 bytes .../Hardware/RasberryPi/RPI_HardPWMWrite.bin | Bin 4628 -> 0 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin | Bin 6952 -> 0 bytes .../macros/Hardware/RasberryPi/RPI_SerialClose.bin | Bin 2724 -> 0 bytes .../macros/Hardware/RasberryPi/RPI_SerialFlush.bin | Bin 3120 -> 0 bytes .../Hardware/RasberryPi/RPI_SerialGetChar.bin | Bin 3404 -> 0 bytes .../Hardware/RasberryPi/RPI_SerialSendChar.bin | Bin 3344 -> 0 bytes .../Hardware/RasberryPi/RPI_SerialSendData.bin | Bin 3344 -> 0 bytes .../macros/Hardware/RasberryPi/RPI_SerialSetup.bin | Bin 3356 -> 0 bytes 2.3-1/macros/Hardware/RasberryPi/lib | Bin 1312 -> 0 bytes 2.3-1/macros/Hardware/RasberryPi/names | 23 --------------------- .../Hardware/RasberryPi/u16RPISerialDataAvail.bin | Bin 3520 -> 0 bytes 23 files changed, 23 deletions(-) delete mode 100644 2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.bin delete mode 100644 2.3-1/macros/Hardware/RasberryPi/lib delete mode 100644 2.3-1/macros/Hardware/RasberryPi/names delete mode 100644 2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.bin (limited to '2.3-1/macros/Hardware/RasberryPi') diff --git a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin deleted file mode 100644 index a70999c0..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.bin b/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.bin deleted file mode 100644 index 11533d3e..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.bin deleted file mode 100644 index a4d32cb6..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.bin deleted file mode 100644 index b6eeb30b..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin deleted file mode 100644 index f4c16f39..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.bin deleted file mode 100644 index b7ad06e5..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin deleted file mode 100644 index 1ac5b582..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.bin deleted file mode 100644 index 3e6c08fa..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.bin deleted file mode 100644 index b9143650..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.bin deleted file mode 100644 index 1efe0803..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.bin deleted file mode 100644 index 075d6e60..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.bin deleted file mode 100644 index 8ded2709..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.bin deleted file mode 100644 index 9957f3a4..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin deleted file mode 100644 index ddeff684..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.bin deleted file mode 100644 index dce972dc..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.bin deleted file mode 100644 index 2a3704d0..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.bin deleted file mode 100644 index 928f28a3..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.bin deleted file mode 100644 index 7614ebcb..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.bin deleted file mode 100644 index a3524a6c..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.bin deleted file mode 100644 index 0128c27b..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.bin and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/lib b/2.3-1/macros/Hardware/RasberryPi/lib deleted file mode 100644 index 2426bc1a..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/lib and /dev/null differ diff --git a/2.3-1/macros/Hardware/RasberryPi/names b/2.3-1/macros/Hardware/RasberryPi/names deleted file mode 100644 index 39cb5432..00000000 --- a/2.3-1/macros/Hardware/RasberryPi/names +++ /dev/null @@ -1,23 +0,0 @@ -GetRPISupportFunctions -IsRPISupportFunction -RPI_DelayMicro -RPI_DelayMilli -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/2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.bin b/2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.bin deleted file mode 100644 index 3789bd6c..00000000 Binary files a/2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.bin and /dev/null differ -- cgit From de82d12658979cd70439f977742f80fac9f6521f Mon Sep 17 00:00:00 2001 From: Siddhesh Wani Date: Thu, 4 May 2017 16:15:18 +0530 Subject: Basic functions and image processing working with MSVC on windows x64 --- 2.3-1/macros/Hardware/RasberryPi/lib | Bin 0 -> 988 bytes 2.3-1/macros/Hardware/RasberryPi/names | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 2.3-1/macros/Hardware/RasberryPi/lib create mode 100644 2.3-1/macros/Hardware/RasberryPi/names (limited to '2.3-1/macros/Hardware/RasberryPi') diff --git a/2.3-1/macros/Hardware/RasberryPi/lib b/2.3-1/macros/Hardware/RasberryPi/lib new file mode 100644 index 00000000..b92a6ea7 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/lib differ diff --git a/2.3-1/macros/Hardware/RasberryPi/names b/2.3-1/macros/Hardware/RasberryPi/names new file mode 100644 index 00000000..fa647761 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/names @@ -0,0 +1,21 @@ +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 -- cgit From 5f17dffbfa6d84aee23f7946cfa95e9e5c9995b7 Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Thu, 4 May 2017 20:07:20 +0530 Subject: Toolbox working with scilab 6.0 --- 2.3-1/macros/Hardware/RasberryPi/lib | Bin 0 -> 1152 bytes 2.3-1/macros/Hardware/RasberryPi/names | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 2.3-1/macros/Hardware/RasberryPi/lib create mode 100644 2.3-1/macros/Hardware/RasberryPi/names (limited to '2.3-1/macros/Hardware/RasberryPi') diff --git a/2.3-1/macros/Hardware/RasberryPi/lib b/2.3-1/macros/Hardware/RasberryPi/lib new file mode 100644 index 00000000..d25d9440 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/lib differ diff --git a/2.3-1/macros/Hardware/RasberryPi/names b/2.3-1/macros/Hardware/RasberryPi/names new file mode 100644 index 00000000..fa647761 --- /dev/null +++ b/2.3-1/macros/Hardware/RasberryPi/names @@ -0,0 +1,21 @@ +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 -- cgit From 3121a1f5a8203bfd14d46f71930ac5cd22afdf7d Mon Sep 17 00:00:00 2001 From: yash1112 Date: Mon, 19 Jun 2017 05:40:46 +0530 Subject: 1.3 new scilab-arduino functions added2. all functions have been tested on hardware 3. 5 i2c library functions added 4. Now generates code for 27 Boards(arduino and lilypad). 5. New GUI --- .../Hardware/RasberryPi/GetRPISupportFunctions.bin | Bin 0 -> 4760 bytes .../Hardware/RasberryPi/IsRPISupportFunction.bin | Bin 0 -> 4292 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.bin | Bin 0 -> 3280 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.bin | Bin 0 -> 3596 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin | Bin 0 -> 5264 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.bin | Bin 0 -> 5352 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin | Bin 0 -> 5336 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.bin | Bin 0 -> 3568 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.bin | Bin 0 -> 3556 bytes .../Hardware/RasberryPi/RPI_HardPWMSetClock.bin | Bin 0 -> 3488 bytes .../macros/Hardware/RasberryPi/RPI_HardPWMSetMode.bin | Bin 0 -> 2448 bytes .../Hardware/RasberryPi/RPI_HardPWMSetRange.bin | Bin 0 -> 3340 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.bin | Bin 0 -> 4628 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin | Bin 0 -> 6952 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.bin | Bin 0 -> 2724 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.bin | Bin 0 -> 3120 bytes .../macros/Hardware/RasberryPi/RPI_SerialGetChar.bin | Bin 0 -> 3404 bytes .../macros/Hardware/RasberryPi/RPI_SerialSendChar.bin | Bin 0 -> 3344 bytes .../macros/Hardware/RasberryPi/RPI_SerialSendData.bin | Bin 0 -> 3344 bytes 2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.bin | Bin 0 -> 3356 bytes 2.3-1/macros/Hardware/RasberryPi/lib | Bin 2037 -> 1012 bytes .../Hardware/RasberryPi/u16RPISerialDataAvail.bin | Bin 0 -> 3520 bytes 22 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.bin create mode 100644 2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.bin (limited to '2.3-1/macros/Hardware/RasberryPi') diff --git a/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin new file mode 100644 index 00000000..a70999c0 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.bin b/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.bin new file mode 100644 index 00000000..11533d3e Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/IsRPISupportFunction.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.bin new file mode 100644 index 00000000..a4d32cb6 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMicro.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.bin new file mode 100644 index 00000000..b6eeb30b Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_DelayMilli.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin new file mode 100644 index 00000000..f4c16f39 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalIn.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.bin new file mode 100644 index 00000000..b7ad06e5 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalOut.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin new file mode 100644 index 00000000..1ac5b582 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.bin new file mode 100644 index 00000000..3e6c08fa Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_GetMicros.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.bin new file mode 100644 index 00000000..b9143650 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_GetMillis.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.bin new file mode 100644 index 00000000..1efe0803 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.bin new file mode 100644 index 00000000..075d6e60 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.bin new file mode 100644 index 00000000..8ded2709 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.bin new file mode 100644 index 00000000..9957f3a4 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_HardPWMWrite.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin new file mode 100644 index 00000000..ddeff684 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_PinISR.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.bin new file mode 100644 index 00000000..dce972dc Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialClose.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.bin new file mode 100644 index 00000000..2a3704d0 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialFlush.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.bin new file mode 100644 index 00000000..928f28a3 Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialGetChar.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.bin new file mode 100644 index 00000000..7614ebcb Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendChar.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.bin new file mode 100644 index 00000000..a3524a6c Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSendData.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.bin b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.bin new file mode 100644 index 00000000..0128c27b Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/RPI_SerialSetup.bin differ diff --git a/2.3-1/macros/Hardware/RasberryPi/lib b/2.3-1/macros/Hardware/RasberryPi/lib index 9afd77da..c238317e 100644 Binary files a/2.3-1/macros/Hardware/RasberryPi/lib and b/2.3-1/macros/Hardware/RasberryPi/lib differ diff --git a/2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.bin b/2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.bin new file mode 100644 index 00000000..3789bd6c Binary files /dev/null and b/2.3-1/macros/Hardware/RasberryPi/u16RPISerialDataAvail.bin differ -- cgit