Ticket #23120: patch-config_gram.y.diff
File patch-config_gram.y.diff, 1.1 KB (added by ranauei@…, 15 years ago) |
---|
-
config_gram.y
old new 42 42 #include "stk500v2.h" 43 43 #include "stk500generic.h" 44 44 #include "avr910.h" 45 #include "serjtag.h" 45 46 #include "butterfly.h" 46 47 #include "usbasp.h" 47 48 #include "usbtiny.h" … … 146 147 %token K_STK600HVSP 147 148 %token K_STK600PP 148 149 %token K_AVR910 150 %token K_SERJTAG 151 %token K_FT245R 149 152 %token K_USBASP 150 153 %token K_USBTINY 151 154 %token K_BUTTERFLY … … 459 462 } 460 463 } | 461 464 465 K_TYPE TKN_EQUAL K_SERJTAG { 466 { 467 serjtag_initpgm(current_prog); 468 } 469 } | 470 471 K_TYPE TKN_EQUAL K_FT245R { 472 { 473 ft245r_initpgm(current_prog); 474 } 475 } | 476 462 477 K_TYPE TKN_EQUAL K_USBASP { 463 478 { 464 479 usbasp_initpgm(current_prog); … … 1346 1361 1347 1362 value = v->value.number; 1348 1363 1349 if ((value < =0) || (value >= 18)) {1364 if ((value < 0) || (value >= 18)) { 1350 1365 fprintf(stderr, 1351 1366 "%s: error at line %d of %s: pin must be in the " 1352 "range 1-17\n",1367 "range 0-17\n", 1353 1368 progname, lineno, infile); 1354 1369 exit(1); 1355 1370 }