From: Olivier MATZ Date: Thu, 23 Feb 2012 20:22:35 +0000 (+0100) Subject: rc_servos: most critical variables as registers X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2fe7b2747b73f2ac9ddf3630843da19937c3b570;p=protos%2Frc_servos.git rc_servos: most critical variables as registers --- diff --git a/main.c b/main.c index e733e81..a27bf10 100644 --- a/main.c +++ b/main.c @@ -19,10 +19,11 @@ static struct servo servo_table[] = { .command = 1023, }, }; + static volatile uint8_t rxbuf[16]; -static volatile uint8_t rxlen; -static volatile uint8_t portval; -static volatile uint8_t done; +register uint8_t rxlen asm("r2"); +register uint8_t done asm("r3"); +register uint8_t portval asm("r4"); SIGNAL(TIMER1_COMPA_vect) {