![]() |
Prusa Slicer 2.6.0
|
#include "ac_cfg.h"#include <math.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include <limits.h>#include <unistd.h>#include <time.h>#include <sys/time.h>#include "avrdude.h"#include "libavrdude.h"#include "stk500_private.h"#include "stk500v2.h"#include "stk500v2_private.h"#include "usbdevs.h"#include "jtagmkII.h"#include "jtagmkII_private.h"#include "jtag3.h"#include "jtag3_private.h"
Include dependency graph for stk500v2.c:Go to the source code of this file.
Classes | |
| struct | carddata |
| struct | jtagispentry |
Macros | |
| #define | JTAGMKII_PRIVATE_EXPORTED |
| #define | JTAG3_PRIVATE_EXPORTED |
| #define | STK500V2_XTAL 7372800U |
| #define | SERIAL_TIMEOUT 2 |
| #define | RETRIES 0 |
| #define | DEBUG(...) |
| #define | DEBUGRECV(...) |
| #define | PDATA(pgm) ((struct pdata *)(pgm->cookie)) |
| #define | SZ_READ_FLASH_EE USHRT_MAX |
| #define | SZ_SPI_MULTI (USHRT_MAX - 1) |
Enumerations | |
| enum | hvmode { PPMODE , HVSPMODE } |
Functions | |
| static int | stk500v2_getparm (PROGRAMMER *pgm, unsigned char parm, unsigned char *value) |
| static int | stk500v2_setparm (PROGRAMMER *pgm, unsigned char parm, unsigned char value) |
| static int | stk500v2_getparm2 (PROGRAMMER *pgm, unsigned char parm, unsigned int *value) |
| static int | stk500v2_setparm2 (PROGRAMMER *pgm, unsigned char parm, unsigned int value) |
| static int | stk500v2_setparm_real (PROGRAMMER *pgm, unsigned char parm, unsigned char value) |
| static void | stk500v2_print_parms1 (PROGRAMMER *pgm, const char *p) |
| static int | stk500v2_paged_load (PROGRAMMER *pgm, AVRPART *p, AVRMEM *m, unsigned int page_size, unsigned int addr, unsigned int n_bytes) |
| static int | stk500v2_paged_write (PROGRAMMER *pgm, AVRPART *p, AVRMEM *m, unsigned int page_size, unsigned int addr, unsigned int n_bytes) |
| static unsigned int | stk500v2_mode_for_pagesize (unsigned int pagesize) |
| static double | stk500v2_sck_to_us (PROGRAMMER *pgm, unsigned char dur) |
| static int | stk500v2_set_sck_period_mk2 (PROGRAMMER *pgm, double v) |
| static int | stk600_set_sck_period (PROGRAMMER *pgm, double v) |
| static void | stk600_setup_xprog (PROGRAMMER *pgm) |
| static void | stk600_setup_isp (PROGRAMMER *pgm) |
| static int | stk600_xprog_program_enable (PROGRAMMER *pgm, AVRPART *p) |
| void | stk500v2_setup (PROGRAMMER *pgm) |
| static void | stk500v2_jtagmkII_setup (PROGRAMMER *pgm) |
| static void | stk500v2_jtag3_setup (PROGRAMMER *pgm) |
| void | stk500v2_teardown (PROGRAMMER *pgm) |
| static void | stk500v2_jtagmkII_teardown (PROGRAMMER *pgm) |
| static void | stk500v2_jtag3_teardown (PROGRAMMER *pgm) |
| static int | stk500v2_send_mk2 (PROGRAMMER *pgm, unsigned char *data, size_t len) |
| static int | stk500v2_jtagmkII_send (PROGRAMMER *pgm, unsigned char *data, size_t len) |
| static int | stk500v2_jtag3_send (PROGRAMMER *pgm, unsigned char *data, size_t len) |
| static int | stk500v2_send (PROGRAMMER *pgm, unsigned char *data, size_t len) |
| int | stk500v2_drain (PROGRAMMER *pgm, int display) |
| static int | stk500v2_recv_mk2 (PROGRAMMER *pgm, unsigned char *msg, size_t maxsize) |
| static int | stk500v2_jtagmkII_recv (PROGRAMMER *pgm, unsigned char *msg, size_t maxsize) |
| static int | stk500v2_jtag3_recv (PROGRAMMER *pgm, unsigned char *msg, size_t maxsize) |
| static int | stk500v2_recv (PROGRAMMER *pgm, unsigned char *msg, size_t maxsize) |
| int | stk500v2_getsync (PROGRAMMER *pgm) |
| static int | stk500v2_command (PROGRAMMER *pgm, unsigned char *buf, size_t len, size_t maxlen) |
| static int | stk500v2_cmd (PROGRAMMER *pgm, const unsigned char *cmd, unsigned char *res) |
| static int | stk500v2_jtag3_cmd (PROGRAMMER *pgm, const unsigned char *cmd, unsigned char *res) |
| static int | stk500v2_chip_erase (PROGRAMMER *pgm, AVRPART *p) |
| static int | stk500hv_chip_erase (PROGRAMMER *pgm, AVRPART *p, enum hvmode mode) |
| static int | stk500pp_chip_erase (PROGRAMMER *pgm, AVRPART *p) |
| static int | stk500hvsp_chip_erase (PROGRAMMER *pgm, AVRPART *p) |
| static void | stk500v2_translate_conn_status (unsigned char status, char *msg) |
| static int | stk500v2_program_enable (PROGRAMMER *pgm, AVRPART *p) |
| static int | stk500pp_program_enable (PROGRAMMER *pgm, AVRPART *p) |
| static int | stk500hvsp_program_enable (PROGRAMMER *pgm, AVRPART *p) |
| static int | stk500v2_initialize (PROGRAMMER *pgm, AVRPART *p) |
| static int | stk500v2_jtag3_initialize (PROGRAMMER *pgm, AVRPART *p) |
| static int | stk500hv_initialize (PROGRAMMER *pgm, AVRPART *p, enum hvmode mode) |
| static int | stk500pp_initialize (PROGRAMMER *pgm, AVRPART *p) |
| static int | stk500hvsp_initialize (PROGRAMMER *pgm, AVRPART *p) |
| static void | stk500v2_jtag3_disable (PROGRAMMER *pgm) |
| static void | stk500v2_disable (PROGRAMMER *pgm) |
| static void | stk500hv_disable (PROGRAMMER *pgm, enum hvmode mode) |
| static void | stk500pp_disable (PROGRAMMER *pgm) |
| static void | stk500hvsp_disable (PROGRAMMER *pgm) |
| static void | stk500v2_enable (PROGRAMMER *pgm) |
| static int | stk500v2_open (PROGRAMMER *pgm, char *port) |
| static int | stk600_open (PROGRAMMER *pgm, char *port) |
| static void | stk500v2_close (PROGRAMMER *pgm) |
| static int | stk500v2_loadaddr (PROGRAMMER *pgm, unsigned int addr) |
| static int | stk500hv_read_byte (PROGRAMMER *pgm, AVRPART *p, AVRMEM *mem, unsigned long addr, unsigned char *value, enum hvmode mode) |
| static int | stk500pp_read_byte (PROGRAMMER *pgm, AVRPART *p, AVRMEM *mem, unsigned long addr, unsigned char *value) |
| static int | stk500hvsp_read_byte (PROGRAMMER *pgm, AVRPART *p, AVRMEM *mem, unsigned long addr, unsigned char *value) |
| static int | stk500isp_read_byte (PROGRAMMER *pgm, AVRPART *p, AVRMEM *mem, unsigned long addr, unsigned char *value) |
| static int | stk500hv_write_byte (PROGRAMMER *pgm, AVRPART *p, AVRMEM *mem, unsigned long addr, unsigned char data, enum hvmode mode) |
| static int | stk500pp_write_byte (PROGRAMMER *pgm, AVRPART *p, AVRMEM *mem, unsigned long addr, unsigned char data) |
| static int | stk500hvsp_write_byte (PROGRAMMER *pgm, AVRPART *p, AVRMEM *mem, unsigned long addr, unsigned char data) |
| static int | stk500isp_write_byte (PROGRAMMER *pgm, AVRPART *p, AVRMEM *mem, unsigned long addr, unsigned char data) |
| static int | stk500hv_paged_write (PROGRAMMER *pgm, AVRPART *p, AVRMEM *m, unsigned int page_size, unsigned int addr, unsigned int n_bytes, enum hvmode mode) |
| static int | stk500pp_paged_write (PROGRAMMER *pgm, AVRPART *p, AVRMEM *m, unsigned int page_size, unsigned int addr, unsigned int n_bytes) |
| static int | stk500hvsp_paged_write (PROGRAMMER *pgm, AVRPART *p, AVRMEM *m, unsigned int page_size, unsigned int addr, unsigned int n_bytes) |
| static int | stk500hv_paged_load (PROGRAMMER *pgm, AVRPART *p, AVRMEM *m, unsigned int page_size, unsigned int addr, unsigned int n_bytes, enum hvmode mode) |
| static int | stk500pp_paged_load (PROGRAMMER *pgm, AVRPART *p, AVRMEM *m, unsigned int page_size, unsigned int addr, unsigned int n_bytes) |
| static int | stk500hvsp_paged_load (PROGRAMMER *pgm, AVRPART *p, AVRMEM *m, unsigned int page_size, unsigned int addr, unsigned int n_bytes) |
| static int | stk500v2_page_erase (PROGRAMMER *pgm, AVRPART *p, AVRMEM *m, unsigned int addr) |
| static int | stk500v2_set_vtarget (PROGRAMMER *pgm, double v) |
| static int | stk500v2_set_varef (PROGRAMMER *pgm, unsigned int chan, double v) |
| static int | stk500v2_set_fosc (PROGRAMMER *pgm, double v) |
| static int | stk500v2_set_sck_period (PROGRAMMER *pgm, double v) |
| static int | stk600_set_vtarget (PROGRAMMER *pgm, double v) |
| static int | stk600_set_varef (PROGRAMMER *pgm, unsigned int chan, double v) |
| static int | stk600_set_fosc (PROGRAMMER *pgm, double v) |
| static int | stk500v2_jtag3_set_sck_period (PROGRAMMER *pgm, double v) |
| static const char * | stk600_get_cardname (const struct carddata *table, size_t nele, int id) |
| static void | stk500v2_display (PROGRAMMER *pgm, const char *p) |
| static double | f_to_kHz_MHz (double f, const char **unit) |
| static void | stk500v2_print_parms (PROGRAMMER *pgm) |
| static int | stk500v2_perform_osccal (PROGRAMMER *pgm) |
| static int | stk500v2_jtagmkII_open (PROGRAMMER *pgm, char *port) |
| static void | stk500v2_jtagmkII_close (PROGRAMMER *pgm) |
| static void | stk500v2_jtag3_close (PROGRAMMER *pgm) |
| static int | stk500v2_dragon_isp_open (PROGRAMMER *pgm, char *port) |
| static int | stk500v2_dragon_hv_open (PROGRAMMER *pgm, char *port) |
| static int | stk500v2_jtag3_open (PROGRAMMER *pgm, char *port) |
| static int | stk600_xprog_command (PROGRAMMER *pgm, unsigned char *b, unsigned int cmdsize, unsigned int responsesize) |
| static unsigned char | stk600_xprog_memtype (PROGRAMMER *pgm, unsigned long addr) |
| static void | stk600_xprog_disable (PROGRAMMER *pgm) |
| static int | stk600_xprog_write_byte (PROGRAMMER *pgm, AVRPART *p, AVRMEM *mem, unsigned long addr, unsigned char data) |
| static int | stk600_xprog_read_byte (PROGRAMMER *pgm, AVRPART *p, AVRMEM *mem, unsigned long addr, unsigned char *value) |
| static int | stk600_xprog_paged_load (PROGRAMMER *pgm, AVRPART *p, AVRMEM *mem, unsigned int page_size, unsigned int addr, unsigned int n_bytes) |
| static int | stk600_xprog_paged_write (PROGRAMMER *pgm, AVRPART *p, AVRMEM *mem, unsigned int page_size, unsigned int addr, unsigned int n_bytes) |
| static int | stk600_xprog_chip_erase (PROGRAMMER *pgm, AVRPART *p) |
| static int | stk600_xprog_page_erase (PROGRAMMER *pgm, AVRPART *p, AVRMEM *m, unsigned int addr) |
| void | stk500v2_initpgm (PROGRAMMER *pgm) |
| void | stk500pp_initpgm (PROGRAMMER *pgm) |
| void | stk500hvsp_initpgm (PROGRAMMER *pgm) |
| void | stk500v2_jtagmkII_initpgm (PROGRAMMER *pgm) |
| void | stk500v2_dragon_isp_initpgm (PROGRAMMER *pgm) |
| void | stk500v2_dragon_pp_initpgm (PROGRAMMER *pgm) |
| void | stk500v2_dragon_hvsp_initpgm (PROGRAMMER *pgm) |
| void | stk600_initpgm (PROGRAMMER *pgm) |
| void | stk600pp_initpgm (PROGRAMMER *pgm) |
| void | stk600hvsp_initpgm (PROGRAMMER *pgm) |
| void | stk500v2_jtag3_initpgm (PROGRAMMER *pgm) |
| void | stk500v2_set_upload_size (PROGRAMMER *pgm, int size) |
Variables | ||
| static const char * | pgmname [] | |
| static const struct carddata | routing_cards [] | |
| static const struct carddata | socket_cards [] | |
| struct { | ||
| unsigned int | state | |
| const char * | description | |
| } | connection_status [] | |
| static double | avrispmkIIfreqs [] | |
| const char | stk500v2_desc [] = "Atmel STK500 Version 2.x firmware" | |
| const char | stk500pp_desc [] = "Atmel STK500 V2 in parallel programming mode" | |
| const char | stk500hvsp_desc [] = "Atmel STK500 V2 in high-voltage serial programming mode" | |
| const char | stk500v2_jtagmkII_desc [] = "Atmel JTAG ICE mkII in ISP mode" | |
| const char | stk500v2_dragon_isp_desc [] = "Atmel AVR Dragon in ISP mode" | |
| const char | stk500v2_dragon_pp_desc [] = "Atmel AVR Dragon in PP mode" | |
| const char | stk500v2_dragon_hvsp_desc [] = "Atmel AVR Dragon in HVSP mode" | |
| const char | stk600_desc [] = "Atmel STK600" | |
| const char | stk600pp_desc [] = "Atmel STK600 in parallel programming mode" | |
| const char | stk600hvsp_desc [] = "Atmel STK600 in high-voltage serial programming mode" | |
| const char | stk500v2_jtag3_desc [] = "Atmel JTAGICE3 in ISP mode" | |
| struct carddata |
| Class Members | ||
|---|---|---|
| int | id | |
| const char * | name | |
| #define DEBUG | ( | ... | ) |
| #define DEBUGRECV | ( | ... | ) |
| #define JTAG3_PRIVATE_EXPORTED |
| #define JTAGMKII_PRIVATE_EXPORTED |
| #define RETRIES 0 |
| #define SERIAL_TIMEOUT 2 |
| #define STK500V2_XTAL 7372800U |
| #define SZ_READ_FLASH_EE USHRT_MAX |
| #define SZ_SPI_MULTI (USHRT_MAX - 1) |
| enum hvmode |
|
static |
Referenced by stk500v2_print_parms1().
Here is the caller graph for this function:
|
static |
References avrpart::chip_erase_delay, avrpart::chiperasepolltimeout, avrpart::chiperasepulsewidth, avrpart::chiperasetime, CMD_CHIP_ERASE_HVSP, CMD_CHIP_ERASE_PP, programmer_t::initialize, OFF, ON, pgm, programmer_t::pgm_led, PPMODE, stk500v2_command(), and usleep().
Referenced by stk500hvsp_chip_erase(), and stk500pp_chip_erase().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), CMD_LEAVE_PROGMODE_HVSP, CMD_LEAVE_PROGMODE_HVSP_STK600, CMD_LEAVE_PROGMODE_PP, free(), MSG_INFO, PDATA, pgm, PPMODE, progname, and stk500v2_command().
Referenced by stk500hvsp_disable(), and stk500pp_disable().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), CMD_SET_CONTROL_STACK, avrpart::controlstack, CTL_STACK_HVSP, CTL_STACK_PP, CTL_STACK_SIZE, avrpart::ctl_stack_type, avrpart::desc, avrmem::desc, free(), ldata(), lfirst(), lnext(), long, malloc(), avrpart::mem, MSG_INFO, avrmem::page_size, PDATA, pgm, PPMODE, progname, programmer_t::program_enable, and stk500v2_command().
Referenced by stk500hvsp_initialize(), and stk500pp_initialize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References AVR_OP_LOAD_EXT_ADDR, avrdude_message(), avrmem::buf, CMD_READ_EEPROM_HVSP, CMD_READ_EEPROM_PP, CMD_READ_FLASH_HVSP, CMD_READ_FLASH_PP, DEBUG, avrmem::desc, MSG_INFO, avrmem::op, pgm, PPMODE, progname, avrmem::readsize, stk500v2_command(), and stk500v2_loadaddr().
Referenced by stk500hvsp_paged_load(), and stk500pp_paged_load().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References AVR_OP_LOAD_EXT_ADDR, avrdude_message(), avrmem::buf, CMD_PROGRAM_EEPROM_HVSP, CMD_PROGRAM_EEPROM_PP, CMD_PROGRAM_FLASH_HVSP, CMD_PROGRAM_FLASH_PP, DEBUG, avrmem::delay, avrmem::desc, long, MSG_INFO, avrmem::op, PDATA, pgm, PPMODE, progname, stk500v2_command(), stk500v2_loadaddr(), and stk500v2_mode_for_pagesize().
Referenced by stk500hvsp_paged_write(), and stk500pp_paged_write().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References AVR_OP_LOAD_EXT_ADDR, avrdude_message(), CMD_READ_EEPROM_HVSP, CMD_READ_EEPROM_PP, CMD_READ_FLASH_HVSP, CMD_READ_FLASH_PP, CMD_READ_FUSE_HVSP, CMD_READ_FUSE_PP, CMD_READ_LOCK_HVSP, CMD_READ_LOCK_PP, CMD_READ_OSCCAL_HVSP, CMD_READ_OSCCAL_PP, CMD_READ_SIGNATURE_HVSP, CMD_READ_SIGNATURE_PP, avrmem::desc, MSG_INFO, MSG_NOTICE2, avrmem::op, avrmem::page_size, PDATA, pgm, PPMODE, progname, stk500v2_command(), and stk500v2_loadaddr().
Referenced by stk500hvsp_read_byte(), and stk500pp_read_byte().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References AVR_OP_LOAD_EXT_ADDR, avrdude_message(), CMD_PROGRAM_EEPROM_HVSP, CMD_PROGRAM_EEPROM_PP, CMD_PROGRAM_FLASH_HVSP, CMD_PROGRAM_FLASH_PP, CMD_PROGRAM_FUSE_HVSP, CMD_PROGRAM_FUSE_PP, CMD_PROGRAM_LOCK_HVSP, CMD_PROGRAM_LOCK_PP, avrmem::delay, avrmem::desc, long, MSG_INFO, MSG_NOTICE2, avrmem::op, avrmem::page_size, PDATA, pgm, PPMODE, progname, avrpart::programfusepolltimeout, avrpart::programfusepulsewidth, avrpart::programlockpolltimeout, avrpart::programlockpulsewidth, stk500v2_command(), stk500v2_loadaddr(), and stk500v2_mode_for_pagesize().
Referenced by stk500hvsp_write_byte(), and stk500pp_write_byte().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References HVSPMODE, pgm, and stk500hv_chip_erase().
Referenced by stk500hvsp_initpgm(), stk500v2_dragon_hvsp_initpgm(), and stk600hvsp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References HVSPMODE, pgm, and stk500hv_disable().
Referenced by stk500hvsp_initpgm(), stk500v2_dragon_hvsp_initpgm(), and stk600hvsp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References HVSPMODE, pgm, and stk500hv_initialize().
Referenced by stk500hvsp_initpgm(), stk500v2_dragon_hvsp_initpgm(), and stk600hvsp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:| void stk500hvsp_initpgm | ( | PROGRAMMER * | pgm | ) |
References programmer_t::chip_erase, programmer_t::close, programmer_t::disable, programmer_t::display, programmer_t::enable, programmer_t::initialize, programmer_t::open, programmer_t::page_size, programmer_t::paged_load, programmer_t::paged_write, pgm, programmer_t::print_parms, programmer_t::program_enable, programmer_t::read_byte, programmer_t::set_fosc, programmer_t::set_sck_period, programmer_t::set_varef, programmer_t::set_vtarget, programmer_t::setup, stk500hvsp_chip_erase(), stk500hvsp_disable(), stk500hvsp_initialize(), stk500hvsp_paged_load(), stk500hvsp_paged_write(), stk500hvsp_program_enable(), stk500hvsp_read_byte(), stk500hvsp_write_byte(), stk500v2_close(), stk500v2_display(), stk500v2_enable(), stk500v2_open(), stk500v2_print_parms(), stk500v2_set_fosc(), stk500v2_set_sck_period(), stk500v2_set_varef(), stk500v2_set_vtarget(), stk500v2_setup(), stk500v2_teardown(), programmer_t::teardown, programmer_t::type, and programmer_t::write_byte.
Here is the call graph for this function:
|
static |
References HVSPMODE, pgm, and stk500hv_paged_load().
Referenced by stk500hvsp_initpgm(), stk500v2_dragon_hvsp_initpgm(), and stk600hvsp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References HVSPMODE, pgm, and stk500hv_paged_write().
Referenced by stk500hvsp_initpgm(), stk500v2_dragon_hvsp_initpgm(), and stk600hvsp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References CMD_ENTER_PROGMODE_HVSP, CMD_ENTER_PROGMODE_HVSP_STK600, avrpart::hventerstabdelay, avrpart::hvspcmdexedelay, avrpart::latchcycles, PDATA, pgm, avrpart::poweroffdelay, avrpart::resetdelayms, avrpart::resetdelayus, stk500v2_command(), avrpart::synchcycles, and avrpart::togglevtg.
Referenced by stk500hvsp_initpgm(), stk500v2_dragon_hvsp_initpgm(), and stk600hvsp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References HVSPMODE, pgm, and stk500hv_read_byte().
Referenced by stk500hvsp_initpgm(), stk500v2_dragon_hvsp_initpgm(), and stk600hvsp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References HVSPMODE, pgm, and stk500hv_write_byte().
Referenced by stk500hvsp_initpgm(), stk500v2_dragon_hvsp_initpgm(), and stk600hvsp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avr_get_output_index(), AVR_OP_READ, avr_set_addr(), avr_set_bits(), avrdude_message(), avrmem::buf, CMD_READ_FUSE_ISP, CMD_READ_LOCK_ISP, CMD_READ_OSCCAL_ISP, CMD_READ_SIGNATURE_ISP, avrmem::desc, MSG_INFO, MSG_NOTICE2, avrmem::op, avrmem::page_size, PDATA, pgm, progname, stk500v2_command(), and stk500v2_paged_load().
Referenced by stk500v2_dragon_isp_initpgm(), stk500v2_initpgm(), stk500v2_jtag3_initpgm(), stk500v2_jtagmkII_initpgm(), stk600_initpgm(), and stk600_setup_isp().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References AVR_OP_WRITE, avr_set_addr(), avr_set_bits(), avr_set_input(), avrdude_message(), avrmem::buf, CMD_PROGRAM_FUSE_ISP, CMD_PROGRAM_LOCK_ISP, avrmem::desc, MSG_INFO, MSG_NOTICE2, avrmem::op, avrmem::page_size, PDATA, pgm, progname, stk500v2_command(), stk500v2_paged_load(), stk500v2_paged_write(), and usleep().
Referenced by stk500v2_dragon_isp_initpgm(), stk500v2_initpgm(), stk500v2_jtag3_initpgm(), stk500v2_jtagmkII_initpgm(), stk600_initpgm(), and stk600_setup_isp().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References pgm, PPMODE, and stk500hv_chip_erase().
Referenced by stk500pp_initpgm(), stk500v2_dragon_pp_initpgm(), and stk600pp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References pgm, PPMODE, and stk500hv_disable().
Referenced by stk500pp_initpgm(), stk500v2_dragon_pp_initpgm(), and stk600pp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References pgm, PPMODE, and stk500hv_initialize().
Referenced by stk500pp_initpgm(), stk500v2_dragon_pp_initpgm(), and stk600pp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:| void stk500pp_initpgm | ( | PROGRAMMER * | pgm | ) |
References programmer_t::chip_erase, programmer_t::close, programmer_t::disable, programmer_t::display, programmer_t::enable, programmer_t::initialize, programmer_t::open, programmer_t::page_size, programmer_t::paged_load, programmer_t::paged_write, pgm, programmer_t::print_parms, programmer_t::program_enable, programmer_t::read_byte, programmer_t::set_fosc, programmer_t::set_sck_period, programmer_t::set_varef, programmer_t::set_vtarget, programmer_t::setup, stk500pp_chip_erase(), stk500pp_disable(), stk500pp_initialize(), stk500pp_paged_load(), stk500pp_paged_write(), stk500pp_program_enable(), stk500pp_read_byte(), stk500pp_write_byte(), stk500v2_close(), stk500v2_display(), stk500v2_enable(), stk500v2_open(), stk500v2_print_parms(), stk500v2_set_fosc(), stk500v2_set_sck_period(), stk500v2_set_varef(), stk500v2_set_vtarget(), stk500v2_setup(), stk500v2_teardown(), programmer_t::teardown, programmer_t::type, and programmer_t::write_byte.
Here is the call graph for this function:
|
static |
References pgm, PPMODE, and stk500hv_paged_load().
Referenced by stk500pp_initpgm(), stk500v2_dragon_pp_initpgm(), and stk600pp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References pgm, PPMODE, and stk500hv_paged_write().
Referenced by stk500pp_initpgm(), stk500v2_dragon_pp_initpgm(), and stk600pp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References CMD_ENTER_PROGMODE_PP, avrpart::hventerstabdelay, avrpart::latchcycles, PDATA, pgm, avrpart::poweroffdelay, avrpart::progmodedelay, avrpart::resetdelayms, avrpart::resetdelayus, stk500v2_command(), and avrpart::togglevtg.
Referenced by stk500pp_initpgm(), stk500v2_dragon_pp_initpgm(), and stk600pp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References pgm, PPMODE, and stk500hv_read_byte().
Referenced by stk500pp_initpgm(), stk500v2_dragon_pp_initpgm(), and stk600pp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References pgm, PPMODE, and stk500hv_write_byte().
Referenced by stk500pp_initpgm(), stk500v2_dragon_pp_initpgm(), and stk600pp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References AVR_OP_CHIP_ERASE, avr_set_bits(), avrdude_message(), avrpart::chip_erase_delay, CMD_CHIP_ERASE_ISP, avrpart::desc, programmer_t::initialize, MSG_INFO, OFF, ON, avrpart::op, pgm, programmer_t::pgm_led, progname, stk500v2_command(), and usleep().
Referenced by stk500v2_dragon_isp_initpgm(), stk500v2_initpgm(), stk500v2_jtag3_initpgm(), stk500v2_jtagmkII_initpgm(), stk600_initpgm(), and stk600_setup_isp().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References DEBUG, programmer_t::fd, filedescriptor::ifd, pgm, and serial_close.
Referenced by stk500hvsp_initpgm(), stk500pp_initpgm(), stk500v2_initpgm(), stk600_initpgm(), stk600hvsp_initpgm(), and stk600pp_initpgm().
Here is the caller graph for this function:
|
static |
References avrdude_message(), cmd, CMD_SPI_MULTI, DEBUG, MSG_INFO, pgm, progname, and stk500v2_command().
Referenced by stk500v2_dragon_isp_initpgm(), stk500v2_initpgm(), stk500v2_jtagmkII_initpgm(), and stk600_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), CMD_XPROG, CMD_XPROG_SETMODE, DEBUG, MSG_INFO, pgm, progname, quell_progress, RETRIES, RETURN_IF_CANCEL, STATUS_CMD_FAILED, STATUS_CMD_OK, STATUS_CMD_TOUT, STATUS_CMD_UNKNOWN, STATUS_RDY_BSY_TOUT, STATUS_SET_PARAM_MISSING, stk500v2_getsync(), stk500v2_recv(), stk500v2_send(), XPRG_ERR_COLLISION, XPRG_ERR_FAILED, XPRG_ERR_OK, and XPRG_ERR_TIMEOUT.
Referenced by stk500hv_chip_erase(), stk500hv_disable(), stk500hv_initialize(), stk500hv_paged_load(), stk500hv_paged_write(), stk500hv_read_byte(), stk500hv_write_byte(), stk500hvsp_program_enable(), stk500isp_read_byte(), stk500isp_write_byte(), stk500pp_program_enable(), stk500v2_chip_erase(), stk500v2_cmd(), stk500v2_disable(), stk500v2_getparm(), stk500v2_getparm2(), stk500v2_jtag3_disable(), stk500v2_loadaddr(), stk500v2_paged_load(), stk500v2_paged_write(), stk500v2_perform_osccal(), stk500v2_program_enable(), stk500v2_set_upload_size(), stk500v2_setparm2(), stk500v2_setparm_real(), stk600_xprog_command(), and stk600_xprog_program_enable().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), CMD_LEAVE_PROGMODE_ISP, MSG_INFO, pgm, progname, and stk500v2_command().
Referenced by stk500v2_dragon_isp_initpgm(), stk500v2_initpgm(), stk500v2_jtagmkII_initpgm(), stk600_initpgm(), and stk600_setup_isp().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), MSG_INFO, PARAM2_EC_ID_TABLE_REV, PARAM2_RC_ID_TABLE_REV, PARAM_HW_VER, PARAM_ROUTINGCARD_ID, PARAM_SOCKETCARD_ID, PARAM_SW_MAJOR, PARAM_SW_MAJOR_SLAVE1, PARAM_SW_MAJOR_SLAVE2, PARAM_SW_MINOR, PARAM_SW_MINOR_SLAVE1, PARAM_SW_MINOR_SLAVE2, PARAM_TOPCARD_DETECT, PDATA, pgm, pgmname, routing_cards, socket_cards, stk500v2_getparm(), stk500v2_getparm2(), stk500v2_print_parms1(), and stk600_get_cardname().
Referenced by stk500hvsp_initpgm(), stk500pp_initpgm(), stk500v2_dragon_hvsp_initpgm(), stk500v2_dragon_isp_initpgm(), stk500v2_dragon_pp_initpgm(), stk500v2_initpgm(), stk500v2_jtag3_initpgm(), stk500v2_jtagmkII_initpgm(), stk600_initpgm(), stk600hvsp_initpgm(), and stk600pp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Referenced by stk500v2_dragon_hvsp_initpgm(), and stk500v2_dragon_pp_initpgm().
Here is the caller graph for this function:| void stk500v2_dragon_hvsp_initpgm | ( | PROGRAMMER * | pgm | ) |
References programmer_t::chip_erase, programmer_t::close, programmer_t::disable, programmer_t::display, programmer_t::enable, programmer_t::initialize, programmer_t::open, programmer_t::page_size, programmer_t::paged_load, programmer_t::paged_write, pgm, programmer_t::print_parms, programmer_t::program_enable, programmer_t::read_byte, programmer_t::set_fosc, programmer_t::set_sck_period, programmer_t::set_varef, programmer_t::set_vtarget, programmer_t::setup, stk500hvsp_chip_erase(), stk500hvsp_disable(), stk500hvsp_initialize(), stk500hvsp_paged_load(), stk500hvsp_paged_write(), stk500hvsp_program_enable(), stk500hvsp_read_byte(), stk500hvsp_write_byte(), stk500v2_display(), stk500v2_dragon_hv_open(), stk500v2_enable(), stk500v2_jtagmkII_close(), stk500v2_jtagmkII_setup(), stk500v2_jtagmkII_teardown(), stk500v2_print_parms(), stk500v2_set_fosc(), stk500v2_set_sck_period_mk2(), stk500v2_set_varef(), stk500v2_set_vtarget(), programmer_t::teardown, programmer_t::type, and programmer_t::write_byte.
Here is the call graph for this function:| void stk500v2_dragon_isp_initpgm | ( | PROGRAMMER * | pgm | ) |
References programmer_t::chip_erase, programmer_t::close, programmer_t::cmd, programmer_t::disable, programmer_t::display, programmer_t::enable, programmer_t::initialize, programmer_t::open, programmer_t::page_erase, programmer_t::page_size, programmer_t::paged_load, programmer_t::paged_write, pgm, programmer_t::print_parms, programmer_t::program_enable, programmer_t::read_byte, programmer_t::set_sck_period, programmer_t::setup, stk500isp_read_byte(), stk500isp_write_byte(), stk500v2_chip_erase(), stk500v2_cmd(), stk500v2_disable(), stk500v2_display(), stk500v2_dragon_isp_open(), stk500v2_enable(), stk500v2_initialize(), stk500v2_jtagmkII_close(), stk500v2_jtagmkII_setup(), stk500v2_jtagmkII_teardown(), stk500v2_page_erase(), stk500v2_paged_load(), stk500v2_paged_write(), stk500v2_print_parms(), stk500v2_program_enable(), stk500v2_set_sck_period_mk2(), programmer_t::teardown, programmer_t::type, and programmer_t::write_byte.
Here is the call graph for this function:
|
static |
Referenced by stk500v2_dragon_isp_initpgm().
Here is the caller graph for this function:| void stk500v2_dragon_pp_initpgm | ( | PROGRAMMER * | pgm | ) |
References programmer_t::chip_erase, programmer_t::close, programmer_t::disable, programmer_t::display, programmer_t::enable, programmer_t::initialize, programmer_t::open, programmer_t::page_size, programmer_t::paged_load, programmer_t::paged_write, pgm, programmer_t::print_parms, programmer_t::program_enable, programmer_t::read_byte, programmer_t::set_fosc, programmer_t::set_sck_period, programmer_t::set_varef, programmer_t::set_vtarget, programmer_t::setup, stk500pp_chip_erase(), stk500pp_disable(), stk500pp_initialize(), stk500pp_paged_load(), stk500pp_paged_write(), stk500pp_program_enable(), stk500pp_read_byte(), stk500pp_write_byte(), stk500v2_display(), stk500v2_dragon_hv_open(), stk500v2_enable(), stk500v2_jtagmkII_close(), stk500v2_jtagmkII_setup(), stk500v2_jtagmkII_teardown(), stk500v2_print_parms(), stk500v2_set_fosc(), stk500v2_set_sck_period_mk2(), stk500v2_set_varef(), stk500v2_set_vtarget(), programmer_t::teardown, programmer_t::type, and programmer_t::write_byte.
Here is the call graph for this function:| int stk500v2_drain | ( | PROGRAMMER * | pgm, |
| int | display | ||
| ) |
References programmer_t::fd, pgm, and serial_drain.
Referenced by stk500v2_open(), stk600_open(), and wiring_open().
Here is the caller graph for this function:
|
static |
Referenced by stk500hvsp_initpgm(), stk500pp_initpgm(), stk500v2_dragon_hvsp_initpgm(), stk500v2_dragon_isp_initpgm(), stk500v2_dragon_pp_initpgm(), stk500v2_initpgm(), stk500v2_jtag3_initpgm(), stk500v2_jtagmkII_initpgm(), stk600_initpgm(), stk600hvsp_initpgm(), and stk600pp_initpgm().
Here is the caller graph for this function:
|
static |
References avrdude_message(), CMD_GET_PARAMETER, MSG_INFO, pgm, progname, and stk500v2_command().
Referenced by stk500v2_display(), stk500v2_print_parms1(), stk500v2_program_enable(), stk500v2_set_varef(), stk500v2_set_vtarget(), stk500v2_setparm(), and stk600_set_varef().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), CMD_GET_PARAMETER, MSG_INFO, pgm, progname, and stk500v2_command().
Referenced by stk500v2_display(), stk500v2_print_parms1(), and stk600_set_vtarget().
Here is the call graph for this function:
Here is the caller graph for this function:| int stk500v2_getsync | ( | PROGRAMMER * | pgm | ) |
References avrdude_message(), CMD_SIGN_ON, DEBUG, MSG_DEBUG, MSG_INFO, MSG_NOTICE, PDATA, pgm, pgmname, progname, RETRIES, RETURN_IF_CANCEL, STATUS_CMD_OK, stk500v2_recv(), and stk500v2_send().
Referenced by stk500v2_command(), stk500v2_open(), stk600_open(), and wiring_open().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avr_locate_mem(), avrdude_message(), AVRPART_HAS_PDI, AVRPART_HAS_TPI, AVRPART_IS_AT90S1200, avrmem::desc, programmer_t::disable, avrpart::flags, free(), ldata(), lfirst(), lnext(), long, malloc(), avrpart::mem, MSG_INFO, avrmem::offset, avrmem::page_size, PDATA, pgm, progname, programmer_t::program_enable, stk600_setup_isp(), stk600_setup_xprog(), and usleep().
Referenced by stk500v2_dragon_isp_initpgm(), stk500v2_initpgm(), stk500v2_jtagmkII_initpgm(), and stk600_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:| void stk500v2_initpgm | ( | PROGRAMMER * | pgm | ) |
References programmer_t::chip_erase, programmer_t::close, programmer_t::cmd, programmer_t::disable, programmer_t::display, programmer_t::enable, programmer_t::initialize, programmer_t::open, programmer_t::page_erase, programmer_t::page_size, programmer_t::paged_load, programmer_t::paged_write, programmer_t::perform_osccal, pgm, programmer_t::print_parms, programmer_t::program_enable, programmer_t::read_byte, programmer_t::set_fosc, programmer_t::set_sck_period, programmer_t::set_upload_size, programmer_t::set_varef, programmer_t::set_vtarget, programmer_t::setup, stk500isp_read_byte(), stk500isp_write_byte(), stk500v2_chip_erase(), stk500v2_close(), stk500v2_cmd(), stk500v2_disable(), stk500v2_display(), stk500v2_enable(), stk500v2_initialize(), stk500v2_open(), stk500v2_page_erase(), stk500v2_paged_load(), stk500v2_paged_write(), stk500v2_perform_osccal(), stk500v2_print_parms(), stk500v2_program_enable(), stk500v2_set_fosc(), stk500v2_set_sck_period(), stk500v2_set_upload_size(), stk500v2_set_varef(), stk500v2_set_vtarget(), stk500v2_setup(), stk500v2_teardown(), programmer_t::teardown, programmer_t::type, and programmer_t::write_byte.
Referenced by stk500generic_open(), stk500generic_setup(), stk500generic_teardown(), and wiring_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Referenced by stk500v2_jtag3_initpgm().
Here is the caller graph for this function:
|
static |
References avrdude_message(), MSG_INFO, and progname.
Referenced by stk500v2_jtag3_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), CMD_LEAVE_PROGMODE_ISP, free(), MSG_INFO, PDATA, pgm, progname, and stk500v2_command().
Referenced by stk500v2_jtag3_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Referenced by stk500v2_jtag3_initpgm().
Here is the caller graph for this function:| void stk500v2_jtag3_initpgm | ( | PROGRAMMER * | pgm | ) |
References programmer_t::chip_erase, programmer_t::close, programmer_t::cmd, programmer_t::disable, programmer_t::display, programmer_t::enable, programmer_t::initialize, programmer_t::open, programmer_t::page_erase, programmer_t::page_size, programmer_t::paged_load, programmer_t::paged_write, programmer_t::perform_osccal, pgm, programmer_t::print_parms, programmer_t::program_enable, programmer_t::read_byte, programmer_t::set_sck_period, programmer_t::setup, stk500isp_read_byte(), stk500isp_write_byte(), stk500v2_chip_erase(), stk500v2_display(), stk500v2_enable(), stk500v2_jtag3_close(), stk500v2_jtag3_cmd(), stk500v2_jtag3_disable(), stk500v2_jtag3_initialize(), stk500v2_jtag3_open(), stk500v2_jtag3_set_sck_period(), stk500v2_jtag3_setup(), stk500v2_jtag3_teardown(), stk500v2_page_erase(), stk500v2_paged_load(), stk500v2_paged_write(), stk500v2_perform_osccal(), stk500v2_print_parms(), stk500v2_program_enable(), programmer_t::teardown, programmer_t::type, and programmer_t::write_byte.
Here is the call graph for this function:
|
static |
Referenced by stk500v2_jtag3_initpgm().
Here is the caller graph for this function:
|
static |
Referenced by stk500v2_jtag3_set_sck_period(), stk500v2_print_parms1(), and stk500v2_recv().
Here is the caller graph for this function:
|
static |
Referenced by stk500v2_jtag3_set_sck_period(), stk500v2_print_parms1(), and stk500v2_send().
Here is the caller graph for this function:
|
static |
References CMD_SET_SCK, pgm, stk500v2_jtag3_recv(), and stk500v2_jtag3_send().
Referenced by stk500v2_jtag3_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Referenced by stk500v2_jtag3_initpgm().
Here is the caller graph for this function:
|
static |
Referenced by stk500v2_jtag3_initpgm().
Here is the caller graph for this function:
|
static |
Referenced by stk500v2_dragon_hvsp_initpgm(), stk500v2_dragon_isp_initpgm(), stk500v2_dragon_pp_initpgm(), and stk500v2_jtagmkII_initpgm().
Here is the caller graph for this function:| void stk500v2_jtagmkII_initpgm | ( | PROGRAMMER * | pgm | ) |
References programmer_t::chip_erase, programmer_t::close, programmer_t::cmd, programmer_t::disable, programmer_t::display, programmer_t::enable, programmer_t::initialize, programmer_t::open, programmer_t::page_erase, programmer_t::page_size, programmer_t::paged_load, programmer_t::paged_write, programmer_t::perform_osccal, pgm, programmer_t::print_parms, programmer_t::program_enable, programmer_t::read_byte, programmer_t::set_sck_period, programmer_t::setup, stk500isp_read_byte(), stk500isp_write_byte(), stk500v2_chip_erase(), stk500v2_cmd(), stk500v2_disable(), stk500v2_display(), stk500v2_enable(), stk500v2_initialize(), stk500v2_jtagmkII_close(), stk500v2_jtagmkII_open(), stk500v2_jtagmkII_setup(), stk500v2_jtagmkII_teardown(), stk500v2_page_erase(), stk500v2_paged_load(), stk500v2_paged_write(), stk500v2_perform_osccal(), stk500v2_print_parms(), stk500v2_program_enable(), stk500v2_set_sck_period_mk2(), programmer_t::teardown, programmer_t::type, and programmer_t::write_byte.
Here is the call graph for this function:
|
static |
Referenced by stk500v2_jtagmkII_initpgm().
Here is the caller graph for this function:
|
static |
Referenced by stk500v2_recv().
Here is the caller graph for this function:
|
static |
Referenced by stk500v2_send().
Here is the caller graph for this function:
|
static |
Referenced by stk500v2_dragon_hvsp_initpgm(), stk500v2_dragon_isp_initpgm(), stk500v2_dragon_pp_initpgm(), and stk500v2_jtagmkII_initpgm().
Here is the caller graph for this function:
|
static |
Referenced by stk500v2_dragon_hvsp_initpgm(), stk500v2_dragon_isp_initpgm(), stk500v2_dragon_pp_initpgm(), and stk500v2_jtagmkII_initpgm().
Here is the caller graph for this function:
|
static |
References avrdude_message(), CMD_LOAD_ADDRESS, DEBUG, MSG_INFO, pgm, progname, and stk500v2_command().
Referenced by stk500hv_paged_load(), stk500hv_paged_write(), stk500hv_read_byte(), stk500hv_write_byte(), stk500v2_paged_load(), stk500v2_paged_write(), stk600_xprog_paged_load(), and stk600_xprog_paged_write().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), MSG_INFO, and progname.
Referenced by stk500hv_paged_write(), and stk500hv_write_byte().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdoper_serdev, avrdude_message(), pinfo::baud, programmer_t::baudrate, programmer_t::bitclock, DEBUG, programmer_t::fd, MSG_INFO, PDATA, pgm, programmer_t::port, serdev, serial_close, serial_open, programmer_t::set_sck_period, stk500v2_drain(), stk500v2_getsync(), stk500v2_set_sck_period_mk2(), strcasecmp, filedescriptor::usb, USB_DEVICE_AVRISPMKII, usb_serdev_frame, USB_VENDOR_ATMEL, USBDEV_BULK_EP_READ_MKII, USBDEV_BULK_EP_WRITE_MKII, USBDEV_MAX_XFER_MKII, and pinfo::usbinfo.
Referenced by stk500hvsp_initpgm(), stk500pp_initpgm(), and stk500v2_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), MSG_INFO, and progname.
Referenced by stk500v2_dragon_isp_initpgm(), stk500v2_initpgm(), stk500v2_jtag3_initpgm(), stk500v2_jtagmkII_initpgm(), stk600_initpgm(), and stk600_setup_isp().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References AVR_OP_LOAD_EXT_ADDR, AVR_OP_READ, AVR_OP_READ_LO, avr_set_bits(), avrdude_message(), avrmem::buf, CMD_READ_EEPROM_ISP, CMD_READ_FLASH_ISP, DEBUG, avrpart::desc, avrmem::desc, MSG_INFO, avrmem::op, pgm, progname, avrmem::readsize, stk500v2_command(), and stk500v2_loadaddr().
Referenced by stk500isp_read_byte(), stk500isp_write_byte(), stk500v2_dragon_isp_initpgm(), stk500v2_initpgm(), stk500v2_jtag3_initpgm(), stk500v2_jtagmkII_initpgm(), stk600_initpgm(), and stk600_setup_isp().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References AVR_OP_LOAD_EXT_ADDR, AVR_OP_LOADPAGE_LO, AVR_OP_READ, AVR_OP_READ_LO, AVR_OP_WRITE, AVR_OP_WRITE_LO, AVR_OP_WRITEPAGE, avr_set_bits(), avrdude_message(), avrmem::buf, CMD_PROGRAM_EEPROM_ISP, CMD_PROGRAM_FLASH_ISP, DEBUG, avrmem::delay, avrpart::desc, avrmem::desc, avrmem::mode, MSG_INFO, avrmem::op, pgm, progname, avrmem::readback, stk500v2_command(), and stk500v2_loadaddr().
Referenced by stk500isp_write_byte(), stk500v2_dragon_isp_initpgm(), stk500v2_initpgm(), stk500v2_jtag3_initpgm(), stk500v2_jtagmkII_initpgm(), stk600_initpgm(), and stk600_setup_isp().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), CMD_OSCCAL, MSG_INFO, pgm, progname, and stk500v2_command().
Referenced by stk500v2_initpgm(), stk500v2_jtag3_initpgm(), stk500v2_jtagmkII_initpgm(), and stk600_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References pgm, and stk500v2_print_parms1().
Referenced by stk500hvsp_initpgm(), stk500pp_initpgm(), stk500v2_dragon_hvsp_initpgm(), stk500v2_dragon_isp_initpgm(), stk500v2_dragon_pp_initpgm(), stk500v2_initpgm(), stk500v2_jtag3_initpgm(), stk500v2_jtagmkII_initpgm(), stk600_initpgm(), stk600hvsp_initpgm(), and stk600pp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), avrispmkIIfreqs, cmd, CMD_GET_SCK, f_to_kHz_MHz(), MSG_INFO, PARAM2_AREF0, PARAM2_AREF1, PARAM2_CLOCK_CONF, PARAM2_SCK_DURATION, PARAM_OSC_CMATCH, PARAM_OSC_PSCALE, PARAM_SCK_DURATION, PARAM_VADJUST, PARAM_VTARGET, PDATA, pgm, stk500v2_getparm(), stk500v2_getparm2(), stk500v2_jtag3_recv(), stk500v2_jtag3_send(), stk500v2_sck_to_us(), and STK500V2_XTAL.
Referenced by stk500v2_display(), and stk500v2_print_parms().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References AVR_OP_PGM_ENABLE, avr_set_bits(), avrdude_message(), avrpart::bytedelay, CMD_ENTER_PROGMODE_ISP, avrpart::cmdexedelay, avrpart::desc, MSG_INFO, avrpart::op, PARAM_RESET_POLARITY, PARAM_STATUS_TGT_CONN, PDATA, pgm, avrpart::pollindex, avrpart::pollvalue, progname, avrpart::stabdelay, stk500v2_command(), stk500v2_getparm(), stk500v2_setparm_real(), stk500v2_translate_conn_status(), avrpart::synchloops, and avrpart::timeout.
Referenced by stk500v2_dragon_isp_initpgm(), stk500v2_initpgm(), stk500v2_jtag3_initpgm(), stk500v2_jtagmkII_initpgm(), stk600_initpgm(), and stk600_setup_isp().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References ANSWER_CKSUM_ERROR, avrdude_message(), DEBUG, DEBUGRECV, programmer_t::fd, gettimeofday(), MESSAGE_START, MSG_INFO, PDATA, pgm, progname, RETURN_IF_CANCEL, serial_recv, SERIAL_TIMEOUT, stk500v2_jtag3_recv(), stk500v2_jtagmkII_recv(), and stk500v2_recv_mk2().
Referenced by stk500v2_command(), and stk500v2_getsync().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), programmer_t::fd, MSG_INFO, pgm, progname, and serial_recv.
Referenced by stk500v2_recv().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References STK500V2_XTAL.
Referenced by stk500v2_print_parms1().
Here is the caller graph for this function:
|
static |
References avrdude_message(), DEBUG, programmer_t::fd, MESSAGE_START, MSG_INFO, PDATA, pgm, progname, serial_send, stk500v2_jtag3_send(), stk500v2_jtagmkII_send(), stk500v2_send_mk2(), and TOKEN.
Referenced by stk500v2_command(), and stk500v2_getsync().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), programmer_t::fd, MSG_INFO, pgm, progname, and serial_send.
Referenced by stk500v2_send().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), MSG_INFO, PARAM_OSC_CMATCH, PARAM_OSC_PSCALE, pgm, progname, stk500v2_setparm(), and STK500V2_XTAL.
Referenced by stk500hvsp_initpgm(), stk500pp_initpgm(), stk500v2_dragon_hvsp_initpgm(), stk500v2_dragon_pp_initpgm(), and stk500v2_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References ceil(), PARAM_SCK_DURATION, pgm, stk500v2_setparm(), and STK500V2_XTAL.
Referenced by stk500hvsp_initpgm(), stk500pp_initpgm(), and stk500v2_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), avrispmkIIfreqs, MSG_NOTICE2, PARAM_SCK_DURATION, pgm, and stk500v2_setparm().
Referenced by stk500v2_dragon_hvsp_initpgm(), stk500v2_dragon_isp_initpgm(), stk500v2_dragon_pp_initpgm(), stk500v2_jtagmkII_initpgm(), and stk500v2_open().
Here is the call graph for this function:
Here is the caller graph for this function:| void stk500v2_set_upload_size | ( | PROGRAMMER * | pgm, |
| int | size | ||
| ) |
References CMD_SET_UPLOAD_SIZE_PRUSA3D, pgm, and stk500v2_command().
Referenced by stk500v2_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), MSG_INFO, PARAM_VADJUST, PARAM_VTARGET, pgm, progname, stk500v2_getparm(), and stk500v2_setparm().
Referenced by stk500hvsp_initpgm(), stk500pp_initpgm(), stk500v2_dragon_hvsp_initpgm(), stk500v2_dragon_pp_initpgm(), and stk500v2_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), MSG_INFO, PARAM_VADJUST, PARAM_VTARGET, pgm, progname, stk500v2_getparm(), and stk500v2_setparm().
Referenced by stk500hvsp_initpgm(), stk500pp_initpgm(), stk500v2_dragon_hvsp_initpgm(), stk500v2_dragon_pp_initpgm(), and stk500v2_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), MSG_INFO, MSG_NOTICE2, pgm, progname, stk500v2_getparm(), and stk500v2_setparm_real().
Referenced by stk500v2_set_fosc(), stk500v2_set_sck_period(), stk500v2_set_sck_period_mk2(), stk500v2_set_varef(), stk500v2_set_vtarget(), and stk600_set_vtarget().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), CMD_SET_PARAMETER, MSG_INFO, pgm, progname, and stk500v2_command().
Referenced by stk600_set_fosc(), stk600_set_sck_period(), stk600_set_varef(), and stk600_set_vtarget().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), CMD_SET_PARAMETER, MSG_INFO, pgm, progname, and stk500v2_command().
Referenced by stk500v2_program_enable(), stk500v2_setparm(), and stk600_xprog_program_enable().
Here is the call graph for this function:
Here is the caller graph for this function:| void stk500v2_setup | ( | PROGRAMMER * | pgm | ) |
References avrdude_oom(), programmer_t::cookie, malloc(), PDATA, and pgm.
Referenced by stk500hvsp_initpgm(), stk500pp_initpgm(), stk500v2_initpgm(), stk600_initpgm(), stk600hvsp_initpgm(), stk600pp_initpgm(), and wiring_setup().
Here is the call graph for this function:
Here is the caller graph for this function:| void stk500v2_teardown | ( | PROGRAMMER * | pgm | ) |
References programmer_t::cookie, free(), and pgm.
Referenced by stk500hvsp_initpgm(), stk500pp_initpgm(), stk500v2_initpgm(), stk600_initpgm(), stk600hvsp_initpgm(), stk600pp_initpgm(), and wiring_teardown().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References connection_status.
Referenced by stk500v2_program_enable().
Here is the caller graph for this function:
|
static |
References carddata::id, and carddata::name.
Referenced by stk500v2_display().
Here is the caller graph for this function:| void stk600_initpgm | ( | PROGRAMMER * | pgm | ) |
References programmer_t::chip_erase, programmer_t::close, programmer_t::cmd, programmer_t::disable, programmer_t::display, programmer_t::enable, programmer_t::initialize, programmer_t::open, programmer_t::page_erase, programmer_t::page_size, programmer_t::paged_load, programmer_t::paged_write, programmer_t::perform_osccal, pgm, programmer_t::print_parms, programmer_t::program_enable, programmer_t::read_byte, programmer_t::set_fosc, programmer_t::set_sck_period, programmer_t::set_varef, programmer_t::set_vtarget, programmer_t::setup, stk500isp_read_byte(), stk500isp_write_byte(), stk500v2_chip_erase(), stk500v2_close(), stk500v2_cmd(), stk500v2_disable(), stk500v2_display(), stk500v2_enable(), stk500v2_initialize(), stk500v2_page_erase(), stk500v2_paged_load(), stk500v2_paged_write(), stk500v2_perform_osccal(), stk500v2_print_parms(), stk500v2_program_enable(), stk500v2_setup(), stk500v2_teardown(), stk600_open(), stk600_set_fosc(), stk600_set_sck_period(), stk600_set_varef(), stk600_set_vtarget(), programmer_t::teardown, programmer_t::type, and programmer_t::write_byte.
Here is the call graph for this function:
|
static |
References avrdude_message(), pinfo::baud, programmer_t::baudrate, programmer_t::bitclock, DEBUG, programmer_t::fd, MSG_INFO, PDATA, pgm, programmer_t::port, serdev, serial_close, serial_open, programmer_t::set_sck_period, stk500v2_drain(), stk500v2_getsync(), stk600_set_sck_period(), filedescriptor::usb, USB_DEVICE_STK600, usb_serdev_frame, USB_VENDOR_ATMEL, USBDEV_BULK_EP_READ_STK600, USBDEV_BULK_EP_WRITE_STK600, USBDEV_MAX_XFER_MKII, and pinfo::usbinfo.
Referenced by stk600_initpgm(), stk600hvsp_initpgm(), and stk600pp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References log(), PARAM2_CLOCK_CONF, pgm, and stk500v2_setparm2().
Referenced by stk600_initpgm(), stk600hvsp_initpgm(), and stk600pp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References ceil(), PARAM2_SCK_DURATION, pgm, and stk500v2_setparm2().
Referenced by stk600_initpgm(), stk600_open(), stk600hvsp_initpgm(), and stk600pp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), MSG_INFO, PARAM2_AREF0, PARAM2_AREF1, PARAM_VTARGET, pgm, progname, stk500v2_getparm(), and stk500v2_setparm2().
Referenced by stk600_initpgm(), stk600hvsp_initpgm(), and stk600pp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), programmer_t::disable, MSG_INFO, PARAM2_AREF0, PARAM2_AREF1, PARAM_VTARGET, PDATA, pgm, progname, programmer_t::program_enable, stk500v2_getparm2(), stk500v2_setparm(), and stk500v2_setparm2().
Referenced by stk600_initpgm(), stk600hvsp_initpgm(), and stk600pp_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References programmer_t::chip_erase, programmer_t::disable, programmer_t::page_erase, programmer_t::paged_load, programmer_t::paged_write, pgm, programmer_t::program_enable, programmer_t::read_byte, stk500isp_read_byte(), stk500isp_write_byte(), stk500v2_chip_erase(), stk500v2_disable(), stk500v2_page_erase(), stk500v2_paged_load(), stk500v2_paged_write(), stk500v2_program_enable(), and programmer_t::write_byte.
Referenced by stk500v2_initialize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References programmer_t::chip_erase, programmer_t::disable, programmer_t::page_erase, programmer_t::paged_load, programmer_t::paged_write, pgm, programmer_t::program_enable, programmer_t::read_byte, stk600_xprog_chip_erase(), stk600_xprog_disable(), stk600_xprog_page_erase(), stk600_xprog_paged_load(), stk600_xprog_paged_write(), stk600_xprog_program_enable(), stk600_xprog_read_byte(), stk600_xprog_write_byte(), and programmer_t::write_byte.
Referenced by stk500v2_initialize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avr_locate_mem(), avrdude_message(), AVRPART_HAS_TPI, avrpart::flags, MSG_INFO, avrmem::offset, pgm, progname, stk600_xprog_command(), XPRG_CMD_ERASE, and XPRG_ERASE_CHIP.
Referenced by stk600_setup_xprog().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), CMD_XPROG, free(), malloc(), MSG_INFO, pgm, progname, and stk500v2_command().
Referenced by stk600_xprog_chip_erase(), stk600_xprog_disable(), stk600_xprog_page_erase(), stk600_xprog_paged_load(), stk600_xprog_paged_write(), stk600_xprog_program_enable(), stk600_xprog_read_byte(), and stk600_xprog_write_byte().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), MSG_INFO, pgm, progname, stk600_xprog_command(), and XPRG_CMD_LEAVE_PROGMODE.
Referenced by stk600_setup_xprog().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References PDATA, pgm, XPRG_MEM_TYPE_APPL, and XPRG_MEM_TYPE_BOOT.
Referenced by stk600_xprog_page_erase(), stk600_xprog_paged_load(), stk600_xprog_paged_write(), stk600_xprog_read_byte(), and stk600_xprog_write_byte().
Here is the caller graph for this function:
|
static |
References avrdude_message(), avrmem::desc, MSG_INFO, avrmem::offset, pgm, progname, stk600_xprog_command(), stk600_xprog_memtype(), XPRG_CMD_ERASE, XPRG_ERASE_APP_PAGE, XPRG_ERASE_BOOT_PAGE, XPRG_ERASE_EEPROM_PAGE, XPRG_ERASE_USERSIG, and XPRG_MEM_TYPE_APPL.
Referenced by stk600_setup_xprog().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), avrmem::buf, avrmem::desc, free(), malloc(), MSG_INFO, avrmem::offset, pgm, progname, avrmem::size, stk500v2_loadaddr(), stk600_xprog_command(), stk600_xprog_memtype(), XPRG_CMD_READ_MEM, XPRG_MEM_TYPE_APPL, XPRG_MEM_TYPE_BOOT, XPRG_MEM_TYPE_EEPROM, XPRG_MEM_TYPE_FACTORY_CALIBRATION, XPRG_MEM_TYPE_FUSE, XPRG_MEM_TYPE_LOCKBITS, and XPRG_MEM_TYPE_USERSIG.
Referenced by stk600_setup_xprog().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), avrmem::buf, avrmem::desc, free(), malloc(), MSG_INFO, avrmem::offset, pgm, progname, avrmem::size, stk500v2_loadaddr(), stk600_xprog_command(), stk600_xprog_memtype(), XPRG_CMD_WRITE_MEM, XPRG_MEM_TYPE_APPL, XPRG_MEM_TYPE_BOOT, XPRG_MEM_TYPE_EEPROM, XPRG_MEM_TYPE_FACTORY_CALIBRATION, XPRG_MEM_TYPE_FUSE, XPRG_MEM_TYPE_LOCKBITS, XPRG_MEM_TYPE_USERSIG, XPRG_MEM_WRITE_ERASE, and XPRG_MEM_WRITE_WRITE.
Referenced by stk600_setup_xprog().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avr_locate_mem(), avrdude_message(), AVRPART_HAS_TPI, CMD_XPROG_SETMODE, avrpart::flags, MSG_INFO, avrpart::nvm_base, avrmem::page_size, PARAM_DISCHARGEDELAY, pgm, progname, stk500v2_command(), stk500v2_setparm_real(), stk600_xprog_command(), XPRG_CMD_ENTER_PROGMODE, XPRG_CMD_SET_PARAM, XPRG_MODE_PDI, XPRG_MODE_TPI, XPRG_PARAM_EEPPAGESIZE, XPRG_PARAM_NVMBASE, XPRG_PARAM_TPI_3, and XPRG_PARAM_TPI_4.
Referenced by stk600_setup_xprog().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), avrmem::desc, MSG_INFO, avrmem::offset, pgm, progname, stk600_xprog_command(), stk600_xprog_memtype(), XPRG_CMD_READ_MEM, XPRG_MEM_TYPE_APPL, XPRG_MEM_TYPE_BOOT, XPRG_MEM_TYPE_EEPROM, XPRG_MEM_TYPE_FACTORY_CALIBRATION, XPRG_MEM_TYPE_FUSE, XPRG_MEM_TYPE_LOCKBITS, and XPRG_MEM_TYPE_USERSIG.
Referenced by stk600_setup_xprog().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), AVRPART_HAS_TPI, avrmem::blocksize, avrmem::desc, avrpart::flags, MSG_INFO, avrmem::offset, pgm, progname, stk600_xprog_command(), stk600_xprog_memtype(), XPRG_CMD_ERASE, XPRG_CMD_WRITE_MEM, XPRG_ERASE_CONFIG, XPRG_MEM_TYPE_APPL, XPRG_MEM_TYPE_BOOT, XPRG_MEM_TYPE_EEPROM, XPRG_MEM_TYPE_FUSE, XPRG_MEM_TYPE_LOCKBITS, and XPRG_MEM_TYPE_USERSIG.
Referenced by stk600_setup_xprog().
Here is the call graph for this function:
Here is the caller graph for this function:| void stk600hvsp_initpgm | ( | PROGRAMMER * | pgm | ) |
References programmer_t::chip_erase, programmer_t::close, programmer_t::disable, programmer_t::display, programmer_t::enable, programmer_t::initialize, programmer_t::open, programmer_t::page_size, programmer_t::paged_load, programmer_t::paged_write, pgm, programmer_t::print_parms, programmer_t::program_enable, programmer_t::read_byte, programmer_t::set_fosc, programmer_t::set_sck_period, programmer_t::set_varef, programmer_t::set_vtarget, programmer_t::setup, stk500hvsp_chip_erase(), stk500hvsp_disable(), stk500hvsp_initialize(), stk500hvsp_paged_load(), stk500hvsp_paged_write(), stk500hvsp_program_enable(), stk500hvsp_read_byte(), stk500hvsp_write_byte(), stk500v2_close(), stk500v2_display(), stk500v2_enable(), stk500v2_print_parms(), stk500v2_setup(), stk500v2_teardown(), stk600_open(), stk600_set_fosc(), stk600_set_sck_period(), stk600_set_varef(), stk600_set_vtarget(), programmer_t::teardown, programmer_t::type, and programmer_t::write_byte.
Here is the call graph for this function:| void stk600pp_initpgm | ( | PROGRAMMER * | pgm | ) |
References programmer_t::chip_erase, programmer_t::close, programmer_t::disable, programmer_t::display, programmer_t::enable, programmer_t::initialize, programmer_t::open, programmer_t::page_size, programmer_t::paged_load, programmer_t::paged_write, pgm, programmer_t::print_parms, programmer_t::program_enable, programmer_t::read_byte, programmer_t::set_fosc, programmer_t::set_sck_period, programmer_t::set_varef, programmer_t::set_vtarget, programmer_t::setup, stk500pp_chip_erase(), stk500pp_disable(), stk500pp_initialize(), stk500pp_paged_load(), stk500pp_paged_write(), stk500pp_program_enable(), stk500pp_read_byte(), stk500pp_write_byte(), stk500v2_close(), stk500v2_display(), stk500v2_enable(), stk500v2_print_parms(), stk500v2_setup(), stk500v2_teardown(), stk600_open(), stk600_set_fosc(), stk600_set_sck_period(), stk600_set_varef(), stk600_set_vtarget(), programmer_t::teardown, programmer_t::type, and programmer_t::write_byte.
Here is the call graph for this function:
|
static |
Referenced by stk500v2_print_parms1(), and stk500v2_set_sck_period_mk2().
| struct { ... } connection_status[] |
Referenced by stk500v2_translate_conn_status().
|
static |
Referenced by stk500v2_display(), and stk500v2_getsync().
Referenced by stk500v2_display().
Referenced by stk500v2_display().
| const char stk500hvsp_desc[] = "Atmel STK500 V2 in high-voltage serial programming mode" |
| const char stk500pp_desc[] = "Atmel STK500 V2 in parallel programming mode" |
| const char stk500v2_desc[] = "Atmel STK500 Version 2.x firmware" |
| const char stk500v2_dragon_hvsp_desc[] = "Atmel AVR Dragon in HVSP mode" |
| const char stk500v2_dragon_isp_desc[] = "Atmel AVR Dragon in ISP mode" |
| const char stk500v2_dragon_pp_desc[] = "Atmel AVR Dragon in PP mode" |
| const char stk500v2_jtag3_desc[] = "Atmel JTAGICE3 in ISP mode" |
| const char stk500v2_jtagmkII_desc[] = "Atmel JTAG ICE mkII in ISP mode" |
| const char stk600_desc[] = "Atmel STK600" |
| const char stk600hvsp_desc[] = "Atmel STK600 in high-voltage serial programming mode" |
| const char stk600pp_desc[] = "Atmel STK600 in parallel programming mode" |