patch #7165 Add support for bitbanging GPIO lines using the Linux sysf GPIO interface

* doc/avrdude.texi,avrdude.1: added doc for linuxgpio 
	* avrdude.conf.in: added template for linuxgpio programmer
	* config_gram.y: pin numbers restricted to [PIN_MIN, PIN_MAX]
	* pindefs.h: added PIN_MIN, PIN_MAX, removed unused LED_ON/OFF
	* configure.ac: configure option enable-linuxgpio, print of enabled options
	* linuxgpio.[ch]: new source for linuxgpio programmer
	* Makefile.am: added linuxgpio to sources list
	* pgm_type.c: added linuxgpio to programmer types list

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1132 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
rliebscher
2013-01-09 19:23:30 +00:00
parent 1b8fc9897d
commit 8d6f310736
12 changed files with 495 additions and 6 deletions

View File

@@ -1346,11 +1346,11 @@ static int assign_pin(int pinno, TOKEN * v, int invert)
value = v->value.number;
free_token(v);
if ((value <= 0) || (value >= 18)) {
if ((value < PIN_MIN) || (value > PIN_MAX)) {
fprintf(stderr,
"%s: error at line %d of %s: pin must be in the "
"range 1-17\n",
progname, lineno, infile);
"range %d-%d\n",
progname, lineno, infile, PIN_MIN, PIN_MAX);
exit(1);
}
if (invert)