From 6294db4b43ec07171c2c3a868069b5023d8835a0 Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Wed, 13 Jan 2016 11:15:17 +0530 Subject: Test commit --- 2.3-1/macros/Hardware/AVR/AVRUARTSetup.sci | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 2.3-1/macros/Hardware/AVR/AVRUARTSetup.sci (limited to '2.3-1/macros/Hardware/AVR/AVRUARTSetup.sci') diff --git a/2.3-1/macros/Hardware/AVR/AVRUARTSetup.sci b/2.3-1/macros/Hardware/AVR/AVRUARTSetup.sci new file mode 100644 index 00000000..1529c347 --- /dev/null +++ b/2.3-1/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 -- cgit