Hi Jan,
the file node 'prx_raw' comes from driver side.
kernel/drivers/input/misc/stk3x1x.c
static ssize_t stk_ps_prx_raw_show(struct device *dev, struct device_attribute
*attr, char *buf)
{
struct stk3x1x_data *ps_data = dev_get_drvdata(dev);
uint32_t reading;
reading = stk3x1x_get_ps_reading(ps_data);
return scnprintf(buf, PAGE_SIZE, "%d\n", reading);
}
is that what you looking for?
Regards,
viral
----- Original Message -----
From: "Fabrice Desré" <[email protected]>
To: "Jan Jongboom" <[email protected]>, [email protected]
Sent: Saturday, October 11, 2014 12:34:29 AM
Subject: Re: [b2g] Where does the Flame specific sensor code?
On 10/10/2014 03:30 AM, Jan Jongboom wrote:
>> We are probably using Android's sensor API. You should have a look in
>>
>> http://dxr.mozilla.org/mozilla-central/source/hal/gonk/GonkSensor.cpp
>
> Nah, it lives in a separate repo actually, that is initialized by
> /b2g/config.sh. I had my repo configured for Peak.
>
> F.e. proximity code for Peak lives at
> b2g/hardware/libhardware/modules/sensors/ProximitySensor.cpp
That's the gonk part. Alexandre linked you to the gecko use of the
android HAL. But since we don't know from where you want to access the
sensor value...
Fabrice
--
Fabrice Desré
b2g team
Mozilla Corporation
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g