CCS v3.3/WinXP Pro
Custom OMAP-L137 board with EEPROM in I2C port 1
---------------------------------
File: D:\Program Files\Texas Instruments\pspdrivers_01_20_00_07\packages\ti\pspiom\platforms\evmOMAPL137\src\i2c_evmInit.c
//#define PINMUX8_I2C_ENABLE 0x00022000 // Only enables I2C0!
#define PINMUX8_I2C_ENABLE 0x00022022 // I2C1 not enabled by TI! Corrected by me
I suppose this is needed to use port 1, right? What else should I change to be able to use GIO on I2C port 1? Trying the test project made for EVMOMAP (D:\Program Files\Texas Instruments\pspdrivers_01_20_00_07\packages\ti\pspiom\examples\evmOMAPL137\i2c\edma) doesn't work, the call
i2c_outHandle = GIO_create("/I2C1", IOM_OUTPUT, &status, &chanParams, &gioAttrs);
returns a null handle. I suppose this is because there isn't a 'I2C1' entry in the dev table but how can I get it there? The tcf file shows only I2C0, should I add I2C1 there somehow? I tried recompiling the EVMOMAP libs (D:\Program Files\Texas Instruments\pspdrivers_01_20_00_07\packages\ti\pspiom\platforms\evmOMAPL137) with CHIP_OMAPL137 defined to be sure everything concerning two I2C ports are there but it didn't help.
Rgds,
Harri