fw/altos
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 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 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 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>
17 months agoaltos/telemetrum-v4.0: Almost building
Keith Packard [Mon, 7 Nov 2022 02:33:45 +0000 (18:33 -0800)]
altos/telemetrum-v4.0: Almost building

Pin config looks good now, need to get beep and exti drivers

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Get serial driver building
Keith Packard [Mon, 7 Nov 2022 02:33:14 +0000 (18:33 -0800)]
samd21: Get serial driver building

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Add SPI configurations used by TM v4.0
Keith Packard [Mon, 7 Nov 2022 02:31:42 +0000 (18:31 -0800)]
samd21: Add SPI configurations used by TM v4.0

SPI 0 on PA04 PA05 PA06
SPI 3 on PA22 PA23 PA20
SPI 5 on PB22 PB23 PB03

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Get ADC code compiling
Keith Packard [Mon, 7 Nov 2022 02:31:16 +0000 (18:31 -0800)]
samd21: Get ADC code compiling

This probably isn't complete yet, but it builds

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agoaltos/ms5607: Use ao_gpio_set instead of stm_gpio_set
Keith Packard [Mon, 7 Nov 2022 02:30:31 +0000 (18:30 -0800)]
altos/ms5607: Use ao_gpio_set instead of stm_gpio_set

The former is architecture independent.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agometro-m0: Configure on-board SPI flash part
Keith Packard [Mon, 7 Nov 2022 01:47:57 +0000 (17:47 -0800)]
metro-m0: Configure on-board SPI flash part

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Add ability to use arbitrary pin configs with SPI
Keith Packard [Mon, 7 Nov 2022 01:46:56 +0000 (17:46 -0800)]
samd21: Add ability to use arbitrary pin configs with SPI

This embeds the DOPO and DIPO configs in the address

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Macro-ize the DMA register settings a bit
Keith Packard [Sun, 6 Nov 2022 23:31:50 +0000 (15:31 -0800)]
samd21: Macro-ize the DMA register settings a bit

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosnekboard: Need DMA for SPI now.
Keith Packard [Sun, 6 Nov 2022 23:12:33 +0000 (15:12 -0800)]
snekboard: Need DMA for SPI now.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Use DMA for SPI send
Keith Packard [Sun, 6 Nov 2022 23:11:31 +0000 (15:11 -0800)]
samd21: Use DMA for SPI send

Appears to work even

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Fix value defines to be unsigned long
Keith Packard [Sun, 6 Nov 2022 23:10:31 +0000 (15:10 -0800)]
samd21: Fix value defines to be unsigned long

This makes the compiler happy

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Avoid divides in boot loader
Keith Packard [Sun, 6 Nov 2022 23:09:55 +0000 (15:09 -0800)]
samd21: Avoid divides in boot loader

The divide code is huge and overflows flash.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Fix up DMA driver
Keith Packard [Sun, 6 Nov 2022 23:08:56 +0000 (15:08 -0800)]
samd21: Fix up DMA driver

Surprisingly few changes, just some function signatures and a few bit
twiddles.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agoaltos: Add metro-m0 port for SAMD21G18 testing
Keith Packard [Sun, 6 Nov 2022 23:07:46 +0000 (15:07 -0800)]
altos: Add metro-m0 port for SAMD21G18 testing

Useful as a test target

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosamd21: Configure ROM/RAM values per device and provide linker scripts for each
Keith Packard [Sun, 6 Nov 2022 04:05:13 +0000 (21:05 -0700)]
samd21: Configure ROM/RAM values per device and provide linker scripts for each

SAMD21 has 4-32k of RAM and 32-256K of ROM

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agoThis is what I'm using locally for flashing samd21 parts
Keith Packard [Sun, 6 Nov 2022 03:53:23 +0000 (20:53 -0700)]
This is what I'm using locally for flashing samd21 parts

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agosnekboard: Add samd21 SPI test function
Keith Packard [Sat, 5 Nov 2022 22:18:27 +0000 (15:18 -0700)]
snekboard: Add samd21 SPI test function

