Esempio n. 1
0
// for gps.c
extern "C" const GpsInterface* get_gps_interface()
{
    loc_eng_read_config();
    //We load up libulp module at this point itself if ULP configured to be On
    if(gps_conf.CAPABILITIES & ULP_CAPABILITY) {
       loc_eng_ulp_inf = loc_eng_get_ulp_inf();
    }
    return &sLocEngInterface;
}
// for gps.c
extern "C" const GpsInterface* get_gps_interface()
{
    loc_eng_read_config();
#ifdef FEATURE_ULP
    //We load up libulp module at this point itself if ULP configured to be On
    if(gps_conf.CAPABILITIES & ULP_CAPABILITY) {
       loc_eng_ulp_inf = loc_eng_get_ulp_inf();
    }
#endif
    if (get_target_name() == TARGET_NAME_APQ8064_STANDALONE)
    {
        gps_conf.CAPABILITIES &= ~(GPS_CAPABILITY_MSA | GPS_CAPABILITY_MSB);
        gss_fd = open("/dev/gss", O_RDONLY);
        if (gss_fd < 0) {
            LOC_LOGE("GSS open failed: %s\n", strerror(errno));
        }
        LOC_LOGD("GSS open success! CAPABILITIES %0x\n", gps_conf.CAPABILITIES);
    }

    return &sLocEngInterface;
}