initialization is performed prior to any subsequent use. In addition,
all device drivers that need to adjust their timing values according
to the peripheral clock (SCLK) frequency must employ a call to
adi_pwr_GetFreq()
management module must be initialized prior to the opening of
any device driver.
There are basically three approaches that can be adopted:
• Define a function to initialize the system services and device
manager and call it from a user-modifiable section of the
"start" routine in
• Assign the initialization to the highest-priority boot thread.
• Use a separate boot thread to perform the initialization and
set it at the highest priority and let it yield to other threads
once completed or be destroyed. Use global and not thread
memory to initialize the system services and device manager
in this way.
Device Driver Overview
Device drivers provide a mechanism for applications to control a device
effectively. Devices may be on-chip or off-chip hardware devices, or even
software modules that are best managed as virtual devices. Device drivers
are typically constructed such that the application is insulated from the
nuances of the hardware (or software) being controlled. In this way, both
the device drivers and the devices that are being controlled can be updated
or replaced without affecting the application.
The Analog Devices device driver model provides a simple, convenient
method for applications to control devices commonly found in and
around Analog Devices processors. It has also provides a simple and effi-
cient mechanism for the creation of new device drivers.
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
to determine the frequency (in Hz). The power
<Project>_basiccrt.s
Introduction
.
1-19
Need help?
Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?