Just sends 'hello'

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agoaltos: Get SAMD21 SPI driver working in non-DMA mode
Keith Packard [Sun, 23 Oct 2022 23:33:28 +0000 (16:33 -0700)]
altos: Get SAMD21 SPI driver working in non-DMA mode

Only sercom0, and only with fixed pin configurations

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agoMerge branch 'samd21' of ssh://git.gag.com/scm/git/fw/altos into samd21
Bdale Garbee [Sat, 29 Oct 2022 03:49:16 +0000 (21:49 -0600)]
Merge branch 'samd21' of ssh://git.gag.com/scm/git/fw/altos into samd21

18 months agoaltos/snekboard: Indicate that USB is used for stdio
Keith Packard [Mon, 26 Sep 2022 00:34:56 +0000 (17:34 -0700)]
altos/snekboard: Indicate that USB is used for stdio

This isn't the default for some reason?

Signed-off-by: Keith Packard <keithp@keithp.com>
18 months agoaltos/samd21: Automatically erase flash when writing
Keith Packard [Mon, 26 Sep 2022 00:34:11 +0000 (17:34 -0700)]
altos/samd21: Automatically erase flash when writing

Need to erase pages before writing them.

Signed-off-by: Keith Packard <keithp@keithp.com>
18 months agoaltos/samd21: Get USB driver working in AltOS
Keith Packard [Mon, 26 Sep 2022 00:33:09 +0000 (17:33 -0700)]
altos/samd21: Get USB driver working in AltOS

Make sure it deals with the stdio mux, enable the clock for the GPIO
device.

Signed-off-by: Keith Packard <keithp@keithp.com>
18 months agoaltos/samd21: Add register definitions
Keith Packard [Mon, 26 Sep 2022 00:32:35 +0000 (17:32 -0700)]
altos/samd21: Add register definitions

This adds symbols for all of the device registers.

Signed-off-by: Keith Packard <keithp@keithp.com>
18 months agoao-tools: Add ao-flash-samd21 script
Keith Packard [Mon, 26 Sep 2022 00:31:27 +0000 (17:31 -0700)]
ao-tools: Add ao-flash-samd21 script

This takes an .elf or .ihx file and flashes that to a SAMD21 based
board using openocd. Note that you must have a hacked version of
OpenOCD for this to work via the ST-link device.

Signed-off-by: Keith Packard <keithp@keithp.com>
18 months agoaltos: Add sample samd21 application for snekboard
Keith Packard [Sun, 25 Sep 2022 20:57:08 +0000 (13:57 -0700)]
altos: Add sample samd21 application for snekboard

This runs a primitive application and flash loader on snekboard for
samd21 development.

Signed-off-by: Keith Packard <keithp@keithp.com>
18 months agoaltos: Add SAMD21 bits
Keith Packard [Sun, 25 Sep 2022 20:55:43 +0000 (13:55 -0700)]
altos: Add SAMD21 bits

Brought back from snek, these bits provide Altos support for the Atmel
SAMD21 family of chips.

Signed-off-by: Keith Packard <keithp@keithp.com>
18 months agoaltos: Use --gc-sections
Keith Packard [Sun, 25 Sep 2022 20:55:04 +0000 (13:55 -0700)]
altos: Use --gc-sections

This allows the linker to discard unused functions.

Don't use -ffunctions-sections and -fdata-sections as that eliminates
several optimization opportunities and increases code size.

Signed-off-by: Keith Packard <keithp@keithp.com>
18 months agoaltos: Switch LED pin number to 8 bits
Keith Packard [Sun, 25 Sep 2022 20:54:24 +0000 (13:54 -0700)]
altos: Switch LED pin number to 8 bits

This assumes each port has fewer than 256 pins and avoids some
compiler warnings

