fw/altos
14 months agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
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

14 months agoaltos: Fix TMega v6.0 and v5.0 IMU axes
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>
14 months agoaltoslib: Hide internals of AltosIMU
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>
14 months agoaltos: re-number csm85clio outputs 0..49 to match schematic and silkscreen
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

14 months agoMerge branch 'clio'
Bdale Garbee [Fri, 10 Feb 2023 13:52:43 +0000 (06:52 -0700)]
Merge branch 'clio'

14 months agoaltos: add csm84clio-v0.1 firmware
Bdale Garbee [Fri, 10 Feb 2023 13:52:11 +0000 (06:52 -0700)]
altos: add csm84clio-v0.1 firmware

14 months agoaltos/telemega-v6.0: bmi088 axes were wrong
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>
14 months agoaltos/telemega-v6: Remove beep freq defs and use defaults
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>
14 months agoaltos: Add .gitignore for telemega v6.0
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>
14 months agoupdate changelog for Debian build debian/1.9.14-1
Bdale Garbee [Thu, 2 Feb 2023 19:55:49 +0000 (12:55 -0700)]
update changelog for Debian build

14 months agoMerge branch 'branch-1.9' into debian
Bdale Garbee [Thu, 2 Feb 2023 19:54:42 +0000 (12:54 -0700)]
Merge branch 'branch-1.9' into debian

14 months agoChangeLog for releas 1.9.14 1.9.14
Bdale Garbee [Thu, 2 Feb 2023 19:53:51 +0000 (12:53 -0700)]
ChangeLog for releas 1.9.14

14 months agoMerge branch 'master' into branch-1.9
Bdale Garbee [Thu, 2 Feb 2023 19:52:01 +0000 (12:52 -0700)]
Merge branch 'master' into branch-1.9

14 months agoVersion 1.9.14
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>
14 months agodoc: Release notes for 1.9.14
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>
14 months agoaltos/drivers: Increase LCO receive timeout to 20ms
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>
14 months agoaltos/drivers: Use spi duplex to fetch register values
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>
14 months agoaltos/telefiretwo-v0.2: Get things building again
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>
14 months agodrivers/cc1200: Don't disable cc1200 interrupts ever
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>
14 months agodrop suggests, prepare to upload debian/1.9.13-2
Bdale Garbee [Sun, 29 Jan 2023 22:11:21 +0000 (15:11 -0700)]
drop suggests, prepare to upload

14 months agoupdate changelog for Debian build debian/1.9.13-1
Bdale Garbee [Fri, 20 Jan 2023 06:00:19 +0000 (23:00 -0700)]
update changelog for Debian build

14 months agoMerge branch 'branch-1.9' into debian
Bdale Garbee [Fri, 20 Jan 2023 05:58:19 +0000 (22:58 -0700)]
Merge branch 'branch-1.9' into debian

14 months agoreleasing 1.9.13 1.9.13
Bdale Garbee [Fri, 20 Jan 2023 05:57:39 +0000 (22:57 -0700)]
releasing 1.9.13

14 months agoMerge branch 'master' into branch-1.9
Bdale Garbee [Fri, 20 Jan 2023 05:55:56 +0000 (22:55 -0700)]
Merge branch 'master' into branch-1.9

14 months agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
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

14 months agoVersion 1.9.13
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>
14 months agodoc: Update copyright year to 2023
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>
14 months agodoc: Add release notes for 1.9.13
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>
14 months agodoc: 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

14 months agodoc: 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

14 months agoDisable TM v4.0 firmware for 1.9.13
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>
14 months agoVersion 1.9.13
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>
14 months agodoc: Update copyright year to 2023
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>
14 months agodoc: Add release notes for 1.9.13
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>
14 months agoaltos: Add makefiles for telemega v6
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>
14 months agoaltos/easymotor: Move pressure conversion code to ao_motor_flight.c easymotor-flight
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>
14 months agoeasymotor-v3: Fix pressure to adc conversion to use reference voltage
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>
14 months agoMerge branch 'easymotor-flight'
Keith Packard [Thu, 19 Jan 2023 20:21:32 +0000 (12:21 -0800)]
Merge branch 'easymotor-flight'

