浏览代码

Supply spi interface in at45.c

Peter Pearse 17 年之前
父节点
当前提交
e54b970173
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      drivers/at45.c

+ 5 - 0
drivers/at45.c

@@ -24,6 +24,11 @@
 #ifdef CONFIG_HAS_DATAFLASH
 #ifdef CONFIG_HAS_DATAFLASH
 #include <dataflash.h>
 #include <dataflash.h>
 
 
+/*
+ * spi.c API
+ */
+extern unsigned int	AT91F_SpiWrite (AT91PS_DataflashDesc pDesc);
+extern void 		AT91F_SpiEnable(int cs);
 
 
 #define AT91C_TIMEOUT_WRDY			200000
 #define AT91C_TIMEOUT_WRDY			200000