X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fattiny%2Fao_arch_funcs.h;fp=src%2Fattiny%2Fao_arch_funcs.h;h=d4584a9fc1eeeb2dd028948ce3d78e427acd57ee;hp=76dc7820a0d2460d583b74696a28d993bd1e8079;hb=7e941695aa27e5eaf453ca1128b8d835472410a4;hpb=9b9acb88aa97e8565cdf9342fc59a5aee08e3d34 diff --git a/src/attiny/ao_arch_funcs.h b/src/attiny/ao_arch_funcs.h index 76dc7820..d4584a9f 100644 --- a/src/attiny/ao_arch_funcs.h +++ b/src/attiny/ao_arch_funcs.h @@ -41,6 +41,8 @@ PORTB &= ~(1 << bit); \ } while (0) +#define ao_gpio_get(port, bit, pin) ((PORTB >> (bit)) & 1) + /* * The SPI mutex must be held to call either of these * functions -- this mutex covers the entire SPI operation,