URL:
<http://savannah.nongnu.org/patch/?6141>
Summary: accept binary format immediate values
Project: AVR Downloader/UploaDEr
Submitted by: None
Submitted on: Sunday 08/05/2007 at 22:06 UTC
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email: [EMAIL PROTECTED]
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
i would like it if avrdude let me do this:
avrdude -c stk500v2 -P /dev/ttyS0 -p attiny85 -U efuse:w:0b11111111:m -U
hfuse:w:0b11011111:m -U lfuse:w:0b01100010:m
but strtoul does not understand the '0b' prefix, so i propose that we change
one line in fileio_imm() in fileio.c. instead of this:
b = strtoul (p, &e, 0);
we should do this:
b = (strncmp (p, "0b", 2)) ? strtoul (p, &e, 0) : strtoul (p+2, &e, 2); /*
check for binary formated (0b10101001) strings */
i tested this and it seems to work great. i have attached a patch file. to
patch, cd to avrdude-5.4 and do 'patch fileio.c
acceptBinaryFormatImmediateValues'
-- ky
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sunday 08/05/2007 at 22:06 UTC Name: acceptBinaryFormatImmediateValues
Size: 518B By: None
<http://savannah.nongnu.org/patch/download.php?file_id=13600>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?6141>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
avrdude-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avrdude-dev