Hi Kewal,
you could create a project for Processor Expert without the SDK, then add the GenericSWI2C component and copy over the sources.
In the .c file there are the following macros
#define SCL_SetDir(dir) SCL1_SetDir(dir)
#define SCL_ClrVal() SCL1_ClrVal()
#define SCL_GetVal() SCL1_GetVal()
#define SDA_SetDir(dir) SDA1_SetDir(dir)
#define SDA_ClrVal() SDA1_ClrVal()
#define SDA_GetVal() SDA1_GetVal()
you would need to call the SDK functions.
I hope this helps,
Erich
Hi Kewal,
you could create a project for Processor Expert without the SDK, then add the GenericSWI2C component and copy over the sources.
In the .c file there are the following macros
#define SCL_SetDir(dir) SCL1_SetDir(dir)
#define SCL_ClrVal() SCL1_ClrVal()
#define SCL_GetVal() SCL1_GetVal()
#define SDA_SetDir(dir) SDA1_SetDir(dir)
#define SDA_ClrVal() SDA1_ClrVal()
#define SDA_GetVal() SDA1_GetVal()
you would need to call the SDK functions.
I hope this helps,
Erich
Yeah, actually I tried before posting this question. I got an error with below description
Error during adding referenced component/template "Unsupported/Wait-UNSUPPORTED".
Component is either missing or corrupted.
It was just a project with processor expert and KSDK option as none. Also tried with codewarrior and found same issue.
Do i need to add any other component?