/* Adjusts the frame frequency. Frequency = FsCLK / (prescaler * divider . NCOM)  */
void SLCDC_SetFrameFreq(unsigned int prescalerValue, unsigned int dividerValue)
/* Adjusts the frame frequency. Frequency = FsCLK / (prescaler * divider . NCOM)  */
void SLCDC_SetFrameFreq(unsigned int prescalerValue, unsigned int dividerValue)
{
    SANITY_CHECK((prescalerValue & ~AT91C_SLCDC_PRESC) == 0);
    SANITY_CHECK((dividerValue & (~(0x07 << 8))) == 0);
    AT91C_BASE_SLCDC->SLCDC_FRR = prescalerValue | dividerValue;
}