- This topic has 1 reply, 2 voices, and was last updated 15 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › avr macros
I started with avr recently. i am searching the some basic code of avr i found some macros
for example-
DDRB = _BV(PB0) | _BV(PB1);
what is the means of ”BV” macro here.
this macros are under the “inttypes.h” header file. this macro are used when u need to deal with single i/o pin of avr microcontrollers.
this macro shows PB0 and PB1 are output and rest pins are input pins