Qualcomm has a lot of proprietary stuff. You may not want to start
with that.
For sample code you can simply refer the emulator stub :- qps_qemu.c.
You will need to tweek it a little for your module. But beware it will
be compiled into the libhardware_legacy.so. Modify the make file to
generate a seperate lib.
This is a real life application of it ,it extends the above stub :-
http://gitorious.org/android-on-freerunner/freerunner_platform_hardware_hw/blobs/master/gps/gps_freerunner.c
You will want to start with that.
Then edit the BoardConfig.mk file to mention the file you are building

On Jan 18, 10:34 am, shm <[email protected]> wrote:
> Thank you, Chaitanya!
>
> You comment gives me a bird-view of the whole work.
> So, the most important thing is to implement the GPS I/F as defined in
> gps.h.
> Do you know where I can find some sample codes?
> Actually, I found one provided by Qualcom, at hardware\qcom\gps in the
> android source package.
> But, I am not sure if it is useful in my case.
>
> Best regard
> ----
> shm
>
> On 1月15日, 午後8:45, Chaitanya <[email protected]> wrote:
>
>
>
>
>
>
>
> > You should start by building a shared library implementing the
> > standard interface defined by Android for GPS. Since it's primary
> > interface is UART no further config required.
> > See this for details :-http://www.kandroid.org/online-pdk/guide/gps.html
> > Then under your product's makefile edit it to build the library.
> > Report the presence of GPS to android.
> > Edit the initialisation script to suit your needs.
>
> > Since you are using aMEDIATEKmodule, from my knowledge almost ALL
> > China Shanzai Phones running Android use this same module. So pick up
> > the binaries from them if you can.
>
> > On Jan 13, 7:41 am, shm <[email protected]> wrote:
>
> > > I am a real beginner with Android.
> > > Would you tell me the steps to porting a GPS module?
> > > I am using aMediaTekmodule, which is controlled by UART I/F and
> > > several ports (such as power).
>
> > > Thank you!

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to