git-svn-id: https://spexeah.com:8443/svn/Asuro@587 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
parent
ff0bbb444c
commit
07f8dd5e4d
BIN
bin/kernel.bin
BIN
bin/kernel.bin
Binary file not shown.
Binary file not shown.
BIN
lib/asuro.ppu
BIN
lib/asuro.ppu
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lib/libpsystem.a
BIN
lib/libpsystem.a
Binary file not shown.
BIN
lib/terminal.ppu
BIN
lib/terminal.ppu
Binary file not shown.
@ -372,18 +372,27 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure SendSerial(Params : PParamList);
|
procedure SendSerial(Params : PParamList);
|
||||||
|
var
|
||||||
|
success : boolean;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
success:= true;
|
||||||
Serial.init(COM1);
|
Serial.init(COM1);
|
||||||
Serial.Send(uint8('H'), COM1, 100000);
|
success:= success AND Serial.Send(uint8('H'), COM1, 100000);
|
||||||
Serial.Send(uint8('E'), COM1, 100000);
|
success:= success AND Serial.Send(uint8('E'), COM1, 100000);
|
||||||
Serial.Send(uint8('L'), COM1, 100000);
|
success:= success AND Serial.Send(uint8('L'), COM1, 100000);
|
||||||
Serial.Send(uint8('L'), COM1, 100000);
|
success:= success AND Serial.Send(uint8('L'), COM1, 100000);
|
||||||
Serial.Send(uint8('O'), COM1, 100000);
|
success:= success AND Serial.Send(uint8('O'), COM1, 100000);
|
||||||
Serial.Send(uint8('W'), COM1, 100000);
|
success:= success AND Serial.Send(uint8('W'), COM1, 100000);
|
||||||
Serial.Send(uint8('O'), COM1, 100000);
|
success:= success AND Serial.Send(uint8('O'), COM1, 100000);
|
||||||
Serial.Send(uint8('R'), COM1, 100000);
|
success:= success AND Serial.Send(uint8('R'), COM1, 100000);
|
||||||
Serial.Send(uint8('L'), COM1, 100000);
|
success:= success AND Serial.Send(uint8('L'), COM1, 100000);
|
||||||
Serial.Send(uint8('D'), COM1, 100000);
|
success:= success AND Serial.Send(uint8('D'), COM1, 100000);
|
||||||
|
if success then begin
|
||||||
|
console.writestringlnWND('Send Success!', TERMINAL_HWND);
|
||||||
|
end else begin
|
||||||
|
console.writestringlnWND('Send Failed!', TERMINAL_HWND);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure init;
|
procedure init;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user