Skip to content
Snippets Groups Projects
Commit 0c42f36f authored by Peter Pearse's avatar Peter Pearse
Browse files

Replace lost end of at45.c.

parent 65d7ada6
No related branches found
No related tags found
No related merge requests found
drivers/at45.c 100644 → 100755
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment