Re: HELP PLEASE: i2c in interrupt?

From: Abraham van der Merwe
Date: Wed Sep 17 2003 - 14:17:51 EST


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@xxxxxxxxxxxx

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/