Signed-off-by: Keith Packard <keithp@keithp.com>
18 months agoaltos: Increase AES IV buffer to hold maximum AES state
Keith Packard [Sun, 23 Oct 2022 23:48:05 +0000 (16:48 -0700)]
altos: Increase AES IV buffer to hold maximum AES state

The compiler emits warnings if this buffer is only 16 bytes. I'm hoping
that's because the max key size could be 256 bits instead of 128 bits?

In any case, this makes the compiler happy.

Signed-off-by: Keith Packard <keithp@keithp.com>
18 months agofirst stab at support for TeleMetrum v4.0
Bdale Garbee [Sun, 16 Oct 2022 03:40:50 +0000 (21:40 -0600)]
first stab at support for TeleMetrum v4.0

19 months agoaltos/snekboard: Indicate that USB is used for stdio
Keith Packard [Mon, 26 Sep 2022 00:34:56 +0000 (17:34 -0700)]
altos/snekboard: Indicate that USB is used for stdio

This isn't the default for some reason?

Signed-off-by: Keith Packard <keithp@keithp.com>
19 months agoaltos/samd21: Automatically erase flash when writing
Keith Packard [Mon, 26 Sep 2022 00:34:11 +0000 (17:34 -0700)]
altos/samd21: Automatically erase flash when writing

Need to erase pages before writing them.

Signed-off-by: Keith Packard <keithp@keithp.com>
19 months agoaltos/samd21: Get USB driver working in AltOS
Keith Packard [Mon, 26 Sep 2022 00:33:09 +0000 (17:33 -0700)]
altos/samd21: Get USB driver working in AltOS

Make sure it deals with the stdio mux, enable the clock for the GPIO
device.

Signed-off-by: Keith Packard <keithp@keithp.com>
19 months agoaltos/samd21: Add register definitions
Keith Packard [Mon, 26 Sep 2022 00:32:35 +0000 (17:32 -0700)]
altos/samd21: Add register definitions

This adds symbols for all of the device registers.

Signed-off-by: Keith Packard <keithp@keithp.com>
19 months agoao-tools: Add ao-flash-samd21 script
Keith Packard [Mon, 26 Sep 2022 00:31:27 +0000 (17:31 -0700)]
ao-tools: Add ao-flash-samd21 script

This takes an .elf or .ihx file and flashes that to a SAMD21 based
board using openocd. Note that you must have a hacked version of
OpenOCD for this to work via the ST-link device.

Signed-off-by: Keith Packard <keithp@keithp.com>
19 months agoaltos: Add sample samd21 application for snekboard
Keith Packard [Sun, 25 Sep 2022 20:57:08 +0000 (13:57 -0700)]
altos: Add sample samd21 application for snekboard

This runs a primitive application and flash loader on snekboard for
samd21 development.

Signed-off-by: Keith Packard <keithp@keithp.com>
19 months agoaltos: Add SAMD21 bits
Keith Packard [Sun, 25 Sep 2022 20:55:43 +0000 (13:55 -0700)]
altos: Add SAMD21 bits

Brought back from snek, these bits provide Altos support for the Atmel
SAMD21 family of chips.

Signed-off-by: Keith Packard <keithp@keithp.com>
19 months agoaltos: Use -ffunction-sections -fdata-sections
Keith Packard [Sun, 25 Sep 2022 20:55:04 +0000 (13:55 -0700)]
altos: Use -ffunction-sections -fdata-sections

This allows the linker to discard unused functions.

Signed-off-by: Keith Packard <keithp@keithp.com>
19 months agoaltos: Switch LED pin number to 8 bits
Keith Packard [Sun, 25 Sep 2022 20:54:24 +0000 (13:54 -0700)]
altos: Switch LED pin number to 8 bits

This assumes each port has fewer than 256 pins and avoids some
compiler warnings

Signed-off-by: Keith Packard <keithp@keithp.com>
19 months agoeasymini: Elide symbols from combined .ihx file
Keith Packard [Sat, 24 Sep 2022 22:54:20 +0000 (15:54 -0700)]
easymini: Elide symbols from combined .ihx file

