projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switch back to C based timeout ISR in the AVRISP project - assembly version was faili...
[pub/USBasp.git]
/
Projects
/
AVRISP-MKII
/
Lib
/
V2Protocol.c
diff --git
a/Projects/AVRISP-MKII/Lib/V2Protocol.c
b/Projects/AVRISP-MKII/Lib/V2Protocol.c
index
63b7294
..
035c8a5
100644
(file)
--- a/
Projects/AVRISP-MKII/Lib/V2Protocol.c
+++ b/
Projects/AVRISP-MKII/Lib/V2Protocol.c
@@
-43,6
+43,12
@@
uint32_t CurrentAddress;
bool MustSetAddress;
\r
\r
\r
bool MustSetAddress;
\r
\r
\r
+ISR(TIMER0_COMPA_vect, ISR_NOBLOCK)
\r
+{
\r
+ if (TimeoutMSRemaining)
\r
+ TimeoutMSRemaining--;
\r
+}
\r
+
\r
/** Initializes the hardware and software associated with the V2 protocol command handling. */
\r
void V2Protocol_Init(void)
\r
{
\r
/** Initializes the hardware and software associated with the V2 protocol command handling. */
\r
void V2Protocol_Init(void)
\r
{
\r