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.

TMS570LS0432: Bitwise OR computation for register setting

Expert 1995 points
Part Number: TMS570LS0432
Other Parts Discussed in Thread: HALCOGEN

Hello,

I am trying to understand, in some code (generated by Halcogen), the scope of operations like the following just to assign to the register value:

systemREG1->CSDIS = 0x00000000U
                      | 0x00000000U
                      | 0x00000008U
                      | 0x00000080U
                      | 0x00000000U
                      | 0x00000040U
                      | 0x00000000U;

Would not it be easier assigning directly the value (which should result from the bitwise operation)?

Thanks ahead.