[sdiy] OT what is _BV (AVR)
Matthew Smith
matt at smiffytech.com
Thu Mar 10 03:40:44 CET 2011
Quoth dan snazelle at 10/03/11 13:00...
> I know a lot of people on here use C on the AVR so i thought someone might be able to answer this question.
>
> Much of the code I have been reading and re-reading for the AVR is made up of lines do things to the registers.
>
>
> I keep seeing lines that start with _BV which is a command I have not been able to find the meaning of.
It's a macro for setting specific bits in a register. See the avr-libc
FAQ Item "What is all this _BV() stuff about?"
http://www.nongnu.org/avr-libc/user-manual/FAQ.html#faq_use_bv
--
Matthew Smith
Blog: www.smiffysplace.com Business: www.smiffytech.com
www.linkedin.com/in/smiffy www.flickr.com/photos/msmiffy
twitter.com/smiffy
More information about the Synth-diy
mailing list