diff options
author | Keith Packard <keithp@keithp.com> | 2013-08-28 22:52:58 -0600 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-08-28 22:52:58 -0600 |
commit | dcc51bb18985c24fa35bce0dd42ea3d847b960bf (patch) | |
tree | 652c06c900b01b3c43f674e0f121109cc54b1120 /src/attiny/ao_arch_funcs.h | |
parent | 7c82acc1c1c5b7b4da7c7ecb3b2fd90140e4c703 (diff) | |
parent | a73b02518fcbc9fc0807ed8e141d3a06e8ad8214 (diff) |
Merge remote-tracking branch 'origin/telemini'
Signed-off-by: Keith Packard <keithp@keithp.com>
Conflicts:
src/core/ao_telemetry.c
src/core/ao_telemetry.h
Added both Mini and Metrum telemetry defines
Diffstat (limited to 'src/attiny/ao_arch_funcs.h')
-rw-r--r-- | src/attiny/ao_arch_funcs.h | 2 |
1 files changed, 2 insertions, 0 deletions
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, |