I recommend you to read on Linux drivers to get the basic idea also.
"Linux Device Drivers 3rd Edition" and "Essential Linux Device
Drivers" are some pretty good material.
On Oct 25, 6:25 am, Vikram wrote:
> On Oct 23, 10:47 pm, ajay wrote:
>
> > hi,
> > thanks actully i wanted a guide to sta
You need to clarify your goal: is it about drivers development or
about Android HAL?
Typical HAL implementation (senors.c for example) is not a Linux
kernel driver. It is part of the user space programming in according
with Android sensors interface requirements and limitations. There are
few reso
And don't forget the Android sensor HAL for connecting the driver to
the framework
I know this is not the device driver but the driver will not work in
the system without this code either.
Sample is here
http://git.omapzoom.org/?p=device/ti/blaze.git;a=blob;f=sensors/sensors.c;h=85baf13ed32a491c4
On Oct 23, 10:47 pm, ajay wrote:
> hi,
> thanks actully i wanted a guide to start with writing an acclerometer
> driver for android.
No use reinventing the wheel. See sample accelerometer drivers done on
OMAP already(in k.org or in android) and derive your work accordingly:
Here is omap TI an
hi,
thanks actully i wanted a guide to start with writing an acclerometer
driver for android.
thanks and regards,
Ajay
On 22 October 2010 20:34, Chris Stratton wrote:
> Find one of the many online guides to writing a simple linux device
> driver.
>
> -or-
>
> Find a driver that has similar st
Find one of the many online guides to writing a simple linux device
driver.
-or-
Find a driver that has similar structure to one you are interested in
working on and copy and rename it, adapting to fulfill your function
instead of the original. Typically this will involve a few .c and
perhaps .h