mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-16 10:41:07 +00:00
avrftdi: Change to new 0-based pin definitions
avrdude.conf.in: Change all programmers' pin definitions to 0-based avrftdi.c: incorporate new 0-based pindef infrastructure avrftdi_private.h: Add pin_checklist_t to avrftdi_t for runtime pin checking in pgm->setpin. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1164 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include <libftdi1/ftdi.h>
|
||||
|
||||
#include "pgm.h"
|
||||
#include "pindefs.h"
|
||||
|
||||
enum { ERR, WARN, INFO, DEBUG, TRACE };
|
||||
|
||||
@@ -64,6 +65,8 @@ typedef struct avrftdi_s {
|
||||
int pin_limit;
|
||||
/* internal RX buffer of the device. needed for INOUT transfers */
|
||||
int rx_buffer_size;
|
||||
/* pin checklist. */
|
||||
struct pin_checklist_t pin_checklist[N_PINS - 1];
|
||||
} avrftdi_t;
|
||||
|
||||
void avrftdi_log(int level, const char * func, int line, const char * fmt, ...);
|
||||
|
||||
Reference in New Issue
Block a user