SWCU185G January 2018 – June 2024 CC1312PSIP , CC1312R , CC1352P , CC1352R , CC2642R , CC2642R-Q1 , CC2652P , CC2652PSIP , CC2652R , CC2652RB , CC2652RSIP , CC2662R-Q1
The MCU GPIO is a general-purpose input/output module that allows software to write to and read from the DIOs. GPIO supports up to 31 programmable I/O pins. These pins are configured by the IOC module. To modify a single GPIO output value, use the GPIO:DOUTn registers (see Section 14.10.2). To set up DIO1 as a GPIO output and toggle the bit, use the following procedure.
IOCPinTypeGpioOutput(0x1);
GPIOPinToggle(0x1);