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.

Compiler/AM3359: GPIO status read

Part Number: AM3359

Tool/software: TI C/C++ Compiler

Hello !..

i want to read pin status of gpio which is defined in kernel space

and i want read pin status from user space using file operation

i want to read gpio-67 pin status in Qt but while running cmd -----> cat /sys/kernel/debug/gpio get all gpio val but i want only one pin val in file read operation

something like

pFile = fopen("/sys/class/leds/evmsk:green:usr0/brightness", "w");
fwrite("1", 1, 1, pFile);
fclose(pFile);