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.

AM335x Pin Toggle (Linux)

Hi,

i m developing on SK AM335x , i m running linux (SDK 05.05.01.00) .. what i want to do is to toggle a pin .. i have a Userspace Application and a Kernel Module working on SPi..

so first i want to toggle a Pin in a Kernel Module

i want to use one of the user leds LED1-3 above the Power on Button beacause they are not blinking and the OS is not using them.. there must be a driver somewhere to use this Leds ?!?!?

i ve no plan what to do beacause i dont find any kernel Source ( gpio Driver or somthing ) accesing the Hardware .. so what can i do ?

Edit:

somewhere i found 

gpio_set_value(NFC_PWRUP_GPIO, 0);
gpio_set_value(NFC_PWRUP_GPIO, 1);

i guess this toggles a pin ?!?! ... but what are the PinNummbers for the  User Leds ?? Is there a list of all Pin Nummbers of the Microcontroller ?!?

IF YOU HAVE AN IDEA HOW TO TOGGLE ANY OTHER PIN IT WOULD ALSO BE OK .... LIKE (J8 / I2CHeader )  !?!?

thanx a lot

best regards

aly