X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Fdflash.h;h=50fe2d0e69c7767147ae01ad9f9624261e4a5b06;hb=96bda3a8889719af5e4475aaf853487f2e99e01f;hp=7d06adec0a8abf5d6776918ed3e26ee3acc28c82;hpb=8b2138872120fa65294769202059dd8198da8504;p=bertos.git diff --git a/drv/dflash.h b/drv/dflash.h index 7d06adec..50fe2d0e 100644 --- a/drv/dflash.h +++ b/drv/dflash.h @@ -43,6 +43,8 @@ #include +#include + #include #include @@ -201,17 +203,7 @@ typedef enum { /* \}*/ } DFlashOpcode; -bool dflash_init(void); -void dflash_reset(void); -uint8_t dflash_stat(void); - -uint8_t dflash_cmd(dflashAddr_t page_addr, dflashAddr_t byte_addr, DFlashOpcode opcode); - -uint8_t dflash_read_byte(dflashAddr_t page_addr, dflashAddr_t byte_addr, DFlashOpcode opcode); -void dflash_read_block(dflashAddr_t page_addr, dflashAddr_t byte_addr, DFlashOpcode opcode, uint8_t *block, dflashSize_t len); - -void dflash_write_byte(dflashAddr_t byte_addr, DFlashOpcode opcode, uint8_t data); -void dflash_write_block(dflashAddr_t byte_addr, DFlashOpcode opcode, uint8_t *block, dflashSize_t len); +void dflash_init(struct _KFile *fd) #endif /* DFLASH_H */