summaryrefslogtreecommitdiff
path: root/macros/Hardware/AVR/AVRUARTSetup.sci
diff options
context:
space:
mode:
authorMushirahmed2016-01-15 16:47:41 +0530
committerMushirahmed2016-01-15 16:47:41 +0530
commit05ccd0b6ec64ec92722e482e00d3082306b21a0a (patch)
treef56951f10d7fe8e534aff81d4287bb090bf157c5 /macros/Hardware/AVR/AVRUARTSetup.sci
parentcad39eb3d3f3509eb44e87e2aeac210e9328fdc0 (diff)
parent1ff7f5293444b22b46ff7bd51d52a845dc20525c (diff)
downloadscilab2c-05ccd0b6ec64ec92722e482e00d3082306b21a0a.tar.gz
scilab2c-05ccd0b6ec64ec92722e482e00d3082306b21a0a.tar.bz2
scilab2c-05ccd0b6ec64ec92722e482e00d3082306b21a0a.zip
merge before windows testing lapack and Makefile.mak file
Diffstat (limited to 'macros/Hardware/AVR/AVRUARTSetup.sci')
-rw-r--r--macros/Hardware/AVR/AVRUARTSetup.sci31
1 files changed, 31 insertions, 0 deletions
diff --git a/macros/Hardware/AVR/AVRUARTSetup.sci b/macros/Hardware/AVR/AVRUARTSetup.sci
new file mode 100644
index 00000000..1529c347
--- /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