]>
git.gag.com Git - fw/altos/log
Keith Packard [Mon, 10 Apr 2023 03:13:57 +0000 (20:13 -0700)]
telegps: Add unit setting to device configuration dialog
This isn't used by TeleGPS, but is needed to make the config system
work.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 10 Apr 2023 02:41:02 +0000 (19:41 -0700)]
altos/telegps-v3.0: Get LED blinking when GPS locks
Initialize the LED subsystem and assign the green LED to report GPS
lock.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 10 Apr 2023 02:42:31 +0000 (19:42 -0700)]
altos/telegps-v3.0: Use all 6kB of available ram
We need more ram for LED blinking.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 10 Apr 2023 02:41:50 +0000 (19:41 -0700)]
altos/lpc: Support 6k ram targets
Set RAMSIZE in Makefile before including ../lpc/Makefile.defs and it
will select a suitable linker script.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 10 Apr 2023 02:39:37 +0000 (19:39 -0700)]
altos: Make sure storage is setup before starting log
TeleGPS v3.0 uses internal eeprom for config, so storage wasn't
getting setup before doing the telegps-specific init bits. Instead of
worrying about it, just call ao_storage_setup at the top so that
storage is always ready to go.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 9 Apr 2023 23:44:47 +0000 (16:44 -0700)]
altos/telegps-v3.0: Use new MAX 10 support in uBlox driver
Switches to the new packet types as required by this chip.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 9 Apr 2023 23:44:04 +0000 (16:44 -0700)]
altos: Dump GPS dop/course data from 'g' command
This lets monitor idle show more of the GPS status
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 9 Apr 2023 23:42:57 +0000 (16:42 -0700)]
altos/drivers: Support uBlox Max 10 chips
The set of supported packet types has changed from the last chip;
update the driver to switch to new packets.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 9 Apr 2023 23:38:03 +0000 (16:38 -0700)]
altoslib: Parse more GPS monitor data
GPS is being updated to send dop and course data.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 9 Apr 2023 23:37:29 +0000 (16:37 -0700)]
altoslib: Support TeleGPS v3 monitor idle
Needed to deal with ADC difference from STM-based devices.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 28 Mar 2023 20:43:38 +0000 (13:43 -0700)]
altos/telegps-v3.0: Fix SPI bus usage
CC1200 is on SPI 0, M25 is on SPI 1
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 28 Mar 2023 20:32:48 +0000 (13:32 -0700)]
altos/lpcxpresso: Update for 11u24 board
This updates the lpcxpresso demo to support the 11u24 board with
serial connected like telegps v3.0 on p1_13/p1_14
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 28 Mar 2023 18:56:27 +0000 (11:56 -0700)]
altos/lpc: Validate UART pin config
Make sure some UART pin configuration has been selected
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 28 Mar 2023 04:52:27 +0000 (21:52 -0700)]
altos/telegps-v3.0: Use eeprom for config
Avoid wasting space in the SPI flash part for device config
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 28 Mar 2023 04:51:31 +0000 (21:51 -0700)]
altos/lpc: Add support for eeprom on 2x/3x chips
The newer 11U2x and 11U3x parts have enough eeprom to support storing
config data there. Add support for the IAP calls for read/write.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 28 Mar 2023 04:29:06 +0000 (21:29 -0700)]
altos: Build TeleGPS v3.0 by default
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 28 Mar 2023 04:27:43 +0000 (21:27 -0700)]
altos: Add TeleGPS v3.0 support
LPC 11U24FET48 with CC1200 radio. A bit like TeleGPS v1.0 but with different
pin assignments and a different radio chip.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 28 Mar 2023 04:26:41 +0000 (21:26 -0700)]
altos/lpc: Support UART on pio1_13/pio1_14
This is an alternate configuration for this chip.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 28 Mar 2023 04:25:43 +0000 (21:25 -0700)]
altos: Allow ports to use type other than 'void *' for gpio block
LPC uses integers while everyone else has a struct for each gpio block.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 27 Feb 2023 22:39:03 +0000 (14:39 -0800)]
altos/draw: Use damage for lco demo
Do some incremental drawing to demonstrate damage in action
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 27 Feb 2023 22:38:41 +0000 (14:38 -0800)]
altos/draw: Use bitstream fonts for LCO demo
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 27 Feb 2023 22:38:09 +0000 (14:38 -0800)]
altos/draw: Use <> for include files
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 27 Feb 2023 22:36:33 +0000 (14:36 -0800)]
altos/draw: Add vera sans fonts
These work better in 1-bit mode than frutiger
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 27 Feb 2023 22:35:36 +0000 (14:35 -0800)]
altos/draw: Add damage tracking
This will allow more efficient updating of the screen
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 27 Feb 2023 22:11:06 +0000 (14:11 -0800)]
altos/draw: hand-edit 64-pixel 3/5 to avoid jank
These had random-looking pixels hanging off the ends.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 27 Feb 2023 02:55:54 +0000 (18:55 -0800)]
altos/draw: Use fewer fonts in lco sample
Saves some memory
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 27 Feb 2023 02:50:31 +0000 (18:50 -0800)]
altos/draw: Add line test app
There were bugs, now there's a app to check them.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 27 Feb 2023 02:49:47 +0000 (18:49 -0800)]
altos/draw: Split out draw test scaffolding from lco-test.c
Allows it to be reused.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 27 Feb 2023 02:48:54 +0000 (18:48 -0800)]
altos/draw: Inline span fill for polygons
Instead of calling ao_rect, do the clipping by hand
and call ao_solid instead.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 27 Feb 2023 02:48:05 +0000 (18:48 -0800)]
altos/draw: Fix clipping far line end
Make sure the final unclipped pixel gets drawn.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 27 Feb 2023 02:46:40 +0000 (18:46 -0800)]
altos/draw: Check for horiz/vert line when clipping
Horizontal or vertical lines won't step along the minor axis while
clipping.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 27 Feb 2023 02:46:09 +0000 (18:46 -0800)]
altos/draw: Add validation for line drawing
Just make sure it never draws outside the dest.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 27 Feb 2023 00:04:17 +0000 (16:04 -0800)]
altos/draw: Rename test app to 'lco-test'
This seems like a good place to do the LCO UX prototyping
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 27 Feb 2023 00:01:20 +0000 (16:01 -0800)]
altos/draw: Mock up TeleLCO boot sequence
Show logo, progress bar and discovered box numbers during
boot sequence
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 26 Feb 2023 22:59:58 +0000 (14:59 -0800)]
altos/draw: use --gc-sections in demo program
This cleans up all of the unused font bits
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 26 Feb 2023 22:14:56 +0000 (14:14 -0800)]
altos/draw: Rearrange sample LCO screen in draw-test
Place labels at the top, use proportional font so
the voltage values fit.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 26 Feb 2023 21:57:34 +0000 (13:57 -0800)]
altos/draw: Add NotoMono font
This has a zero without a dot in it, so it might
look better on TeleLCO
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 26 Feb 2023 21:47:34 +0000 (13:47 -0800)]
altos/draw: Add transforms to polygon code
This lets the polygons remain constant but have them get
scaled/translated when presented on the screen.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 26 Feb 2023 21:46:15 +0000 (13:46 -0800)]
altos/draw: Convert draw test framework to modern C
Was still using K&R function definitions?
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 26 Feb 2023 21:44:52 +0000 (13:44 -0800)]
altos/draw: Add monospaced font
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 26 Feb 2023 21:42:05 +0000 (13:42 -0800)]
altos/draw: Move font files to subdirectory
It looks like we might end up with a lot of these
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 26 Feb 2023 21:21:24 +0000 (13:21 -0800)]
altos/draw: Add more fonts
Add our logo font and more sizes of Frutiger
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 26 Feb 2023 07:46:25 +0000 (23:46 -0800)]
altos/draw: Add logo
Captures the SVG logo polygons and allows them to be
scaled to suit.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 26 Feb 2023 07:45:25 +0000 (23:45 -0800)]
altos/draw: Use float for polygon coords
This makes polygons look way better.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 26 Feb 2023 06:39:07 +0000 (22:39 -0800)]
altos/draw: Make test drawing app emulate TeleLCO
Draw some numbers for box and pad. Also allow display of a couple of
polygons.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 26 Feb 2023 06:38:33 +0000 (22:38 -0800)]
altos/draw: Only cover ASCII
Skip the rest of latin-1
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 26 Feb 2023 06:37:16 +0000 (22:37 -0800)]
altos/draw: Add poly fill function
Fill polygons using non-zero winding rule.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 26 Feb 2023 03:22:58 +0000 (19:22 -0800)]
altos: Fill in more of the draw code
Get multiple fonts working, allow for variable-pitch fonts.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 16 Feb 2023 23:13:01 +0000 (15:13 -0800)]
Version 1.9.15
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Mon, 20 Feb 2023 00:50:40 +0000 (17:50 -0700)]
ao-bringup: turnon and test scripts for TeleMetrum v4.0 & TeleMega v6.0
Keith Packard [Sun, 19 Feb 2023 00:51:09 +0000 (16:51 -0800)]
ao-tools/ao-flash: Use 'program' instead of 'flash' for samd21
Switch to the program command, which has a 'reset' option, to get the
device back to running after loading the boot loader.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 16 Feb 2023 23:36:30 +0000 (15:36 -0800)]
doc: Add TeleMetrum v4.0 to specs and 1.9.15 release notes
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 16 Feb 2023 23:36:11 +0000 (15:36 -0800)]
altos/telemetrum-v4.0: Add .gitignore
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 16 Feb 2023 23:35:29 +0000 (15:35 -0800)]
Add TeleMetrum v4.0 firmware to releases
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 16 Feb 2023 23:12:24 +0000 (15:12 -0800)]
Add TeleMega v6.0 firmware to release
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 16 Feb 2023 23:07:20 +0000 (15:07 -0800)]
doc: Add HW specs for TeleMega v6.0
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 16 Feb 2023 23:05:27 +0000 (15:05 -0800)]
doc: Add initial 1.9.15 release notes
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Thu, 16 Feb 2023 22:52:56 +0000 (15:52 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Keith Packard [Thu, 9 Feb 2023 23:22:17 +0000 (15:22 -0800)]
altos: Fix TMega v6.0 and v5.0 IMU axes
Add documentation to each board in ao_pins.h to clarify
the required sensor axis orientations.
TeleMega v5.0 had flipped the 'across' axis sensor value signs
incorrectly, so remove that.
TeleMega v6.0 had selected the wrong axes for across and along, along
is X and across is Y for this board.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 11 Feb 2023 01:58:08 +0000 (17:58 -0800)]
altoslib: Hide internals of AltosIMU
Make most of the variables private to prevent access to un-corrected
data.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Wed, 15 Feb 2023 02:00:29 +0000 (19:00 -0700)]
altos: re-number csm85clio outputs 0..49 to match schematic and silkscreen
Bdale Garbee [Fri, 10 Feb 2023 13:52:43 +0000 (06:52 -0700)]
Merge branch 'clio'
Bdale Garbee [Fri, 10 Feb 2023 13:52:11 +0000 (06:52 -0700)]
altos: add csm84clio-v0.1 firmware
Keith Packard [Thu, 9 Feb 2023 23:22:17 +0000 (15:22 -0800)]
altos/telemega-v6.0: bmi088 axes were wrong
X is 'along', Y is 'across'.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 9 Feb 2023 22:54:19 +0000 (14:54 -0800)]
altos/telemega-v6: Remove beep freq defs and use defaults
These values came from the magnetic beeper on Tmega v5 which we aren't
using.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 9 Feb 2023 20:35:13 +0000 (12:35 -0800)]
altos: Add .gitignore for telemega v6.0
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 2 Feb 2023 19:33:35 +0000 (11:33 -0800)]
Version 1.9.14
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 2 Feb 2023 19:33:00 +0000 (11:33 -0800)]
doc: Release notes for 1.9.14
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 2 Feb 2023 02:00:24 +0000 (18:00 -0800)]
altos/drivers: Increase LCO receive timeout to 20ms
Changes in the cc1200 driver appear to have sped up the transition
from TX to RX enough that we now need to wait a bit longer for
TeleFire to return a packet. Increase the 38400 bps timeout to 20ms
and the 9600 bps timeout to 30ms.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 2 Feb 2023 01:59:28 +0000 (17:59 -0800)]
altos/drivers: Use spi duplex to fetch register values
We read register values during regular operation, so let's improve
performance a bit by making this faster.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 2 Feb 2023 00:29:42 +0000 (16:29 -0800)]
altos/telefiretwo-v0.2: Get things building again
This code got very stale and needed some config updates
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 1 Feb 2023 22:14:55 +0000 (14:14 -0800)]
drivers/cc1200: Don't disable cc1200 interrupts ever
The driver now leaves interrupts always enabled, don't disable them in
ao_radio_recv_abort as nothing will ever turn them back on.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Fri, 20 Jan 2023 05:51:27 +0000 (22:51 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Keith Packard [Fri, 20 Jan 2023 01:28:36 +0000 (17:28 -0800)]
Version 1.9.13
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 20 Jan 2023 01:27:18 +0000 (17:27 -0800)]
doc: Update copyright year to 2023
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 20 Jan 2023 01:27:02 +0000 (17:27 -0800)]
doc: Add release notes for 1.9.13
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Fri, 20 Jan 2023 05:41:24 +0000 (22:41 -0700)]
doc: update EasyMotor behavior description for firmware 1.9.13 and later
Bdale Garbee [Fri, 20 Jan 2023 05:41:24 +0000 (22:41 -0700)]
doc: update EasyMotor behavior description for firmware 1.9.13 and later
Keith Packard [Fri, 20 Jan 2023 01:39:42 +0000 (17:39 -0800)]
Disable TM v4.0 firmware for 1.9.13
This will be in 1.9.14
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 20 Jan 2023 01:28:36 +0000 (17:28 -0800)]
Version 1.9.13
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 20 Jan 2023 01:27:18 +0000 (17:27 -0800)]
doc: Update copyright year to 2023
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 20 Jan 2023 01:27:02 +0000 (17:27 -0800)]
doc: Add release notes for 1.9.13
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 20 Jan 2023 01:20:44 +0000 (17:20 -0800)]
altos: Add makefiles for telemega v6
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 19 Jan 2023 22:04:50 +0000 (14:04 -0800)]
altos/easymotor: Move pressure conversion code to ao_motor_flight.c
This inline function uses a pile of constants which aren't defined in
ao_pins.h, so move it to ao_motor_flight.c where it is used
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 19 Jan 2023 21:20:56 +0000 (13:20 -0800)]
easymotor-v3: Fix pressure to adc conversion to use reference voltage
Wasn't taking reference voltage into account, which meant the computed values
were 3.3 times too high.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 19 Jan 2023 20:21:32 +0000 (12:21 -0800)]
Merge branch 'easymotor-flight'
Keith Packard [Thu, 19 Jan 2023 20:18:46 +0000 (12:18 -0800)]
altos/telelco: Add some debug aids for TeleLCO event stuff
Use (debug & 2) to select just event debugging.
Add 'pretend' mode to cycle through all possible pad boxes.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 Dec 2022 05:33:14 +0000 (21:33 -0800)]
altoslib: Add TeleMega v6 support
New sensor (bmi088) support, plus other changes as needed. Also found
some places missing TeleMega-v5 support?
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 Dec 2022 05:32:39 +0000 (21:32 -0800)]
ao-tools: Update ao-eeprom for TeleMega v6
Add new log file format; no other changes needed here.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 Dec 2022 05:31:38 +0000 (21:31 -0800)]
ao-tools: Fix buffer overflow in lib/ao-hex.c
ao_hex_file_create allocated a buffer too short when writing EOF.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 Dec 2022 05:30:13 +0000 (21:30 -0800)]
altos: Split AO_LOG_NORMALIZED support out in telemetry code
This avoids needing per-driver changes to the telemetry code by using
the normalized data gathering techniques.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 Dec 2022 05:29:12 +0000 (21:29 -0800)]
drivers: Add AO_LOG_NORMALIZED support to BMI088 command
Make this driver work in monitor idle mode
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 Dec 2022 05:01:06 +0000 (21:01 -0800)]
src/drivers: Ignore printf warnings in ao_aprs.c
This code uses sprintf to generate the tnc buffer, but the compiler doesn't
really understand the value limits.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 Dec 2022 04:24:51 +0000 (20:24 -0800)]
doc: Update docs for asciidoctor-pdf version 2.x
Some of the theming stuff changed
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 18 Dec 2022 02:01:01 +0000 (18:01 -0800)]
altos: Add TeleMega v6.0
Like TeleMega v5.0, but replaces MPU6000 with BMI088
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 28 Aug 2022 00:06:58 +0000 (17:06 -0700)]
altos: Add BMI088 test framework using Nucleo32 board for stm32f042
This allows a BMI088 chip to be connected to a nucleo-32 board
with an stm32f042 chip to be tested.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 28 Aug 2022 00:05:51 +0000 (17:05 -0700)]
drivers: Add BMI088 driver
Supports the Bosch BMI-088 3-d accel/gyro device.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 6 Dec 2022 03:26:42 +0000 (19:26 -0800)]
altos: Add timeout in MS5607 get_sample code
MISO is supposed to rise when the sample value is ready, but sometimes
we miss the interrupt which should be generated. I spent a day
attempting to fix this, but was unable to make it 100%. Instead, add a
10ms timeout, which is longer than the sample time (8.2ms), and then
read MISO directly. If the interrupt fires, we'll read a bit sooner.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 6 Dec 2022 03:51:02 +0000 (19:51 -0800)]
altos/stmf0: Add ao_spi_put_pins for MS5067 driver
TeleMini needs this on stmf0
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 6 Dec 2022 03:29:28 +0000 (19:29 -0800)]
altos/stm: Add ao_spi_put_pins for MS5607 driver
This function re-configures the GPIO mux to disconnect the SPI block
from the pins driving the MS5607.
Signed-off-by: Keith Packard <keithp@keithp.com>