diff options
| author | Keith Packard <keithp@keithp.com> | 2014-11-06 15:58:42 -0800 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2014-11-06 15:58:42 -0800 |
| commit | f2e5ffd839fe5be99359e4c86a96f03148bac698 (patch) | |
| tree | 1ed60b6bc62815e3dd6304bffea003a39ba15083 /src/cc1111 | |
| parent | f2060d6ca222a04608e598baf59757f12ea2ec70 (diff) | |
altos: Declare port register type only in arch header
Instead of defaulting to 8 bits, explicitly require declaration of the
type of the port register for each architecture.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111')
| -rw-r--r-- | src/cc1111/ao_arch.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cc1111/ao_arch.h b/src/cc1111/ao_arch.h index fcac331b..b3c6b5dc 100644 --- a/src/cc1111/ao_arch.h +++ b/src/cc1111/ao_arch.h @@ -40,6 +40,8 @@ #define AO_STACK_END 0xfe #define AO_STACK_SIZE (AO_STACK_END - AO_STACK_START + 1) +#define AO_PORT_TYPE uint8_t + #define ao_arch_reboot() do { \ WDCTL = WDCTL_EN | WDCTL_MODE_WATCHDOG | WDCTL_INT_64; \ ao_delay(AO_SEC_TO_TICKS(2)); \ |
