summaryrefslogtreecommitdiff
path: root/2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.sci
diff options
context:
space:
mode:
authorAnkit Raj2017-06-21 11:42:02 +0530
committerAnkit Raj2017-06-21 11:42:02 +0530
commit56aa185002761d966abebb5c67e6c1a2d5ee141c (patch)
tree828d1fb53c63bd707798807b33667b56a43eda49 /2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.sci
parentb96df0699b8aa17e7ba43ebafca5a557b9acebf5 (diff)
parent0051253bc224286c118c080c79eaed5bf611bd35 (diff)
downloadScilab2C-56aa185002761d966abebb5c67e6c1a2d5ee141c.tar.gz
Scilab2C-56aa185002761d966abebb5c67e6c1a2d5ee141c.tar.bz2
Scilab2C-56aa185002761d966abebb5c67e6c1a2d5ee141c.zip
updated with main repo
Diffstat (limited to '2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.sci')
-rw-r--r--2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.sci12
1 files changed, 12 insertions, 0 deletions
diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.sci b/2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.sci
new file mode 100644
index 00000000..b43eb442
--- /dev/null
+++ b/2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.sci
@@ -0,0 +1,12 @@
+function C_GenerateMkfle_arduino(FileInfo,SharedInfo)
+
+ PrintStringInfo('ARDUINO_DIR = /usr/share/arduino',FileInfo.MakefileFilename,'file','y','y');
+ PrintStringInfo('ARDMK_DIR = /usr/share/arduino',FileInfo.MakefileFilename,'file','y','y');
+ PrintStringInfo('AVR_TOOLS_DIR = /usr',FileInfo.MakefileFilename,'file','y','y');
+ PrintStringInfo('BOARD_TAG = ' + SharedInfo.Board_name ,FileInfo.MakefileFilename,'file','y','y');
+ PrintStringInfo('USER_LIB_PATH = ../',FileInfo.MakefileFilename,'file','y','y');
+ PrintStringInfo('ARDUINO_LIBS = ../src/c ../includes ../interfaces ../ Wire',FileInfo.MakefileFilename,'file','y','y');
+ PrintStringInfo('ARDUINO_PORT = /dev/ttyACM0',FileInfo.MakefileFilename,'file','y','y');
+ PrintStringInfo('include /usr/share/arduino/Arduino.mk',FileInfo.MakefileFilename,'file','y','y');
+
+endfunction