![]() |
Prusa Slicer 2.6.0
|
#include "ac_cfg.h"#include <ctype.h>#include <string.h>#include <stdio.h>#include <stdlib.h>#include <limits.h>#include "avrdude.h"#include "term.h"
Include dependency graph for term.c:Go to the source code of this file.
Classes | |
| struct | command |
Macros | |
| #define | NCMDS (sizeof(cmd)/sizeof(struct command)) |
Functions | |
| static int | cmd_dump (PROGRAMMER *pgm, struct avrpart *p, int argc, char *argv[]) |
| static int | cmd_write (PROGRAMMER *pgm, struct avrpart *p, int argc, char *argv[]) |
| static int | cmd_erase (PROGRAMMER *pgm, struct avrpart *p, int argc, char *argv[]) |
| static int | cmd_sig (PROGRAMMER *pgm, struct avrpart *p, int argc, char *argv[]) |
| static int | cmd_part (PROGRAMMER *pgm, struct avrpart *p, int argc, char *argv[]) |
| static int | cmd_help (PROGRAMMER *pgm, struct avrpart *p, int argc, char *argv[]) |
| static int | cmd_quit (PROGRAMMER *pgm, struct avrpart *p, int argc, char *argv[]) |
| static int | cmd_send (PROGRAMMER *pgm, struct avrpart *p, int argc, char *argv[]) |
| static int | cmd_parms (PROGRAMMER *pgm, struct avrpart *p, int argc, char *argv[]) |
| static int | cmd_vtarg (PROGRAMMER *pgm, struct avrpart *p, int argc, char *argv[]) |
| static int | cmd_varef (PROGRAMMER *pgm, struct avrpart *p, int argc, char *argv[]) |
| static int | cmd_fosc (PROGRAMMER *pgm, struct avrpart *p, int argc, char *argv[]) |
| static int | cmd_sck (PROGRAMMER *pgm, struct avrpart *p, int argc, char *argv[]) |
| static int | cmd_spi (PROGRAMMER *pgm, struct avrpart *p, int argc, char *argv[]) |
| static int | cmd_pgm (PROGRAMMER *pgm, struct avrpart *p, int argc, char *argv[]) |
| static int | cmd_verbose (PROGRAMMER *pgm, struct avrpart *p, int argc, char *argv[]) |
| static int | nexttok (char *buf, char **tok, char **next) |
| static int | hexdump_line (char *buffer, unsigned char *p, int n, int pad) |
| static int | chardump_line (char *buffer, unsigned char *p, int n, int pad) |
| static int | hexdump_buf (FILE *f, int startaddr, unsigned char *buf, int len) |
| static int | tokenize (char *s, char ***argv) |
| static int | do_cmd (PROGRAMMER *pgm, struct avrpart *p, int argc, char *argv[]) |
| char * | terminal_get_input (const char *prompt) |
| int | terminal_mode (PROGRAMMER *pgm, struct avrpart *p) |
Variables | |
| struct command | cmd [] |
| static int | spi_mode = 0 |
|
static |
Referenced by hexdump_buf().
Here is the caller graph for this function:
|
static |
References avr_locate_mem(), avrdude_message(), avrpart::desc, avrmem::desc, free(), hexdump_buf(), long, malloc(), MSG_INFO, pgm, progname, programmer_t::read_byte, and avrmem::size.
Here is the call graph for this function:
|
static |
References avrdude_message(), programmer_t::chip_erase, MSG_INFO, pgm, and progname.
Here is the call graph for this function:
|
static |
References avrdude_message(), MSG_INFO, pgm, progname, programmer_t::set_fosc, and programmer_t::type.
Here is the call graph for this function:
|
static |
References cmd, command::desc, command::name, and NCMDS.
|
static |
References avrdude_message(), MSG_INFO, pgm, programmer_t::print_parms, progname, and programmer_t::type.
Here is the call graph for this function:
|
static |
References avr_display().
Here is the call graph for this function:
|
static |
References programmer_t::initialize, pgm, PIN_AVR_RESET, programmer_t::setpin, and spi_mode.
|
static |
|
static |
References avrdude_message(), MSG_INFO, pgm, progname, programmer_t::set_sck_period, and programmer_t::type.
Here is the call graph for this function:
|
static |
References avrdude_message(), programmer_t::cmd, cmd, programmer_t::err_led, MSG_INFO, OFF, pgm, progname, programmer_t::spi, spi_mode, and programmer_t::type.
Here is the call graph for this function:
|
static |
References avr_locate_mem(), avr_signature(), avrdude_message(), avrmem::buf, avrpart::desc, MSG_INFO, pgm, and avrmem::size.
Here is the call graph for this function:
|
static |
References pgm, PIN_AVR_RESET, programmer_t::setpin, and spi_mode.
|
static |
References avrdude_message(), MSG_INFO, pgm, progname, programmer_t::set_varef, and programmer_t::type.
Here is the call graph for this function:
|
static |
References avrdude_message(), MSG_INFO, progname, and verbose.
Here is the call graph for this function:
|
static |
References avrdude_message(), MSG_INFO, pgm, progname, programmer_t::set_vtarget, and programmer_t::type.
Here is the call graph for this function:
|
static |
References avr_locate_mem(), avr_write_byte(), avrdude_message(), avrpart::desc, avrmem::desc, programmer_t::err_led, free(), long, malloc(), MSG_INFO, OFF, ON, pgm, progname, programmer_t::read_byte, and avrmem::size.
Referenced by ImDrawListSplitter::Merge().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), cmd, command::func, MSG_INFO, command::name, NCMDS, pgm, progname, strcasecmp, and strncasecmp.
Referenced by terminal_mode().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References chardump_line(), and hexdump_line().
Referenced by cmd_dump().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Referenced by hexdump_buf().
Here is the caller graph for this function:
|
static |
Referenced by tokenize().
Here is the caller graph for this function:| char * terminal_get_input | ( | const char * | prompt | ) |
References input().
Referenced by avrdude_main(), and terminal_mode().
Here is the call graph for this function:
Here is the caller graph for this function:| int terminal_mode | ( | PROGRAMMER * | pgm, |
| struct avrpart * | p | ||
| ) |
References do_cmd(), free(), pgm, terminal_get_input(), and tokenize().
Referenced by avrdude_main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References free(), malloc(), and nexttok().
Referenced by terminal_mode().
Here is the call graph for this function:
Here is the caller graph for this function:| struct command cmd[] |
Referenced by agg::rasterizer_scanline_aa< Clip >::add_path(), agg::rasterizer_scanline_aa_nogamma< Clip >::add_path(), agg::vertex_block_storage< T, BlockShift, BlockPool >::add_vertex(), agg::vertex_stl_storage< Container >::add_vertex(), agg::rasterizer_scanline_aa< Clip >::add_vertex(), agg::rasterizer_scanline_aa_nogamma< Clip >::add_vertex(), agg::path_base< VertexContainer >::arrange_polygon_orientation(), avr910_cmd(), avr910_paged_load(), avr910_paged_write(), avr910_paged_write_eeprom(), avr910_paged_write_flash(), avr910_set_addr(), avr910_write_byte(), avr_read(), avr_read_byte_default(), avr_set_addr(), avr_set_bits(), avr_set_input(), avr_tpi_chip_erase(), avr_tpi_poll_nvmbsy(), avr_tpi_program_enable(), avr_tpi_setup_rw(), avr_write(), avr_write_byte_default(), avr_write_page(), bitbang_chip_erase(), bitbang_cmd(), bitbang_cmd_tpi(), bitbang_program_enable(), bitbang_spi(), buspirate_chip_erase(), buspirate_cmd(), buspirate_cmd_ascii(), buspirate_cmd_bin(), buspirate_program_enable(), buspirate_start_spi_mode_ascii(), butterfly_paged_load(), butterfly_paged_write(), butterfly_read_byte(), butterfly_set_addr(), butterfly_set_extaddr(), butterfly_write_byte(), cmd_help(), cmd_send(), agg::path_base< VertexContainer >::concat_path(), agg::path_base< VertexContainer >::curve3(), agg::path_base< VertexContainer >::curve4(), do_cmd(), Slic3r::Utils::TCPConsole::enqueue_cmd(), agg::path_base< VertexContainer >::flip_x(), agg::path_base< VertexContainer >::flip_y(), agg::path_base< VertexContainer >::join_path(), jtag3_command(), jtag3_display(), jtag3_initialize(), jtag3_page_erase(), jtag3_paged_load(), jtag3_paged_write(), jtag3_read_byte(), jtag3_write_byte(), jtagmkI_initialize(), jtagmkI_paged_load(), jtagmkI_paged_write(), jtagmkI_read_byte(), jtagmkI_set_devdescr(), jtagmkI_write_byte(), jtagmkII_flash_clear_pagebuffer32(), jtagmkII_flash_erase32(), jtagmkII_flash_lock32(), jtagmkII_flash_write_page32(), jtagmkII_page_erase(), jtagmkII_paged_load(), jtagmkII_paged_load32(), jtagmkII_paged_write(), jtagmkII_paged_write32(), jtagmkII_read_byte(), jtagmkII_set_devdescr(), jtagmkII_set_xmega_params(), jtagmkII_write_byte(), mib510_isp(), agg::vertex_block_storage< T, BlockShift, BlockPool >::modify_command(), agg::path_base< VertexContainer >::modify_command(), agg::vertex_stl_storage< Container >::modify_command(), agg::vertex_block_storage< T, BlockShift, BlockPool >::modify_vertex(), agg::path_base< VertexContainer >::modify_vertex(), agg::vertex_stl_storage< Container >::modify_vertex(), agg::vertex_block_storage< T, BlockShift, BlockPool >::operator=(), Slic3r::GCodeReader::parse_line(), Slic3r::GCodeProcessor::post_process(), Slic3r::GCodeProcessor::process_G28(), Slic3r::GCodeProcessor::process_gcode_line(), Slic3r::GCodeProcessor::process_M108(), Slic3r::GCodeProcessor::process_M135(), ImDrawData::ScaleClipRects(), stk500_chip_erase(), stk500_cmd(), stk500_set_extended_parms(), stk500v2_cmd(), stk500v2_print_parms1(), agg::vertex_block_storage< T, BlockShift, BlockPool >::swap_vertices(), agg::path_base< VertexContainer >::transform(), agg::path_base< VertexContainer >::translate(), Slic3r::Utils::TCPConsole::transmit_next_command(), and agg::conv_transform< VertexSource, Transformer >::vertex().
|
static |
Referenced by cmd_pgm(), cmd_send(), and cmd_spi().