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/getAllSources.sci | |
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/getAllSources.sci')
-rw-r--r-- | 2.3-1/macros/findDeps/getAllSources.sci | 14 |
1 files changed, 14 insertions, 0 deletions
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 |