-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide Urclock programmer #1171
Changes from 4 commits
e6c26d8
21d93ec
715db4c
cf3c81f
6a6d333
20b86fb
ea65918
c7ba53b
84a3e2c
d5d0b94
afa408e
321bddb
c67bfe3
22bd977
6e3a99b
b178dee
e2b69de
ff9c8bb
afc2f7c
82b9491
d901e0a
2abb666
a3eeedd
d65a9a3
ee25a62
f276d32
53de22c
c0e4dd4
7f4474f
2e39891
f9aea24
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,10 @@ | |
* Atmel AVR8L, AVR8, XMEGA and AVR8X family description of interrupts and more | ||
* | ||
* published under GNU General Public License, version 3 (GPL-3.0) | ||
* meta-author: Stefan Rueger <stefan.rueger@urclocks.com> | ||
* meta-author Stefan Rueger <stefan.rueger@urclocks.com> | ||
* | ||
* v 1.1 | ||
* 30.08.2022 | ||
* 04.11.2022 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just wondering if this is good to change to 04-Nov-2022 as it is ambiguous and may get interpreted wrongly by US based people |
||
* | ||
*/ | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* meta-author Stefan Rueger <stefan.rueger@urclocks.com> | ||
* | ||
* v 1.1 | ||
* 30.08.2022 | ||
* 04.11.2022 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just wondering if this is good to change to 04-Nov-2022 as it is ambiguous and may get interpreted wrongly by US based people |
||
* | ||
*/ | ||
|
||
|
@@ -770,7 +770,7 @@ typedef struct { // Value of -1 typically means unknown | |
#define vts_avr128da64 64 | ||
#define vts_avr128db64 65 | ||
|
||
// Suggested vector bootloader interrupt number (first unused vector or, failing that, slot just above vector table) | ||
// Suggested vector bootloader interrupt: first unused vector or slot just above vector table | ||
#define vbu_attiny4 10 | ||
#define vbu_attiny5 11 | ||
#define vbu_attiny9 10 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,7 @@ | |
#include "libavrdude.h" | ||
|
||
long serial_recv_timeout = 5000; /* ms */ | ||
long serial_drain_timeout = 250; /* ms */ | ||
|
||
struct baud_mapping { | ||
long baud; | ||
|
@@ -549,7 +550,7 @@ static int ser_drain(const union filedescriptor *fd, int display) { | |
unsigned char buf; | ||
|
||
timeout.tv_sec = 0; | ||
timeout.tv_usec = 250000; | ||
timeout.tv_usec = serial_drain_timeout*1000L; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change is not related to this PR, or is it causing problem for this PR? |
||
|
||
if (display) { | ||
msg_info("drain>"); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,7 @@ | |
#include "libavrdude.h" | ||
|
||
long serial_recv_timeout = 5000; /* ms */ | ||
long serial_drain_timeout = 250; /* ms */ | ||
|
||
#define W32SERBUFSIZE 1024 | ||
|
||
|
@@ -635,7 +636,7 @@ static int net_drain(const union filedescriptor *fd, int display) { | |
} | ||
|
||
timeout.tv_sec = 0; | ||
timeout.tv_usec = 250000; | ||
timeout.tv_usec = serial_drain_timeout*1000L; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change is not related to this PR, or is it causing problem for this PR? |
||
|
||
while (1) { | ||
FD_ZERO(&rfds); | ||
|
@@ -712,7 +713,7 @@ static int ser_drain(const union filedescriptor *fd, int display) { | |
return -1; | ||
} | ||
|
||
serial_w32SetTimeOut(hComPort,250); | ||
serial_w32SetTimeOut(hComPort, serial_drain_timeout); | ||
|
||
if (display) { | ||
msg_info("drain>"); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not always compatible with Arduino, right? -->
Edit: probably it is compatible with existing
-c arduino
bootloaders.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!