Re: HELP PLEASE: i2c in interrupt?

From: Abraham van der Merwe (abz_at_frogfoot.net)
Date: 09/17/03

  • Next message: Will Dyson: "Re: [CFT] [1/15] table-driven filesystems option parsing"
    Date:	Wed, 17 Sep 2003 21:15:34 +0200
    To: "Richard B. Johnson" <root@chaos.analogic.com>
    
    

    Hi Richard >@2003.09.17_20:45:41_+0200

    > Why do you need something different? Why do you have something
    > on the timer queue in the first place? You don't need anything
    > like that. Serial I/O is serial I/O. You handle the IIC bus
    > serial I/O just like RS-232C or keyboard input. You get an
    > interrupt, the ISR gets the data and puts it in a buffer.

    See, that's my problem. The ISR can't put it in a buffer, because in order
    to read the data it has to sleep. The reason for that as I explained it is
    that it has to read the data from a chip on an I2C bus.

    -- 
    Regards
     Abraham
    Heller's Law:
    	The first myth of management is that it exists.
    Johnson's Corollary:
    	Nobody really knows what is going on anywhere within the
    	organization.
    ___________________________________________________
     Abraham vd Merwe - Frogfoot Networks CC
     9 Kinnaird Court, 33 Main Street, Newlands, 7700
     Phone: +27 21 686 1665 Cell: +27 82 565 4451
     Http: http://www.frogfoot.net/ Email: abz@frogfoot.net
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Will Dyson: "Re: [CFT] [1/15] table-driven filesystems option parsing"

    Relevant Pages

    • Re: Problem with I2C
      ... data over by writing my data to my serial buffer SBI0DBR, ... I enter the MCU's ISR after each ACK sent/received. ... Actually I'm not even sure if I can even change the transmit direction ... Variables modified by the ISR are declared volatile. ...
      (comp.arch.embedded)
    • Re: Mutex does not seem to lock
      ... I guess that your ISR is called at an IRQL higher that DISPATCH_LEVEL. ... Since a mutex can be acquired recursively by the same ... the ISR called in the UserThread context will successfully acquire ... This requires me to lock the user buffer into ...
      (microsoft.public.development.device.drivers)
    • Re: [PATCH] speed up SATA
      ... write-cache-off queueing will be slightly slower than ... since most drives have slightly stricter ... but an 8MB buffer doing 4K random-ops could ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: ZwWriteFile and buffer reuse
      ... Is it your ISR code???????? ... interrupt routine that ZwWrite routine is completed. ... You cannot touch a buffer passed to NtReadFile/NtWriteFile while it is ...
      (microsoft.public.development.device.drivers)
    • Re: How to manipulate a receiving buffer
      ... You'll need to disable your receive interrupt during ... flush_receiving_buffalways clear the buffer to empty (for ... dont want to put packet recognizing logical into the ISR. ... After the upper level code has read all of the chars from the buffer, ...
      (comp.arch.embedded)