projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MT29F driver: first implementation of read/write functions.
[bertos.git]
/
bertos
/
drv
/
mt29f.h
diff --git
a/bertos/drv/mt29f.h
b/bertos/drv/mt29f.h
index 0c3ee6b7b12e4b4eea476f698089e435fb7ad897..c7669232f7065a4aa18502523b95d428a7f8d439 100644
(file)
--- a/
bertos/drv/mt29f.h
+++ b/
bertos/drv/mt29f.h
@@
-74,6
+74,14
@@
#include <cpu/attr.h>
#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;
/**
struct Mt29fHardware;
/**
@@
-99,7
+107,7
@@
INLINE Mt29f *FLASH_CAST(KBlock *fls)
return (Mt29f *)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 */
#endif /* DRV_MT29F_H */