Ticket #23709: 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" … … 148 149 %token K_STK600HVSP 149 150 %token K_STK600PP 150 151 %token K_AVR910 152 %token K_SERJTAG 153 %token K_FT245R 151 154 %token K_USBASP 152 155 %token K_USBTINY 153 156 %token K_BUTTERFLY … … 462 465 } 463 466 } | 464 467 468 K_TYPE TKN_EQUAL K_SERJTAG { 469 { 470 serjtag_initpgm(current_prog); 471 } 472 } | 473 474 K_TYPE TKN_EQUAL K_FT245R { 475 { 476 ft245r_initpgm(current_prog); 477 } 478 } | 479 465 480 K_TYPE TKN_EQUAL K_USBASP { 466 481 { 467 482 usbasp_initpgm(current_prog); … … 1371 1386 1372 1387 value = v->value.number; 1373 1388 1374 if ((value < =0) || (value >= 18)) {1389 if ((value < 0) || (value >= 18)) { 1375 1390 fprintf(stderr, 1376 1391 "%s: error at line %d of %s: pin must be in the " 1377 "range 1-17\n",1392 "range 0-17\n", 1378 1393 progname, lineno, infile); 1379 1394 exit(1); 1380 1395 }