diff options
Diffstat (limited to 'firmware/fx2/common/delay.c')
-rw-r--r-- | firmware/fx2/common/delay.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/fx2/common/delay.c b/firmware/fx2/common/delay.c index 13cf0eec8..f2e83070c 100644 --- a/firmware/fx2/common/delay.c +++ b/firmware/fx2/common/delay.c @@ -24,11 +24,11 @@ * Delay approximately 1 microsecond (including overhead in udelay). */ static void -udelay1 (void) _naked +udelay1 (void) __naked { - _asm ; lcall that got us here took 4 bus cycles + __asm ; lcall that got us here took 4 bus cycles ret ; 4 bus cycles - _endasm; + __endasm; } /* @@ -51,9 +51,9 @@ udelay (unsigned char usecs) * but explains the factor of 4 problem below). */ static void -mdelay1 (void) _naked +mdelay1 (void) __naked { - _asm + __asm mov dptr,#(-1200 & 0xffff) 002$: inc dptr ; 3 bus cycles @@ -62,7 +62,7 @@ mdelay1 (void) _naked jnz 002$ ; 3 bus cycles ret - _endasm; + __endasm; } void |