Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
avrftdi.c File Reference
#include "ac_cfg.h"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdint.h>
#include <stdarg.h>
#include "avrdude.h"
#include "libavrdude.h"
#include "avrftdi.h"
#include "avrftdi_tpi.h"
#include "avrftdi_private.h"
#include "usbdevs.h"
+ Include dependency graph for avrftdi.c:

Go to the source code of this file.

Macros

#define MAX(a, b)   ((a)>(b)?(a):(b))
 
#define MIN(a, b)   ((a)<(b)?(a):(b))
 

Functions

static int avrftdi_noftdi_open (struct programmer_t *pgm, char *name)
 
void avrftdi_initpgm (PROGRAMMER *pgm)
 

Variables

const char avrftdi_desc [] = "Interface to the MPSSE Engine of FTDI Chips using libftdi."
 

Macro Definition Documentation

◆ MAX

#define MAX (   a,
 
)    ((a)>(b)?(a):(b))

◆ MIN

#define MIN (   a,
 
)    ((a)<(b)?(a):(b))

Function Documentation

◆ avrftdi_initpgm()

void avrftdi_initpgm ( PROGRAMMER pgm)
62{
63 strcpy(pgm->type, "avrftdi");
65}
static int avrftdi_noftdi_open(struct programmer_t *pgm, char *name)
Definition avrftdi.c:53
static PROGRAMMER * pgm
Definition main.c:192
int(* open)(struct programmer_t *pgm, char *port)
Definition libavrdude.h:657
char type[PGM_TYPELEN]
Definition libavrdude.h:619

References avrftdi_noftdi_open(), programmer_t::open, pgm, and programmer_t::type.

+ Here is the call graph for this function:

◆ avrftdi_noftdi_open()

static int avrftdi_noftdi_open ( struct programmer_t pgm,
char *  name 
)
static
54{
55 avrdude_message(MSG_INFO, "%s: Error: no libftdi or libusb support. Install libftdi1/libusb-1.0 or libftdi/libusb and run configure/make again.\n",
56 progname);
57
58 return -1;
59}
#define MSG_INFO
Definition avrdude.h:51
char * progname
Definition main.c:61
int avrdude_message(const int msglvl, const char *format,...)
Definition main.c:93

References avrdude_message(), MSG_INFO, and progname.

Referenced by avrftdi_initpgm().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ avrftdi_desc

const char avrftdi_desc[] = "Interface to the MPSSE Engine of FTDI Chips using libftdi."