help keil ARM?

Thread Starter

5282

Joined Jul 30, 2010
8

in this code for at91sam9

Rich (BB code):
AT91C_BASE_PIOA->PIO_SODR = led_mask ;


i'm beginner in c language AND what is purpose from
->


Rich (BB code):
  AT91C_BASE_SYS->PITC_PIMR |= AT91C_PITC_PITEN;

in this code

what is purpose from
|=

thank's
 

Papabravo

Joined Feb 24, 2006
22,082
-> means the member of a structure named on the RHS "pointed at" by the pointer on the LHS.

|= menas "or equal" the left hand operand is or'ed with the right hand operand and assigned to the left hand operand.
 

Thread Starter

5282

Joined Jul 30, 2010
8
-> means the member of a structure named on the RHS "pointed at" by the pointer on the LHS.

|= menas "or equal" the left hand operand is or'ed with the right hand operand and assigned to the left hand operand.
thank you :)

but i'm not good in english

-and what rhs and lhs mean ?

thank you :)
 
Top