AnsweredAssumed Answered

user program on uclinux

Question asked by Tricky on Jul 3, 2013
Latest reply on Jul 3, 2013 by Aaronwu

Hi:

     Recently I want to write a simple user app based on the gpio driver on uclinux running on the bf548-ezkit,and I am new to uclinux ,I just do not know where can I find the specified gpio headers or the path files for the arch  I need to include .

    And I made a try on follow functions in the uclinux-dist :

               gpio_direction_output(GPIO_PG6,1);

               gpio_set_value(GPIO_PG6,1);

               gpio_free(GPIO_PG6);

 

  And I export the compile error text as below :

    /home/trk/blackfin-uclinux/blackfin-linux-dist/user/ledtest/ledtest.c:21: undefined reference to `_gpio_direction_output'

 

Can anybody help me or give me some examples using the GPIO API?

 

Thanks!

 

Message was edited by: Tricky

Outcomes