Other Parts Discussed in Thread: SYSCONFIG
Hello,
I'm trying to use sysconfig to set up some EPWM and ADC channels, and in the generated board.c, Sysconfig generates some function stubs which would allow you to incorporate your initialization as part of the board_init() function. But these functions can't be modified since on build they get re-generated.
For example EPWM_init(). It looks like you should be able to put your PWM setup here, but if you make any changes they get overriden on the next build.
void EPWM_init(){
//MOT_PWM_A initialization
//MOT_PWM_B initialization
//MOT_PWM_C initialization
}
Sysconfig either needs to add the capability to generate this initialization code, or insert a user defined init function which lives outside of the generated code, or make the EPWM_init() function a virtual function or otherwise able to be overridden so that it can be defined elsewhere.
I noticed this was the case for AIO_init() as well.
Are there any recommendations for now beyond doing the pwm initialization elsewhere?
Munan
