URL
https://opencores.org/ocsvn/openarty/openarty/trunk
Subversion Repositories openarty
[/] [openarty/] [trunk/] [sw/] [host/] [flashdrvr.h] - Rev 15
Go to most recent revision | Compare with Previous | Blame | View Log
// // // Filename: flashdrvr.h // // Project: FPGA library development (Basys3 development board) // // Purpose: Flash driver. Encapsulate writing to the flash device. // // Creator: Dan Gisselquist // Gisselquist Tecnology, LLC // // Copyright: 2015 // // #ifndef FLASHDRVR_H #define FLASHDRVR_H #include "regdefs.h" class FLASHDRVR { private: DEVBUS *m_fpga; void flwait(void); public: FLASHDRVR(DEVBUS *fpga) : m_fpga(fpga) {} bool erase_sector(const unsigned sector, const bool verify_erase=true); bool write_page(const unsigned addr, const unsigned len, const unsigned *data, const bool verify_write=true); bool write(const unsigned addr, const unsigned len, const unsigned *data, const bool verify=false); }; #endif
Go to most recent revision | Compare with Previous | Blame | View Log