FIX: Accourding to errata, a SPI reset should be executed twice.
This commit is contained in:
@@ -1169,6 +1169,8 @@ void __attribute__((noreturn)) AppMain(void) {
|
|||||||
|
|
||||||
// Reset SPI
|
// Reset SPI
|
||||||
AT91C_BASE_SPI->SPI_CR = AT91C_SPI_SWRST;
|
AT91C_BASE_SPI->SPI_CR = AT91C_SPI_SWRST;
|
||||||
|
AT91C_BASE_SPI->SPI_CR = AT91C_SPI_SWRST; // errata says it needs twice to be correctly set.
|
||||||
|
|
||||||
// Reset SSC
|
// Reset SSC
|
||||||
AT91C_BASE_SSC->SSC_CR = AT91C_SSC_SWRST;
|
AT91C_BASE_SSC->SSC_CR = AT91C_SSC_SWRST;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user