Other Parts Discussed in Thread: C2000WARE
Tool/software:
I'm getting a warning "warning #175-D: floating-point value does not fit in required integral type"
I am trying to update the EPWM TBPRD register, which is 16-bits as follows:
#define USER_EPWMCLK_FREQ_MHz 100000000
#define USER_TARGET_FREQ_kHz 200000
EPWM_setTimeBasePeriod(EPWM1_BASE, (uint16_t)(USER_EPWMCLK_FREQ_MHz / (USER_TARGET_FREQ_kHz * 1000) - 1));
Any suggestions on how to cast/reconfigure this to avoid the warning? I've tried a couple of variants with no success so far.
Thanks!