CHG: Xoring in the value allows for the ticks timers to co-exist. Or that is the idea.

This commit is contained in:
iceman1001 2016-10-19 21:23:03 +02:00
commit c3fc86d9af
2 changed files with 6 additions and 6 deletions

View file

@ -126,7 +126,7 @@ void FpgaSetupSsc(void) {
GPIO_SSC_CLK;
AT91C_BASE_PIOA->PIO_PDR = GPIO_SSC_DOUT;
AT91C_BASE_PMC->PMC_PCER = (1 << AT91C_ID_SSC);
AT91C_BASE_PMC->PMC_PCER |= (1 << AT91C_ID_SSC);
// Now set up the SSC proper, starting from a known state.
AT91C_BASE_SSC->SSC_CR = AT91C_SSC_SWRST;