Created
April 13, 2017 01:04
-
-
Save amatus/7fc28ebf3b9e82bd77a5ac1651ba6272 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static inline void | |
cbi(volatile uint8_t *sfr, char bit) | |
{ | |
_SFR_BYTE(*sfr) &= ~_BV(bit); | |
} | |
#define LED_POWER &PORTD,2 | |
cbi(LED_POWER); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment