From 2fe7b2747b73f2ac9ddf3630843da19937c3b570 Mon Sep 17 00:00:00 2001 From: Olivier MATZ Date: Thu, 23 Feb 2012 21:22:35 +0100 Subject: [PATCH] rc_servos: most critical variables as registers --- main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) { -- 2.39.5