From 7cba1cf7d2ee89559239a22c50297a1545de0587 Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Wed, 13 Jan 2016 11:15:17 +0530 Subject: Test commit --- macros/Hardware/AVR/AVRTimerSetup.bin | Bin 3552 -> 3480 bytes macros/Hardware/AVR/AVRTimerSetup.sci | 2 +- macros/Hardware/AVR/AVRUARTSetup.sci | 31 +++++++++++++++++++++++++ macros/Hardware/AVR/GetAVRSupportFunctions.bin | Bin 1256 -> 1888 bytes macros/Hardware/AVR/GetAVRSupportFunctions.sci | 11 ++++++++- 5 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 macros/Hardware/AVR/AVRUARTSetup.sci (limited to 'macros/Hardware') diff --git a/macros/Hardware/AVR/AVRTimerSetup.bin b/macros/Hardware/AVR/AVRTimerSetup.bin index 65e8f45..4a49b86 100644 Binary files a/macros/Hardware/AVR/AVRTimerSetup.bin and b/macros/Hardware/AVR/AVRTimerSetup.bin differ 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 index eed8be3..0aa7587 100644 Binary files a/macros/Hardware/AVR/GetAVRSupportFunctions.bin and b/macros/Hardware/AVR/GetAVRSupportFunctions.bin differ 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 -- cgit