/* Sets the size in pixels of a frame (height * width * bpp).  */
void LCD_SetFrameSize(unsigned int frameSize)
/* Sets the size in pixels of a frame (height * width * bpp).  */
void LCD_SetFrameSize(unsigned int frameSize)
{
    ASSERT((frameSize & 0xFF800000) == 0,
           "LCD_SetFrameSize: Wrong frameSize value.\n\r");
    AT91C_BASE_LCDC->LCDC_FRMCFG = frameSize | (AT91C_BASE_LCDC->LCDC_FRMCFG & 0xFF000000);
}