writing usb drivers under 8.x

Hans Petter Selasky hselasky at c2i.net
Mon Aug 30 06:42:26 UTC 2010


On Monday 30 August 2010 04:18:56 Jim Bryant wrote:
> well, i can't speak for K&R 1978, as i can't currently find my copy,
> but, for a quick brush up, you might want to read pages 80 and 81 from
> K&R 2nd Ed. 1988.
> 
> your idea that the preprocessor will evaluate
> 
> #define thirtytwok (1<<15)
> 

For bit 31, you should consider adding a U, so that the values is not treated 
like a negative value.


1U << 31


--HPS


More information about the freebsd-usb mailing list