diff options
author | siddhu8990 | 2017-06-20 15:34:06 +0530 |
---|---|---|
committer | siddhu8990 | 2017-06-20 15:34:06 +0530 |
commit | e92d6c6791aae06053637ad3bf6b0f9d8986986c (patch) | |
tree | 9326f0bed06ee4ce9e2bf54d03ee3fde10ef5ea9 /macros/CCodeGeneration/C_GenerateMkfle_arduino.sci | |
parent | fad32de9c3df04a8fb032f9c604c79c89d062154 (diff) | |
parent | 369c257b9ae0320621b43ca75b38ff66cc13f37b (diff) | |
download | scilab2c-e92d6c6791aae06053637ad3bf6b0f9d8986986c.tar.gz scilab2c-e92d6c6791aae06053637ad3bf6b0f9d8986986c.tar.bz2 scilab2c-e92d6c6791aae06053637ad3bf6b0f9d8986986c.zip |
Merged with Yash's work. Gui modified for Arduino board selection. Arduino I2C functions added
Diffstat (limited to 'macros/CCodeGeneration/C_GenerateMkfle_arduino.sci')
-rw-r--r-- | macros/CCodeGeneration/C_GenerateMkfle_arduino.sci | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/macros/CCodeGeneration/C_GenerateMkfle_arduino.sci b/macros/CCodeGeneration/C_GenerateMkfle_arduino.sci new file mode 100644 index 00000000..b43eb442 --- /dev/null +++ b/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 |