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.

LP-CC2652RB: How to change the GPIO in pinStandby example?

Part Number: LP-CC2652RB
Other Parts Discussed in Thread: CC2652RB, SYSCONFIG

Hi Ti,

I am working in simplelink_cc13x2_26x2_sdk_4_30_00_54\examples\rtos\CC2652RB_LAUNCHXL\drivers\pinStandby\tirtos\ccs and the example working well.

I want to change the PIN for LED in my personal board, however I can't find any define for the GPIO in .syscfg file.

I find the define of CONFIG_PIN_LED_0 in ti_drivers_config.h, which generated by syscfg tools. So I check the .syscfg file, there is nothing about the GPIO or LED module...

Could you tell me how to change CONFIG_PIN_LED_0 to map the DIO0 ?

Thanks.

  • Hi,

    In SDK 4.30, SysConfig generates the symbols CONFIG_PIN_LED_0 and CONFIG_PIN_LED_1 within ti_drivers_config.h.

    Instead of trying to modify the symbols generated by SysConfig, I would recommend to modify the table LedPinTable[] to use other pins.

    For example, you could do the following:

    /* LaunchPad LED Red (DIO6) */
    #define CONFIG_PIN_LED_3                   0x00000006
    /* LaunchPad LED Green (DIO7) */
    #define CONFIG_PIN_LED_4                   0x00000007
    
    /* Led pin table */
    PIN_Config LedPinTable[] =
    {
        CONFIG_PIN_LED_3 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX, /* LED initially off */
        CONFIG_PIN_LED_4 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX, /* LED initially off */
        PIN_TERMINATE                                                                      /* Terminate list */
    };
    

    Generally speaking, SysConfig has significantly evolved since SDK 4.30. So I would recommend to assess if migration to a newer SDK would make sense.

    Best regards,

  • Hi,

    Thanks for your reply.

    But what does the value 0x00000006 and 0x00000007 means?

    where I can find the mapping that which pin match to which value?

    Thanks!

  • 0x00000006 and 0x00000007 are IO Id for the IOC module.