Hi Vincent, You can not access kernel calls in user space libraries.
You can not directly handle the hardware from user space , Either way you can utilize the kernel features like proc fs or syfs to communicate with the kernel from user space. You can implement proc fs or sysfs calls to communicate with gpio. Thanks & Regards, Vali On Friday, November 2, 2012 3:07:24 PM UTC+5:30, vincent wrote: > > Hi All, > > I am newer of Android and Linux. Now I am doing a task which > request to access GPIO in hwc.c or Surfaceflinger.cpp. > > (I am using a panda board, and have light up it, now I want to > modify something). > > But when I include the GPIO.h in hwc.c(hardware/ti/omap/), compile > error happen. > > Anybody can give me some clue. > > There is a gpio.h file in the kernel directory > /include/linux/gpio.h. > There is also a gpio-omap.c in kernel directory /driver/gpio/ > > My question is how to use it. > > Should I change the kernel config (enable general GPIO) using > menuconfig, then rebuild it? > > > Vincent > > > > > > > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
