summaryrefslogtreecommitdiff
path: root/src/telelco-v2.0
Commit message (Collapse)AuthorAge
* altos: Move common build definitions to src/Makefile.defsKeith Packard2019-02-18
| | | | | | | | This cleans up the build process for all architectures, providing a common place to specify vpath, cflags and build rules for various common files. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Mark local functions 'static'Keith Packard2019-02-18
| | | | | | Working towards supporting -Wmissing-prototypes Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Make beeper driver support all possible tim234 configsKeith Packard2018-10-19
| | | | | | And update all users to be explicit about the desired config. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add generic LED driver.Keith Packard2018-10-13
| | | | | | | | | | | This driver uses the generic GPIO functions and allows per-LED port and pin configuration. It supports up to 32 LEDs. Rename SoC-specific LED drivers. Remove enabled parameter to ao_led_init Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make cmd number parsing functions return valueKeith Packard2018-10-13
| | | | | | Don't use a global variable to hold the result. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Remove 8051 address space specifiersKeith Packard2018-10-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make LCO search directly drive pad/box displaysKeith Packard2018-07-04
| | | | | | Don't use ao_lco_show as that has other logic too. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix telelcotwo build for new ao_lco_bits.c fileKeith Packard2018-07-04
| | | | | | Lots of code motion; shouldn't have any functional changes. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: A bit more LCO code sharingKeith Packard2018-07-03
| | | | | | Missed drag race pad toggling in ao_lco_v2.c Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Share common LCO functions in ao_lco_bits.cKeith Packard2018-07-03
| | | | | | | Move common code out of ao_lco.c and ao_lco_v2.c into a shared file, ao_lco_bits.c. Update ao_lco.h to include shared functions. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco-v2.0: Do all drag race beeping from the beeping threadKeith Packard2018-06-18
| | | | | | | Instead of starting the beep from the calling thread, just update some state and poke the beeping thread. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco-v2.0: Fix AO_ADC_DUMPKeith Packard2018-06-17
| | | | | | | Was printing p.v_batt instead of (p)->v_batt. I don't know why the former even worked. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco: Remove STATIC_TEST code from stand-alone LCO boxesKeith Packard2018-05-31
| | | | | | | This command conflicts with the 'debug' command in these devices and so wasn't usable anyways. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco-v2.0: Test displays at power onKeith Packard2018-05-31
| | | | | | | At boot, light up all LEDS and LCD segments for a second to let the user verify that things are working correctly. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco-v2.0: Set HAS_ADC_SINGLE to enable HSI timerKeith Packard2018-05-28
| | | | | | | The ADC unit requires the HSI timer to run, so make sure it's enabled for this device. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco-v2.0: Display local batt voltage at startupKeith Packard2018-05-28
| | | | | | Show the battery voltage for a second at startup. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco-v2.0: Change drag race selected/no-continutity patternKeith Packard2018-05-28
| | | | | | | Make it turn on at the same time as the pads with continuity, but turn off sooner Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco-v2.0: Add debug output for pad voltage displayKeith Packard2018-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco-v2.0: A bit fancier with the drag-mode LED showKeith Packard2018-05-28
| | | | | | | | | | | | Continutity leds now show whether the pad is included in the drag race *and* the continutity using four different patterns: Drag select & igniter present: long on, short off Drag select & igniter missing: short on, long off Not select & igniter present: solid on Not select & igniter missing: solid off Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco-v2.0: Fix button names and pin mappings. Add drag LED.Keith Packard2018-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco-v2.0: Mixed up the select_button pin (is E0, was set to E13)Keith Packard2018-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco-v2.0: Only look at drag select presses, not releasesKeith Packard2018-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco-v2.0: Use single-step quadrature codeKeith Packard2018-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco-v2.0: Reduce quadrature debounce timeKeith Packard2018-05-28
| | | | | | The optical encoders shouldn't bounce at all; let's try a minimal value. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco-v2.0: Only switch encoder mode on push, not releaseKeith Packard2018-05-28
| | | | | | Was not checking event value. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco-v2: Change select button to alternate box/pad modeKeith Packard2018-05-28
| | | | | | | Instead of a three-way, just make the select button two-way and have the arming switch disable it. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add TeleLCO v2.0 productKeith Packard2018-05-16
New LCO design with a single rotary knob and lots more buttons. Signed-off-by: Keith Packard <keithp@keithp.com>