X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fdataflash.h;h=8fd3a4f7f8a642abf08b3898c527b541ded61c0a;hb=a2fc2366ad564f11e705703ed1f42b7dc499a47c;hp=69f3217b233547599b6263a860b16d0e5728a5a1;hpb=77f7560887c694977dc03e9c547b1b119e92c70c;p=bertos.git diff --git a/bertos/drv/dataflash.h b/bertos/drv/dataflash.h index 69f3217b..8fd3a4f7 100644 --- a/bertos/drv/dataflash.h +++ b/bertos/drv/dataflash.h @@ -30,10 +30,10 @@ * * --> * - * \brief Function library for AT45DB081D Flash memory. + * \brief Function library for dataflash AT45DB family (interface). * + * \version $Id: dataflash.h 21658 2008-06-05 16:42:54Z asterix $ * - * \version $Id: dataflash.h 20677 2008-02-19 14:29:52Z batt $ * \author Daniele Basile */ @@ -41,9 +41,10 @@ #ifndef DRV_DATAFLASH_H #define DRV_DATAFLASH_H -#include #include +#include + /** * Type definitions for dflash memory. * \{ @@ -69,9 +70,10 @@ typedef void (dataflash_setCS_t)(bool); */ typedef enum DataflashType { - DFT_AT45DB041B, + DFT_AT45DB041B = 0, DFT_AT45DB081D, DFT_AT45DB161D, + DFT_AT45DB642D, DFT_CNT } DataflashType; @@ -181,4 +183,15 @@ typedef struct DataflashInfo bool dataflash_init(KFileDataflash *fd, KFile *ch, DataflashType type, dataflash_setCS_t *setCS, dataflash_setReset_t *setReset); +/** + * To test data falsh drive you could use + * this functions. To use these functions make sure to include in your make file the + * drv/datafalsh_test.c source. + * + * (see drv/datafalsh_test.c for more detail) + */ +int dataflash_testSetUp(void); +int dataflash_testRun(void); +int dataflash_testTearDown(void); + #endif /* DRV_DATAFLASH_H */