SLAA705A July 2016 – November 2019 MSP430FR2310 , MSP430FR2311
//Configure Op-Amp functionality for the external pins
GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P1,
GPIO_PIN5 | GPIO_PIN6 | GPIO_PIN7,
GPIO_TERNARY_MODULE_FUNCTION);
//Select low power low speed mode
TRI_selectPowerMode(TRI0_BASE, TRI_LOW_SPEED_LOW_POWER);
//Enable TIA
TRI_enable(TRI0_BASE);