mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 18:57:12 +08:00
FIX: Accourding to errata, a SPI reset should be executed twice.
This commit is contained in:
parent
b0d3362eef
commit
35bdf6a58d
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue