MT29F driver: first implementation of read/write functions.
[bertos.git] / bertos / drv / mt29f.h
index 0c3ee6b7b12e4b4eea476f698089e435fb7ad897..c7669232f7065a4aa18502523b95d428a7f8d439 100644 (file)
 #include <cpu/attr.h>
 
 
+/**
+ * \name Error codes
+ * \{
+ */
+#define MT29F_ERR_ERASE    BV(1)   ///< Error erasing a block
+#define MT29F_ERR_WRITE    BV(2)   ///< Error writing a page
+/** \} */
+
 struct Mt29fHardware;
 
 /**
@@ -99,7 +107,7 @@ INLINE Mt29f *FLASH_CAST(KBlock *fls)
        return (Mt29f *)fls;
 }
 
-void mt29f_hw_init(Mt29f *fls, int flags);
-void mt29f_hw_initUnbuffered(Mt29f *fls, int flags);
+void mt29f_hw_init(Mt29f *fls);
+void mt29f_hw_initUnbuffered(Mt29f *fls);
 
 #endif /* DRV_MT29F_H */