projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor handle_flash_bank_command
[fw/openocd]
/
src
/
flash
/
mflash.h
diff --git
a/src/flash/mflash.h
b/src/flash/mflash.h
index da0c056e0ecf767fd288becb3884a571cfb76acf..358d25364187b05bd2c32872b74104c569427fa2 100644
(file)
--- a/
src/flash/mflash.h
+++ b/
src/flash/mflash.h
@@
-20,7
+20,7
@@
#ifndef _MFLASH_H
#define _MFLASH_H
#ifndef _MFLASH_H
#define _MFLASH_H
-#include "target.h"
+struct command_context;
typedef unsigned long mg_io_uint32;
typedef unsigned short mg_io_uint16;
typedef unsigned long mg_io_uint32;
typedef unsigned short mg_io_uint16;
@@
-130,19
+130,19
@@
struct mg_drv_info {
uint32_t tot_sects;
};
uint32_t tot_sects;
};
-typedef struct mflash_bank_s
+struct mflash_bank
{
uint32_t base;
struct mflash_gpio_num rst_pin;
struct mflash_gpio_drv *gpio_drv;
{
uint32_t base;
struct mflash_gpio_num rst_pin;
struct mflash_gpio_drv *gpio_drv;
-
target_
t *target;
+
struct targe
t *target;
struct mg_drv_info *drv_info;
struct mg_drv_info *drv_info;
-}
mflash_bank_t
;
+};
-int mflash_register_commands(struct command_context
_s
*cmd_ctx);
-int mflash_init_drivers(struct command_context
_s
*cmd_ctx);
+int mflash_register_commands(struct command_context *cmd_ctx);
+int mflash_init_drivers(struct command_context *cmd_ctx);
#define MG_MFLASH_SECTOR_SIZE (0x200) /* 512Bytes = 2^9 */
#define MG_MFLASH_SECTOR_SIZE_MASK (0x200-1)
#define MG_MFLASH_SECTOR_SIZE (0x200) /* 512Bytes = 2^9 */
#define MG_MFLASH_SECTOR_SIZE_MASK (0x200-1)