at91rm3400 ATMEL Corporation, at91rm3400 Datasheet - Page 60

no-image

at91rm3400

Manufacturer Part Number
at91rm3400
Description
Atmel Advanced At91 Arm Microcontroller
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
at91rm3400-AU-002
Manufacturer:
Atmel
Quantity:
10 000
Tempo Service
Presentation
Tempo Service Description
Table 19. Tempo Service Methods
60
Associated Function Pointers & Methods Used by Default
// Typical Use:
pAT91->OpenCtlTempo(...);
// Default Method:
AT91S_TempoStatus AT91F_OpenCtlTempo(
AT91PS_CtlTempo pCtlTempo,
void const *pTempoTimer)
// Typical Use:
AT91S_CtlTempo ctlTempo;
ctlTempo.CtlTempoStart(...);
// Default Method:
AT91S_TempoStatus AT91F_STStart(void * pTimer)
// Typical Use:
AT91S_CtlTempo ctlTempo;
ctlTempo.CtlTempoIsStart(...);
// Default Method:
AT91S_TempoStatus AT91F_STIsStart(
AT91PS_CtlTempo pCtrl)
// Typical Use:
AT91S_CtlTempo ctlTempo;
ctlTempo.CtlTempoCreate(...);
// Default Method:
AT91S_TempoStatus AT91F_CtlTempoCreate (
AT91PS_CtlTempo pCtrl,
AT91PS_SvcTempo pTempo)
AT91RM3400
The Tempo Service allows a single hardware system timer to support several software timers
running concurrently. This works as an object notifier.
There are two objects defined to control the Tempo Service: AT91S_CtlTempo and
AT91S_SvcTempo.
The application declares one instance of AT91S_CtlTempo associated with the hardware
system timer. Additionally, it controls a list of instances of AT91S_SvcTempo.
Each time the application requires another timer, it asks the AT91S_CtlTempo to create a
new instance of AT91S_SvcTempo, then the application initializes all the settings of
AT91S_SvcTempo.
Description
Member of AT91S_RomBoot structure.
Corresponds to the Open Service Method for the Tempo
Service.
Input Parameters:
Pointer on a Control Tempo Object.
Pointer on a System Timer Descriptor Structure.
Output Parameters:
Returns 0 if OpenCtrlTempo successful.
Returns 1 if not.
Member of
Start of the Hardware System Timer associated.
Input Parameters:
Pointer on a Void Parameter corresponding to a System Timer
Descriptor Structure.
Output Parameters:
Returns 2.
Member of
Input Parameters:
Pointer on a Control Tempo Object.
Output Parameters:
Returns the Status Register of the System Timer.
Member of
Insert a software timer in the
Input Parameters:
Pointer on a Control Tempo Object.
Pointer on a Service Tempo Object to insert.
Output Parameters:
Returns 0 if the software tempo was created.
Returns 1 if not.
AT91S_CtlTempo
AT91S_CtlTempo
AT91S_CtlTempo
AT91S_SvcTempo
structure.
structure.
structure.
’s list.
1790A–ATARM–11/03

Related parts for at91rm3400