Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define set_bit(sfr, bit) (_SFR_BYTE(sfr) |= BV(bit)) // old sbi()
- #define clear_bit(sfr, bit) (_SFR_BYTE(sfr) &= ~BV(bit)) // old cbi()
- #define toggle_bit(sfr, bit) (_SFR_BYTE(sfr) ^= BV(bit))
Add Comment
Please, Sign In to add comment