blob: ab0146aaf57819f2c38907e2249a6d7fa76f881c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
function counts = AVRGetTimerValue(timer)
// Function to set the prescalar for timer.
//
// Calling Sequence
// AVRgetTimerValue(timer, prescalar)
//
// Parameters
// timer: timer to be set up (0,1,2)
// prescalar: prescalar to be used for generating PWM waveform (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
|