Hi Team,
i want to set gpio from reference-ril.c ,but including gpio.h shows me an error. can any one point me how to do this gpio settings,actually my gsm modem needs a high on gpio for 5 seconds ,
Regards,
Dibin
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Team,
i want to set gpio from reference-ril.c ,but including gpio.h shows me an error. can any one point me how to do this gpio settings,actually my gsm modem needs a high on gpio for 5 seconds ,
Regards,
Dibin
Hi,
you can use sysfs entry for gpio and write to /sys/class/gpio/export, /sys/class/gpioN
If you have gsm modem driver sources you can also do pin operation there.
Karol
Hi Karol,
i wnat to set gpio from ril itself to turn on the module when ril starts, i hust want to know how to include gpio.h
Regards,
Dibin
1 . You can do file operations from ril code.
or
2. For test add absolute path to kernel-header but it has sense only with ioctl and device file.
Generally linux/gpio.h is header for drivers - but I can be mistaken