Real-Time Clock Events; One Second Periodic Event - Analog Devices VisualDSP++ 5.0 Service Manual

Visualdsp++ 5.0 device drivers and system for blackfin processors
Table of Contents

Advertisement

passes a pointer to the
from the
RTC_STAT
structure.
The real-time clock service supports only the functionality of the hard-
ware. It does not make adjustments to the date and time for daylight
savings or time zones. The application can make these adjustments easily
since the date and time are stored in a
standard time functions found in the VisualDSP C/C++ Compiler
Run-Time Library.

Real-Time Clock Events

The real-time clock service provides a mechanism for allowing certain pre-
defined conditions, referred to as events, to be serviced at the interrupt
level during regular program execution. Each event is identified by a
unique
Event ID
cation provides a callback function to handle an event. The real-time
clock service provides the mechanism for installing and removing call-
backs, and for invoking a callback when the appropriate conditions are
met. The real-time clock service supports eight different events. The
application enables an event by calling the
function, passing the appropriate

One Second Periodic Event

The application may enable an interrupt to occur when the seconds
counter in the
becomes enabled when the application calls the
adi_rtc_InstallCallback()
ADI_RTC_EVENT_SECONDS
continue to occur every second, until the application disables the event, by
passing the argument
adi_rtc_RemoveCallback()
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
structure. The function reads the date and time
tm
register and returns the information in the
that is defined in the include file,
register advances. This interrupting event
RTC_STAT
function, passing the argument
. This event stays enabled and periodic interrupts
ADI_RTC_EVENT_SECONDS
function.
Real-Time Clock Service
structure for compatibility with
tm
adi_rtc.h
adi_rtc_InstallCallback()
.
Event ID
to the
tm
. The appli-
11-5

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents