|
Before I start trying to do this, does anyone know why the LegOS function
write_ir is a blocking function? I'm trying to write an IR detection system
but am unable to do so in LegOS because every time I write a byte to the IR
port the RCX locks up. Is this just a problem with LegOS or is it something
more fundamental with the RCX. I willing to try and write a non-blocking one
but I haven't used asm since I sold my old Atari ST..
Many Thanks
Phil
|
|
Message has 1 Reply: | | Re: Blocking IR
|
| (...) Do you mean dir_write? This is a problem with LegOS only. If you want non-blocking writes, comment out (in version 0.1.7 at least): while(dir_tx_state==TX_ACTIVE) ; // FIXME: scheduler integration if(dir_tx_state==TX_OK) return len; // (...) (25 years ago, 10-Jun-99, to lugnet.robotics.rcx.legos)
|
12 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|