On Thu, 4 Apr 2002 12:20, Daniel Cruz wrote:
>  I'm using a Microchip microcontroller with low speed USB support, the
>  microcontroller with a minimum set of peripherals will conform a board for
> a
>  robotics application so basically the board will read information from
>  encoders and analog inputs and will send that over the USB to a computer
>  running linux, thats where the position controller is, so the controller
>  will send data back to the board to move the motors and stuff.
>
>  The firmware in the microcontroller is written to be used with a HID
> driver,
>  so that is the driver I'm using now, however since timing is very
> important in my application, I think is better to go with a device-specific
> driver.
You are going to have to get this data into userspace at some point anyway, 
the minimum interrupt interval is 1ms (probably 10ms or worse on a cheap 
board) and experience shows that the driver you write probably won't 
outperform the current in-kernel stuff anyway (look through the archvies and 
see that the Rio500 stuff works faster in userspace :)
Also, development goes much faster when you don't need to reboot so much 
(voice of experience). Also, writing drivers in kernel space that don't have 
races is really hard, and you definately don't want bad things happening when 
there is physical action on the outputs.

Use libusb (http://libusb.sf.net), know that your code is portable and not 
subject to weird interface changes in the middle of your project. 

Good luck!

Brad

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to