diff options
author | siddhu8990 | 2015-11-28 11:01:40 +0530 |
---|---|---|
committer | siddhu8990 | 2015-11-28 11:01:40 +0530 |
commit | 128638e88ce6d8414c9e1061faa96008be9bcda5 (patch) | |
tree | c38d4dbbed3ee4f3e71f263693d408e8bee519bc /2.3-1/macros/findDeps | |
parent | 3bcc8ce62560f36eaaab0e064b169b0118f354f3 (diff) | |
download | Scilab2C-128638e88ce6d8414c9e1061faa96008be9bcda5.tar.gz Scilab2C-128638e88ce6d8414c9e1061faa96008be9bcda5.tar.bz2 Scilab2C-128638e88ce6d8414c9e1061faa96008be9bcda5.zip |
Intermediate commit aith support added for AVR (GPIO,ADC). Does not support other targets.
Diffstat (limited to '2.3-1/macros/findDeps')
-rw-r--r-- | 2.3-1/macros/findDeps/getAllHeaders.bin | bin | 20944 -> 21056 bytes | |||
-rw-r--r-- | 2.3-1/macros/findDeps/getAllHeaders.sci | 7 | ||||
-rw-r--r-- | 2.3-1/macros/findDeps/getAllInterfaces.bin | bin | 19912 -> 20960 bytes | |||
-rw-r--r-- | 2.3-1/macros/findDeps/getAllInterfaces.sci | 8 | ||||
-rw-r--r-- | 2.3-1/macros/findDeps/getAllSources.bin | bin | 89280 -> 89488 bytes | |||
-rw-r--r-- | 2.3-1/macros/findDeps/getAllSources.sci | 14 | ||||
-rw-r--r-- | 2.3-1/macros/findDeps/getArduinoFiles.bin | bin | 9600 -> 9600 bytes |
7 files changed, 29 insertions, 0 deletions
diff --git a/2.3-1/macros/findDeps/getAllHeaders.bin b/2.3-1/macros/findDeps/getAllHeaders.bin Binary files differindex e9992fd4..6c4c15f7 100644 --- a/2.3-1/macros/findDeps/getAllHeaders.bin +++ b/2.3-1/macros/findDeps/getAllHeaders.bin diff --git a/2.3-1/macros/findDeps/getAllHeaders.sci b/2.3-1/macros/findDeps/getAllHeaders.sci index e152514b..f5c74bd0 100644 --- a/2.3-1/macros/findDeps/getAllHeaders.sci +++ b/2.3-1/macros/findDeps/getAllHeaders.sci @@ -136,10 +136,17 @@ function allHeaders = getAllHeaders(OutFormat) "src/c/scilab-arduino/includes/cmd_analog_in.h" "src/c/scilab-arduino/includes/sleep.h"]; + AVR_headers = [ + "src/c/hardware/avr/includes/AVRPeripheralGPIO.h" + "src/c/hardware/avr/includes/AVRPeripheralADC.h" + ]; + if OutFormat == "StandAlone" allHeaders = Standalone_headers; elseif OutFormat == "Arduino" allHeaders = cat(1,Standalone_headers, Arduino_headers); + elseif OutFormat == "AVR" + allHeaders = cat(1,Standalone_headers, AVR_headers); end endfunction diff --git a/2.3-1/macros/findDeps/getAllInterfaces.bin b/2.3-1/macros/findDeps/getAllInterfaces.bin Binary files differindex c607ea19..ec75338c 100644 --- a/2.3-1/macros/findDeps/getAllInterfaces.bin +++ b/2.3-1/macros/findDeps/getAllInterfaces.bin diff --git a/2.3-1/macros/findDeps/getAllInterfaces.sci b/2.3-1/macros/findDeps/getAllInterfaces.sci index b32bb652..5b52c71a 100644 --- a/2.3-1/macros/findDeps/getAllInterfaces.sci +++ b/2.3-1/macros/findDeps/getAllInterfaces.sci @@ -129,10 +129,18 @@ function allInterfaces = getAllInterfaces(OutFormat) "src/c/scilab-arduino/interfaces/int_cmd_analog_in.h" "src/c/scilab-arduino/interfaces/int_sleep.h"]; + //Interface files required for "AVR" output + AVR_interfaces = [ + "src/c/hardware/avr/interfaces/int_AVRPeripheralGPIO.h" + "src/c/hardware/avr/interfaces/int_AVRPeripheralADC.h" + ]; + if OutFormat == "StandAlone" allInterfaces = Standalone_interfaces; elseif OutFormat == "Arduino" allInterfaces = cat(1,Standalone_interfaces, Arduino_interfaces); + elseif OutFormat == "AVR" + allInterfaces = cat(1,Standalone_interfaces, AVR_interfaces); end endfunction diff --git a/2.3-1/macros/findDeps/getAllSources.bin b/2.3-1/macros/findDeps/getAllSources.bin Binary files differindex 1d698a0e..6c3f91f5 100644 --- a/2.3-1/macros/findDeps/getAllSources.bin +++ b/2.3-1/macros/findDeps/getAllSources.bin diff --git a/2.3-1/macros/findDeps/getAllSources.sci b/2.3-1/macros/findDeps/getAllSources.sci index 356ba38e..956f7be1 100644 --- a/2.3-1/macros/findDeps/getAllSources.sci +++ b/2.3-1/macros/findDeps/getAllSources.sci @@ -823,10 +823,24 @@ function allSources = getAllSources(OutFormat) "src/c/scilab-arduino/cmd_analog_out/u8cmd_analog_outs.c" "src/c/scilab-arduino/cmd_analog_in/u8cmd_analog_ins.c" "src/c/scilab-arduino/sleep/u16sleeps.c"]; + + //Files to be inserted only if output format selected is 'AVR'. + AVR_files = [ + "src/c/hardware/avr/gpio/u8AVRDigitalSetups.c" + "src/c/hardware/avr/gpio/u8AVRDigitalOuts.c" + "src/c/hardware/avr/gpio/u8AVRDigitalIns.c" + "src/c/hardware/avr/adc/u8AVRADCSetups.c" + "src/c/hardware/avr/adc/u8AVRReadADCs.c" + "src/c/scilab-arduino/sleep/u16sleeps.c" + ]; + + if OutFormat == "StandAlone" allSources = Standalone_files; elseif OutFormat == "Arduino" allSources = cat(1,Standalone_files, Arduino_files); + elseif OutFormat == "AVR" + allSources = cat(1,Standalone_files, AVR_files); end endfunction diff --git a/2.3-1/macros/findDeps/getArduinoFiles.bin b/2.3-1/macros/findDeps/getArduinoFiles.bin Binary files differindex 3becbac7..c762c303 100644 --- a/2.3-1/macros/findDeps/getArduinoFiles.bin +++ b/2.3-1/macros/findDeps/getArduinoFiles.bin |