mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-16 02:03:00 -07:00
refactor flashing code into flash.h, so we can share it between platforms
This commit is contained in:
parent
204c85958c
commit
6e4d4ee609
5 changed files with 357 additions and 623 deletions
15
client/flash.h
Normal file
15
client/flash.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
struct partition {
|
||||
int start;
|
||||
int end;
|
||||
int precious;
|
||||
const char *name;
|
||||
};
|
||||
|
||||
void FlushPrevious(int translate);
|
||||
void GotByte(uint32_t where, uint8_t which, int start_addr, int end_addr, int translate);
|
||||
unsigned int EnterFlashState(void);
|
||||
int PrepareFlash(struct partition *p, const char *filename, unsigned int state);
|
||||
int find_next_area(const char *str, int *offset, int *length);
|
||||
|
||||
#define PHYSICAL_FLASH_START 0x100000
|
||||
void do_flash(char **argv);
|
Loading…
Add table
Add a link
Reference in a new issue