Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
pickit2.c File Reference
#include "ac_cfg.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <unistd.h>
#include "avrdude.h"
#include "libavrdude.h"
+ Include dependency graph for pickit2.c:

Go to the source code of this file.

Functions

static int pickit2_nousb_open (struct programmer_t *pgm, char *name)
 
void pickit2_initpgm (PROGRAMMER *pgm)
 

Variables

const char pickit2_desc [] = "Microchip's PICkit2 Programmer"
 

Function Documentation

◆ pickit2_initpgm()

void pickit2_initpgm ( PROGRAMMER pgm)
1326{
1327 /*
1328 * mandatory functions - these are called without checking to see
1329 * whether they are assigned or not
1330 */
1331
1333
1334 strncpy(pgm->type, "pickit2", sizeof(pgm->type));
1335}
static PROGRAMMER * pgm
Definition main.c:192
static int pickit2_nousb_open(struct programmer_t *pgm, char *name)
Definition pickit2.c:1313
int(* open)(struct programmer_t *pgm, char *port)
Definition libavrdude.h:657
char type[PGM_TYPELEN]
Definition libavrdude.h:619

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

+ Here is the call graph for this function:

◆ pickit2_nousb_open()

static int pickit2_nousb_open ( struct programmer_t pgm,
char *  name 
)
static
1313 {
1315#ifdef WIN32NATIVE
1316 "%s: error: no usb or hid support. Please compile again with libusb or HID support from Win32 DDK installed.\n",
1317#else
1318 "%s: error: no usb support. Please compile again with libusb installed.\n",
1319#endif
1320 progname);
1321
1322 return -1;
1323}
#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 pickit2_initpgm().

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

Variable Documentation

◆ pickit2_desc

const char pickit2_desc[] = "Microchip's PICkit2 Programmer"