From 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0 Mon Sep 17 00:00:00 2001 From: yash1112 Date: Fri, 7 Jul 2017 21:20:49 +0530 Subject: sci2c arduino updated --- 2.3-1/src/c/scilab-arduino/default_files/Makefile | 10 ++++ .../scilab-arduino/default_files/sci2c_arduino.ino | 26 +++++++++ .../c/scilab-arduino/default_files/setup_arduino.h | 65 ++++++++++++++++++++++ 3 files changed, 101 insertions(+) create mode 100644 2.3-1/src/c/scilab-arduino/default_files/Makefile create mode 100644 2.3-1/src/c/scilab-arduino/default_files/sci2c_arduino.ino create mode 100644 2.3-1/src/c/scilab-arduino/default_files/setup_arduino.h (limited to '2.3-1/src/c/scilab-arduino/default_files') diff --git a/2.3-1/src/c/scilab-arduino/default_files/Makefile b/2.3-1/src/c/scilab-arduino/default_files/Makefile new file mode 100644 index 00000000..5432fcfd --- /dev/null +++ b/2.3-1/src/c/scilab-arduino/default_files/Makefile @@ -0,0 +1,10 @@ +# Arduino Make file. Refer to https://github.com/sudar/Arduino-Makefile + +ARDUINO_DIR = /usr/share/arduino +ARDMK_DIR = /usr/share/arduino +AVR_TOOLS_DIR = /usr +BOARD_TAG = uno +USER_LIB_PATH = ../ +ARDUINO_LIBS = ../src/c ../includes ../interfaces ../ +ARDUINO_PORT = /dev/ttyACM0 +include /usr/share/arduino/Arduino.mk diff --git a/2.3-1/src/c/scilab-arduino/default_files/sci2c_arduino.ino b/2.3-1/src/c/scilab-arduino/default_files/sci2c_arduino.ino new file mode 100644 index 00000000..1d4465b7 --- /dev/null +++ b/2.3-1/src/c/scilab-arduino/default_files/sci2c_arduino.ino @@ -0,0 +1,26 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "Arduino.h" +#include "loop_arduino.h" +#include "setup_arduino.h" + +void setup() +{ + //Please write appropriate setup functions here. + setup_arduino(); +} + +void loop() +{ + loop_arduino(); +} diff --git a/2.3-1/src/c/scilab-arduino/default_files/setup_arduino.h b/2.3-1/src/c/scilab-arduino/default_files/setup_arduino.h new file mode 100644 index 00000000..acbf8e21 --- /dev/null +++ b/2.3-1/src/c/scilab-arduino/default_files/setup_arduino.h @@ -0,0 +1,65 @@ +/* +** ************************************************ +** This file has been generated using +** Scilab2C (Version 2.3) +** +** Please visit following links for more informations: +** Atoms Module: http://atoms.scilab.org/toolboxes/scilab2c +** Scilab2C Forge: http://forge.scilab.org/index.php/p/scilab2c/ +** Scilab2C ML: http://forge.scilab.org/index.php/p/scilab2c/ +** ************************************************ +*/ + + +#ifndef setup_arduino_h +#define setup_arduino_h +/* +** ------------------- +** ----- Target ------ +** ------------------- +*/ +# define Arduino1 1 +/* +** ----------------------- +** --- SCI2C Includes. --- +** ----------------------- +*/ +#include "Arduino.h" +#include "sci2clib.h" +/* +** --------------------------- +** --- End SCI2C Includes. --- +** --------------------------- +*/ + + +#ifdef __cplusplus +extern "C" { +#endif +/* +** ------------------- +** --- Prototypes. --- +** ------------------- +*/ +int setup_arduino(); +/* +** ----------------------- +** --- End Prototypes. --- +** ----------------------- +*/ + + +/* +** ------------------------ +** --- USER2C Includes. --- +** ------------------------ +*/ +/* +** ---------------------------- +** --- End USER2C Includes. --- +** ---------------------------- +*/ +#ifdef __cplusplus +} /* extern "C" */ +#endif +#endif -- cgit