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

Go to the source code of this file.

Data Structures

struct  cc3220sf_bank
 

Macros

#define FLASH_TIMEOUT   5000
 

Functions

static int cc3220sf_auto_probe (struct flash_bank *bank)
 
static int cc3220sf_erase (struct flash_bank *bank, unsigned int first, unsigned int last)
 
static int cc3220sf_info (struct flash_bank *bank, struct command_invocation *cmd)
 
static int cc3220sf_mass_erase (struct flash_bank *bank)
 
static int cc3220sf_probe (struct flash_bank *bank)
 
static int cc3220sf_write (struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count)
 
 FLASH_BANK_COMMAND_HANDLER (cc3220sf_flash_bank_command)
 

Variables

static const uint8_t cc3220sf_algo []
 
const struct flash_driver cc3220sf_flash
 

Macro Definition Documentation

◆ FLASH_TIMEOUT

#define FLASH_TIMEOUT   5000

Definition at line 18 of file cc3220sf.c.

Function Documentation

◆ cc3220sf_auto_probe()

static int cc3220sf_auto_probe ( struct flash_bank bank)
static

Definition at line 463 of file cc3220sf.c.

References bank, cc3220sf_probe(), ERROR_OK, and cc3220sf_bank::probed.

◆ cc3220sf_erase()

◆ cc3220sf_info()

static int cc3220sf_info ( struct flash_bank bank,
struct command_invocation cmd 
)
static

Definition at line 475 of file cc3220sf.c.

◆ cc3220sf_mass_erase()

◆ cc3220sf_probe()

static int cc3220sf_probe ( struct flash_bank bank)
static

◆ cc3220sf_write()

◆ FLASH_BANK_COMMAND_HANDLER()

FLASH_BANK_COMMAND_HANDLER ( cc3220sf_flash_bank_command  )

Variable Documentation

◆ cc3220sf_algo

const uint8_t cc3220sf_algo[]
static
Initial value:
= {
}

Definition at line 26 of file cc3220sf.c.

Referenced by cc3220sf_write().

◆ cc3220sf_flash

const struct flash_driver cc3220sf_flash
Initial value:
= {
.name = "cc3220sf",
.flash_bank_command = cc3220sf_flash_bank_command,
.erase = cc3220sf_erase,
.write = cc3220sf_write,
.probe = cc3220sf_probe,
.auto_probe = cc3220sf_auto_probe,
.erase_check = default_flash_blank_check,
.info = cc3220sf_info,
.free_driver_priv = default_flash_free_driver_priv,
}
static int cc3220sf_erase(struct flash_bank *bank, unsigned int first, unsigned int last)
Definition: cc3220sf.c:104
static int cc3220sf_auto_probe(struct flash_bank *bank)
Definition: cc3220sf.c:463
static int cc3220sf_probe(struct flash_bank *bank)
Definition: cc3220sf.c:424
static int cc3220sf_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count)
Definition: cc3220sf.c:172
static int cc3220sf_info(struct flash_bank *bank, struct command_invocation *cmd)
Definition: cc3220sf.c:475
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 475 of file cc3220sf.c.