Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE
Hi, Champs,
My customer is using F28004x and driveilib in C2000Ware (v1_00_04_00).
One problem they found is the operation in ASysCtl_selectCMPHPMux and ASysCtl_selectCMPLPMux functions seems to be incorrect.
Since the register to be operated in those 2 functions are 32bits, while the MACRO defined there is not default to 32bit, then when the shift operation makes the results exceeds 65535, there will have an error, so the code below:
(ASYSCTL_CMPLPMXSEL_CMP1LPMXSEL_M << (uint32_t)select)
should be revised to be:
((uint32_t)ASYSCTL_CMPLPMXSEL_CMP1LPMXSEL_M << (uint32_t)select)
Could you please check if it's true or if we will have a correction in future release?
Best Regards,
Ricky Zhang
