summaryrefslogtreecommitdiff
path: root/src/kernel/ao_pyro.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-02 22:05:11 -0700
committerKeith Packard <keithp@keithp.com>2014-06-02 22:05:11 -0700
commitd20c608ce833fb8949dce527f92887775d216823 (patch)
treea8fe6bc5dcb1f2a35f7b9c90fe0a20c58f1581c4 /src/kernel/ao_pyro.h
parentb7abc063fb27da29cd7a717bbea15f92882bd205 (diff)
altos: Fetch/store only 8 bits for pyro state values
These fields are uint8_t, not int16_t. Fetching and storing 16 bits is a bad idea. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_pyro.h')
-rw-r--r--src/kernel/ao_pyro.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/ao_pyro.h b/src/kernel/ao_pyro.h
index 34c99078..b37aaeb1 100644
--- a/src/kernel/ao_pyro.h
+++ b/src/kernel/ao_pyro.h
@@ -65,6 +65,8 @@ struct ao_pyro {
uint8_t fired;
};
+#define AO_PYRO_8_BIT_VALUE (ao_pyro_state_less|ao_pyro_state_greater_or_equal)
+
extern uint8_t ao_pyro_wakeup;
extern uint16_t ao_pyro_fired;