X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Fdataflash.h;h=b739883ca3cf984ec63ca7c815b25142fffc9212;hb=b8b3383870fba0c7a44ffc57b7f172f573fc5139;hp=f9e4965a4490624614f4c05a1392f13efa884ad5;hpb=f874a0531b8f10767e88b6f5493c75246a1bd680;p=bertos.git diff --git a/drv/dataflash.h b/drv/dataflash.h index f9e4965a..b739883c 100644 --- a/drv/dataflash.h +++ b/drv/dataflash.h @@ -52,6 +52,7 @@ * Type definition for dflash memory. */ typedef uint32_t dataflashAddr_t; +typedef uint32_t dataflashOffset_t; typedef uint32_t dataflashSize_t; #define RESET_PULSE_WIDTH 10 // Width of reset pulse in usec. @@ -198,9 +199,10 @@ typedef enum { DFO_READ_STATUS = 0xD7, ///< Status register read. DFO_ID_DEV = 0x9F ///< Manufacturer and device ID read. /* \}*/ -} DFlashOpcode; +} DataFlashOpcode; -void dataflash_init(struct _KFile *fd) +void dataflash_init(struct _KFile *fd); +void hal_dflash_test(void); #endif /* DRV_DATAFLASH_H */