HP (Hewlett-Packard) EZ-KIT Switch User Manual


 
Getting Started with ADSP-BF548 EZ-KIT Lite 5-11
Using ADSP-BF548 EZ-KIT Lite Hard Disk and LCD Screen
plications involving centering, cropping the image and filling the frame
buffer ‘backwards’ to accommodate a line ordering difference between the
.bmp file format and the LCD.
In the InitLCD() function, we request the DMA manager to call function
LcdCallback() after the final transfer in each of the two DMA chains.
This callback function checks whether DisplayBMP() has prepared a new
frame to be displayed and, if so, updates the inactive chain’s data buffer
descriptor with the address of the new frame. During this time, the other
chain’s buffer is being displayed and, when that chain terminates, Lcd-
Callback()
will update this chain’s descriptor too.
adi_ssl_Init.h
The final point to note is about the section of the adi_ssl_Init.h header
file that defines the number of SSL resources required by our application
(see Listing 5-3): because many drivers themselves use drivers, it is vital to
read each driver’s documentation to determine the total resources required
for your application.
Listing 5-3. adi_ssl_Init.h File
...
#define ADI_SSL_INT_NUM_SECONDARY_HANDLERS (6)
// number of secondary interrupt handlers
// LCD : EPPI DMA data transfer
// LCD : EPPI DMA error
// LCD : Timer
// Disk: ATAPI read
// Disk: ATAPI write
// Disk: ATAPI error
#define ADI_SSL_DCB_NUM_SERVERS (2)
// number of DCB servers
// one for LCD and one for disk
#define ADI_SSL_DMA_NUM_CHANNELS (3)
// number of DMA channels