diff options
author | Keith Packard <keithp@keithp.com> | 2014-05-15 09:31:24 -0600 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-05-15 09:31:24 -0600 |
commit | 819f73698f57e76dca50fe4fadccebd23ffb776d (patch) | |
tree | 76248f4f2f500fcbec025ee586d883eafc1c484f /src/telelco-v0.2 | |
parent | da13064382e9673e69cdfae6abbac253c9fc42fc (diff) |
altos: Make quadrature debounce per-pin rather than per-device
Debouncing per-pin means we don't lose transitions, which makes
counting a lot more precise.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/telelco-v0.2')
-rw-r--r-- | src/telelco-v0.2/ao_pins.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/telelco-v0.2/ao_pins.h b/src/telelco-v0.2/ao_pins.h index 609e5494..a6fd4ff8 100644 --- a/src/telelco-v0.2/ao_pins.h +++ b/src/telelco-v0.2/ao_pins.h @@ -72,7 +72,7 @@ #define PACKET_HAS_SLAVE 0 #define PACKET_HAS_MASTER 0 -#define FAST_TIMER_FREQ 200 /* 5ms for debouncing */ +#define FAST_TIMER_FREQ 10000 /* .1ms for debouncing */ /* * Radio is a cc1120 connected via SPI |