2020-04-23 13:55:00 -04:00
|
|
|
( -- n )
|
2020-06-29 18:48:00 -04:00
|
|
|
: _idle 0xff (spix) ;
|
2020-04-23 13:55:00 -04:00
|
|
|
|
|
|
|
( -- n )
|
2020-06-29 18:48:00 -04:00
|
|
|
( spix 0xff until the response is something else than 0xff
|
2020-04-23 13:55:00 -04:00
|
|
|
for a maximum of 20 times. Returns 0xff if no response. )
|
|
|
|
: _wait
|
2020-10-29 21:03:11 -04:00
|
|
|
0 ( dummy ) 20 0 DO
|
|
|
|
DROP _idle DUP 0xff = NOT IF LEAVE THEN
|
|
|
|
LOOP ;
|