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

Go to the source code of this file.

Functions

static int usbasp_nousb_open (struct programmer_t *pgm, char *name)
 
void usbasp_initpgm (PROGRAMMER *pgm)
 

Variables

const char usbasp_desc [] = "USBasp programmer, see http://www.fischl.de/usbasp/"
 

Function Documentation

◆ usbasp_initpgm()

void usbasp_initpgm ( PROGRAMMER pgm)
1212{
1213 strcpy(pgm->type, "usbasp");
1214
1216}
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
static int usbasp_nousb_open(struct programmer_t *pgm, char *name)
Definition usbasp.c:1203

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

+ Here is the call graph for this function:

◆ usbasp_nousb_open()

static int usbasp_nousb_open ( struct programmer_t pgm,
char *  name 
)
static
1204{
1205 avrdude_message(MSG_INFO, "%s: error: no usb support. please compile again with libusb installed.\n",
1206 progname);
1207
1208 return -1;
1209}
#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 usbasp_initpgm().

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

Variable Documentation

◆ usbasp_desc

const char usbasp_desc[] = "USBasp programmer, see http://www.fischl.de/usbasp/"