![]() |
Prusa Slicer 2.6.0
|
#include "ac_cfg.h"#include <stdio.h>#include <limits.h>#include <stdbool.h>#include <stdint.h>#include <alloca.h>
Include dependency graph for libavrdude.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | cmdbit |
| struct | opcode |
| struct | avrpart |
| struct | avrmem |
| struct | pindef_t |
| struct | pin_checklist_t |
| union | filedescriptor |
| union | pinfo |
| struct | serial_device |
| struct | programmer_t |
| struct | fioparms |
| struct | update_t |
| struct | programmer_type_t |
| struct | filedescriptor.usb |
| struct | pinfo.usbinfo |
Macros | |
| #define | PATH_MAX 4096 |
| #define | STACKID LISTID |
| #define | SNODEID LNODEID |
| #define | QUEUEID LISTID |
| #define | QNODEID LNODEID |
| #define | PUSH(s, d) lins_n(s,d,1) /* push 'd' onto the stack */ |
| #define | POP(s) lrmv_n(s,1) /* pop the stack */ |
| #define | LOOKSTACK(s) |
| #define | ENQUEUE(q, d) lins_n(q,d,1) /* put 'd' on the end of the queue */ |
| #define | DEQUEUE(q) |
| #define | REQUEUE(q, d) |
| #define | LOOKQUEUE(q) |
| #define | QUEUELEN(q) lsize(q) /* length of the queue */ |
| #define | LISTADD(l, d) ladd(l,d) /* add to end of the list */ |
| #define | LISTRMV(l, d) lrmv_d(l,d) /* remove from end of the list */ |
| #define | AVRPART_SERIALOK 0x0001 /* part supports serial programming */ |
| #define | AVRPART_PARALLELOK 0x0002 /* part supports parallel programming */ |
| #define | AVRPART_PSEUDOPARALLEL 0x0004 /* part has pseudo parallel support */ |
| #define | AVRPART_HAS_JTAG 0x0008 /* part has a JTAG i/f */ |
| #define | AVRPART_ALLOWFULLPAGEBITSTREAM 0x0010 /* JTAG ICE mkII param. */ |
| #define | AVRPART_ENABLEPAGEPROGRAMMING 0x0020 /* JTAG ICE mkII param. */ |
| #define | AVRPART_HAS_DW 0x0040 /* part has a debugWire i/f */ |
| #define | AVRPART_HAS_PDI 0x0080 /* part has PDI i/f rather than ISP (ATxmega) */ |
| #define | AVRPART_AVR32 0x0100 /* part is in AVR32 family */ |
| #define | AVRPART_INIT_SMC 0x0200 /* part will undergo chip erase */ |
| #define | AVRPART_WRITE 0x0400 /* at least one write operation specified */ |
| #define | AVRPART_HAS_TPI 0x0800 /* part has TPI i/f rather than ISP (ATtiny4/5/9/10) */ |
| #define | AVRPART_IS_AT90S1200 0x1000 /* part is an AT90S1200 (needs special treatment) */ |
| #define | AVR_DESCLEN 64 |
| #define | AVR_IDLEN 32 |
| #define | CTL_STACK_SIZE 32 |
| #define | FLASH_INSTR_SIZE 3 |
| #define | EEPROM_INSTR_SIZE 20 |
| #define | TAG_ALLOCATED 1 /* memory byte is allocated */ |
| #define | AVR_MEMDESCLEN 64 |
| #define | PIN_MASK (UINT_MAX>>1) |
| #define | PIN_INVERSE (~(PIN_MASK)) /* flag for inverted pin in serbb */ |
| #define | PIN_MIN 0 /* smallest allowed pin number */ |
| #define | PIN_MAX 31 /* largest allowed pin number */ |
| #define | PIN_FIELD_ELEMENT_SIZE (sizeof(pinmask_t) * 8) |
| #define | PIN_FIELD_SIZE ((PIN_MAX + PIN_FIELD_ELEMENT_SIZE)/PIN_FIELD_ELEMENT_SIZE) |
| #define | SET_BITS_0(x, pgm, pinname, level) |
| #define | GET_BITS_0(x, pgm, pinname) (((x) ^ (pgm)->pin[pinname].inverse[0]) & (pgm)->pin[pinname].mask[0]) |
| #define | PINFO_FL_USEHID 0x0001 |
| #define | PINFO_FL_SILENT 0x0002 /* don't complain if not found */ |
| #define | SERDEV_FL_NONE 0x0000 /* no flags */ |
| #define | SERDEV_FL_CANSETSPEED 0x0001 /* device can change speed */ |
| #define | serial_open (serdev->open) |
| #define | serial_setspeed (serdev->setspeed) |
| #define | serial_close (serdev->close) |
| #define | serial_send (serdev->send) |
| #define | serial_recv (serdev->recv) |
| #define | serial_drain (serdev->drain) |
| #define | serial_set_dtr_rts (serdev->set_dtr_rts) |
| #define | ON 1 |
| #define | OFF 0 |
| #define | PGM_DESCLEN 80 |
| #define | PGM_PORTLEN PATH_MAX |
| #define | PGM_TYPELEN 32 |
| #define | PGM_USBSTRINGLEN 256 |
| #define | SHOW_ALL_PINS (~0u) |
| #define | SHOW_PPI_PINS ((1<<PPI_AVR_VCC)|(1<<PPI_AVR_BUFF)) |
| #define | SHOW_AVR_PINS ((1<<PIN_AVR_RESET)|(1<<PIN_AVR_SCK)|(1<<PIN_AVR_MOSI)|(1<<PIN_AVR_MISO)) |
| #define | SHOW_LED_PINS ((1<<PIN_LED_ERR)|(1<<PIN_LED_RDY)|(1<<PIN_LED_PGM)|(1<<PIN_LED_VFY)) |
| #define | RETURN_IF_CANCEL() |
| #define | DEFAULT_USB "usb" |
Typedefs | |
| typedef uint32_t | pinmask_t |
| typedef void * | LISTID |
| typedef void * | LNODEID |
| typedef struct cmdbit | CMDBIT |
| typedef struct opcode | OPCODE |
| typedef struct avrpart | AVRPART |
| typedef struct avrmem | AVRMEM |
| typedef void(* | walk_avrparts_cb) (const char *name, const char *desc, const char *cfgname, int cfglineno, void *cookie) |
| typedef struct programmer_t | PROGRAMMER |
| typedef void(* | walk_programmers_cb) (const char *name, const char *desc, const char *cfgname, int cfglineno, void *cookie) |
| typedef void(* | FP_UpdateProgress) (int percent, double etime, char *hdr) |
| typedef struct update_t | UPDATE |
| typedef struct programmer_type_t | PROGRAMMER_TYPE |
| typedef void(* | walk_programmer_types_cb) (const char *id, const char *desc, void *cookie) |
Variables | |
| long | serial_recv_timeout |
| struct serial_device * | serdev |
| struct serial_device | serial_serdev |
| struct serial_device | usb_serdev |
| struct serial_device | usb_serdev_frame |
| struct serial_device | avrdoper_serdev |
| struct serial_device | usbhid_serdev |
| struct avrpart | parts [] |
| FP_UpdateProgress | update_progress |
| bool | cancel_flag |
| LISTID | part_list |
| LISTID | programmers |
| char | default_programmer [] |
| char | default_parallel [] |
| char | default_serial [] |
| double | default_bitclock |
| int | default_safemode |
| struct opcode |
| struct avrpart |
Collaboration diagram for avrpart:| Class Members | ||
|---|---|---|
| int | avr910_devcode | |
| unsigned char | bs2 | |
| int | bytedelay | |
| int | chip_erase_delay | |
| int | chiperasepolltimeout | |
| int | chiperasepulsewidth | |
| int | chiperasetime | |
| int | cmdexedelay | |
| char | config_file[PATH_MAX] | |
| unsigned char | controlstack[CTL_STACK_SIZE] | |
| enum ctl_stack_t | ctl_stack_type | |
| char | desc[AVR_DESCLEN] | |
| unsigned short | eecr | |
| unsigned char | eeprom_instr[EEPROM_INSTR_SIZE] | |
| unsigned | flags | |
| unsigned char | flash_instr[FLASH_INSTR_SIZE] | |
| int | hventerstabdelay | |
| int | hvleavestabdelay | |
| int | hvspcmdexedelay | |
| char | id[AVR_IDLEN] | |
| unsigned char | idr | |
| int | latchcycles | |
| int | lineno | |
| unsigned int | mcu_base | |
| LISTID | mem | |
| unsigned int | nvm_base | |
| int | ocdrev | |
| OPCODE * | op[AVR_OP_MAX] | |
| unsigned char | pagel | |
| int | pollindex | |
| int | pollmethod | |
| unsigned char | pollvalue | |
| int | postdelay | |
| int | poweroffdelay | |
| int | predelay | |
| int | progmodedelay | |
| int | programfusepolltimeout | |
| int | programfusepulsewidth | |
| int | programlockpolltimeout | |
| int | programlockpulsewidth | |
| unsigned char | rampz | |
| int | reset_disposition | |
| int | resetdelay | |
| int | resetdelayms | |
| int | resetdelayus | |
| int | retry_pulse | |
| unsigned char | signature[3] | |
| unsigned char | spmcr | |
| int | stabdelay | |
| int | stk500_devcode | |
| int | synchcycles | |
| int | synchloops | |
| int | timeout | |
| int | togglevtg | |
| unsigned short | usbpid | |
| struct avrmem |
Collaboration diagram for avrmem:| Class Members | ||
|---|---|---|
| int | blocksize | |
| unsigned char * | buf | |
| int | delay | |
| char | desc[AVR_MEMDESCLEN] | |
| int | max_write_delay | |
| int | min_write_delay | |
| int | mode | |
| int | num_pages | |
| unsigned int | offset | |
| OPCODE * | op[AVR_OP_MAX] | |
| int | page_size | |
| int | paged | |
| int | pollindex | |
| int | pwroff_after_write | |
| unsigned char | readback[2] | |
| int | readsize | |
| int | size | |
| unsigned char * | tags | |
| struct pindef_t |
Data structure to hold used pins by logical function (PIN_AVR_*, ...)
| Class Members | ||
|---|---|---|
| pinmask_t | inverse[PIN_FIELD_SIZE] | bitfield of inverse/normal usage of used pins |
| pinmask_t | mask[PIN_FIELD_SIZE] | bitfield of used pins |
| struct pin_checklist_t |
Data structure to define a checklist of valid pins for each function.
Collaboration diagram for pin_checklist_t:| Class Members | ||
|---|---|---|
| int | mandatory | is this a mandatory pin |
| int | pinname | logical pinname eg. PIN_AVR_SCK |
| const struct pindef_t * | valid_pins | mask defines allowed pins, inverse define is they might be used inverted |
| union filedescriptor |
| Class Members | ||
|---|---|---|
| int | ifd | |
| void * | pfd | |
| struct filedescriptor.usb | usb | |
| union pinfo |
| Class Members | ||
|---|---|---|
| long | baud | |
| struct pinfo.usbinfo | usbinfo | |
| struct fioparms |
| struct filedescriptor.usb |
| Class Members | ||
|---|---|---|
| int | eep | |
| void * | handle | |
| int | max_xfer | |
| int | rep | |
| int | use_interrupt_xfer | |
| int | wep | |
| #define AVR_DESCLEN 64 |
| #define AVR_IDLEN 32 |
| #define AVR_MEMDESCLEN 64 |
| #define AVRPART_ALLOWFULLPAGEBITSTREAM 0x0010 /* JTAG ICE mkII param. */ |
| #define AVRPART_AVR32 0x0100 /* part is in AVR32 family */ |
| #define AVRPART_ENABLEPAGEPROGRAMMING 0x0020 /* JTAG ICE mkII param. */ |
| #define AVRPART_HAS_DW 0x0040 /* part has a debugWire i/f */ |
| #define AVRPART_HAS_JTAG 0x0008 /* part has a JTAG i/f */ |
| #define AVRPART_HAS_PDI 0x0080 /* part has PDI i/f rather than ISP (ATxmega) */ |
| #define AVRPART_HAS_TPI 0x0800 /* part has TPI i/f rather than ISP (ATtiny4/5/9/10) */ |
| #define AVRPART_INIT_SMC 0x0200 /* part will undergo chip erase */ |
| #define AVRPART_IS_AT90S1200 0x1000 /* part is an AT90S1200 (needs special treatment) */ |
| #define AVRPART_PARALLELOK 0x0002 /* part supports parallel programming */ |
| #define AVRPART_PSEUDOPARALLEL 0x0004 /* part has pseudo parallel support */ |
| #define AVRPART_SERIALOK 0x0001 /* part supports serial programming */ |
| #define AVRPART_WRITE 0x0400 /* at least one write operation specified */ |
| #define CTL_STACK_SIZE 32 |
| #define DEFAULT_USB "usb" |
| #define DEQUEUE | ( | q | ) |
| #define EEPROM_INSTR_SIZE 20 |
| #define ENQUEUE | ( | q, | |
| d | |||
| ) | lins_n(q,d,1) /* put 'd' on the end of the queue */ |
| #define FLASH_INSTR_SIZE 3 |
| #define GET_BITS_0 | ( | x, | |
| pgm, | |||
| pinname | |||
| ) | (((x) ^ (pgm)->pin[pinname].inverse[0]) & (pgm)->pin[pinname].mask[0]) |
Check if the corresponding bit is set (returns != 0) or cleared. The inverse mask is used, to invert the relevant bits. If the pin definition contains multiple pins, then a single set pin leads to return value != 0. Then you have to check the relevant bits of the returned value, if you need more information. It uses only the lowest element (index=0) of the bitfield, which should be enough for most programmers.
| [in] | x | input value |
| [in] | pgm | the programmer whose pin definitions to use |
| [in] | pinname | the logical name of the pin (PIN_AVR_*, ...) |
| #define LISTADD | ( | l, | |
| d | |||
| ) | ladd(l,d) /* add to end of the list */ |
| #define LISTRMV | ( | l, | |
| d | |||
| ) | lrmv_d(l,d) /* remove from end of the list */ |
| #define LOOKQUEUE | ( | q | ) |
| #define LOOKSTACK | ( | s | ) |
| #define OFF 0 |
| #define ON 1 |
| #define PATH_MAX 4096 |
| #define PGM_DESCLEN 80 |
| #define PGM_PORTLEN PATH_MAX |
| #define PGM_TYPELEN 32 |
| #define PGM_USBSTRINGLEN 256 |
| #define PIN_FIELD_ELEMENT_SIZE (sizeof(pinmask_t) * 8) |
Number of pins in each element of the bitfield
| #define PIN_FIELD_SIZE ((PIN_MAX + PIN_FIELD_ELEMENT_SIZE)/PIN_FIELD_ELEMENT_SIZE) |
Numer of elements to store the complete bitfield of all pins
| #define PIN_INVERSE (~(PIN_MASK)) /* flag for inverted pin in serbb */ |
| #define PIN_MASK (UINT_MAX>>1) |
| #define PIN_MAX 31 /* largest allowed pin number */ |
| #define PIN_MIN 0 /* smallest allowed pin number */ |
| #define PINFO_FL_SILENT 0x0002 /* don't complain if not found */ |
| #define PINFO_FL_USEHID 0x0001 |
| #define POP | ( | s | ) | lrmv_n(s,1) /* pop the stack */ |
| #define PUSH | ( | s, | |
| d | |||
| ) | lins_n(s,d,1) /* push 'd' onto the stack */ |
| #define QNODEID LNODEID |
| #define QUEUEID LISTID |
| #define QUEUELEN | ( | q | ) | lsize(q) /* length of the queue */ |
| #define REQUEUE | ( | q, | |
| d | |||
| ) |
| #define RETURN_IF_CANCEL | ( | ) |
| #define SERDEV_FL_CANSETSPEED 0x0001 /* device can change speed */ |
| #define SERDEV_FL_NONE 0x0000 /* no flags */ |
| #define serial_close (serdev->close) |
| #define serial_drain (serdev->drain) |
| #define serial_open (serdev->open) |
| #define serial_recv (serdev->recv) |
| #define serial_send (serdev->send) |
| #define serial_set_dtr_rts (serdev->set_dtr_rts) |
| #define serial_setspeed (serdev->setspeed) |
| #define SET_BITS_0 | ( | x, | |
| pgm, | |||
| pinname, | |||
| level | |||
| ) |
This sets the corresponding bits to 1 or 0, the inverse mask is used to invert the value in necessary. It uses only the lowest element (index=0) of the bitfield, which should be enough for most programmers.
| [in] | x | input value |
| [in] | pgm | the programmer whose pin definitions to use |
| [in] | pinname | the logical name of the pin (PIN_AVR_*, ...) |
| [in] | level | the logical level (level != 0 => 1, level == 0 => 0), if the pin is defined as inverted the resulting bit is also inverted |
| #define SHOW_ALL_PINS (~0u) |
| #define SHOW_AVR_PINS ((1<<PIN_AVR_RESET)|(1<<PIN_AVR_SCK)|(1<<PIN_AVR_MOSI)|(1<<PIN_AVR_MISO)) |
| #define SHOW_LED_PINS ((1<<PIN_LED_ERR)|(1<<PIN_LED_RDY)|(1<<PIN_LED_PGM)|(1<<PIN_LED_VFY)) |
| #define SHOW_PPI_PINS ((1<<PPI_AVR_VCC)|(1<<PPI_AVR_BUFF)) |
| #define SNODEID LNODEID |
| #define STACKID LISTID |
| #define TAG_ALLOCATED 1 /* memory byte is allocated */ |
| typedef void(* FP_UpdateProgress) (int percent, double etime, char *hdr) |
| typedef struct programmer_t PROGRAMMER |
| typedef struct programmer_type_t PROGRAMMER_TYPE |
| typedef void(* walk_avrparts_cb) (const char *name, const char *desc, const char *cfgname, int cfglineno, void *cookie) |
| typedef void(* walk_programmers_cb) (const char *name, const char *desc, const char *cfgname, int cfglineno, void *cookie) |
| anonymous enum |
| Enumerator | |
|---|---|
| FIO_READ | |
| FIO_WRITE | |
| anonymous enum |
| anonymous enum |
| anonymous enum |
| Enumerator | |
|---|---|
| PPI_AVR_VCC | |
| PPI_AVR_BUFF | |
| PIN_AVR_RESET | |
| PIN_AVR_SCK | |
| PIN_AVR_MOSI | |
| PIN_AVR_MISO | |
| PIN_LED_ERR | |
| PIN_LED_RDY | |
| PIN_LED_PGM | |
| PIN_LED_VFY | |
| N_PINS | |
| enum conntype_t |
| enum ctl_stack_t |
| enum exit_datahigh_t |
| enum exit_reset_t |
| enum exit_vcc_t |
| enum FILEFMT |
| enum updateflags |
| int avr_chip_erase | ( | PROGRAMMER * | pgm, |
| AVRPART * | p | ||
| ) |
References programmer_t::chip_erase, and pgm.
Referenced by avrdude_main().
Here is the caller graph for this function:References avr_mem_display(), avr_pin_name(), avrdude_message(), AVRPART_PARALLELOK, AVRPART_PSEUDOPARALLEL, AVRPART_SERIALOK, avrpart::bs2, avrpart::bytedelay, avrpart::chip_erase_delay, avrpart::cmdexedelay, avrpart::desc, avrpart::flags, free(), ldata(), lfirst(), lnext(), malloc(), avrpart::mem, MSG_INFO, avrpart::pagel, avrpart::pollindex, avrpart::pollvalue, reset_disp_str(), avrpart::reset_disposition, avrpart::retry_pulse, avrpart::stabdelay, avrpart::synchloops, avrpart::timeout, and verbose.
Referenced by avrdude_main(), and cmd_part().
Here is the call graph for this function:
Here is the caller graph for this function:References avr_dup_opcode(), avr_new_memtype(), AVR_OP_MAX, avrdude_oom(), avrmem::buf, malloc(), avrmem::op, avrmem::size, and avrmem::tags.
Referenced by avr_dup_part().
Here is the call graph for this function:
Here is the caller graph for this function:References avr_dup_mem(), avr_dup_opcode(), avr_new_part(), AVR_OP_MAX, ladd(), ldata(), lfirst(), lnext(), avrpart::mem, avrpart::op, and save().
Referenced by do_op(), and yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:References avr_free_opcode(), avrmem::buf, free(), avrmem::op, and avrmem::tags.
Referenced by avr_free_part(), and yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:References free().
Referenced by avr_free_mem(), avr_free_part(), and yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:References avr_free_mem(), avr_free_opcode(), free(), and ldestroy_cb().
Referenced by cleanup_config(), and yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:| int avr_get_cycle_count | ( | PROGRAMMER * | pgm, |
| AVRPART * | p, | ||
| int * | cycles | ||
| ) |
References avr_locate_mem(), avrdude_message(), MSG_INFO, pgm, progname, and programmer_t::read_byte.
Here is the call graph for this function:| int avr_get_output | ( | OPCODE * | op, |
| unsigned char * | res, | ||
| unsigned char * | data | ||
| ) |
References AVR_CMDBIT_OUTPUT, opcode::bit, cmdbit::bitno, and cmdbit::type.
Referenced by avr_read_byte_default().
Here is the caller graph for this function:| int avr_get_output_index | ( | OPCODE * | op | ) |
References AVR_CMDBIT_OUTPUT, opcode::bit, and cmdbit::type.
Referenced by stk500isp_read_byte().
Here is the caller graph for this function:| int avr_initmem | ( | AVRPART * | p | ) |
References avrdude_message(), avrmem::buf, avrmem::desc, ldata(), lfirst(), lnext(), malloc(), avrpart::mem, MSG_INFO, progname, avrmem::size, and avrmem::tags.
Referenced by avrdude_main().
Here is the call graph for this function:
Here is the caller graph for this function:References avrmem::desc, ldata(), lfirst(), lnext(), and avrpart::mem.
Referenced by avr_get_cycle_count(), avr_put_cycle_count(), avr_read(), avr_tpi_chip_erase(), avr_verify(), avr_write(), avrdude_main(), bitbang_chip_erase(), cmd_dump(), cmd_sig(), cmd_write(), do_op(), fileio(), jtag3_initialize(), jtagmkII_initialize(), safemode_readfuses(), safemode_writefuse(), stk500_initialize(), stk500v2_initialize(), stk600_xprog_chip_erase(), stk600_xprog_program_enable(), and yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:References AVR_OP_MAX, avr_op_str(), avrdude_message(), opcode::bit, cmdbit::bitno, bittype(), avrmem::blocksize, avrmem::delay, avrmem::desc, avrmem::max_write_delay, avrmem::min_write_delay, avrmem::mode, MSG_INFO, MSG_TRACE2, avrmem::num_pages, avrmem::op, avrmem::page_size, avrmem::paged, avrmem::pollindex, avrmem::readback, avrmem::size, cmdbit::type, cmdbit::value, and verbose.
Referenced by avr_display().
Here is the call graph for this function:
Here is the caller graph for this function:| int avr_mem_hiaddr | ( | AVRMEM * | mem | ) |
References avrmem::buf, and avrmem::size.
Referenced by avr_read(), and fileio().
Here is the caller graph for this function:References avrdude_oom(), and malloc().
Referenced by avr_dup_mem(), and yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:References avrdude_oom(), and malloc().
Referenced by yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:References avrdude_oom(), AVRPART_ENABLEPAGEPROGRAMMING, AVRPART_PARALLELOK, AVRPART_SERIALOK, avrpart::config_file, CTL_STACK_NONE, avrpart::ctl_stack_type, avrpart::desc, avrpart::flags, avrpart::id, lcreat(), avrpart::lineno, malloc(), avrpart::mem, avrpart::ocdrev, PIN_AVR_SCK, RESET_DEDICATED, avrpart::reset_disposition, avrpart::retry_pulse, and avrpart::signature.
Referenced by avr_dup_part(), and yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:| const char * avr_pin_name | ( | int | pinname | ) |
Returns the name of the pin as string.
| pinname | the pinname which we want as string. |
References PIN_AVR_MISO, PIN_AVR_MOSI, PIN_AVR_RESET, PIN_AVR_SCK, PIN_LED_ERR, PIN_LED_PGM, PIN_LED_RDY, PIN_LED_VFY, PPI_AVR_BUFF, and PPI_AVR_VCC.
Referenced by avr_display(), and pins_check().
Here is the caller graph for this function:| int avr_put_cycle_count | ( | PROGRAMMER * | pgm, |
| AVRPART * | p, | ||
| int | cycles | ||
| ) |
References avr_locate_mem(), avr_write_byte(), avrdude_message(), MSG_INFO, pgm, and progname.
Here is the call graph for this function:| int avr_read | ( | PROGRAMMER * | pgm, |
| AVRPART * | p, | ||
| char * | memtype, | ||
| AVRPART * | v | ||
| ) |
References avr_locate_mem(), avr_mem_hiaddr(), avr_tpi_poll_nvmbsy(), avr_tpi_setup_rw(), avrdude_message(), AVRPART_HAS_TPI, avrmem::buf, cmd, programmer_t::cmd_tpi, avrpart::desc, avrmem::desc, avrpart::flags, MSG_DEBUG, MSG_INFO, avrmem::page_size, programmer_t::paged_load, pgm, progname, programmer_t::read_byte, programmer_t::read_sig_bytes, report_progress(), RETURN_IF_CANCEL, avrmem::size, strcasecmp, TAG_ALLOCATED, avrmem::tags, TPI_CMD_SLD_PI, and TPI_NVMCMD_NO_OPERATION.
Referenced by avr_signature(), and do_op().
Here is the call graph for this function:
Here is the caller graph for this function:| int avr_read_byte_default | ( | PROGRAMMER * | pgm, |
| AVRPART * | p, | ||
| AVRMEM * | mem, | ||
| unsigned long | addr, | ||
| unsigned char * | value | ||
| ) |
References avr_get_output(), AVR_OP_LOAD_EXT_ADDR, AVR_OP_READ, AVR_OP_READ_HI, AVR_OP_READ_LO, avr_set_addr(), avr_set_bits(), avr_tpi_poll_nvmbsy(), avr_tpi_setup_rw(), avrdude_message(), AVRPART_HAS_TPI, programmer_t::cmd, cmd, programmer_t::cmd_tpi, avrmem::desc, programmer_t::err_led, avrpart::flags, MSG_INFO, OFF, ON, avrmem::op, pgm, programmer_t::pgm_led, progname, TPI_CMD_SLD, TPI_NVMCMD_NO_OPERATION, and programmer_t::type.
Referenced by avr910_read_byte(), buspirate_bb_initpgm(), buspirate_initpgm(), serbb_initpgm(), and stk500_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:References AVR_CMDBIT_ADDRESS, opcode::bit, cmdbit::bitno, cmd, and cmdbit::type.
Referenced by avr_read_byte_default(), avr_write_byte_default(), avr_write_page(), buspirate_paged_write(), stk500_loadaddr(), stk500isp_read_byte(), and stk500isp_write_byte().
Here is the caller graph for this function:| int avr_set_bits | ( | OPCODE * | op, |
| unsigned char * | cmd | ||
| ) |
References AVR_CMDBIT_VALUE, opcode::bit, cmd, cmdbit::type, and cmdbit::value.
Referenced by avr_read_byte_default(), avr_write_byte_default(), avr_write_page(), bitbang_chip_erase(), bitbang_program_enable(), buspirate_chip_erase(), buspirate_paged_write(), buspirate_program_enable(), stk500_chip_erase(), stk500_loadaddr(), stk500isp_read_byte(), stk500isp_write_byte(), stk500v2_chip_erase(), stk500v2_paged_load(), stk500v2_paged_write(), and stk500v2_program_enable().
Here is the caller graph for this function:| int avr_set_input | ( | OPCODE * | op, |
| unsigned char * | cmd, | ||
| unsigned char | data | ||
| ) |
References AVR_CMDBIT_INPUT, opcode::bit, cmdbit::bitno, cmd, and cmdbit::type.
Referenced by avr_write_byte_default(), buspirate_paged_write(), and stk500isp_write_byte().
Here is the caller graph for this function:| int avr_signature | ( | PROGRAMMER * | pgm, |
| AVRPART * | p | ||
| ) |
References avr_read(), avrdude_message(), avrpart::desc, MSG_INFO, pgm, progname, and report_progress().
Referenced by avrdude_main(), and cmd_sig().
Here is the call graph for this function:
Here is the caller graph for this function:| int avr_tpi_chip_erase | ( | PROGRAMMER * | pgm, |
| AVRPART * | p | ||
| ) |
References __func__, avr_locate_mem(), avr_tpi_poll_nvmbsy(), avrdude_message(), AVRPART_HAS_TPI, cmd, programmer_t::cmd_tpi, avrpart::desc, avrpart::flags, MSG_INFO, OFF, avrmem::offset, ON, pgm, programmer_t::pgm_led, TPI_CMD_SOUT, TPI_CMD_SST, TPI_CMD_SSTPR, TPI_IOREG_NVMCMD, TPI_NVMCMD_CHIP_ERASE, and TPI_SIO_ADDR.
Here is the call graph for this function:| int avr_tpi_poll_nvmbsy | ( | PROGRAMMER * | pgm | ) |
References cmd, programmer_t::cmd_tpi, pgm, TPI_CMD_SIN, TPI_IOREG_NVMCSR, TPI_IOREG_NVMCSR_NVMBSY, TPI_SIO_ADDR, and void().
Referenced by avr_read(), avr_read_byte_default(), avr_tpi_chip_erase(), avr_write(), avr_write_byte_default(), and bitbang_chip_erase().
Here is the call graph for this function:
Here is the caller graph for this function:| int avr_tpi_program_enable | ( | PROGRAMMER * | pgm, |
| AVRPART * | p, | ||
| unsigned char | guard_time | ||
| ) |
References __func__, avrdude_message(), AVRPART_HAS_TPI, cmd, programmer_t::cmd_tpi, avrpart::flags, MSG_INFO, pgm, TPI_CMD_SLDCS, TPI_CMD_SSTCS, TPI_IDENT_CODE, TPI_REG_TPIIR, TPI_REG_TPIPCR, TPI_REG_TPISR, TPI_REG_TPISR_NVMEN, and tpi_skey_cmd.
Here is the call graph for this function:References avr_locate_mem(), avrdude_message(), avrpart::desc, MSG_INFO, progbuf, progname, RETURN_IF_CANCEL, and TAG_ALLOCATED.
Referenced by do_op().
Here is the call graph for this function:
Here is the caller graph for this function:| int avr_write | ( | PROGRAMMER * | pgm, |
| AVRPART * | p, | ||
| char * | memtype, | ||
| int | size, | ||
| int | auto_erase | ||
| ) |
References avr_locate_mem(), avr_tpi_poll_nvmbsy(), avr_tpi_setup_rw(), avr_write_byte(), avr_write_page(), avrdude_message(), AVRPART_HAS_TPI, avrmem::buf, cmd, programmer_t::cmd_tpi, avrpart::desc, programmer_t::err_led, avrpart::flags, MSG_DEBUG, MSG_INFO, OFF, ON, programmer_t::page_erase, avrmem::page_size, avrmem::paged, programmer_t::paged_write, pgm, progbuf, progname, report_progress(), RETURN_IF_CANCEL, avrmem::size, TAG_ALLOCATED, avrmem::tags, TPI_CMD_SST_PI, TPI_NVMCMD_WORD_WRITE, and programmer_t::write_setup.
Referenced by do_op().
Here is the call graph for this function:
Here is the caller graph for this function:| int avr_write_byte | ( | PROGRAMMER * | pgm, |
| AVRPART * | p, | ||
| AVRMEM * | mem, | ||
| unsigned long | addr, | ||
| unsigned char | data | ||
| ) |
References avrmem::desc, pgm, safemode_memfuses(), and programmer_t::write_byte.
Referenced by avr_put_cycle_count(), avr_write(), cmd_write(), and safemode_writefuse().
Here is the call graph for this function:
Here is the caller graph for this function:| int avr_write_byte_default | ( | PROGRAMMER * | pgm, |
| AVRPART * | p, | ||
| AVRMEM * | mem, | ||
| unsigned long | addr, | ||
| unsigned char | data | ||
| ) |
References AVR_OP_LOADPAGE_HI, AVR_OP_LOADPAGE_LO, AVR_OP_WRITE, AVR_OP_WRITE_HI, AVR_OP_WRITE_LO, avr_set_addr(), avr_set_bits(), avr_set_input(), avr_tpi_poll_nvmbsy(), avr_tpi_setup_rw(), avrdude_message(), AVRPART_HAS_TPI, AVRPART_IS_AT90S1200, programmer_t::cmd, cmd, programmer_t::cmd_tpi, avrpart::desc, avrmem::desc, programmer_t::err_led, avrpart::flags, gettimeofday(), programmer_t::initialize, avrmem::max_write_delay, MSG_INFO, OFF, avrmem::offset, ON, avrmem::op, avrmem::paged, pgm, programmer_t::pgm_led, programmer_t::pinno, programmer_t::powerdown, PPI_AVR_VCC, progname, avrmem::pwroff_after_write, programmer_t::read_byte, avrmem::readback, TPI_CMD_SST, TPI_CMD_SST_PI, TPI_NVMCMD_SECTION_ERASE, TPI_NVMCMD_WORD_WRITE, programmer_t::type, and usleep().
Referenced by avr910_write_byte(), buspirate_bb_initpgm(), buspirate_initpgm(), serbb_initpgm(), and stk500_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:| int avr_write_page | ( | PROGRAMMER * | pgm, |
| AVRPART * | p, | ||
| AVRMEM * | mem, | ||
| unsigned long | addr | ||
| ) |
References AVR_OP_LOAD_EXT_ADDR, AVR_OP_LOADPAGE_LO, AVR_OP_READ_LO, AVR_OP_WRITEPAGE, avr_set_addr(), avr_set_bits(), avrdude_message(), programmer_t::cmd, cmd, avrmem::desc, programmer_t::err_led, avrmem::max_write_delay, MSG_INFO, OFF, ON, avrmem::op, pgm, programmer_t::pgm_led, progname, programmer_t::type, and usleep().
Referenced by avr_write(), and buspirate_paged_write().
Here is the call graph for this function:
Here is the caller graph for this function:References avr_free_part(), free_token(), ldestroy_cb(), number_list, part_list, pgm_free(), programmers, and string_list.
Referenced by cleanup_main().
Here is the call graph for this function:
Here is the caller graph for this function:| int do_op | ( | PROGRAMMER * | pgm, |
| struct avrpart * | p, | ||
| UPDATE * | upd, | ||
| enum updateflags | flags | ||
| ) |
References avr_dup_part(), avr_locate_mem(), avr_read(), avr_verify(), avr_write(), avrdude_message(), avrpart::desc, DEVICE_READ, DEVICE_VERIFY, DEVICE_WRITE, programmer_t::err_led, fileio(), update_t::filename, FIO_READ, FIO_WRITE, avrpart::flags, update_t::format, avrpart::mem, update_t::memtype, MSG_INFO, OFF, ON, update_t::op, pgm, progname, quell_progress, report_progress(), update_t::section, programmer_t::set_upload_size, programmer_t::type, UF_AUTO_ERASE, UF_NOWRITE, and programmer_t::vfy_led.
Referenced by avrdude_main().
Here is the call graph for this function:
Here is the caller graph for this function:References avrdude_oom(), update_t::filename, malloc(), and update_t::memtype.
Referenced by avrdude_main().
Here is the call graph for this function:
Here is the caller graph for this function:| int fileio | ( | int | op, |
| char * | filename, | ||
| FILEFMT | format, | ||
| struct avrpart * | p, | ||
| char * | memtype, | ||
| int | size, | ||
| unsigned | section | ||
| ) |
References avr_locate_mem(), avr_mem_hiaddr(), avrdude_message(), avrpart::desc, fileio_ihex(), fileio_imm(), fileio_num(), fileio_rbin(), fileio_setparms(), fileio_srec(), FIO_READ, FIO_WRITE, FMT_AUTO, fmt_autodetect(), FMT_BIN, FMT_DEC, FMT_ELF, FMT_HEX, FMT_IHEX, FMT_IMM, FMT_OCT, FMT_RBIN, FMT_SREC, fmtstr(), fopen_and_seek(), fioparms::iodesc, fioparms::mode, MSG_INFO, fioparms::op, progbuf, progname, quell_progress, and strcasecmp.
Referenced by do_op().
Here is the call graph for this function:
Here is the caller graph for this function:| char * fmtstr | ( | FILEFMT | format | ) |
References FMT_AUTO, FMT_ELF, FMT_IHEX, FMT_RBIN, and FMT_SREC.
Referenced by fileio(), Slic3r::Utils::anonymous_namespace{Time.cpp}::process_format(), Slic3r::Utils::str2time(), and Slic3r::Utils::time2str().
Here is the caller graph for this function:References MAX_MODE_LEN, and PATH_MAX.
Referenced by fopen_and_seek(), and read_config().
Here is the caller graph for this function:References update_t::filename, free(), and update_t::memtype.
Referenced by cleanup_main().
Here is the call graph for this function:
Here is the caller graph for this function:| int init_config | ( | void | ) |
References current_mem, current_part, current_prog, infile, lcreat(), lineno, number_list, part_list, programmers, and string_list.
Referenced by avrdude_main().
Here is the call graph for this function:
Here is the caller graph for this function:References LIST::bottom, CKLMAGIC, CKMAGIC, LISTNODE::data, get_listnode(), LISTNODE::next, LIST::num, LISTNODE::prev, and LIST::top.
Referenced by avr_dup_part(), avrdude_main(), insert_ln(), jtag3_open_common(), laddo(), laddu(), lcat(), lins_n(), pgm_dup(), and yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:| int laddo | ( | LISTID | lid, |
| void * | p, | ||
| int(*)(const void *p1, const void *p2) | compare, | ||
| LNODEID * | firstdup | ||
| ) |
References CKLMAGIC, CKMAGIC, LISTNODE::data, insert_ln(), ladd(), LISTNODE::next, and LIST::top.
Here is the call graph for this function:References CKLMAGIC, CKMAGIC, LISTNODE::data, insert_ln(), ladd(), LISTNODE::next, and LIST::top.
Here is the call graph for this function:References LIST::bottom, CKLMAGIC, DEFAULT_POOLSIZE, FREE, LIST::free_on_close, MAGIC, MALLOC, LIST::n_ln_pool, LIST::next_ln, LIST::np_bottom, LIST::np_top, LIST::num, LIST::poolsize, and LIST::top.
Referenced by avr_new_part(), avrdude_main(), init_config(), pgm_dup(), pgm_new(), and yyparse().
Here is the caller graph for this function:References CKMAGIC.
Referenced by avr910_parseextparms(), avr_display(), avr_dup_part(), avr_initmem(), avr_locate_mem(), avrdude_main(), buspirate_parseextparms(), jtag3_initialize(), jtag3_open_common(), jtag3_parseextparms(), jtagmkI_set_devdescr(), jtagmkII_parseextparms(), jtagmkII_set_devdescr(), jtagmkII_set_xmega_params(), locate_part(), locate_part_by_avr910_devcode(), locate_part_by_signature(), locate_programmer(), pgm_dup(), sort_programmer_compare(), stk500_close(), stk500_initialize(), stk500_open(), stk500_paged_load(), stk500_paged_write(), stk500hv_initialize(), stk500v2_initialize(), walk_avrparts(), walk_programmers(), wiring_parseextparms(), and yyparse().
Here is the caller graph for this function:References NODEPOOL::chain_next, CKLMAGIC, FREE, LIST::free_on_close, and LIST::np_top.
Referenced by cleanup_main(), and ldestroy_cb().
Here is the caller graph for this function:References CKLMAGIC, LISTNODE::data, ldestroy(), LISTNODE::next, and LIST::top.
Referenced by avr_free_part(), cleanup_config(), cleanup_main(), pgm_free(), and yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:References CKLMAGIC.
Referenced by avr910_parseextparms(), avr_display(), avr_dup_part(), avr_initmem(), avr_locate_mem(), avrdude_main(), buspirate_parseextparms(), jtag3_initialize(), jtag3_open_common(), jtag3_parseextparms(), jtagmkI_set_devdescr(), jtagmkII_parseextparms(), jtagmkII_set_devdescr(), jtagmkII_set_xmega_params(), locate_part(), locate_part_by_avr910_devcode(), locate_part_by_signature(), locate_programmer(), pgm_dup(), sort_programmer_compare(), stk500_close(), stk500_initialize(), stk500_open(), stk500_paged_load(), stk500_paged_write(), stk500hv_initialize(), stk500v2_initialize(), walk_avrparts(), walk_programmers(), wiring_parseextparms(), and yyparse().
Here is the caller graph for this function:References CKLMAGIC, CKMAGIC, lsize(), LISTNODE::next, and LIST::top.
Here is the call graph for this function:References CKLMAGIC, CKMAGIC, LISTNODE::data, lsize(), LISTNODE::next, and LIST::top.
Here is the call graph for this function:References CKLMAGIC, CKMAGIC, insert_ln(), LISTNODE::next, and LIST::top.
Here is the call graph for this function:References CKLMAGIC, CKMAGIC, insert_ln(), ladd(), LISTNODE::next, LIST::num, and LIST::top.
Here is the call graph for this function:References CKMAGIC.
Referenced by avr910_parseextparms(), avr_display(), avr_dup_part(), avr_initmem(), avr_locate_mem(), avrdude_main(), buspirate_parseextparms(), Slic3r::connect_monotonic_regions(), jtag3_initialize(), jtag3_open_common(), jtag3_parseextparms(), jtagmkI_set_devdescr(), jtagmkII_parseextparms(), jtagmkII_set_devdescr(), jtagmkII_set_xmega_params(), locate_part(), locate_part_by_avr910_devcode(), locate_part_by_signature(), locate_programmer(), lprint(), pgm_dup(), Slic3r::smooth_compensation_banded(), stk500hv_initialize(), stk500v2_initialize(), walk_avrparts(), walk_programmers(), wiring_parseextparms(), and yyparse().
Here is the caller graph for this function:References avrpart::desc, avrpart::id, ldata(), lfirst(), lnext(), parts, and strcasecmp.
Referenced by avrdude_main(), and yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:References avrpart::avr910_devcode, ldata(), lfirst(), lnext(), and parts.
Referenced by avr910_initialize().
Here is the call graph for this function:
Here is the caller graph for this function:References ldata(), lfirst(), lnext(), parts, and avrpart::signature.
Referenced by avrdude_main().
Here is the call graph for this function:
Here is the caller graph for this function:| PROGRAMMER * locate_programmer | ( | LISTID | programmers, |
| const char * | configid | ||
| ) |
References programmer_t::id, ldata(), lfirst(), lnext(), programmers, and strcasecmp.
Referenced by avrdude_main(), and yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:| const PROGRAMMER_TYPE * locate_programmer_type | ( | const char * | id | ) |
References programmer_type_t::id, programmers_types, and strcasecmp.
Referenced by yyparse().
Here is the caller graph for this function:References CKMAGIC.
Referenced by Slic3r::take_ccw_limited(), and Slic3r::take_cw_limited().
Here is the caller graph for this function:| int lprint | ( | FILE * | f, |
| LISTID | lid | ||
| ) |
References LIST::bottom, NODEPOOL::chain_next, NODEPOOL::chain_prev, CHECK_MAGIC, LISTNODE::data, LIST::free_on_close, lnext(), MAGIC, LIST::n_ln_pool, LISTNODE::next, LIST::next_ln, LIST::np_bottom, LIST::np_top, LIST::num, LIST::poolsize, LISTNODE::prev, and LIST::top.
Here is the call graph for this function:References LIST::bottom, CKLMAGIC, and remove_ln().
Here is the call graph for this function:References CKLMAGIC, CKMAGIC, LISTNODE::data, LISTNODE::next, remove_ln(), and LIST::top.
Referenced by yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:References CKLMAGIC, CKMAGIC, LISTNODE::next, remove_ln(), and LIST::top.
Here is the call graph for this function:References CKLMAGIC, CKMAGIC, LISTNODE::next, LIST::num, remove_ln(), and LIST::top.
Referenced by assign_pin_list(), lcat(), parse_cmdbits(), and yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:| int lsize | ( | LISTID | lid | ) |
References CKLMAGIC.
Referenced by assign_pin_list(), avrdude_main(), lcat(), lget_ln(), lget_n(), parse_cmdbits(), and yyparse().
Here is the caller graph for this function:References CKLMAGIC, CKMAGIC, LISTNODE::data, LISTNODE::next, and LIST::top.
Referenced by sort_avrparts(), and sort_programmers().
Here is the caller graph for this function:References CKLMAGIC, CKMAGIC, LISTNODE::data, LISTNODE::next, and LIST::top.
| UPDATE * new_update | ( | int | op, |
| char * | memtype, | ||
| int | filefmt, | ||
| char * | filename, | ||
| unsigned | section | ||
| ) |
References avrdude_oom(), update_t::filename, update_t::format, malloc(), update_t::memtype, update_t::op, and update_t::section.
Referenced by Slic3r::PresetUpdater::priv::get_config_updates().
Here is the call graph for this function:
Here is the caller graph for this function:| UPDATE * parse_op | ( | char * | s | ) |
References avrdude_message(), avrdude_oom(), DEVICE_READ, DEVICE_VERIFY, DEVICE_WRITE, update_t::filename, FMT_AUTO, FMT_BIN, FMT_DEC, FMT_ELF, FMT_HEX, FMT_IHEX, FMT_IMM, FMT_OCT, FMT_RBIN, FMT_SREC, update_t::format, free(), malloc(), update_t::memtype, MSG_INFO, update_t::op, progname, and update_t::section.
Referenced by avrdude_main().
Here is the call graph for this function:
Here is the caller graph for this function:| void pgm_display_generic | ( | PROGRAMMER * | pgm, |
| const char * | p | ||
| ) |
References pgm, pgm_display_generic_mask(), and SHOW_ALL_PINS.
Here is the call graph for this function:| void pgm_display_generic_mask | ( | PROGRAMMER * | pgm, |
| const char * | p, | ||
| unsigned int | show | ||
| ) |
References avrdude_message(), MSG_INFO, pgm, programmer_t::pin, PIN_AVR_MISO, PIN_AVR_MOSI, PIN_AVR_RESET, PIN_AVR_SCK, PIN_LED_ERR, PIN_LED_PGM, PIN_LED_RDY, PIN_LED_VFY, pins_to_str(), PPI_AVR_BUFF, and PPI_AVR_VCC.
Referenced by pgm_display_generic().
Here is the call graph for this function:
Here is the caller graph for this function:| PROGRAMMER * pgm_dup | ( | const PROGRAMMER *const | src | ) |
References avrdude_message(), avrdude_oom(), programmer_t::id, ladd(), lcreat(), ldata(), lfirst(), lnext(), malloc(), MSG_INFO, pgm, progname, and programmer_t::usbpid.
Referenced by yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:| int pgm_fill_old_pins | ( | struct programmer_t *const | pgm | ) |
Convert for given programmer new pin definitions to old pin definitions.
| [in,out] | pgm | programmer whose pins shall be converted. |
References pgm, programmer_t::pin, PIN_AVR_MISO, PIN_AVR_MOSI, PIN_AVR_RESET, PIN_AVR_SCK, pin_fill_old_pinlist(), pin_fill_old_pinno(), PIN_LED_ERR, PIN_LED_PGM, PIN_LED_RDY, PIN_LED_VFY, programmer_t::pinno, PPI_AVR_BUFF, and PPI_AVR_VCC.
Referenced by buspirate_bb_initpgm(), and serbb_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:| void pgm_free | ( | PROGRAMMER *const | p | ) |
References free(), programmer_t::id, ldestroy_cb(), and programmer_t::usbpid.
Referenced by cleanup_config(), and yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:| PROGRAMMER * pgm_new | ( | void | ) |
References avrdude_message(), programmer_t::baudrate, programmer_t::chip_erase, programmer_t::close, programmer_t::cmd, programmer_t::cmd_tpi, programmer_t::config_file, programmer_t::desc, programmer_t::disable, programmer_t::display, programmer_t::enable, programmer_t::err_led, programmer_t::id, programmer_t::initialize, programmer_t::initpgm, lcreat(), programmer_t::lineno, malloc(), MSG_INFO, N_PINS, programmer_t::open, programmer_t::paged_load, programmer_t::paged_write, programmer_t::parseextparams, programmer_t::perform_osccal, pgm, pgm_default_2(), pgm_default_3(), pgm_default_4(), pgm_default_5(), pgm_default_6(), pgm_default_led(), pgm_default_open(), pgm_default_powerup_powerdown(), programmer_t::pgm_led, programmer_t::pin, pin_clear_all(), programmer_t::pinno, programmer_t::powerdown, programmer_t::powerup, progname, programmer_t::program_enable, programmer_t::rdy_led, programmer_t::read_byte, programmer_t::read_sig_bytes, programmer_t::set_fosc, programmer_t::set_varef, programmer_t::set_vtarget, programmer_t::setup, programmer_t::spi, programmer_t::teardown, programmer_t::type, programmer_t::usbpid, programmer_t::vfy_led, programmer_t::write_byte, and programmer_t::write_setup.
Referenced by yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:Adds a pin in the pin definition as normal or inverse pin.
| [out] | pindef | pin definition to update |
| [in] | pin | number of pin [0..PIN_MAX] |
| [in] | inverse | inverse (true) or normal (false) pin |
References inverse(), pindef_t::inverse, pindef_t::mask, and PIN_FIELD_ELEMENT_SIZE.
Referenced by assign_pin(), and assign_pin_list().
Here is the call graph for this function:
Here is the caller graph for this function:This function returns a string representation of pins in the mask eg. 1,3,5-7,9,12 Another execution of this function will overwrite the previous result in the static buffer. Consecutive pin number are representated as start-end.
| [in] | pinmask | the pin mask for which we want the string representation |
References PIN_FIELD_ELEMENT_SIZE, PIN_MAX, and PIN_MIN.
Referenced by pins_check().
Here is the caller graph for this function:| int pins_check | ( | const struct programmer_t *const | pgm, |
| const struct pin_checklist_t *const | checklist, | ||
| const int | size, | ||
| const bool | output | ||
| ) |
This function checks all pin of pgm against the constraints given in the checklist. It checks if
In case of any error it report the wrong function and the pin numbers. For verbose >= 2 it also reports the possible correct values. For verbose >=3 it shows also which pins were ok.
| [in] | pgm | the programmer to check |
| [in] | checklist | the constraint for the pins |
| [in] | size | the number of entries in checklist |
| [in] | output | false suppresses error messages to the user |
This function checks all pin of pgm against the constraints given in the checklist. It checks if
In case of any error it report the wrong function and the pin numbers. For verbose >= 2 it also reports the possible correct values. For verbose >=3 it shows also which pins were ok.
| [in] | pgm | the programmer to check |
| [in] | checklist | the constraint for the pins |
| [in] | size | the number of entries in checklist |
References avr_pin_name(), avrdude_message(), inverse(), pindef_t::inverse, pin_checklist_t::mandatory, pindef_t::mask, MSG_DEBUG, MSG_INFO, MSG_NOTICE2, N_PINS, pgm, programmer_t::pin, PIN_FIELD_SIZE, pinmask_to_str(), progname, segment(), and pin_checklist_t::valid_pins.
Here is the call graph for this function:This function returns a string representation of defined pins eg. ~1,2,~4,~5,7 Another execution of this function will overwrite the previous result in the static buffer.
| [in] | pindef | the pin definition for which we want the string representation |
References pindef_t::inverse, pindef_t::mask, PIN_FIELD_ELEMENT_SIZE, PIN_MAX, and PIN_MIN.
Referenced by pgm_display_generic_mask().
Here is the caller graph for this function:| void programmer_display | ( | PROGRAMMER * | pgm, |
| const char * | p | ||
| ) |
References avrdude_message(), programmer_t::desc, programmer_t::display, MSG_INFO, pgm, and programmer_t::type.
Referenced by avrdude_main().
Here is the call graph for this function:
Here is the caller graph for this function:| int read_config | ( | const char * | file | ) |
References avrdude_message(), fopen_utf8(), infile, lineno, MSG_INFO, progname, yyin, yylex_destroy(), and yyparse().
Referenced by avrdude_main().
Here is the call graph for this function:
Here is the caller graph for this function:| int read_config_builtin | ( | ) |
References avrdude_message(), infile, lineno, MSG_INFO, progname, yy_delete_buffer(), yy_scan_bytes(), yylex_destroy(), and yyparse().
Referenced by avrdude_main().
Here is the call graph for this function:
Here is the caller graph for this function:| void report_progress | ( | int | completed, |
| int | total, | ||
| char * | hdr | ||
| ) |
References gettimeofday(), and update_progress.
Referenced by avr_read(), avr_signature(), avr_write(), and do_op().
Here is the call graph for this function:
Here is the caller graph for this function:| int safemode_memfuses | ( | int | save, |
| unsigned char * | lfuse, | ||
| unsigned char * | hfuse, | ||
| unsigned char * | efuse, | ||
| unsigned char * | fuse | ||
| ) |
References save().
Referenced by avr_write_byte(), and avrdude_main().
Here is the call graph for this function:
Here is the caller graph for this function:| int safemode_readfuses | ( | unsigned char * | lfuse, |
| unsigned char * | hfuse, | ||
| unsigned char * | efuse, | ||
| unsigned char * | fuse, | ||
| PROGRAMMER * | pgm, | ||
| AVRPART * | p | ||
| ) |
References avr_locate_mem(), avrdude_message(), MSG_DEBUG, MSG_INFO, MSG_NOTICE, pgm, progname, and programmer_t::read_byte.
Referenced by avrdude_main().
Here is the call graph for this function:
Here is the caller graph for this function:| int safemode_writefuse | ( | unsigned char | fuse, |
| char * | fusename, | ||
| PROGRAMMER * | pgm, | ||
| AVRPART * | p, | ||
| int | tries | ||
| ) |
References avr_locate_mem(), avr_write_byte(), avrdude_message(), MSG_NOTICE, pgm, progname, and programmer_t::read_byte.
Referenced by avrdude_main().
Here is the call graph for this function:
Here is the caller graph for this function:References lsort(), and sort_avrparts_compare().
Referenced by list_parts().
Here is the call graph for this function:
Here is the caller graph for this function:References lsort(), programmers, and sort_programmer_compare().
Referenced by list_programmers().
Here is the call graph for this function:
Here is the caller graph for this function:| void walk_avrparts | ( | LISTID | avrparts, |
| walk_avrparts_cb | cb, | ||
| void * | cookie | ||
| ) |
References avrpart::config_file, avrpart::desc, avrpart::id, ldata(), lfirst(), avrpart::lineno, and lnext().
Referenced by list_parts().
Here is the call graph for this function:
Here is the caller graph for this function:| void walk_programmer_types | ( | walk_programmer_types_cb | cb, |
| void * | cookie | ||
| ) |
References programmer_type_t::desc, programmer_type_t::id, and programmers_types.
Referenced by list_programmer_types().
Here is the caller graph for this function:| void walk_programmers | ( | LISTID | programmers, |
| walk_programmers_cb | cb, | ||
| void * | cookie | ||
| ) |
References programmer_t::config_file, programmer_t::desc, programmer_t::id, ldata(), lfirst(), programmer_t::lineno, lnext(), and programmers.
Referenced by list_programmers().
Here is the call graph for this function:
Here is the caller graph for this function:
|
extern |
Referenced by stk500v2_open().
|
extern |
Referenced by avrdude_cancel(), and avrdude_main().
|
extern |
Referenced by avrdude_main(), and yyparse().
|
extern |
Referenced by avrdude_main(), and yyparse().
|
extern |
Referenced by avrdude_main(), and yyparse().
|
extern |
Referenced by avrdude_main(), and yyparse().
|
extern |
Referenced by avrdude_main(), and yyparse().
|
extern |
Referenced by avr910_initialize(), avrdude_main(), cleanup_config(), init_config(), and yyparse().
|
extern |
|
extern |
Referenced by avrdude_main(), cleanup_config(), init_config(), list_programmers(), locate_programmer(), sort_programmers(), walk_programmers(), and yyparse().
|
extern |
|
extern |
Referenced by buspirate_disable(), buspirate_parseextparms(), buspirate_readline_noexit(), jtag3_paged_load(), jtag3_paged_write(), jtagmkI_paged_load(), jtagmkI_paged_write(), jtagmkI_resync(), jtagmkII_page_erase(), jtagmkII_paged_load(), jtagmkII_paged_load32(), jtagmkII_paged_write(), jtagmkII_paged_write32(), jtagmkII_read_SABaddr(), ser_recv(), and ser_send().
|
extern |
|
extern |
Referenced by avrdude_main(), and report_progress().
|
extern |
|
extern |
Referenced by jtag3_open_common(), stk500v2_open(), and stk600_open().
|
extern |
Referenced by jtag3_open_common().