This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dsp2802x_epwm.h EPWM_REGS structure 6 words too short ??

Hello forum!

 

I use the dsp2802x_epwm.h header file and there the EPWM_REGS structure according to the TI cookbook :)

When using a struct pointer with this structure a pointer++ will fail to hit the next pwm because the struct ist 6 words too short.

Proposal: add 6 extra reserved words at the end of the structure like in the structure and the pointer construct will work.

I tested it and it works but I'm courious whether that would be worth to update it into the next release of the header files.

 

regards

FJ

  • Friedrich Janus said:

    Hello forum!

     

    I use the dsp2802x_epwm.h header file and there the EPWM_REGS structure according to the TI cookbook :)

    When using a struct pointer with this structure a pointer++ will fail to hit the next pwm because the struct ist 6 words too short.

    Proposal: add 6 extra reserved words at the end of the structure like in the structure and the pointer construct will work.

    I tested it and it works but I'm courious whether that would be worth to update it into the next release of the header files.

     

    regards

    FJ

    FJ,

    Thank you for reporting this.  I will file this against the SW for the next update.

    Happy Coding & Regards,

    -Lori