};
#define NB_SERVO (sizeof(servo_table)/sizeof(*servo_table))
-register uint8_t bypass asm("r2");
-register uint8_t done asm("r3");
-register uint8_t portval asm("r4");
-register uint8_t rxidx asm("r5");
+static volatile uint8_t bypass;
+static volatile uint8_t done;
+static volatile uint8_t portval;
+static volatile uint8_t rxidx;
+
#define BYPASS_ENABLE 14
#define BYPASS_DISABLE 15
* Command 14 is to enable bypass mode.
* Command 15 is to disable bypass mode.
*/
-register union {
+static volatile union {
uint8_t u8;
struct {
uint8_t zero:1;
uint8_t cmd_num:4;
uint8_t val_msb:3;
};
-} byte0 asm("r6");
+} byte0;
-register union {
+static volatile union {
uint8_t u8;
struct {
uint8_t one:1;
uint8_t val_lsb:7;
};
-} byte1 asm("r7");
+} byte1;
SIGNAL(TIMER1_COMPA_vect)
{