/* Sets the type of display used with the LCD controller.  */
void LCD_SetDisplayType(unsigned int displayType)
/* Sets the type of display used with the LCD controller.  */
void LCD_SetDisplayType(unsigned int displayType)
{
    unsigned int value;
    ASSERT((displayType & ~AT91C_LCDC_DISTYPE) == 0,
           "LCD_SetDisplayType: Wrong display type value.\n\r");
    value = AT91C_BASE_LCDC->LCDC_LCDCON2;
    value &= ~AT91C_LCDC_DISTYPE;
    value |= displayType;
    AT91C_BASE_LCDC->LCDC_LCDCON2 = value;
}