X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fmt29f.h;h=c7669232f7065a4aa18502523b95d428a7f8d439;hb=f577109a57297270df091cef9c2565a74d0a4b29;hp=0c3ee6b7b12e4b4eea476f698089e435fb7ad897;hpb=734abc0f8ed652abddddedee6acf515954a5b13c;p=bertos.git diff --git a/bertos/drv/mt29f.h b/bertos/drv/mt29f.h index 0c3ee6b7..c7669232 100644 --- a/bertos/drv/mt29f.h +++ b/bertos/drv/mt29f.h @@ -74,6 +74,14 @@ #include +/** + * \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 */