FIX: Accourding to errata, a SPI reset should be executed twice.
This commit is contained in:
1 parent
b0d3362eef
commit
35bdf6a58d
1 file changed
+2
@@ -1169,6 +1169,8 @@ void __attribute__((noreturn)) AppMain(void) {
|
||||
|
||||
// Reset SPI
|
||||
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
|
||||
AT91C_BASE_SSC->SSC_CR = AT91C_SSC_SWRST;
|
||||
|
||||
|
||||
Reference in new issue
Block a user