![]() |
Prusa Slicer 2.6.0
|
#include "ac_cfg.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include <ctype.h>#include <unistd.h>#include <sys/time.h>#include "avrdude.h"#include "libavrdude.h"#include "avr910.h"
Include dependency graph for avr910.c:Go to the source code of this file.
Classes | |
| struct | pdata |
Macros | |
| #define | PDATA(pgm) ((struct pdata *)(pgm->cookie)) |
Functions | |
| static void | avr910_setup (PROGRAMMER *pgm) |
| static void | avr910_teardown (PROGRAMMER *pgm) |
| static int | avr910_send (PROGRAMMER *pgm, char *buf, size_t len) |
| static int | avr910_recv (PROGRAMMER *pgm, char *buf, size_t len) |
| static int | avr910_drain (PROGRAMMER *pgm, int display) |
| static int | avr910_vfy_cmd_sent (PROGRAMMER *pgm, char *errmsg) |
| static int | avr910_chip_erase (PROGRAMMER *pgm, AVRPART *p) |
| static int | avr910_enter_prog_mode (PROGRAMMER *pgm) |
| static int | avr910_leave_prog_mode (PROGRAMMER *pgm) |
| static int | avr910_program_enable (PROGRAMMER *pgm, AVRPART *p) |
| static int | avr910_initialize (PROGRAMMER *pgm, AVRPART *p) |
| static void | avr910_disable (PROGRAMMER *pgm) |
| static void | avr910_enable (PROGRAMMER *pgm) |
| static int | avr910_cmd (PROGRAMMER *pgm, const unsigned char *cmd, unsigned char *res) |
| static int | avr910_parseextparms (PROGRAMMER *pgm, LISTID extparms) |
| static int | avr910_open (PROGRAMMER *pgm, char *port) |
| static void | avr910_close (PROGRAMMER *pgm) |
| static void | avr910_display (PROGRAMMER *pgm, const char *p) |
| static void | avr910_set_addr (PROGRAMMER *pgm, unsigned long addr) |
| static int | avr910_write_byte (PROGRAMMER *pgm, AVRPART *p, AVRMEM *m, unsigned long addr, unsigned char value) |
| static int | avr910_read_byte_flash (PROGRAMMER *pgm, AVRPART *p, AVRMEM *m, unsigned long addr, unsigned char *value) |
| static int | avr910_read_byte_eeprom (PROGRAMMER *pgm, AVRPART *p, AVRMEM *m, unsigned long addr, unsigned char *value) |
| static int | avr910_read_byte (PROGRAMMER *pgm, AVRPART *p, AVRMEM *m, unsigned long addr, unsigned char *value) |
| static int | avr910_paged_write_flash (PROGRAMMER *pgm, AVRPART *p, AVRMEM *m, unsigned int page_size, unsigned int addr, unsigned int n_bytes) |
| static int | avr910_paged_write_eeprom (PROGRAMMER *pgm, AVRPART *p, AVRMEM *m, unsigned int page_size, unsigned int addr, unsigned int n_bytes) |
| static int | avr910_paged_write (PROGRAMMER *pgm, AVRPART *p, AVRMEM *m, unsigned int page_size, unsigned int addr, unsigned int n_bytes) |
| static int | avr910_paged_load (PROGRAMMER *pgm, AVRPART *p, AVRMEM *m, unsigned int page_size, unsigned int addr, unsigned int n_bytes) |
| static int | avr910_read_sig_bytes (PROGRAMMER *pgm, AVRPART *p, AVRMEM *m) |
| void | avr910_initpgm (PROGRAMMER *pgm) |
Variables | |
| const char | avr910_desc [] = "Serial programmers using protocol described in application note AVR910" |
|
static |
References avr910_send(), avr910_vfy_cmd_sent(), avrpart::chip_erase_delay, pgm, and usleep().
Referenced by avr910_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avr910_leave_prog_mode(), programmer_t::fd, filedescriptor::ifd, pgm, and serial_close.
Referenced by avr910_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avr910_recv(), avr910_send(), cmd, and pgm.
Referenced by avr910_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Referenced by avr910_initpgm().
Here is the caller graph for this function:
|
static |
|
static |
References programmer_t::fd, pgm, and serial_drain.
Referenced by avr910_open().
Here is the caller graph for this function:
|
static |
Referenced by avr910_initpgm().
Here is the caller graph for this function:
|
static |
References avr910_send(), avr910_vfy_cmd_sent(), and pgm.
Referenced by avr910_initialize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrpart::avr910_devcode, avr910_enter_prog_mode(), avr910_recv(), avr910_send(), avr910_vfy_cmd_sent(), avrdude_message(), avrpart::desc, avrpart::id, locate_part_by_avr910_devcode(), MSG_INFO, MSG_NOTICE, ovsigck, part_list, PDATA, pgm, and progname.
Referenced by avr910_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:| void avr910_initpgm | ( | PROGRAMMER * | pgm | ) |
References avr910_chip_erase(), avr910_close(), avr910_cmd(), avr910_disable(), avr910_display(), avr910_enable(), avr910_initialize(), avr910_open(), avr910_paged_load(), avr910_paged_write(), avr910_parseextparms(), avr910_program_enable(), avr910_read_byte(), avr910_read_sig_bytes(), avr910_setup(), avr910_teardown(), avr910_write_byte(), 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::paged_load, programmer_t::paged_write, programmer_t::parseextparams, pgm, programmer_t::program_enable, programmer_t::read_byte, programmer_t::read_sig_bytes, programmer_t::setup, programmer_t::teardown, programmer_t::type, and programmer_t::write_byte.
Here is the call graph for this function:
|
static |
References avr910_send(), avr910_vfy_cmd_sent(), and pgm.
Referenced by avr910_close().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avr910_drain(), pinfo::baud, programmer_t::baudrate, programmer_t::fd, pgm, programmer_t::port, and serial_open.
Referenced by avr910_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avr910_recv(), avr910_send(), avr910_set_addr(), avrmem::buf, cmd, avrmem::desc, PDATA, and pgm.
Referenced by avr910_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avr910_paged_write_eeprom(), avr910_paged_write_flash(), avr910_send(), avr910_set_addr(), avr910_vfy_cmd_sent(), avrmem::buf, cmd, avrmem::desc, free(), malloc(), PDATA, and pgm.
Referenced by avr910_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avr910_send(), avr910_set_addr(), avr910_vfy_cmd_sent(), avrmem::buf, cmd, avrmem::max_write_delay, PDATA, pgm, and usleep().
Referenced by avr910_paged_write().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avr910_send(), avr910_set_addr(), avr910_vfy_cmd_sent(), avrmem::buf, cmd, avrmem::max_write_delay, avrmem::paged, PDATA, pgm, and usleep().
Referenced by avr910_paged_write().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), ldata(), lfirst(), lnext(), MSG_INFO, MSG_NOTICE2, PDATA, pgm, and progname.
Referenced by avr910_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Referenced by avr910_initpgm().
Here is the caller graph for this function:
|
static |
References avr910_read_byte_eeprom(), avr910_read_byte_flash(), avr_read_byte_default(), avrmem::desc, and pgm.
Referenced by avr910_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avr910_recv(), avr910_send(), avr910_set_addr(), and pgm.
Referenced by avr910_read_byte().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avr910_recv(), avr910_send(), avr910_set_addr(), and pgm.
Referenced by avr910_read_byte().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avr910_recv(), avr910_send(), avrdude_message(), avrmem::buf, MSG_INFO, pgm, progname, and avrmem::size.
Referenced by avr910_initpgm().
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 avr910_cmd(), avr910_initialize(), avr910_paged_load(), avr910_read_byte_eeprom(), avr910_read_byte_flash(), avr910_read_sig_bytes(), and avr910_vfy_cmd_sent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References programmer_t::fd, pgm, and serial_send.
Referenced by avr910_chip_erase(), avr910_cmd(), avr910_enter_prog_mode(), avr910_initialize(), avr910_leave_prog_mode(), avr910_paged_load(), avr910_paged_write(), avr910_paged_write_eeprom(), avr910_paged_write_flash(), avr910_read_byte_eeprom(), avr910_read_byte_flash(), avr910_read_sig_bytes(), avr910_set_addr(), and avr910_write_byte().
Here is the caller graph for this function:
|
static |
References avr910_send(), avr910_vfy_cmd_sent(), cmd, and pgm.
Referenced by avr910_paged_load(), avr910_paged_write(), avr910_paged_write_eeprom(), avr910_paged_write_flash(), avr910_read_byte_eeprom(), avr910_read_byte_flash(), and avr910_write_byte().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), programmer_t::cookie, malloc(), MSG_INFO, PDATA, pgm, and progname.
Referenced by avr910_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References programmer_t::cookie, free(), and pgm.
Referenced by avr910_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avr910_recv(), avrdude_message(), MSG_INFO, pgm, and progname.
Referenced by avr910_chip_erase(), avr910_enter_prog_mode(), avr910_initialize(), avr910_leave_prog_mode(), avr910_paged_write(), avr910_paged_write_eeprom(), avr910_paged_write_flash(), avr910_set_addr(), and avr910_write_byte().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avr910_send(), avr910_set_addr(), avr910_vfy_cmd_sent(), avr_write_byte_default(), cmd, avrmem::desc, and pgm.
Referenced by avr910_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:| const char avr910_desc[] = "Serial programmers using protocol described in application note AVR910" |