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

Go to the source code of this file.

Data Structures

struct  cc26xx_bank
 

Macros

#define FLASH_TIMEOUT   8000
 

Functions

static int cc26xx_auto_probe (struct flash_bank *bank)
 
static uint32_t cc26xx_device_type (uint32_t icepick_id, uint32_t user_id)
 
static int cc26xx_erase (struct flash_bank *bank, unsigned int first, unsigned int last)
 
static int cc26xx_info (struct flash_bank *bank, struct command_invocation *cmd)
 
static int cc26xx_init (struct flash_bank *bank)
 
static int cc26xx_mass_erase (struct flash_bank *bank)
 
static int cc26xx_probe (struct flash_bank *bank)
 
static int cc26xx_quit (struct flash_bank *bank)
 
static uint32_t cc26xx_sector_length (uint32_t icepick_id)
 
static int cc26xx_wait_algo_done (struct flash_bank *bank, uint32_t params_addr)
 
static int cc26xx_write (struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count)
 
 FLASH_BANK_COMMAND_HANDLER (cc26xx_flash_bank_command)
 

Variables

static const uint8_t cc26x0_algo []
 
static const uint8_t cc26x2_algo []
 
const struct flash_driver cc26xx_flash
 

Macro Definition Documentation

◆ FLASH_TIMEOUT

#define FLASH_TIMEOUT   8000

Definition at line 19 of file cc26xx.c.

Function Documentation

◆ cc26xx_auto_probe()

static int cc26xx_auto_probe ( struct flash_bank bank)
static

Definition at line 490 of file cc26xx.c.

References bank, cc26xx_probe(), ERROR_OK, and cc26xx_bank::probed.

Referenced by cc26xx_init().

◆ cc26xx_device_type()

static uint32_t cc26xx_device_type ( uint32_t  icepick_id,
uint32_t  user_id 
)
static

◆ cc26xx_erase()

◆ cc26xx_info()

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

Definition at line 502 of file cc26xx.c.

◆ cc26xx_init()

◆ cc26xx_mass_erase()

◆ cc26xx_probe()

◆ cc26xx_quit()

static int cc26xx_quit ( struct flash_bank bank)
static

◆ cc26xx_sector_length()

static uint32_t cc26xx_sector_length ( uint32_t  icepick_id)
static

◆ cc26xx_wait_algo_done()

static int cc26xx_wait_algo_done ( struct flash_bank bank,
uint32_t  params_addr 
)
static

◆ cc26xx_write()

◆ FLASH_BANK_COMMAND_HANDLER()

FLASH_BANK_COMMAND_HANDLER ( cc26xx_flash_bank_command  )

Variable Documentation

◆ cc26x0_algo

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

Definition at line 38 of file cc26xx.c.

Referenced by cc26xx_probe().

◆ cc26x2_algo

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

Definition at line 43 of file cc26xx.c.

Referenced by cc26xx_probe().

◆ cc26xx_flash

const struct flash_driver cc26xx_flash
Initial value:
= {
.name = "cc26xx",
.flash_bank_command = cc26xx_flash_bank_command,
.erase = cc26xx_erase,
.write = cc26xx_write,
.probe = cc26xx_probe,
.auto_probe = cc26xx_auto_probe,
.erase_check = default_flash_blank_check,
.info = cc26xx_info,
.free_driver_priv = default_flash_free_driver_priv,
}
static int cc26xx_probe(struct flash_bank *bank)
Definition: cc26xx.c:401
static int cc26xx_info(struct flash_bank *bank, struct command_invocation *cmd)
Definition: cc26xx.c:502
static int cc26xx_auto_probe(struct flash_bank *bank)
Definition: cc26xx.c:490
static int cc26xx_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count)
Definition: cc26xx.c:317
static int cc26xx_erase(struct flash_bank *bank, unsigned int first, unsigned int last)
Definition: cc26xx.c:268
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 502 of file cc26xx.c.