OpenOCD
ocl.c File Reference
Include dependency graph for ocl.c:

Go to the source code of this file.

Data Structures

struct  ocl_priv
 

Functions

 FLASH_BANK_COMMAND_HANDLER (ocl_flash_bank_command)
 
static int ocl_auto_probe (struct flash_bank *bank)
 
static int ocl_erase (struct flash_bank *bank, unsigned int first, unsigned int last)
 
static int ocl_probe (struct flash_bank *bank)
 
static int ocl_write (struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count)
 

Variables

const struct flash_driver ocl_flash
 

Function Documentation

◆ FLASH_BANK_COMMAND_HANDLER()

FLASH_BANK_COMMAND_HANDLER ( ocl_flash_bank_command  )

◆ ocl_auto_probe()

static int ocl_auto_probe ( struct flash_bank bank)
static

Definition at line 296 of file ocl.c.

References bank, ocl_priv::bufalign, ocl_priv::buflen, ERROR_FLASH_BANK_NOT_PROBED, and ERROR_OK.

◆ ocl_erase()

◆ ocl_probe()

◆ ocl_write()

Variable Documentation

◆ ocl_flash

const struct flash_driver ocl_flash
Initial value:
= {
.name = "ocl",
.flash_bank_command = ocl_flash_bank_command,
.erase = ocl_erase,
.write = ocl_write,
.probe = ocl_probe,
.erase_check = default_flash_blank_check,
.auto_probe = ocl_auto_probe,
.free_driver_priv = default_flash_free_driver_priv,
}
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.
static int ocl_probe(struct flash_bank *bank)
Definition: ocl.c:194
static int ocl_auto_probe(struct flash_bank *bank)
Definition: ocl.c:296
static int ocl_erase(struct flash_bank *bank, unsigned int first, unsigned int last)
Definition: ocl.c:43
static int ocl_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count)
Definition: ocl.c:94

Definition at line 296 of file ocl.c.