Skip to content

Instantly share code, notes, and snippets.

@amatus
Created April 13, 2017 01:04
Show Gist options
  • Save amatus/7fc28ebf3b9e82bd77a5ac1651ba6272 to your computer and use it in GitHub Desktop.
Save amatus/7fc28ebf3b9e82bd77a5ac1651ba6272 to your computer and use it in GitHub Desktop.
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