SWCU193A April 2023 – August 2024 CC2340R2 , CC2340R5 , CC2340R5-Q1
To map a peripheral function to a DIOn, where n can range from 0 to 25, set IOC:IOCn.PORTCFG to the value that represents the target function. For example, to set DIO0 to the base function (GPIO) set IOC:IOC0.PORTCFG = 0x0.