> You had asked if I had any specifics. Yes, other than the core of my
> project, which is almost entirely neural network based (Based on the FANN,
> modified to incorporate some other widely accepted practices along with my
> own theoretical work), I require examples for the following. It would help
> if I had explained that my system consists of a Stamp, along with an
> Audiostix2. Everything I have will be run from the I2C bus minus my CMUCam,
> which will be driven from a UART.
> If you could point me in the right direction of some C/C++ source to show me
> good examples of sending/receiving information from a I2C non-Robostix
> system. Your samples are very good, but perhaps due to my ignorance, they
> appear to be centered on the Robostix. I am interfacing from the SRF08 sonar
> module, Compass, and the servo controllers from Dvantech. Any examples of
> UART would be useful as well.
There is a program called simply i2c (robostix/gumstix/i2c) that does
generic i2c stuff. I've used it to talk to an SRF08 sonar, an RTC, and
an i2c GPIO expander chip.
i2c-io is very robostix centric, and it uses the
robostix/gumstix/Common/i2c-io-api.h/.c files, which in turn use the
more generic i2c-api.h/.c files.
The i2c program only uses the i2c-api.h/.c
As for talking to the UART from the gumstix side of things, take a
look at robostix/gumstix/Common/SerialLog.c/.h files. There is an
earlier. not quite as good sample in robostix/gumstix/sertest.c
> Also, I have been searching for a way to trigger functions when an interrupt
This really requires a kernel driver. I did a sample driver over here:
>From user-mode you'd use a seperate thread to issue blocking read
calls, which will unblock when data is available (which in this case
is from a button press). The SerialLog code shows how to launch a
Vancouver, BC, Canada