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.

Compiler/LAUNCHXL-CC26X2R1: Migrating GPIO from CC2650 to CC26X2 and Sysconfig

Part Number: LAUNCHXL-CC26X2R1
Other Parts Discussed in Thread: CC2650, SYSCONFIG

Tool/software: TI C/C++ Compiler

In legacy CC2650 application we used the PIN.h driver to contrôle LED, Buttons pin and other IOs.

In CC26X2 applica&tion with simplelink 3.30.0.03 shall we use the GPIO.h driver instead ?

I noticed that the PIN.H is still present in the simplelink drivers library but no in sysconfig.

Kind regards.

Frederic

  • I would suggest you to config LED/BTN pins in sysconfig directly.

  • Background: Syscfg is written to be able to use for a wide range of MCUs and the PIN driver is not available for all MCUs and hence it's not included in the tool.

    You are still free to use the PIN driver, you just have to define related code in one of the files syscfg overwrites. 

    If you want, it should be possible to add support for the PIN driver yourself. If you look in the C:\ti\<SDK install path>\source\ti\drivers you will find a folder named .meta. These files are used by syscfg meaning that you should be able to add new files or alter existing ones (not recommended except if to patch a know bug etc) I haven't looked into the files to check the complexity or how easy it's to make you own based on the files but if you feel for some javascript during the xmas break that is an option.  

  • Thanks a lot.

    Mainly my question was : If I have to handle GPIO to control pins or get interrupts what is the recommended driver ?

    I understand the GPIO.h driver is the recommended one and not the PIN.h driver.

    Kind regards.

    Frederic