|
|
|
@ -119,7 +119,8 @@ void post_out_buff(char *buff) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
int i = 0; |
|
|
|
|
for (i = 0; i < 0x80000; i++) ; |
|
|
|
|
for (i = 0; i < 0x80000; i++) |
|
|
|
|
; |
|
|
|
|
i = 0; |
|
|
|
|
while ((buff[i] != '\0') && (i != 100)) { |
|
|
|
|
while (!(*pUART_LSR & 0x20)) ; |
|
|
|
@ -127,7 +128,8 @@ void post_out_buff(char *buff) |
|
|
|
|
SSYNC(); |
|
|
|
|
i++; |
|
|
|
|
} |
|
|
|
|
for (i = 0; i < 0x80000; i++) ; |
|
|
|
|
for (i = 0; i < 0x80000; i++) |
|
|
|
|
; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* Using sw10-PF5 as the hotkey */ |
|
|
|
@ -150,9 +152,8 @@ int post_key_pressed(void) |
|
|
|
|
value = 0; |
|
|
|
|
goto key_pressed; |
|
|
|
|
} |
|
|
|
|
if (value != 0) { |
|
|
|
|
if (value != 0) |
|
|
|
|
goto key_pressed; |
|
|
|
|
} |
|
|
|
|
for (n = 0; n < KEY_DELAY; n++) |
|
|
|
|
asm("nop"); |
|
|
|
|
} |
|
|
|
@ -164,9 +165,8 @@ int post_key_pressed(void) |
|
|
|
|
value = 0; |
|
|
|
|
goto key_pressed; |
|
|
|
|
} |
|
|
|
|
if (value != 0) { |
|
|
|
|
if (value != 0) |
|
|
|
|
goto key_pressed; |
|
|
|
|
} |
|
|
|
|
for (n = 0; n < KEY_DELAY; n++) |
|
|
|
|
asm("nop"); |
|
|
|
|
} |
|
|
|
@ -178,9 +178,8 @@ int post_key_pressed(void) |
|
|
|
|
value = 0; |
|
|
|
|
goto key_pressed; |
|
|
|
|
} |
|
|
|
|
if (value != 0) { |
|
|
|
|
if (value != 0) |
|
|
|
|
goto key_pressed; |
|
|
|
|
} |
|
|
|
|
for (n = 0; n < KEY_DELAY; n++) |
|
|
|
|
asm("nop"); |
|
|
|
|
} |
|
|
|
|