Go to the source code of this file.
◆ faux_erase()
static int faux_erase |
( |
struct flash_bank * |
bank, |
|
|
unsigned int |
first, |
|
|
unsigned int |
last |
|
) |
| |
|
static |
◆ faux_info()
◆ faux_probe()
◆ faux_write()
static int faux_write |
( |
struct flash_bank * |
bank, |
|
|
const uint8_t * |
buffer, |
|
|
uint32_t |
offset, |
|
|
uint32_t |
count |
|
) |
| |
|
static |
◆ FLASH_BANK_COMMAND_HANDLER()
FLASH_BANK_COMMAND_HANDLER |
( |
faux_flash_bank_command |
| ) |
|
Definition at line 27 of file faux.c.
References bank, CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, get_target(), info, LOG_ERROR, offset, and sector_size.
◆ faux_command_handlers
Initial value:= {
{
.name = "faux",
.help = "faux flash command group",
},
}
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
const struct command_registration hello_command_handlers[]
Export the registration for the hello command group, so it can be embedded in example drivers.
const char * usage
a string listing the options and arguments, required or optional
Definition at line 90 of file faux.c.
◆ faux_flash
Initial value:= {
.name = "faux",
.flash_bank_command = faux_flash_bank_command,
}
static int faux_probe(struct flash_bank *bank)
static int faux_info(struct flash_bank *bank, struct command_invocation *cmd)
static int faux_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count)
static const struct command_registration faux_command_handlers[]
static int faux_erase(struct flash_bank *bank, unsigned int first, unsigned int last)
int default_flash_blank_check(struct flash_bank *bank)
Provides default erased-bank check handling.
int default_flash_read(struct flash_bank *bank, uint8_t *buffer, uint32_t offset, uint32_t count)
Provides default read implementation for flash memory.
void default_flash_free_driver_priv(struct flash_bank *bank)
Deallocates bank->driver_priv.
Definition at line 90 of file faux.c.
◆ sector_size
const int sector_size = 0x10000 |
|
static |