![]() |
Prusa Slicer 2.6.0
|
#include "ac_cfg.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <fcntl.h>#include <unistd.h>#include <errno.h>#include <signal.h>#include <sys/time.h>#include "avrdude.h"#include "libavrdude.h"#include "par.h"#include "serbb.h"#include "tpi.h"#include "bitbang.h"
Include dependency graph for bitbang.c:Go to the source code of this file.
Typedefs | |
| typedef void(* | mysighandler_t) (int) |
Variables | |
| static int | delay_decrement |
| static volatile int | done |
| static mysighandler_t | saved_alarmhandler |
| typedef void(* mysighandler_t) (int) |
|
static |
References done, and saved_alarmhandler.
Referenced by bitbang_calibrate_delay().
Here is the caller graph for this function:References alarmhandler(), avrdude_message(), delay_decrement, done, MSG_NOTICE2, progname, and saved_alarmhandler.
Referenced by bitbang_initialize().
Here is the call graph for this function:
Here is the caller graph for this function:| int bitbang_check_prerequisites | ( | PROGRAMMER * | pgm | ) |
References avrdude_message(), programmer_t::cmd, MSG_INFO, pgm, PIN_AVR_MISO, PIN_AVR_MOSI, PIN_AVR_RESET, PIN_AVR_SCK, progname, and verify_pin_assigned().
Referenced by buspirate_bb_enable(), and serbb_open().
Here is the call graph for this function:
Here is the caller graph for this function:| int bitbang_chip_erase | ( | PROGRAMMER * | pgm, |
| AVRPART * | p | ||
| ) |
References avr_locate_mem(), AVR_OP_CHIP_ERASE, avr_set_bits(), avr_tpi_poll_nvmbsy(), avrdude_message(), AVRPART_HAS_TPI, bitbang_tpi_tx(), avrpart::chip_erase_delay, programmer_t::cmd, cmd, avrpart::desc, avrpart::flags, programmer_t::initialize, MSG_INFO, OFF, avrmem::offset, ON, avrpart::op, pgm, programmer_t::pgm_led, TPI_CMD_SOUT, TPI_CMD_SST, TPI_CMD_SSTPR, TPI_IOREG_NVMCMD, TPI_NVMCMD_CHIP_ERASE, TPI_SIO_ADDR, and usleep().
Referenced by buspirate_bb_initpgm(), and serbb_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:| int bitbang_cmd | ( | PROGRAMMER * | pgm, |
| const unsigned char * | cmd, | ||
| unsigned char * | res | ||
| ) |
References avrdude_message(), bitbang_txrx(), cmd, MSG_NOTICE2, pgm, and verbose.
Referenced by buspirate_bb_initpgm(), and serbb_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:| int bitbang_cmd_tpi | ( | PROGRAMMER * | pgm, |
| const unsigned char * | cmd, | ||
| int | cmd_len, | ||
| unsigned char * | res, | ||
| int | res_len | ||
| ) |
References avrdude_message(), bitbang_tpi_rx(), bitbang_tpi_tx(), cmd, MSG_NOTICE2, OFF, ON, pgm, programmer_t::pgm_led, and verbose.
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 bitbang_delay | ( | unsigned int | us | ) |
References delay_decrement.
Referenced by serbb_setpin().
Here is the caller graph for this function:| int bitbang_err_led | ( | PROGRAMMER * | pgm, |
| int | value | ||
| ) |
References pgm, PIN_LED_ERR, and programmer_t::setpin.
Referenced by buspirate_bb_initpgm(), and serbb_initpgm().
Here is the caller graph for this function:| int bitbang_initialize | ( | PROGRAMMER * | pgm, |
| AVRPART * | p | ||
| ) |
References avrdude_message(), AVRPART_HAS_TPI, AVRPART_IS_AT90S1200, bitbang_calibrate_delay(), bitbang_tpi_rx(), bitbang_tpi_tx(), programmer_t::cmd_tpi, avrpart::flags, programmer_t::getpin, programmer_t::highpulsepin, MSG_INFO, MSG_NOTICE2, pgm, PIN_AVR_MISO, PIN_AVR_MOSI, PIN_AVR_RESET, PIN_AVR_SCK, programmer_t::powerup, progname, programmer_t::program_enable, avrpart::retry_pulse, programmer_t::setpin, TPI_CMD_SLDCS, TPI_CMD_SSTCS, TPI_REG_TPIIR, TPI_REG_TPIPCR, programmer_t::type, and usleep().
Referenced by buspirate_bb_initpgm(), and serbb_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:| int bitbang_pgm_led | ( | PROGRAMMER * | pgm, |
| int | value | ||
| ) |
References pgm, PIN_LED_PGM, and programmer_t::setpin.
Referenced by buspirate_bb_initpgm(), and serbb_initpgm().
Here is the caller graph for this function:| int bitbang_program_enable | ( | PROGRAMMER * | pgm, |
| AVRPART * | p | ||
| ) |
References AVR_OP_PGM_ENABLE, avr_set_bits(), avrdude_message(), AVRPART_HAS_TPI, bitbang_tpi_rx(), bitbang_tpi_tx(), programmer_t::cmd, cmd, avrpart::desc, avrpart::flags, MSG_INFO, avrpart::op, pgm, TPI_CMD_SKEY, TPI_CMD_SLDCS, TPI_REG_TPISR, TPI_REG_TPISR_NVMEN, and tpi_skey.
Referenced by buspirate_bb_initpgm(), and serbb_initpgm().
Here is the call graph for this function:
Here is the caller graph for this function:| int bitbang_rdy_led | ( | PROGRAMMER * | pgm, |
| int | value | ||
| ) |
References pgm, PIN_LED_RDY, and programmer_t::setpin.
Referenced by buspirate_bb_initpgm(), and serbb_initpgm().
Here is the caller graph for this function:| int bitbang_spi | ( | PROGRAMMER * | pgm, |
| const unsigned char * | cmd, | ||
| unsigned char * | res, | ||
| int | count | ||
| ) |
References avrdude_message(), bitbang_txrx(), cmd, MSG_NOTICE2, pgm, PIN_LED_PGM, programmer_t::setpin, and verbose.
Here is the call graph for this function:
|
static |
References programmer_t::getpin, pgm, PIN_AVR_MISO, PIN_AVR_SCK, and programmer_t::setpin.
Referenced by bitbang_tpi_rx(), and bitbang_tpi_tx().
Here is the caller graph for this function:| int bitbang_tpi_rx | ( | PROGRAMMER * | pgm | ) |
References avrdude_message(), bitbang_tpi_clk(), MSG_INFO, pgm, PIN_AVR_MOSI, and programmer_t::setpin.
Referenced by bitbang_cmd_tpi(), bitbang_initialize(), and bitbang_program_enable().
Here is the call graph for this function:
Here is the caller graph for this function:| void bitbang_tpi_tx | ( | PROGRAMMER * | pgm, |
| unsigned char | byte | ||
| ) |
References bitbang_tpi_clk(), pgm, PIN_AVR_MOSI, and programmer_t::setpin.
Referenced by bitbang_chip_erase(), bitbang_cmd_tpi(), bitbang_initialize(), and bitbang_program_enable().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References programmer_t::getpin, pgm, PIN_AVR_MISO, PIN_AVR_MOSI, PIN_AVR_SCK, and programmer_t::setpin.
Referenced by bitbang_cmd(), and bitbang_spi().
Here is the caller graph for this function:| int bitbang_vfy_led | ( | PROGRAMMER * | pgm, |
| int | value | ||
| ) |
References pgm, PIN_LED_VFY, and programmer_t::setpin.
Referenced by buspirate_bb_initpgm(), and serbb_initpgm().
Here is the caller graph for this function:
|
static |
References avrdude_message(), MSG_INFO, pgm, programmer_t::pinno, and progname.
Referenced by bitbang_check_prerequisites().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Referenced by bitbang_calibrate_delay(), and bitbang_delay().
|
static |
Referenced by alarmhandler(), bitbang_calibrate_delay(), igl::boundary_loop(), Slic3r::GUI::GLCanvas3D::do_mirror(), Slic3r::GUI::GLCanvas3D::do_move(), Slic3r::GUI::GLCanvas3D::do_reset_skew(), Slic3r::GUI::GLCanvas3D::do_rotate(), Slic3r::GUI::GLCanvas3D::do_scale(), Slic3r::Voronoi::edge_offset_contour_intersections(), Slic3r::Measure::MeasuringImpl::extract_features(), Slic3r::extruder_range_slow_down_non_proportional(), Slic3r::GUI::GLGizmoFdmSupports::has_backend_supports(), Slic3r::load_amf_file(), Slic3r::Layer::make_perimeters(), Slic3r::GUI::MeshClipper::point_per_contour(), igl::straighten_seams(), Slic3r::GUI::Selection::synchronize_unselected_instances(), Slic3r::GUI::Selection::translate(), update_progress_no_tty(), and Slic3r::Wipe::wipe().
|
static |
Referenced by alarmhandler(), and bitbang_calibrate_delay().