[Oberon] FPGA - nRF24L01 `RPI Net' server
Jörg
joerg.straube at iaeth.ch
Wed May 23 19:51:03 CEST 2018
Tomas
Your change is not a good idea...
1) How would the code following the ReceiveHead() detect whether a timeout
occurred?
2) You wrote "it keeps `0FFH' in buffer". Does it? What does
SCC.ReceiveHead(head1) do?
br
Jörg
-----Original Message-----
From: Oberon [mailto:oberon-bounces at lists.inf.ethz.ch] On Behalf Of Tomas
Kral
Sent: Wednesday, May 23, 2018 5:35 PM
To: Oberon at lists.inf.ethz.ch
Subject: [Oberon] FPGA - nRF24L01 `RPI Net' server
Hi,
I have recoded Net.ReceiveHead() slightly.
...
(*IF ~head1.valid & (Oberon.Time() >= time) THEN head1.typ := 0FFH*)
END UNTIL head1.valid OR (Oberon.Time() >= time) (*head1.typ = 0FFH*) END
ReceiveHead;
Once the loop falls through on timeout, it keeps `0FFH' in buffer, making it
return immediately before `time' lapses in all subsequent calls. Also `0FFH'
message type is reserved for broadcast, correct?
--
Tomas Kral <thomas.kral at email.cz>
--
Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
https://lists.inf.ethz.ch/mailman/listinfo/oberon
More information about the Oberon
mailing list