I would like to know the meaning of following sample source code.
ti\AM335X_StarterWare_02_00_01_01\examples\evmAM335x\raster\raster.c
Line 109 :
/* Configuring the base ceiling */
RasterDMAFBConfig(SOC_LCDC_0_REGS,
(unsigned int)image1,
(unsigned int)image1 + sizeof(image1) - 2,
0);
RasterDMAFBConfig(SOC_LCDC_0_REGS,
(unsigned int)image1,
(unsigned int)image1 + sizeof(image1) - 2,
1);
Why does this sample subtract 2 from an actual ceiling address in the LCDDMA_FBx_CEILING register?
In my guess, the LCDDMA_FBx_CEILING register doesn't care of bit 0 and bit1, however it may change a meaning whether bit2 is 0 or 1.
Please give me an answer of this.