Also add combined hex file to easymini v1.0 for testing.

Signed-off-by: Keith Packard <keithp@keithp.com>
19 months agoao-elftohex: Add '-n' option to elide symbol table from output
Keith Packard [Sat, 24 Sep 2022 22:53:04 +0000 (15:53 -0700)]
ao-elftohex: Add '-n' option to elide symbol table from output

The symbol table is a non-standard Altus Metrum hex file extension;
add this option to allow use with standard hex file tools.

Signed-off-by: Keith Packard <keithp@keithp.com>
19 months agoeasymini-v3.0: Create combined .ihx file for testing
Keith Packard [Mon, 19 Sep 2022 16:20:23 +0000 (09:20 -0700)]
easymini-v3.0: Create combined .ihx file for testing

This doesn't set the serial number, so it's not useful for production,
but it should at least provide an easy way to check a board.

Signed-off-by: Keith Packard <keithp@keithp.com>
19 months agoao-elftohex: Allow multiple elf files to be merged together
Keith Packard [Mon, 19 Sep 2022 16:09:04 +0000 (09:09 -0700)]
ao-elftohex: Allow multiple elf files to be merged together

This allows combining the flash loader and core firmware.

Signed-off-by: Keith Packard <keithp@keithp.com>
19 months agodoc: Update call sign
Keith Packard [Mon, 19 Sep 2022 15:37:31 +0000 (08:37 -0700)]
doc: Update call sign

Signed-off-by: Keith Packard <keithp@keithp.com>
19 months agoaltos: Document easymotor record length
Keith Packard [Mon, 5 Sep 2022 04:05:47 +0000 (21:05 -0700)]
altos: Document easymotor record length

Signed-off-by: Keith Packard <keithp@keithp.com>
19 months agoao-eeprom: Add easy motor support
Keith Packard [Mon, 5 Sep 2022 04:05:25 +0000 (21:05 -0700)]
ao-eeprom: Add easy motor support

Signed-off-by: Keith Packard <keithp@keithp.com>
19 months agoaltoslib: Replace EasyMotor v2 code with v3
Keith Packard [Mon, 5 Sep 2022 04:04:28 +0000 (21:04 -0700)]
altoslib: Replace EasyMotor v2 code with v3

No v2 boards remain in usable condition and we didn't create a new log
format value for v3, so just replace the v2 code with v3.

Signed-off-by: Keith Packard <keithp@keithp.com>
22 months agoVersion 1.9.11
Keith Packard [Mon, 30 May 2022 00:50:47 +0000 (17:50 -0700)]
Version 1.9.11

Signed-off-by: Keith Packard <keithp@keithp.com>
22 months agodoc: Update copyrights to 2022
Keith Packard [Mon, 30 May 2022 00:48:01 +0000 (17:48 -0700)]
doc: Update copyrights to 2022

Signed-off-by: Keith Packard <keithp@keithp.com>
22 months agodoc: Add release notes for 1.9.11
Keith Packard [Mon, 30 May 2022 00:47:41 +0000 (17:47 -0700)]
doc: Add release notes for 1.9.11

Signed-off-by: Keith Packard <keithp@keithp.com>
22 months agodoc: Document 10mw limit configuration
Keith Packard [Mon, 30 May 2022 00:46:43 +0000 (17:46 -0700)]
doc: Document 10mw limit configuration

Signed-off-by: Keith Packard <keithp@keithp.com>
23 months agosrc: Add easymini-v3.0
Keith Packard [Fri, 20 May 2022 23:20:13 +0000 (16:20 -0700)]
src: Add easymini-v3.0

Signed-off-by: Keith Packard <keithp@keithp.com>
23 months agolpc: Make beeper configurable
Keith Packard [Fri, 20 May 2022 23:20:32 +0000 (16:20 -0700)]
lpc: Make beeper configurable

Need to set the port, pin, timer and channel values

