diff options
author | Jorawar Singh | 2017-07-16 22:17:43 +0530 |
---|---|---|
committer | Jorawar Singh | 2017-07-16 22:36:51 +0530 |
commit | 5120257de94783e808523343effda00243ad6611 (patch) | |
tree | 6f36c2738140c12510710ad4af4891ca68200bc0 /2.3-1/macros/Hardware/RasberryPi/buildmacros.sce | |
parent | 2e35a1f26a7ec9e4466a5e0448f9a868aa801471 (diff) | |
download | Scilab2C-5120257de94783e808523343effda00243ad6611.tar.gz Scilab2C-5120257de94783e808523343effda00243ad6611.tar.bz2 Scilab2C-5120257de94783e808523343effda00243ad6611.zip |
Toolbox merge, RPI demos and structured demos
Diffstat (limited to '2.3-1/macros/Hardware/RasberryPi/buildmacros.sce')
-rwxr-xr-x[-rw-r--r--] | 2.3-1/macros/Hardware/RasberryPi/buildmacros.sce | 49 |
1 files changed, 47 insertions, 2 deletions
diff --git a/2.3-1/macros/Hardware/RasberryPi/buildmacros.sce b/2.3-1/macros/Hardware/RasberryPi/buildmacros.sce index 2954a424..07b564e3 100644..100755 --- a/2.3-1/macros/Hardware/RasberryPi/buildmacros.sce +++ b/2.3-1/macros/Hardware/RasberryPi/buildmacros.sce @@ -1,4 +1,49 @@ +// Copyright (C) 2017 - IIT Bombay - FOSSEE +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt +// Author: Jorawar Singh +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in -tbx_build_macros(TOOLBOX_NAME, get_absolute_file_path('buildmacros.sce')); +RPI_Directories = [ "Digital", ... + "gertBoard", ... + "I2C", ... + "Interrupt", ... + "lcd", ... + "lcd128x64", ... + "mcp", ... + "Misc", ... + "pcf", ... + "piGlow", ... + "pinMap", ... + "pwm", ... + "Serial", ... + "Setup", ... + "Shift", ... + "Soft", ... + "SPI", ... + "Timing"]; + +RPI_path_buildmacros = get_absolute_file_path("buildmacros.sce"); -clear tbx_build_macros; +for H=1:size(RPI_Directories,"*") + myfile = RPI_path_buildmacros + filesep() + RPI_Directories(H) + filesep() + "buildmacros.sce"; + if isfile(myfile) then + exec(myfile); + end +end + +clear RPI_path_buildmacros; + +function buildmacros() + macros_path = get_absolute_file_path("buildmacros.sce"); + tbx_build_macros(TOOLBOX_NAME, macros_path); + clear tbx_build_macros; +endfunction + +buildmacros(); +clear buildmacros; |