Tool/software: TI-RTOS
Hi,
i have seen that in the pdk_1_0_10 there is a new I2C driver that has not existed in the pdk_1_0_9 before.
in the file: packages\ti\drv\i2c\soc\I2C_soc.h
#include <ti/csl/csl_utils.h> #include <ti/drv/i2c/I2C.h> #if defined(SOC_K2H) || defined(SOC_K2K) || defined(SOC_K2L) || defined(SOC_K2E) || defined(SOC_K2G) || defined(SOC_C6678) || defined(SOC_C6657) || defined(SOC_OMAPL137) || defined(SOC_OMAPL138) #include <ti/drv/i2c/soc/I2C_v0.h> #else #include <ti/drv/i2c/soc/I2C_v1.h> #if defined(SOC_AM572x) || defined(SOC_AM574x) || defined(SOC_AM437x) || defined(SOC_AM437X) || defined(SOC_AM335x) || defined(SOC_AM335X) #include <ti/drv/i2c/soc/I2C_v2.h> #endif #endif
I have a question is this intentionally that if SOC_AM335x is defined that both v1 and v2 is included?
I have looked further into the files and have seen that, if i am right, am335x is in the end not using v2 but v1.
Is this not implemented yet? But why include both v1 and v2 when using AM335x?
Thanks, Marvin