summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Pearse <peter.pearse@arm.com>2007-08-14 10:46:32 +0100
committerPeter Pearse <peter.pearse@arm.com>2007-08-14 10:46:32 +0100
commit0c42f36f15074bd9808a7dbd7ef611fad9bf537c (patch)
tree35d833d47fac2492759de3848526c26fab65887c
parent65d7ada64557e76094b4fd3bad30a0f18f5fb2b2 (diff)
Replace lost end of at45.c.
-rwxr-xr-x[-rw-r--r--]drivers/at45.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/at45.c b/drivers/at45.c
index 35c9ecce45..4c12ca7a31 100644..100755
--- a/drivers/at45.c
+++ b/drivers/at45.c
@@ -547,4 +547,18 @@ int AT91F_DataFlashRead(
return DATAFLASH_OK;
}
+/*---------------------------------------------------------------------------*/
+/* Function Name : AT91F_DataflashProbe */
+/* Object : */
+/* Input Parameters : */
+/* Return value : Dataflash status register */
+/*---------------------------------------------------------------------------*/
+int AT91F_DataflashProbe(int cs, AT91PS_DataflashDesc pDesc) {
+ AT91F_SpiEnable(cs);
+ AT91F_DataFlashGetStatus(pDesc);
+ return((pDesc->command[1] == 0xFF)? 0: pDesc->command[1] & 0x3C);
+}
+
+#endif
+