ok, Im attaching an initial version of the ptz & LED drivers for testing.
decompress the archive into the 'linux*/drivers' directory in your uClinux build root
(in my case it was the 'linux-3.1/drivers' directory, since im building on the 3.1 kernel).
then, you'll need to modify two files at the root of the 'drivers' directory
;in drivers/Kconfig, add the following line toward the end
;before the last 'endmenu' entry
source "drivers/foscam/Kconfig"
;in drivers/Makefile, add the following line at the end
obj-${CONFIG_FOSCAM} += foscam/
re-compile, flash the camera, and see if it works.
the ptz driver should initialize and calibrate on startup.
check the comments within ptz.c/camLED.c source files for more info on how to use the drivers.
please let me know if you have any problems compiling or using the driver.
feedback/questions are welcome.
EDIT:
I just realized that the driver design needs to be modified.
It currently completely blocks the kernel while the motors are being used.
I apologize, this was my first attempt at writing a linux device driver.
Apparently, I should be using 'kernel_thread' or some similar method to spin off a thread within the driver in order to not completely block the kernel? advice is welcome...
Anyway, Im going to try to fix the blocking problem, but in the meantime, the first version of the 'blocking' driver is still available for anyone who would like to play with it.