/* Sets the scan mode used by the LCD (either single scan or double-scan).  */
void LCD_SetScanMode(unsigned int scanMode)
/* Sets the scan mode used by the LCD (either single scan or double-scan).  */
void LCD_SetScanMode(unsigned int scanMode)
{
    unsigned int value;
    ASSERT((scanMode & ~AT91C_LCDC_SCANMOD) == 0,
           "LCD_SetScanMode: Wrong scan mode value.\n\r");
    value = AT91C_BASE_LCDC->LCDC_LCDCON2;
    value &= ~AT91C_LCDC_SCANMOD;
    value |= scanMode;
    AT91C_BASE_LCDC->LCDC_LCDCON2 = value;
}