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.

SIMPLELINK-CC13X2-26X2-SDK: Bug in driverlib gpio.h

Part Number: SIMPLELINK-CC13X2-26X2-SDK

Hi,

there is a semicolon missing in the driverlib/gpio.h file in version 4.20.0.35 of the SDK (also in version 4.10.0.78):

#ifdef DRIVERLIB_DEBUG
#include "../inc/hw_fcfg1.h"
#include "chipinfo.h"

static bool
dioNumberLegal( uint32_t dioNumber )
{
    uint32_t ioCount =
        (( HWREG( FCFG1_BASE + FCFG1_O_IOCONF ) &
            FCFG1_IOCONF_GPIO_CNT_M ) >>
            FCFG1_IOCONF_GPIO_CNT_S ) ;

    // CC13x2 + CC26x2
    if ( ChipInfo_ChipFamilyIs_CC13x2_CC26x2() )
    {
        return ( (dioNumber >= (31 - ioCount)) && (dioNumber < 31) )
    }
    // Special handling of CC13x0 7x7, where IO_CNT = 30 and legal range is 1..30
    // for all other chips legal range is 0..(dioNumber-1)
    else if (( ioCount == 30 ) && ChipInfo_ChipFamilyIs_CC13x0() )
    {
        return (( dioNumber > 0 ) && ( dioNumber <= ioCount ));
    }
    else
    {
        return ( dioNumber < ioCount );
    }

}
#endif

It only shows up when DRIVERLIB_DEBUG is enabled.