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.

CSL gpio problem

Hi

I'm using CCS 5.5 on 5510 DSK, and was working on controlling GPIO pins, but I have a problem that is every time i use a function from the CSL GPIO library, it returns an error, that this function is not defined, this happens also when creating a handle or configuration structure. but when i use the GPIO macros, everything works fine.

note:i already included the csl_gpio.h

any one has some solution?

regards

Aziz

  • Aziz,

    Can you send a sample of the code?

    Things to check:
    -is the path of the header file included in the compiler options under "Include options"
    -is the library included in the linker options under "file search path"
    -is the path to the library included in the linker options under "file search path"

    Regards,
    John
  • hi john
    thank you for your reply
    the header is included as i mentioned, and CCS is not having problem recognizing it, i can assess it from my code and i can see it also from the project tab under included files in CSL... also i added the path of the CSL folder to the search for the linker, and included the CSL library as well, those are some of the first step i do whenever i create a new project. (i don't think i have to add each library separately to the linker, do i? i usually add only the CSL lib)
    but still, i cant use the functions...
    by the way, i am including and using other libraries of CSL (DMA,McBSP...) with no problems, and also i am using the GPIO macros (GPIO_RGET(IODATA), and GPIO_RSET(IODIR,0x00) for example) and they are working fine!
    what do you think?
    best regards
    aziz
  • Aziz,

    Which functions are giving you trouble? I have asked some CSL experts to reply but until then I could try to reproduce on my machine and attempt to figure out what you need to include to get this working.

    Regards,
    John