| | legOS Addressing - Packet Handler Colin Ryan
|
| | Hi All I have a very simple RCX legos program (which I've attached), that I'm having difficulty with. I have compiled legOS with the default host address of 0 (0x00). I am using WinLNP to send data to the RCX (simple short strings), but the RCX will (...) (24 years ago, 11-Aug-00, to lugnet.robotics.rcx.legos)
|
| | |
| | | | Re: legOS Addressing - Packet Handler Eddie C. Dost
|
| | | | (...) Take the sleep(1) out of the code! The function addressHandlerPortOne() is called from an interrupt, so you must not call any function which might cause a reschedule (which sleep() definitely does). You can do all this by having a separate (...) (24 years ago, 11-Aug-00, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: legOS Addressing - Packet Handler Colin Ryan
|
| | | | Thanks Eddie, Sorry for posting a message I should have known the answer to. I'll have a look at the semaphore example. If anyone knows of a good refence for semaphore programming could they please let me know?Its taken me a while to get into the (...) (24 years ago, 11-Aug-00, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: legOS Addressing - Packet Handler Eddie C. Dost
|
| | | | (...) Semaphores: You said you installed Linux, try "man sem_post". Also kernel/program.c is a good reference for a semaphore use. A more complicated example is the tx_sem in kernel/lnp-logical.c and kernel/lnp.c. Eddie C. Dost ecd@skynet.be (24 years ago, 11-Aug-00, to lugnet.robotics.rcx.legos)
|
| | | | |