/* Disables the LCD controller, after waiting for the specified number of frames.  */
void LCD_Disable(unsigned int frames)
/* Disables the LCD controller, after waiting for the specified number of frames.  */
void LCD_Disable(unsigned int frames)
{
    ASSERT((frames & 0xFFFFFF80) == 0,
           "LCD_Disable: Wrong frames value.\n\r");
    AT91C_BASE_LCDC->LCDC_PWRCON = frames << 1;
}