14 months agoaltos/telelco: Add some debug aids for TeleLCO event stuff
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>
15 months agoaltoslib: Add TeleMega v6 support
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>
15 months agoao-tools: Update ao-eeprom for TeleMega v6
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>
15 months agoao-tools: Fix buffer overflow in lib/ao-hex.c
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>
15 months agoaltos: Split AO_LOG_NORMALIZED support out in telemetry code
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>
15 months agodrivers: Add AO_LOG_NORMALIZED support to BMI088 command
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>
15 months agosrc/drivers: Ignore printf warnings in ao_aprs.c
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>
15 months agodoc: Update docs for asciidoctor-pdf version 2.x
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>
16 months agoaltos: Add TeleMega v6.0
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>
16 months agoaltos: Add BMI088 test framework using Nucleo32 board for stm32f042
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>
16 months agodrivers: Add BMI088 driver
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>
16 months agoaltos: Add timeout in MS5607 get_sample code
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>
16 months agoaltos/stmf0: Add ao_spi_put_pins for MS5067 driver
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>
16 months agoaltos/stm: Add ao_spi_put_pins for MS5607 driver
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>
16 months agoeasymotor-v3.0: Clean up build bits
Keith Packard [Mon, 5 Dec 2022 00:33:02 +0000 (16:33 -0800)]
easymotor-v3.0: Clean up build bits

Signed-off-by: Keith Packard <keithp@keithp.com>
16 months agoeasymotor-v3.0: Use motor pressure to trigger data logging
Keith Packard [Mon, 5 Dec 2022 00:32:05 +0000 (16:32 -0800)]
easymotor-v3.0: Use motor pressure to trigger data logging

Use this instead of acceleration so it can be used on the ground as
well as for staged flights.

Signed-off-by: Keith Packard <keithp@keithp.com>
16 months agoaltos: Add timeout for MS5607 ADC conversion samd21
Keith Packard [Sun, 4 Dec 2022 22:17:58 +0000 (14:17 -0800)]
altos: Add timeout for MS5607 ADC conversion

The MS5607 should signal conversion done by pulling MISO low, but in
case it doesn't, add a 10ms timeout to wake up after the conversion
should be done.

Signed-off-by: Keith Packard <keithp@keithp.com>
16 months agoaltoslib: Add notes about updating ao-eeprom for new product
Keith Packard [Sat, 26 Nov 2022 17:57:33 +0000 (09:57 -0800)]
altoslib: Add notes about updating ao-eeprom for new product

Signed-off-by: Keith Packard <keithp@keithp.com>
16 months agoMerge branch 'master'
Keith Packard [Sat, 26 Nov 2022 17:52:37 +0000 (09:52 -0800)]
Merge branch 'master'

16 months agoao-tools/ao-eeprom: Add support for TeleMega v5.0
Keith Packard [Sat, 26 Nov 2022 17:48:19 +0000 (09:48 -0800)]
ao-tools/ao-eeprom: Add support for TeleMega v5.0

