/* Sets the prescaler value of the contrast control PWM.  */
void LCD_SetContrastPrescaler(unsigned int prescaler)
/* Sets the prescaler value of the contrast control PWM.  */
void LCD_SetContrastPrescaler(unsigned int prescaler)
{
    ASSERT((prescaler & ~AT91C_LCDC_PS) == 0,
           "LCD_SetContrastPrescaler: Wrong prescaler value\n\r");
    AT91C_BASE_LCDC->LCDC_CTRSTCON &= ~AT91C_LCDC_PS;
    AT91C_BASE_LCDC->LCDC_CTRSTCON |= prescaler;
}