Avr c++

Discussion in 'Programmer's Corner' started by samjesse, May 8, 2014.

  1. samjesse

    Thread Starter Active Member

    Sep 14, 2008
    202
    0
    Hi

    This line is taken from avrfreaks.net
    I read it as:
    Which is setting a bits in TCCR1B. Which bit is it setting?
    I take it CS10 is the bit number. Is it a variable which has a value?
    That is shifting a 1 by CS10 number of bits to the left, am I right?

    Many Thx
     
  2. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    CS10 is defined in the header file. It has a numeric value associated with it, so that the 1 is shifted by the value necessary to address the desired bit.
     
Loading...