[Oberon] FPGA - nRF24L01 `RPI Net' server
joerg.straube at iaeth.ch
Wed May 23 19:51:03 CEST 2018
Your change is not a good idea...
1) How would the code following the ReceiveHead() detect whether a timeout
2) You wrote "it keeps `0FFH' in buffer". Does it? What does
From: Oberon [mailto:oberon-bounces at lists.inf.ethz.ch] On Behalf Of Tomas
Sent: Wednesday, May 23, 2018 5:35 PM
To: Oberon at lists.inf.ethz.ch
Subject: [Oberon] FPGA - nRF24L01 `RPI Net' server
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
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
More information about the Oberon