PSIM initialization problem for generated code
s_pal
Altair Community Member
Hi,
I am using PSIM generated code with ADC and PWM initialization by PS_SysInit(2, 20).
At same time, I needed to use I2C channel of f28377D. Thats why I used, Device_init() and Board_init() function generated C2000.syscfg.
Is it possible to merge two separate initialization function together?
The source code of Psbios.h is not available.
void PS_SysInit(int clkSrc, int extClk);
Tagged:
0
Answers
-
Hi
PS_bios does many peripheral initializations, if you want to manually add I2C, you need to choose I2C related code and put them into Initialize() function that SimCoder generated. Otherwise, it may cause some conflicts.
You can manually add you code to the generated project, but you need to add all necessary include files to the project.
Thanks
0