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.

How i do use gpio expander?

Hi, all.

I want turn on evm LED by GPIO EXPANDER.

I want know PATH of example source.

How do I use the '$LINUX/drivers/gpio/pcf857x.c'.

Where is the this driver using example.

Please answer.

Thank you.

  • Hi Sangyun,

    There is some example source code in the Spectrum Digital web site: http://support.spectrumdigital.com/boards/evm816x/reve/

    In section DM816x/C6A816x/AM389x EVM Software Resources, we have link to ZIP file, which contains test code and board support library for the DM816x/C6A816x/AM389x EVM. Includes tests for expansion cards. In this test code, we have files like: evm816x_i2cgpio.c/h, ioexp.c/h, ioexpander_test.c/h

    Best Regards,

    Pavel

  • I want turn on evm LED by GPIO EXPANDER.

    I fine Test Code(Test code and board support library (CCS 4.2) for the DM816x/C6A816x/AM389x EVM.

    Includes tests for expansion cards.) in Spectrum Digital web site.

    This Test Code use CCS. but I want to don't use CCS.

    This Test Code is  compiled using  the makefile do in Linux?

    I tried the following methods.

    Make a libevm816xbsl.so file using evm816x/lib/evm816xbsl/evm816x.c, evm816x_gpio.c, evm816x_i2c.c ...

    and Test Code(ioexpander) is compiled using arm-none-linux-gnubi-gcc in linux

    But This way send to me error(segment fault), This approach was wrong?

    what should i do?

    I want turn on evm LED by GPIO EXPANDER on Linux Environment

    plz answer.