Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Enable GPIO pin, AM1808

$
0
0

Hello,

I'm using Linux 03.20.00.14 on SBC8018 development board (AM1808) and I need to enable one GPIO (44th) pin.I would like to use "uP_SPI1_ENAN" pin (11th pin on J42 expasion board) as GPIO. I added this code for multiplexing, and I hope that this is OK:

MUX_CFG(DA850, GPIO2_12,5,12,15,8,false);    // This is 44th pin when I use it from userspace?

Also, I selected in menuconfig:

Device drivers --->

-*- GPIO support --->

[*] /sys/class/gpio/... (sysfs interface)

Is this enough?

I would like to read that GPIO pin from my application. How to do it?

Best regards,

Vladimir


Viewing all articles
Browse latest Browse all 17527

Trending Articles