mirror of
https://github.com/nippur72/apple1-videocard-lib.git
synced 2025-01-06 18:29:54 +00:00
29 lines
431 B
C
29 lines
431 B
C
|
|
void comando_test() {
|
|
|
|
woz_puts("\rTESTING\r");
|
|
|
|
send_byte_to_MCU(CMD_TEST);
|
|
|
|
byte dsend = 0;
|
|
byte drec = 0;
|
|
|
|
while(1) {
|
|
send_byte_to_MCU(dsend);
|
|
if(TIMEOUT) return;
|
|
|
|
drec = receive_byte_from_MCU();
|
|
drec ^= 0xff;
|
|
|
|
if(drec != dsend) {
|
|
woz_puts("\rTRANSFER ERROR\r");
|
|
return;
|
|
}
|
|
dsend++;
|
|
if(dsend == 0x00) woz_putc('*');
|
|
}
|
|
}
|
|
|
|
void test_via() {
|
|
|
|
} |