Same as TeleMega v4.0 (ao-eeprom doesn't do much with imu data)

Signed-off-by: Keith Packard <keithp@keithp.com>
16 months agoAdd TeleMetrum v4.0 to release files
Keith Packard [Sun, 20 Nov 2022 23:57:44 +0000 (15:57 -0800)]
Add TeleMetrum v4.0 to release files

Releasing
altosui/Makefile
altosui/altos-windows.nsi.in

Signed-off-by: Keith Packard <keithp@keithp.com>
16 months agoaltoslib: Handle TeleMetrum v4.0 in idle mode
Keith Packard [Sun, 20 Nov 2022 23:56:06 +0000 (15:56 -0800)]
altoslib: Handle TeleMetrum v4.0 in idle mode

Handle config data and idle fetch stuff. Note that TM v4.0 differs
from older versions a bit as it stores config data in the SPI flash
chip, not in the SoC.

Signed-off-by: Keith Packard <keithp@keithp.com>
16 months agoaltos: Enable telemetrum telemetry for telemetrum v4.0
Keith Packard [Sun, 20 Nov 2022 23:31:27 +0000 (15:31 -0800)]
altos: Enable telemetrum telemetry for telemetrum v4.0

This configuration could be done better ...

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agodoc: add a link to a reference on ARES/RACES use of PowerPole connectors
Bdale Garbee [Fri, 18 Nov 2022 20:06:12 +0000 (13:06 -0700)]
doc: add a link to a reference on ARES/RACES use of PowerPole connectors

17 months agodoc: add a warning to TeleLaunch docs about siren volume levels
Bdale Garbee [Fri, 18 Nov 2022 19:51:08 +0000 (12:51 -0700)]
doc: add a warning to TeleLaunch docs about siren volume levels

17 months agoaltos: Make sure APRS packets are reasonably separated
Keith Packard [Sun, 13 Nov 2022 07:37:29 +0000 (23:37 -0800)]
altos: Make sure APRS packets are reasonably separated

Don't let them come too close together.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agoaltos/ms5607: Fixup ms5607 changes for other chips
Keith Packard [Sun, 13 Nov 2022 07:35:40 +0000 (23:35 -0800)]
altos/ms5607: Fixup ms5607 changes for other chips

A couple of chips don't bother providing duplex, so allow for that.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agoaltos: Add ao_gps_utc_tick
Keith Packard [Sun, 13 Nov 2022 07:34:34 +0000 (23:34 -0800)]
altos: Add ao_gps_utc_tick

This indicates which tick is associated with the UTC time found
in the current ao gps data

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agoattiny, stm32l0: Note that these chips don't support spi duplex
Keith Packard [Sun, 13 Nov 2022 07:33:29 +0000 (23:33 -0800)]
attiny, stm32l0: Note that these chips don't support spi duplex

This makes the ms5607 driver use send/recv instead.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Save interrupt pin status before enabling interrupts
Keith Packard [Sun, 13 Nov 2022 06:48:28 +0000 (22:48 -0800)]
samd21: Save interrupt pin status before enabling interrupts

Make sure we capture the correct external interrupt pin state before
anything changes.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agoaltos: Avoid modulus in task queue on parts without idiv
Keith Packard [Sun, 13 Nov 2022 06:47:00 +0000 (22:47 -0800)]
altos: Avoid modulus in task queue on parts without idiv

Cortex-M0 parts don't have a hardware divide, so doing a modulus
to compute task hash indexes is super slow. Avoid that by making the sleep
queue a power of two.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agoaltos/cc1200: Simplify interrupt handling
Keith Packard [Sun, 13 Nov 2022 06:38:12 +0000 (22:38 -0800)]
altos/cc1200: Simplify interrupt handling

Use PKT_SYNC_RXTX for both packet send/recv signaling. This avoids
needing to flip the interrupt sense around between tx and rx, allowing
us to leave interrupts always enabled which avoids adventures on
samd21 with interrupt configuration.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agotelemetrum-v4.0: Correct beeper configuration
Keith Packard [Sun, 13 Nov 2022 04:44:38 +0000 (20:44 -0800)]
telemetrum-v4.0: Correct beeper configuration

Beeper is on PA16, which is TCC2/0 with config E

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agotelemetrum-v4.0: MS5607 doesn't share SPI controller
Keith Packard [Sun, 13 Nov 2022 03:39:18 +0000 (19:39 -0800)]
telemetrum-v4.0: MS5607 doesn't share SPI controller

The PRIVATE_PINS value is a bit misleading.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agofixup for exti restore
Keith Packard [Sun, 13 Nov 2022 03:38:56 +0000 (19:38 -0800)]
fixup for exti restore

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: AO_SPI_0_PA04_PA05_PA06 is FUNC_D
Keith Packard [Sun, 13 Nov 2022 03:38:09 +0000 (19:38 -0800)]
samd21: AO_SPI_0_PA04_PA05_PA06 is FUNC_D

Not FUNC_C

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Restore pin cfg when exti is disabled
Keith Packard [Sun, 13 Nov 2022 03:37:23 +0000 (19:37 -0800)]
samd21: Restore pin cfg when exti is disabled

Instead of clearing the pmux, set it back to the previous value as is
needed by ms5607.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Limit SPI baud value to 1
Keith Packard [Sun, 13 Nov 2022 03:36:52 +0000 (19:36 -0800)]
samd21: Limit SPI baud value to 1

Keep speeds slow enough

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: PA20 maps to SERCOM3.2 not SERCOM3.3
Keith Packard [Sun, 13 Nov 2022 03:36:10 +0000 (19:36 -0800)]
samd21: PA20 maps to SERCOM3.2 not SERCOM3.3

Flip the DIPO config around for AO_SPI_3_PA22_PA23_PA20

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agoaltos/ms5607: Use duplex for fetching data
Keith Packard [Sun, 13 Nov 2022 03:35:26 +0000 (19:35 -0800)]
altos/ms5607: Use duplex for fetching data

Much more efficient than send/recv

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agotelegps: Copy altosui 'beep feet' bits to telegps
Keith Packard [Thu, 10 Nov 2022 19:47:39 +0000 (11:47 -0800)]
telegps: Copy altosui 'beep feet' bits to telegps

Yeah, this is cut&paste coding. Sorry.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agotelemetrum-v4.0: Set USE_SERIAL_1_STDIN to 0
Keith Packard [Thu, 10 Nov 2022 19:40:29 +0000 (11:40 -0800)]
telemetrum-v4.0: Set USE_SERIAL_1_STDIN to 0

This makes sure the serial driver knows how to manage this port

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Thu, 10 Nov 2022 19:34:49 +0000 (12:34 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

17 months agoao-tools: return ao-flash-lpc operaton to "full speed"
Bdale Garbee [Thu, 10 Nov 2022 19:34:12 +0000 (12:34 -0700)]
ao-tools: return ao-flash-lpc operaton to "full speed"

17 months agometro-m0: Add GPS support
Keith Packard [Thu, 10 Nov 2022 00:29:56 +0000 (16:29 -0800)]
metro-m0: Add GPS support

Plug a ublox GPS module into D4(tx)/D3(rx)

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Leave serial RX interrupts enabled
Keith Packard [Thu, 10 Nov 2022 00:29:13 +0000 (16:29 -0800)]
samd21: Leave serial RX interrupts enabled

Just discard characters in the ISR. This avoids complex management of
the enable bit.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agodrivers/ublox: Clean up some debug mode code
Keith Packard [Thu, 10 Nov 2022 00:28:21 +0000 (16:28 -0800)]
drivers/ublox: Clean up some debug mode code

Not used in production, so we didn't catch a couple of type errors.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agotelemetrum-v4.0: Remove unused file
Keith Packard [Thu, 10 Nov 2022 00:02:55 +0000 (16:02 -0800)]
telemetrum-v4.0: Remove unused file

Not sure what 'telemetrum.c' was supposed to do, but it's not used.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agoaltosui: force Locale.ROOT during CSV export to avoid commas in decimals
Bdale Garbee [Wed, 9 Nov 2022 16:06:17 +0000 (09:06 -0700)]
altosui: force Locale.ROOT during CSV export to avoid commas in decimals

17 months agoTeleMetrum v4.0 work in progress
Bdale Garbee [Wed, 9 Nov 2022 15:27:28 +0000 (08:27 -0700)]
TeleMetrum v4.0 work in progress

17 months agotelemetrum-v4.0: Add beeper and fix ADC defs
Keith Packard [Wed, 9 Nov 2022 00:25:35 +0000 (16:25 -0800)]
telemetrum-v4.0: Add beeper and fix ADC defs

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agometro-m0: Hook up ADC sample from A pins
Keith Packard [Wed, 9 Nov 2022 00:20:07 +0000 (16:20 -0800)]
metro-m0: Hook up ADC sample from A pins

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Hook up AltOS style ADC
Keith Packard [Wed, 9 Nov 2022 00:18:57 +0000 (16:18 -0800)]
samd21: Hook up AltOS style ADC

Can't use DMA; samd21 only does ADC in continuous pins. ISR per ADC,
manually step through.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Hook up AltOS timer functionality
Keith Packard [Wed, 9 Nov 2022 00:17:58 +0000 (16:17 -0800)]
samd21: Hook up AltOS timer functionality

Need to run the data sampling stuff.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Move DMA channel defs to ao_dma_samd21.h
Keith Packard [Wed, 9 Nov 2022 00:17:14 +0000 (16:17 -0800)]
samd21: Move DMA channel defs to ao_dma_samd21.h

This way if we need to use DMA for something else, we've got
a central place to set things up.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Get beep code working
Keith Packard [Wed, 9 Nov 2022 00:16:40 +0000 (16:16 -0800)]
samd21: Get beep code working

Only supports TCC currently.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agometro-m0: Demo pin interrupts
Keith Packard [Tue, 8 Nov 2022 06:23:44 +0000 (22:23 -0800)]
metro-m0: Demo pin interrupts

Prints 'pressed' whenever D0 goes low.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Wire up pin interrupts
Keith Packard [Tue, 8 Nov 2022 06:22:26 +0000 (22:22 -0800)]
samd21: Wire up pin interrupts

Uses the external interrupt controller. Careful about pin mapping.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agoaltos/telemetrum-v4.0: It links
Keith Packard [Mon, 7 Nov 2022 03:31:05 +0000 (19:31 -0800)]
altos/telemetrum-v4.0: It links

Still much work to do, but at least it links with most
of the pieces in place.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Stub out beep code
Keith Packard [Mon, 7 Nov 2022 03:30:38 +0000 (19:30 -0800)]
samd21: Stub out beep code

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Stub out exti code
Keith Packard [Mon, 7 Nov 2022 03:30:27 +0000 (19:30 -0800)]
samd21: Stub out exti code

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Shrink default stack to 512 bytes
Keith Packard [Mon, 7 Nov 2022 03:29:41 +0000 (19:29 -0800)]
samd21: Shrink default stack to 512 bytes

Kinda needed to get TM v4.0 to fit.

Signed-off-by: Keith Packard <keithp@keithp.com>