mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
SAMA5 NAND: Fix some race conditions in checking status bits
This commit is contained in:
+153
-139
File diff suppressed because it is too large
Load Diff
@@ -286,10 +286,12 @@ struct sam_nand_s
|
||||
/* Dynamic state */
|
||||
|
||||
#ifdef CONFIG_SAMA5_NAND_HSMCINTERRUPTS
|
||||
volatile bool cmddone; /* True: NFC command has completed */
|
||||
volatile bool xfrdone; /* True: Transfer has completed */
|
||||
volatile bool rbedge; /* True: Ready/busy edge detected */
|
||||
volatile bool cmddone; /* True: NFC command has completed (latching) */
|
||||
volatile bool xfrdone; /* True: Transfer has completed (latching) */
|
||||
sem_t waitsem; /* Used to wait for one of the above states */
|
||||
#else
|
||||
bool cmddone; /* True: NFC command has completed (latching) */
|
||||
bool xfrdone; /* True: Transfer has completed (latching) */
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SAMA5_HAVE_PMECC
|
||||
|
||||
Reference in New Issue
Block a user