git.droids-corp.org
/
protos
/
rc_servos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2fe7b27
)
rc_servos: implement bypass mode
author
Olivier MATZ
<zer0@platinum>
Thu, 23 Feb 2012 20:22:55 +0000
(21:22 +0100)
committer
Olivier MATZ
<zer0@platinum>
Thu, 23 Feb 2012 20:46:09 +0000
(21:46 +0100)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index
a27bf10
..
53fd747
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-24,6
+24,7
@@
static volatile uint8_t rxbuf[16];
register uint8_t rxlen asm("r2");
register uint8_t done asm("r3");
register uint8_t portval asm("r4");
+register uint8_t bypass asm("r5");
SIGNAL(TIMER1_COMPA_vect)
{
@@
-94,6
+95,10
@@
int main(void)
break;
poll_spi();
}
+ /* bypass mode */
+ while (bypass == 1) {
+ PORTC = PORTB;
+ }
}
return 0;