Other Parts Discussed in Thread: AWR1243
Tool/software: TI-RTOS
Hello
I have a question related to the GPIO setting for the TDA2PX- Fusion radar board application in the Vision SDK 3.05
In line 1246 of chains_common_ar12xx.c (PATH="\vision_sdk\apps\src\rtos\radar\src\common\chains_common_ar12xx.c), the code written is as follows:
#if (defined(TDA2PX_BUILD) && defined(PLATFORM_EVM_SI))
/* TDA2P EVM with Fusion Board*/
/* Enable Board Mux for CSI2 via setting SEL_CSI2 in EXPANDER3 */
UInt8 regValue[2];
UInt32 i2cInst, ioExpAddr, numRegs;
Int32 retVal;
i2cInst = BSP_DEVICE_I2C_INST_ID_0;
ioExpAddr = 0x26U;
numRegs = 2U;
retVal = Bsp_deviceRawRead8(i2cInst, ioExpAddr, regValue, numRegs);
UTILS_assert(BSP_SOK == retVal);
regValue[1] &= 0xFE;
retVal = Bsp_deviceRawWrite8(i2cInst, ioExpAddr, regValue, numRegs);
UTILS_assert(BSP_SOK == retVal);
/* Set GPIO7_7 to HIGH for I2C_SW_SOC_TDA2XX on Fusion Board */
/* Set GPIO7_9 as input for AWR1243 Host IRQ */
Bsp_platformSetPinmuxRegs((UInt32) 0xE,
(UInt32) CTRL_CORE_PAD_SPI1_SCLK,
BSP_PLATFORM_IOPAD_CFG_DEFAULT);
Bsp_platformSetPinmuxRegs((UInt32) 0xE,
(UInt32) CTRL_CORE_PAD_SPI1_D0,
BSP_PLATFORM_IOPAD_CFG_INPUTENABLE_BI);
GPIOModuleEnable(SOC_GPIO7_BASE);
Could you please explain why you have chosen ioExpAddr as 0X26 here? Which component does it correspond to? Is it any GPIO Exapnder on the fusion application board? Because the GPIO IOExpander defined in the software associated with the serializer has I2C address 0xE8. Also, what is it trying to do in the above code? The comment line says "Enable Board Mux for CSI2 via setting SEL_CSI2 in EXPANDER3". Is it a MUX setting of Fusion Board that is described here?
I look forward to your help!
Thank you,
Nishant