]> git.droids-corp.org - protos/rc_servos.git/commitdiff
rc_servos: most critical variables as registers
authorOlivier MATZ <zer0@platinum>
Thu, 23 Feb 2012 20:22:35 +0000 (21:22 +0100)
committerOlivier MATZ <zer0@platinum>
Thu, 23 Feb 2012 20:45:33 +0000 (21:45 +0100)
main.c

diff --git a/main.c b/main.c
index e733e81587186f979731ddab067dd862ba746d3d..a27bf10b821ae74236ec19e6ba77324ea936a304 100644 (file)
--- 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)
 {