Hello all,
I am using am335x sitara starter kit. I need to initialize GPIO pin to blink an user LED.
I am able to export and assign value to GPIO through command line.
Please help me to write code in kernel driver.
Regards,
Sowmya
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.
Hello all,
I am using am335x sitara starter kit. I need to initialize GPIO pin to blink an user LED.
I am able to export and assign value to GPIO through command line.
Please help me to write code in kernel driver.
Regards,
Sowmya
Hi Sowmya,
Here is a link to the GPIO Driver Guide for the TI AM335x SDK: http://processors.wiki.ti.com/index.php/GPIO_Driver_Guide
Best regards,
Miroslav
Thank you for the reply.
I refereed to the document and i need to know , in which file i need to initialize and write my function?
Should I have to initialize in board-am335xevm.c file?
Regards,
Sowmya
The board-am335xevm.c file should be used only for initialization. It's better if your blinking function is inside a separate kernel driver/module file. You will first need to have a basic understanding about writing kernel drivers/modules. There are plenty of materials on this topic online.
Best regards,
Miroslav