diff options
author | Mushirahmed | 2016-01-15 16:47:41 +0530 |
---|---|---|
committer | Mushirahmed | 2016-01-15 16:47:41 +0530 |
commit | 05ccd0b6ec64ec92722e482e00d3082306b21a0a (patch) | |
tree | f56951f10d7fe8e534aff81d4287bb090bf157c5 /macros/Hardware | |
parent | cad39eb3d3f3509eb44e87e2aeac210e9328fdc0 (diff) | |
parent | 1ff7f5293444b22b46ff7bd51d52a845dc20525c (diff) | |
download | Scilab2C_fossee_old-05ccd0b6ec64ec92722e482e00d3082306b21a0a.tar.gz Scilab2C_fossee_old-05ccd0b6ec64ec92722e482e00d3082306b21a0a.tar.bz2 Scilab2C_fossee_old-05ccd0b6ec64ec92722e482e00d3082306b21a0a.zip |
merge before windows testing lapack and Makefile.mak file
Diffstat (limited to 'macros/Hardware')
-rw-r--r-- | macros/Hardware/AVR/AVRTimerSetup.bin | bin | 3552 -> 3480 bytes | |||
-rw-r--r-- | macros/Hardware/AVR/AVRTimerSetup.sci | 2 | ||||
-rw-r--r-- | macros/Hardware/AVR/AVRUARTSetup.sci | 31 | ||||
-rw-r--r-- | macros/Hardware/AVR/GetAVRSupportFunctions.bin | bin | 1256 -> 1888 bytes | |||
-rw-r--r-- | macros/Hardware/AVR/GetAVRSupportFunctions.sci | 11 |
5 files changed, 42 insertions, 2 deletions
diff --git a/macros/Hardware/AVR/AVRTimerSetup.bin b/macros/Hardware/AVR/AVRTimerSetup.bin Binary files differindex 65e8f45..4a49b86 100644 --- a/macros/Hardware/AVR/AVRTimerSetup.bin +++ b/macros/Hardware/AVR/AVRTimerSetup.bin diff --git a/macros/Hardware/AVR/AVRTimerSetup.sci b/macros/Hardware/AVR/AVRTimerSetup.sci index 6316cdd..1529c34 100644 --- a/macros/Hardware/AVR/AVRTimerSetup.sci +++ b/macros/Hardware/AVR/AVRTimerSetup.sci @@ -6,7 +6,7 @@ function AVRTimerSetup(timer, prescalar) // // Parameters // timer: timer to be set up (0,1,2) -// prescalar: prescalar to be used for generating PWM waveform (0-7) +// prescalar: prescalar to be used for timer (0-7) // ***Refer datasheet for more description about timer // // Description diff --git a/macros/Hardware/AVR/AVRUARTSetup.sci b/macros/Hardware/AVR/AVRUARTSetup.sci new file mode 100644 index 0000000..1529c34 --- /dev/null +++ b/macros/Hardware/AVR/AVRUARTSetup.sci @@ -0,0 +1,31 @@ +function AVRTimerSetup(timer, prescalar) +// Function to set the prescalar for timer. +// +// Calling Sequence +// AVRTimerSetup(timer, prescalar) +// +// Parameters +// timer: timer to be set up (0,1,2) +// prescalar: prescalar to be used for timer (0-7) +// ***Refer datasheet for more description about timer +// +// Description +// This function sets prescalr for timers. 'timer' decides which of the +// three (0,1,2) timers available to be used. The 'prescalar' is needed for +// deciding timer clock. Select appropriate prescalar depending on MCU clock +// and requirement. +// +// +// Examples +// AVRTimerSetup(0,1) //Timer 0 with no scaling +// +// See also +// AVRGetTimerValue +// +// Authors +// Siddhesh Wani +// + +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for AVR. +endfunction diff --git a/macros/Hardware/AVR/GetAVRSupportFunctions.bin b/macros/Hardware/AVR/GetAVRSupportFunctions.bin Binary files differindex eed8be3..0aa7587 100644 --- a/macros/Hardware/AVR/GetAVRSupportFunctions.bin +++ b/macros/Hardware/AVR/GetAVRSupportFunctions.bin diff --git a/macros/Hardware/AVR/GetAVRSupportFunctions.sci b/macros/Hardware/AVR/GetAVRSupportFunctions.sci index 50a913f..cce49f9 100644 --- a/macros/Hardware/AVR/GetAVRSupportFunctions.sci +++ b/macros/Hardware/AVR/GetAVRSupportFunctions.sci @@ -11,6 +11,15 @@ function AVRSupportFunctions = GetAVRSupportFunctions() // Author: Siddhesh Wani // ----------------------------------------------------------------- -AVRSupportFunctions = ["AVRDigitalOut"]; +AVRSupportFunctions = [ + "AVRADCSetup" + "AVRDigitalIn" + "AVRDigitalOut" + "AVRDigitalSetup" + "AVRGetTimerValue" + "AVRPWMSetDuty" + "AVRPWMSetup" + "AVRReadADC" + "AVRTimerSetup"]; endfunction |