help keil ARM?

Discussion in 'Embedded Systems and Microcontrollers' started by 5282, Oct 18, 2010.

  1. 5282

    Thread Starter New Member

    Jul 30, 2010
    8
    0

    in this code for at91sam9

    Code ( (Unknown Language)):
    1. AT91C_BASE_PIOA->PIO_SODR = led_mask[i] ;[/i]


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


    Code ( (Unknown Language)):
    1.   AT91C_BASE_SYS->PITC_PIMR |= AT91C_PITC_PITEN;

    in this code

    what is purpose from
    |=

    thank's
     
  2. Papabravo

    Expert

    Feb 24, 2006
    10,144
    1,791
    -> 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.
     
    5282 likes this.
  3. 5282

    Thread Starter New Member

    Jul 30, 2010
    8
    0
    thank you :)

    but i'm not good in english

    -and what rhs and lhs mean ?

    thank you :)
     
  4. Papabravo

    Expert

    Feb 24, 2006
    10,144
    1,791
    RHS = Right Hand Side
    LHS = Left Hand Side
     
    5282 likes this.
  5. 5282

    Thread Starter New Member

    Jul 30, 2010
    8
    0
    thank you for help me :)
     
Loading...