Signed-off-by: Keith Packard <keithp@keithp.com>
23 months agolpc: ADC 5 was busted
Keith Packard [Fri, 20 May 2022 23:41:19 +0000 (16:41 -0700)]
lpc: ADC 5 was busted

Signed-off-by: Keith Packard <keithp@keithp.com>
23 months agoao-tools/ao-eeprom: Dump converted info for F packets
Keith Packard [Thu, 5 May 2022 00:06:36 +0000 (17:06 -0700)]
ao-tools/ao-eeprom: Dump converted info for F packets

Signed-off-by: Keith Packard <keithp@keithp.com>
2 years agodoc: add an appendix with examples for configurable pyro channels
Bdale Garbee [Tue, 12 Apr 2022 17:13:44 +0000 (11:13 -0600)]
doc: add an appendix with examples for configurable pyro channels

2 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Thu, 7 Apr 2022 04:51:13 +0000 (22:51 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

2 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Tue, 5 Apr 2022 23:55:06 +0000 (17:55 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

2 years agouse correct test script for v1.0 easymega
Bdale Garbee [Tue, 5 Apr 2022 23:54:32 +0000 (17:54 -0600)]
use correct test script for v1.0 easymega

2 years agotelegps-v0.3: Reduce stack size to fit in ram
Keith Packard [Mon, 4 Apr 2022 21:40:37 +0000 (14:40 -0700)]
telegps-v0.3: Reduce stack size to fit in ram

Signed-off-by: Keith Packard <keithp@keithp.com>
2 years agoao-telem: Read from stdin if no filenames
Keith Packard [Mon, 28 Feb 2022 00:10:30 +0000 (16:10 -0800)]
ao-telem: Read from stdin if no filenames

Make ao-telem work as a filter if no filenames are passed on the
command line.

Signed-off-by: Keith Packard <keithp@keithp.com>
2 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Mon, 4 Apr 2022 07:22:04 +0000 (01:22 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

2 years agodial it down a bit more to not exceed +10 dBm, or 10 mW radio-limit
Bdale Garbee [Sat, 26 Feb 2022 05:11:17 +0000 (22:11 -0700)]
dial it down a bit more to not exceed +10 dBm, or 10 mW

2 years agoAllow TX power to be limited to 10mW
Keith Packard [Fri, 25 Feb 2022 23:43:15 +0000 (15:43 -0800)]
Allow TX power to be limited to 10mW

This allows the radio power to be limited so that it doesn't generate
more than 10mW.

Signed-off-by: Keith Packard <keithp@keithp.com>
2 years agoVersion 1.9.10.4 1.9.10.4
Keith Packard [Mon, 21 Feb 2022 17:40:07 +0000 (09:40 -0800)]
Version 1.9.10.4

Signed-off-by: Keith Packard <keithp@keithp.com>
2 years agoaltos: Document how delay_done is used in ao_pyro.c
Keith Packard [Mon, 21 Feb 2022 17:43:54 +0000 (09:43 -0800)]
altos: Document how delay_done is used in ao_pyro.c

delay_done is the time at which the delay finishes, but non-zero
values also indicate that some delay is pending. Add a comment about
why the value is set to 1 when it is zero, and switch the tests of
this value to comparisons against zero.

Signed-off-by: Keith Packard <keithp@keithp.com>
2 years agoaltos: Deal with 8-character version numbers
Keith Packard [Sat, 19 Feb 2022 23:35:31 +0000 (15:35 -0800)]
altos: Deal with 8-character version numbers

With 8 characters, the version number isn't null-terminated, so we
need to limit use to the available length in a couple of places.

Signed-off-by: Keith Packard <keithp@keithp.com>
2 years agoaltos: Add -Wconversion
Keith Packard [Thu, 17 Feb 2022 05:48:01 +0000 (21:48 -0800)]
altos: Add -Wconversion

This adds the -Wconversion flag to detect potential mistakes in
implicit type conversion.

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