diff options
author | siddhu8990 | 2015-09-11 02:28:56 +0530 |
---|---|---|
committer | siddhu8990 | 2015-09-11 02:28:56 +0530 |
commit | fa48de77a489b8b6e7c5cb335b8dc55721cf2a28 (patch) | |
tree | 5c026f0f1c5115b99b6cee80c510b3e9afb3e6c6 /src | |
parent | 9f6b12fae887eb141b6afd0fc56c7367c82efb70 (diff) | |
download | Scilab2C_fossee_old-fa48de77a489b8b6e7c5cb335b8dc55721cf2a28.tar.gz Scilab2C_fossee_old-fa48de77a489b8b6e7c5cb335b8dc55721cf2a28.tar.bz2 Scilab2C_fossee_old-fa48de77a489b8b6e7c5cb335b8dc55721cf2a28.zip |
Changes made for making directory 'arduino' in output folder'
Diffstat (limited to 'src')
-rw-r--r-- | src/c/matrixOperations/cat/ccata.c | 2 | ||||
-rw-r--r-- | src/c/matrixOperations/cat/zcata.c | 2 | ||||
-rw-r--r-- | src/c/scilab-arduino/default_files/Makefile | 10 | ||||
-rw-r--r-- | src/c/scilab-arduino/default_files/sci2c_arduino.ino | 12 |
4 files changed, 24 insertions, 2 deletions
diff --git a/src/c/matrixOperations/cat/ccata.c b/src/c/matrixOperations/cat/ccata.c index cd2b4c9..88106a8 100644 --- a/src/c/matrixOperations/cat/ccata.c +++ b/src/c/matrixOperations/cat/ccata.c @@ -26,7 +26,7 @@ void crowcata(floatComplex *in1, int lines1, int columns1, floatComplex *in2, i { for (j = 0 ; j < lines1 ; ++j) { - out[i*(lines1 + lines2) + j] = in1[i*lines1 + j]; + //out[i*(lines1 + lines2) + j] = in1[i*lines1 + j]; } for (j = 0 ; j < lines2 ; ++j) { diff --git a/src/c/matrixOperations/cat/zcata.c b/src/c/matrixOperations/cat/zcata.c index 485553d..30d50ee 100644 --- a/src/c/matrixOperations/cat/zcata.c +++ b/src/c/matrixOperations/cat/zcata.c @@ -26,7 +26,7 @@ void zrowcata(doubleComplex *in1, int lines1, int columns1, doubleComplex *in2, { for (j = 0 ; j < lines1 ; ++j) { - out[i*(lines1 + lines2) + j] = in1[i*lines1 + j]; + //out[i*(lines1 + lines2) + j] = in1[i*lines1 + j]; } for (j = 0 ; j < lines2 ; ++j) { diff --git a/src/c/scilab-arduino/default_files/Makefile b/src/c/scilab-arduino/default_files/Makefile new file mode 100644 index 0000000..7d74195 --- /dev/null +++ b/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 = atmega328 +USER_LIB_PATH = ../../ +ARDUINO_LIBS = src/c includes interfaces ../Temp +ARDUINO_PORT = /dev/ttyUSB0 +include /usr/share/arduino/Arduino.mk diff --git a/src/c/scilab-arduino/default_files/sci2c_arduino.ino b/src/c/scilab-arduino/default_files/sci2c_arduino.ino new file mode 100644 index 0000000..9e9d9b6 --- /dev/null +++ b/src/c/scilab-arduino/default_files/sci2c_arduino.ino @@ -0,0 +1,12 @@ +#include "Arduino.h" +#include <loop_arduino.h> + +void setup() +{ + //Please write appropriate setup functions here. +} +int i = 0; +void loop() +{ + loop_arduino(); +} |