From: Olivier MATZ Date: Thu, 23 Feb 2012 20:22:55 +0000 (+0100) Subject: rc_servos: implement bypass mode X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e3f43b953a1103fa4e9f4f932a04e8ab51b3b884;p=protos%2Frc_servos.git rc_servos: implement bypass mode --- diff --git a/main.c b/main.c index a27bf10..53fd747 100644 --- 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;