To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 1363
    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)
 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR