Tool/software:
In the latest Errata for the CC2340R5 SimpleLink Wireless MCU Device Revision B, it is mentioned that setting a GPIO to high-impedance state can cause a high-level voltage fluctuation.
We wish to verify the impact of this issue. First, we want to set the GPIO to high-impedance state. Could you please confirm if the following settings will configure the GPIO as high-impedance? If not, how should I set it up? (Using the IAR development environment and SDK 8.10)
// Possible GPIO configurations
#define IOC_INPUT_TRISTATE \
(IOC_IOC12_IOCURR_CUR_2MA | IOC_IOC12_IOSTR_AUTO | IOC_IOC12_PULLCTL_PULL_DIS | IOC_IOC12_SLEWRED_REDUCED | IOC_IOC12_HYSTEN_DIS | IOC_IOC12_EDGEDET_EDGE_DIS | IOC_NO_WAKE_UP |
IOC_IOC12_IOMODE_NORMAL | IOC_IOC12_INPEN_EN)
// Get the register address.
u32Reg = IOC_ADDR(u32PinId);
// Configure the port and configuration.
HWREG(u32Reg) = IOC_INPUT_TRISTATE | u32PortId;