fw/altos
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 agoao-tools: increase robustness of turnon_easymotor
Bdale Garbee [Fri, 4 Nov 2022 09:15:08 +0000 (03:15 -0600)]
ao-tools: increase robustness of turnon_easymotor

17 months agoao-bringup: final production test script for EasyMotor v3
Bdale Garbee [Fri, 4 Nov 2022 08:56:31 +0000 (02:56 -0600)]
ao-bringup: final production test script for EasyMotor v3

17 months agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Fri, 4 Nov 2022 08:41:43 +0000 (02:41 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

17 months agoao-tools: new ao-test-pressure utility for bench testing EasyMotor
Bdale Garbee [Fri, 4 Nov 2022 08:41:11 +0000 (02:41 -0600)]
ao-tools: new ao-test-pressure utility for bench testing EasyMotor

17 months agoupdate Releasing to include EasyMini v3.0 loader
Bdale Garbee [Fri, 4 Nov 2022 08:40:53 +0000 (02:40 -0600)]
update Releasing to include EasyMini v3.0 loader

17 months agoao-tools: don't do 'm 0' after 'E 0' since EasyMotor doesn't support it
Bdale Garbee [Fri, 4 Nov 2022 08:39:34 +0000 (02:39 -0600)]
ao-tools: don't do 'm 0' after 'E 0' since EasyMotor doesn't support it

17 months agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Wed, 2 Nov 2022 17:34:35 +0000 (11:34 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

17 months agoEasyMotor v3 production script working, sans pressure input test
Bdale Garbee [Wed, 2 Nov 2022 17:33:29 +0000 (11:33 -0600)]
EasyMotor v3 production script working, sans pressure input test

17 months agoAdd option to beep max height in feet rather than just meters
Keith Packard [Tue, 1 Nov 2022 20:00:22 +0000 (13:00 -0700)]
Add option to beep max height in feet rather than just meters

Available on all products, plus config UI changes.

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agoeasymini v3.0 production scripts working
Bdale Garbee [Tue, 1 Nov 2022 16:41:03 +0000 (10:41 -0600)]
easymini v3.0 production scripts working

17 months agoupdate Releasing with tweaks made during 1.9.12 release process
Bdale Garbee [Sat, 29 Oct 2022 05:43:40 +0000 (23:43 -0600)]
update Releasing with tweaks made during 1.9.12 release process

17 months agoVersion 1.9.12
Keith Packard [Fri, 28 Oct 2022 04:07:15 +0000 (21:07 -0700)]
Version 1.9.12

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agoAuto-detect windows signing stuff
Keith Packard [Sat, 29 Oct 2022 04:57:02 +0000 (21:57 -0700)]
Auto-detect windows signing stuff

Still build installers even without signing key

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agoupdate Releasing to include reference to jsign as a release dependency
Bdale Garbee [Sat, 29 Oct 2022 04:28:40 +0000 (22:28 -0600)]
update Releasing to include reference to jsign as a release dependency

17 months agofat: sign Windows installers with our new code signing certificate
Bdale Garbee [Sat, 29 Oct 2022 04:20:03 +0000 (22:20 -0600)]
fat: sign Windows installers with our new code signing certificate

17 months agodoc: include reference to Loki Research closures in motortest document
Bdale Garbee [Sat, 29 Oct 2022 03:47:04 +0000 (21:47 -0600)]
doc: include reference to Loki Research closures in motortest document

17 months agoaltosuilib: Remove some debug printfs
Keith Packard [Fri, 28 Oct 2022 04:35:55 +0000 (21:35 -0700)]
altosuilib: Remove some debug printfs

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agoaltosui: Ship motortest.pdf with packaged builds
Keith Packard [Fri, 28 Oct 2022 04:21:28 +0000 (21:21 -0700)]
altosui: Ship motortest.pdf with packaged builds

Signed-off-by: Keith Packard <keithp@keithp.com>
17 months agodoc: additional improvements to motortest manual
Bdale Garbee [Fri, 28 Oct 2022 04:31:34 +0000 (22:31 -0600)]
doc: additional improvements to motortest manual

17 months agofix mailing list reference to use mailman3 path
Bdale Garbee [Fri, 28 Oct 2022 04:20:19 +0000 (22:20 -0600)]
fix mailing list reference to use mailman3 path

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 agoAdd EasyMotor v3 firmware to release
Keith Packard [Fri, 28 Oct 2022 04:05:10 +0000 (21:05 -0700)]
Add EasyMotor v3 firmware to release

Remove EasyMotor v2

Signed-off-by: Keith Packard <keithp@keithp.com>
18 months agodoc: Add preliminary 1.9.12 release notes
Keith Packard [Fri, 28 Oct 2022 04:01:19 +0000 (21:01 -0700)]
doc: Add preliminary 1.9.12 release notes

Signed-off-by: Keith Packard <keithp@keithp.com>
18 months agodoc: Add specs for EasyMini v3 and EasyMotor v3
Keith Packard [Fri, 28 Oct 2022 04:00:47 +0000 (21:00 -0700)]
doc: Add specs for EasyMini v3 and EasyMotor v3

Signed-off-by: Keith Packard <keithp@keithp.com>
18 months agoaltosuilib: Limit EasyMotor graphs to motor pressure and accel by default
Keith Packard [Fri, 28 Oct 2022 04:00:07 +0000 (21:00 -0700)]
altosuilib: Limit EasyMotor graphs to motor pressure and accel by default

Change which axes are turned on when the graph is created.

Signed-off-by: Keith Packard <keithp@keithp.com>
18 months agoaltoslib: Map log format back to USB device id
Keith Packard [Fri, 28 Oct 2022 03:59:20 +0000 (20:59 -0700)]
altoslib: Map log format back to USB device id

This lets us use the device_id for both telem and eeprom files.

Signed-off-by: Keith Packard <keithp@keithp.com>
18 months agoaltos: Allow 'c a 0' without Syntax Error
Keith Packard [Fri, 28 Oct 2022 02:39:16 +0000 (19:39 -0700)]
altos: Allow 'c a 0' without Syntax Error

Need to clear error after checking for second value in accel cal
command.

Signed-off-by: Keith Packard <keithp@keithp.com>
18 months agoeasymotor-v3: Fix beeper config
Keith Packard [Fri, 28 Oct 2022 02:25:02 +0000 (19:25 -0700)]
easymotor-v3: Fix beeper config

the branch had different beeper config code than mainline.

Signed-off-by: Keith Packard <keithp@keithp.com>
18 months agoao-eeprom: Handle merge conflict from easymotor-v3 branch
Keith Packard [Fri, 28 Oct 2022 02:19:59 +0000 (19:19 -0700)]
ao-eeprom: Handle merge conflict from easymotor-v3 branch

Had two copies of the new easymotor log format parsing bits.

Signed-off-by: Keith Packard <keithp@keithp.com>
18 months agoMerge branch 'easymotor-v3'
Keith Packard [Fri, 28 Oct 2022 02:16:39 +0000 (19:16 -0700)]
Merge branch 'easymotor-v3'

18 months agoAdd EasyMini v3.0 firmware to release
Keith Packard [Fri, 28 Oct 2022 00:50:36 +0000 (17:50 -0700)]
Add EasyMini v3.0 firmware to release

Followed instructions in Releasing

Signed-off-by: Keith Packard <keithp@keithp.com>
18 months agoaltos: Allow setting telemetry interval to zero without crashing
Keith Packard [Fri, 28 Oct 2022 00:43:08 +0000 (17:43 -0700)]
altos: Allow setting telemetry interval to zero without crashing

Setting telemetry interval to zero means disable telemetry, but the
code was using the zero value to compute a bunch of packet delays,
which involved dividing by the interval value causing a crash when it
was zero. Skip those subsequent computations as they won't be used
anyways.

Signed-off-by: Keith Packard <keithp@keithp.com>
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 agoao-eeprom: Add EasyMotor decode
Keith Packard [Sun, 10 Apr 2022 05:38:28 +0000 (22:38 -0700)]
ao-eeprom: Add EasyMotor decode

Signed-off-by: Keith Packard <keithp@keithp.com>
2 years agorecognize EasyMotor-v3 too
Bdale Garbee [Sun, 10 Apr 2022 03:50:21 +0000 (22:50 -0500)]
recognize EasyMotor-v3 too

2 years agoaltos: Add EasyMotor-v3.0 to regular builds
Keith Packard [Thu, 7 Apr 2022 06:29:31 +0000 (23:29 -0700)]
altos: Add EasyMotor-v3.0 to regular builds

Signed-off-by: Keith Packard <keithp@keithp.com>
2 years agolpc: Shuffle more bits around for flash loader
Keith Packard [Thu, 7 Apr 2022 06:28:40 +0000 (23:28 -0700)]
lpc: Shuffle more bits around for flash loader

Having a fixed value at 0x2fc means splitting flash and trying to make
enough space on both sides. Sigh.

Signed-off-by: Keith Packard <keithp@keithp.com>
2 years agoeasymotor-v3: Increase ADXL spi speed back to normal, remove delay
Keith Packard [Thu, 7 Apr 2022 06:20:03 +0000 (23:20 -0700)]
easymotor-v3: Increase ADXL spi speed back to normal, remove delay

All done debugging, it seems to work on EasyMotor now.

Signed-off-by: Keith Packard <keithp@keithp.com>
2 years agolpc: Add SPI mode support. Use for ADXL375 on easymotor
Keith Packard [Thu, 7 Apr 2022 05:45:41 +0000 (22:45 -0700)]
lpc: Add SPI mode support. Use for ADXL375 on easymotor

Signed-off-by: Keith Packard <keithp@keithp.com>
2 years agoreduce adxl speed to 100kHz
Keith Packard [Thu, 7 Apr 2022 05:32:03 +0000 (22:32 -0700)]
reduce adxl speed to 100kHz

Signed-off-by: Keith Packard <keithp@keithp.com>
2 years agoDisable adxl debug, set long delay
Keith Packard [Thu, 7 Apr 2022 05:31:39 +0000 (22:31 -0700)]
Disable adxl debug, set long delay

Signed-off-by: Keith Packard <keithp@keithp.com>
2 years agoaltos: Fix ADXL375 SPI mode definitions and usage
Keith Packard [Thu, 7 Apr 2022 05:14:32 +0000 (22:14 -0700)]
altos: Fix ADXL375 SPI mode definitions and usage

3-wire mode is 1, 4-wire mode is 0. Fortunately, I also messed up the
shift value, so the 1 got shifted on top of one of the fixed-value bits.

Signed-off-by: Keith Packard <keithp@keithp.com>
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 agolpc: Attempt to make beeper generate correct tone
Keith Packard [Mon, 4 Apr 2022 21:15:17 +0000 (14:15 -0700)]
lpc: Attempt to make beeper generate correct tone

The timer docs are confusing; I can't tell how the PWM configuration
works.

Signed-off-by: Keith Packard <keithp@keithp.com>
2 years agofix SPI index definition
Bdale Garbee [Mon, 4 Apr 2022 07:21:44 +0000 (01:21 -0600)]
fix SPI index definition