fw/altos
5 years agoprepare a new Debian version for upload debian/1.9-2
Bdale Garbee [Fri, 4 Jan 2019 22:00:22 +0000 (15:00 -0700)]
prepare a new Debian version for upload

5 years agocherry-pick patch that fixes doc versions, quilt-style
Bdale Garbee [Fri, 4 Jan 2019 21:58:56 +0000 (14:58 -0700)]
cherry-pick patch that fixes doc versions, quilt-style

5 years agocherry-pick fix for ao-cal-accel, quilt-style
Bdale Garbee [Fri, 4 Jan 2019 21:57:04 +0000 (14:57 -0700)]
cherry-pick fix for ao-cal-accel, quilt-style

5 years agoadd ruby-asciidoctor-pdf to build deps
Bdale Garbee [Fri, 4 Jan 2019 21:50:16 +0000 (14:50 -0700)]
add ruby-asciidoctor-pdf to build deps

5 years agoRevert "elide pdf files from delivered docs until ruby-asciidoctor-pdf escapes NEW"
Bdale Garbee [Fri, 4 Jan 2019 21:48:03 +0000 (14:48 -0700)]
Revert "elide pdf files from delivered docs until ruby-asciidoctor-pdf escapes NEW"

This reverts commit 6cd063179ddf862654cbc5469afbd123556bd31b.

5 years agosplit lintian overrides into source and binary debian/1.9-1
Bdale Garbee [Thu, 3 Jan 2019 06:59:54 +0000 (23:59 -0700)]
split lintian overrides into source and binary

5 years agoactually deliver lintian overrides
Bdale Garbee [Thu, 3 Jan 2019 06:51:45 +0000 (23:51 -0700)]
actually deliver lintian overrides

5 years agoupdate changelog for Debian build
Bdale Garbee [Thu, 3 Jan 2019 06:42:47 +0000 (23:42 -0700)]
update changelog for Debian build

5 years agoadd lintian overrides
Bdale Garbee [Thu, 3 Jan 2019 06:33:45 +0000 (23:33 -0700)]
add lintian overrides

5 years agofix dep5 copyright syntax
Bdale Garbee [Thu, 3 Jan 2019 06:28:58 +0000 (23:28 -0700)]
fix dep5 copyright syntax

5 years agoupdate build dependencies to include newlib-nano, elide cc1111
Bdale Garbee [Thu, 3 Jan 2019 06:17:22 +0000 (23:17 -0700)]
update build dependencies to include newlib-nano, elide cc1111

5 years agoupdate changelog for Debian build
Bdale Garbee [Thu, 3 Jan 2019 06:05:59 +0000 (23:05 -0700)]
update changelog for Debian build

5 years agoMerge branch 'branch-1.9' into debian
Bdale Garbee [Thu, 3 Jan 2019 06:04:43 +0000 (23:04 -0700)]
Merge branch 'branch-1.9' into debian

5 years agoMerge branch 'master' into branch-1.9 1.9
Bdale Garbee [Thu, 3 Jan 2019 06:03:41 +0000 (23:03 -0700)]
Merge branch 'master' into branch-1.9

5 years agodoc: Skip .pdf generation when asciidoctor-pdf is missing
Keith Packard [Thu, 3 Jan 2019 06:02:42 +0000 (22:02 -0800)]
doc: Skip .pdf generation when asciidoctor-pdf is missing

Not available in debian unstable yet

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoelide pdf files from delivered docs until ruby-asciidoctor-pdf escapes NEW
Bdale Garbee [Thu, 3 Jan 2019 05:50:27 +0000 (22:50 -0700)]
elide pdf files from delivered docs until ruby-asciidoctor-pdf escapes NEW

5 years agoneed to run autoreconf before calling dh_auto_configure
Bdale Garbee [Thu, 3 Jan 2019 05:41:03 +0000 (22:41 -0700)]
need to run autoreconf before calling dh_auto_configure

5 years agouse ChangeLog from branch-1.9 in unmolested form
Bdale Garbee [Thu, 3 Jan 2019 05:27:30 +0000 (22:27 -0700)]
use ChangeLog from branch-1.9 in unmolested form

5 years agoupdate changelog for Debian build
Bdale Garbee [Thu, 3 Jan 2019 05:25:26 +0000 (22:25 -0700)]
update changelog for Debian build

5 years agoMerge branch 'branch-1.9' into debian
Bdale Garbee [Thu, 3 Jan 2019 05:23:04 +0000 (22:23 -0700)]
Merge branch 'branch-1.9' into debian

5 years agochangelog for 1.9 release
Bdale Garbee [Thu, 3 Jan 2019 05:19:36 +0000 (22:19 -0700)]
changelog for 1.9 release

5 years agoUpdate to version 1.9
Keith Packard [Mon, 31 Dec 2018 23:20:57 +0000 (15:20 -0800)]
Update to version 1.9

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoChange Releasing to reflect asciidoctor switch
Keith Packard [Mon, 31 Dec 2018 23:20:23 +0000 (15:20 -0800)]
Change Releasing to reflect asciidoctor switch

Don't need to hack .xml files anymore (yay!)

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agodoc: Add 1.9 release notes
Keith Packard [Mon, 31 Dec 2018 23:17:01 +0000 (15:17 -0800)]
doc: Add 1.9 release notes

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agodoc: Set doc version to 1.9
Keith Packard [Mon, 31 Dec 2018 23:17:42 +0000 (15:17 -0800)]
doc: Set doc version to 1.9

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agodoc: Add EasyMega v2.0 specs
Keith Packard [Mon, 31 Dec 2018 23:17:20 +0000 (15:17 -0800)]
doc: Add EasyMega v2.0 specs

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agodoc: Update doc/RELNOTES to adapt to asciidoctor change
Keith Packard [Mon, 31 Dec 2018 23:18:08 +0000 (15:18 -0800)]
doc: Update doc/RELNOTES to adapt to asciidoctor change

Moving to asciidoctor means changing our doc release process

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoAdd shipping products to fat_altos target, note that in Releasing
Keith Packard [Sun, 30 Dec 2018 22:28:07 +0000 (14:28 -0800)]
Add shipping products to fat_altos target, note that in Releasing

These bits are used to build alpha/beta releases, so they should
support all existing products.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoao-bringup: get turnon_easymega working for v2.0
Bdale Garbee [Mon, 31 Dec 2018 19:37:45 +0000 (12:37 -0700)]
ao-bringup: get turnon_easymega working for v2.0

5 years agoaltoslib: Remove spurious debug printf in AltosCalData
Keith Packard [Sun, 30 Dec 2018 22:15:51 +0000 (14:15 -0800)]
altoslib: Remove spurious debug printf in AltosCalData

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Don't validate ADXL375 self test for maximum value
Keith Packard [Sun, 30 Dec 2018 22:11:03 +0000 (14:11 -0800)]
altos: Don't validate ADXL375 self test for maximum value

The data sheet says this is unreliable, and that we should be using an
FFT anyways.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Make HAS_ACCEL_DEBUG build again
Keith Packard [Sun, 30 Dec 2018 21:42:50 +0000 (13:42 -0800)]
altos: Make HAS_ACCEL_DEBUG build again

Need to not use ao_error_h_sq_avg without HAS_ACCEL

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoupdate easymega turn-on script for v2.0
Bdale Garbee [Sun, 30 Dec 2018 22:16:29 +0000 (15:16 -0700)]
update easymega turn-on script for v2.0

5 years agodoc: Use icons for admonitions
Keith Packard [Fri, 2 Nov 2018 02:40:31 +0000 (19:40 -0700)]
doc: Use icons for admonitions

This replaces the text 'WARNING' or 'NOTE' with a suitable icon instead.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoeliminate spurious build dependencies now that we're using asciidoctor
Bdale Garbee [Thu, 1 Nov 2018 05:13:53 +0000 (23:13 -0600)]
eliminate spurious build dependencies now that we're using asciidoctor

5 years agoupdate build depends to reflect move to asciidoctor
Bdale Garbee [Fri, 26 Oct 2018 06:24:20 +0000 (00:24 -0600)]
update build depends to reflect move to asciidoctor

5 years agodoc: Remove asciidoc related files
Keith Packard [Fri, 26 Oct 2018 00:01:38 +0000 (17:01 -0700)]
doc: Remove asciidoc related files

These all helped asciidoc generate documentation

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoRemove cc1111 products from 'fat_altos' list, which is used for keithp-fat
Keith Packard [Thu, 25 Oct 2018 23:56:24 +0000 (16:56 -0700)]
Remove cc1111 products from 'fat_altos' list, which is used for keithp-fat

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agodoc: Switch to asciidoctor to format docs
Keith Packard [Thu, 25 Oct 2018 23:50:17 +0000 (16:50 -0700)]
doc: Switch to asciidoctor to format docs

asciidoc and a2x are no longer actively maintained and Debian policy
encourages people to move away from them to asciidoctor.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agodebian: use dh_auto_configure instead of open-coding configuration keithp-debian-changes
Keith Packard [Tue, 23 Oct 2018 00:11:23 +0000 (17:11 -0700)]
debian: use dh_auto_configure instead of open-coding configuration

This ensures that various debian defaults are used, including
architecture-specific library directories and hardening options.

Note that this changes where the .la files are installed, hence the
additional patch where those files are modified.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agodebian: Switch to machine-readable copyright format
Keith Packard [Mon, 22 Oct 2018 23:50:18 +0000 (16:50 -0700)]
debian: Switch to machine-readable copyright format

copyright-format 1.0

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agodebian: Clean trailing whitespace in changelog
Keith Packard [Mon, 22 Oct 2018 23:49:48 +0000 (16:49 -0700)]
debian: Clean trailing whitespace in changelog

No sense being sloppy.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agodebian: Add cairo-5c as build dependency
Keith Packard [Tue, 23 Oct 2018 23:08:59 +0000 (16:08 -0700)]
debian: Add cairo-5c as build dependency

We use cairo-5c to generate LED images

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoGenerate LED icons on the fly. Include SVG versions.
Keith Packard [Tue, 23 Oct 2018 23:07:09 +0000 (16:07 -0700)]
Generate LED icons on the fly. Include SVG versions.

This builds the required LED images from source code.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoDon't force CFLAGS from top level
Keith Packard [Mon, 22 Oct 2018 23:48:56 +0000 (16:48 -0700)]
Don't force CFLAGS from top level

Let the system defaults control this value.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoao-tools: Spelling fixes in a couple of man pages
Keith Packard [Mon, 22 Oct 2018 23:48:04 +0000 (16:48 -0700)]
ao-tools: Spelling fixes in a couple of man pages

ao-dbg.1 and ao-eeprom.1

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoAdd keywords to .desktop files
Keith Packard [Mon, 22 Oct 2018 23:47:20 +0000 (16:47 -0700)]
Add keywords to .desktop files

Makes applications easier to find with search

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltoslib: When flashing hardware, pull USB data from device if needed
Keith Packard [Sun, 21 Oct 2018 00:29:36 +0000 (17:29 -0700)]
altoslib: When flashing hardware, pull USB data from device if needed

If we fail to extract USB vid/pid and product values from the device
ROM, use the data discovered over USB when the device was originally
discovered.

Also, use the USB product to select appropriate .ihx files instead of
only using the USB vid/pid. This will help people avoid using the
wrong file when reflashing devices.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/easymega-v2.0: Handle different mpu9250 orientation
Keith Packard [Sun, 21 Oct 2018 00:26:53 +0000 (17:26 -0700)]
altos/easymega-v2.0: Handle different mpu9250 orientation

The mpu9250 on EasyMega v2.0 is rotated 90° compared with EasyMega v1
and TeleMega IMU devices.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltoslib: Add support for EasyMega-v2
Keith Packard [Sun, 21 Oct 2018 00:24:41 +0000 (17:24 -0700)]
altoslib: Add support for EasyMega-v2

adxl375 instead of mma6555.
mpu9250 rotated 90° compared with other megas.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltoslib: Add support for TeleGPS v2
Keith Packard [Sun, 21 Oct 2018 00:22:59 +0000 (17:22 -0700)]
altoslib: Add support for TeleGPS v2

The battery voltage ADC values are different from TeleGPS v1 (max 4095
instead of 32767).

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/adxl375: Clean up initialization, shortening self test period
Keith Packard [Sat, 20 Oct 2018 14:34:57 +0000 (07:34 -0700)]
altos/adxl375: Clean up initialization, shortening self test period

Set the self test period to that suggested in the documentation.
Eliminate some debug variables.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Sat, 20 Oct 2018 07:18:12 +0000 (01:18 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

5 years agoaltoslib: fix computation of TeleGPS battery voltage
Bdale Garbee [Sat, 20 Oct 2018 07:17:39 +0000 (01:17 -0600)]
altoslib: fix computation of TeleGPS battery voltage

5 years agoaltosui: Add EasyMega v2.0 firmware to release
Keith Packard [Fri, 19 Oct 2018 20:20:31 +0000 (13:20 -0700)]
altosui: Add EasyMega v2.0 firmware to release

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltoslib: Add ADXL375 support and EasyMega v2.0 support
Keith Packard [Fri, 19 Oct 2018 20:19:03 +0000 (13:19 -0700)]
altoslib: Add ADXL375 support and EasyMega v2.0 support

EasyMega v2.0 replaces the MMA655X with an ADXL375 part.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Add EasyMega v2.0 to default build
Keith Packard [Fri, 19 Oct 2018 15:41:51 +0000 (08:41 -0700)]
altos: Add EasyMega v2.0 to default build

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/easymega-v2.0: Add adxl375, replace mpu6000 with 9250 [v2]
Keith Packard [Sat, 13 Oct 2018 16:43:25 +0000 (09:43 -0700)]
altos/easymega-v2.0: Add adxl375, replace mpu6000 with 9250 [v2]

Should reflect current hardware design now.

v2:
Use SPI mode 3 for ADXL375
Invert ADXL375 values

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/easymega-v2.0: Change binary to easymega-v2.0 instead of easymega-v1.0
Keith Packard [Sat, 13 Oct 2018 16:46:01 +0000 (09:46 -0700)]
altos/easymega-v2.0: Change binary to easymega-v2.0 instead of easymega-v1.0

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Add ADXL375 driver [v2]
Keith Packard [Sat, 13 Oct 2018 16:41:31 +0000 (09:41 -0700)]
altos: Add ADXL375 driver [v2]

Includes self-test code and multi-byte mode operation for reading
sample registers.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/stm: Support SPI modes other than 0
Keith Packard [Mon, 15 Oct 2018 18:15:31 +0000 (11:15 -0700)]
altos/stm: Support SPI modes other than 0

ADXL375 requires SPI mode 3.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/stm: Make beeper driver support all possible tim234 configs
Keith Packard [Sat, 13 Oct 2018 20:42:34 +0000 (13:42 -0700)]
altos/stm: Make beeper driver support all possible tim234 configs

And update all users to be explicit about the desired config.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Create ao_data_fill shared function
Keith Packard [Fri, 19 Oct 2018 15:12:22 +0000 (08:12 -0700)]
altos: Create ao_data_fill shared function

This fills a data ring entry with all of the current sensor values
other than the ADC. It is used in all of the adc completion functions.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: remove usbtrng support (chaoskey prototypes)
Bdale Garbee [Sat, 13 Oct 2018 16:17:47 +0000 (10:17 -0600)]
altos: remove usbtrng support (chaoskey prototypes)

5 years agoaltos: remove telescience support
Bdale Garbee [Sat, 13 Oct 2018 16:12:39 +0000 (10:12 -0600)]
altos: remove telescience support

5 years agoaltos: remove teledongle-v1.8 support (what was that, anyway?!?)
Bdale Garbee [Sat, 13 Oct 2018 16:02:13 +0000 (10:02 -0600)]
altos: remove teledongle-v1.8 support (what was that, anyway?!?)

5 years agoaltos: remove megadongle-v0.1 support, never went beyond prototype
Bdale Garbee [Sat, 13 Oct 2018 15:59:22 +0000 (09:59 -0600)]
altos: remove megadongle-v0.1 support, never went beyond prototype

5 years agoaltos: remove telepyro-v0.1 support, which was never completed anyway
Bdale Garbee [Sat, 13 Oct 2018 15:57:44 +0000 (09:57 -0600)]
altos: remove telepyro-v0.1 support, which was never completed anyway

5 years agoaltos: remove teleterra-v0.1, also an ancient cc1111 project
Bdale Garbee [Sat, 13 Oct 2018 15:55:03 +0000 (09:55 -0600)]
altos: remove teleterra-v0.1, also an ancient cc1111 project

5 years agoaltos/drivers: Use stdbool in ao_ms5607.c
Keith Packard [Sat, 13 Oct 2018 15:33:49 +0000 (08:33 -0700)]
altos/drivers: Use stdbool in ao_ms5607.c

We don't have TRUE and FALSE anymore (they were pdclib specific).

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Remove pdclib bits from Makefile
Keith Packard [Sat, 13 Oct 2018 15:27:41 +0000 (08:27 -0700)]
altos: Remove pdclib bits from Makefile

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoRemove .gitmodules
Keith Packard [Sat, 13 Oct 2018 15:27:17 +0000 (08:27 -0700)]
Remove .gitmodules

We no longer use submodules (yay!)

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoBump version to 1.8.7.1
Keith Packard [Sat, 13 Oct 2018 15:26:02 +0000 (08:26 -0700)]
Bump version to 1.8.7.1

Tag development versions

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/stm32f4-disco: Start hooking up stm32f413 USB for the disco board
Keith Packard [Tue, 2 Oct 2018 19:48:25 +0000 (12:48 -0700)]
altos/stm32f4-disco: Start hooking up stm32f413 USB for the disco board

Non-working as yet.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/stm32f4: Add start of stm32f413 USB support
Keith Packard [Tue, 2 Oct 2018 19:46:19 +0000 (12:46 -0700)]
altos/stm32f4: Add start of stm32f413 USB support

This code doesn't work yet.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/stm32f4: Add stm32f413 USART support
Keith Packard [Tue, 2 Oct 2018 19:46:01 +0000 (12:46 -0700)]
altos/stm32f4: Add stm32f413 USART support

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/stm32f4: Add external interrupt bits
Keith Packard [Tue, 2 Oct 2018 19:45:39 +0000 (12:45 -0700)]
altos/stm32f4: Add external interrupt bits

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/stm32f4: Add more stm32f413 definitions and support code
Keith Packard [Tue, 2 Oct 2018 19:44:58 +0000 (12:44 -0700)]
altos/stm32f4: Add more stm32f413 definitions and support code

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Clean up AO_ROMCONFIG bits
Keith Packard [Wed, 12 Sep 2018 01:53:15 +0000 (18:53 -0700)]
altos: Clean up AO_ROMCONFIG bits

Remove address parameter (doesn't work with gcc), create shared
ao_romconfig in kernel.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/stm32f4-disco: Hook up serial console. Add scheme
Keith Packard [Wed, 12 Sep 2018 01:51:59 +0000 (18:51 -0700)]
altos/stm32f4-disco: Hook up serial console. Add scheme

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/stm32f4: Place ARM.exidx sections after .text
Keith Packard [Wed, 12 Sep 2018 01:50:45 +0000 (18:50 -0700)]
altos/stm32f4: Place ARM.exidx sections after .text

This makes the linker happy about not attempting to merge unordered
and ordered stuff (whatever that means...)

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/stm32f4: Use full printf/scanf (including floats)
Keith Packard [Wed, 12 Sep 2018 01:50:15 +0000 (18:50 -0700)]
altos/stm32f4: Use full printf/scanf (including floats)

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/stm32f4: Add usart driver for usart6
Keith Packard [Wed, 12 Sep 2018 01:49:22 +0000 (18:49 -0700)]
altos/stm32f4: Add usart driver for usart6

This is what the disco board hooks up.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/stm32f4: Align stack to 8 bytes
Keith Packard [Wed, 12 Sep 2018 01:46:52 +0000 (18:46 -0700)]
altos/stm32f4: Align stack to 8 bytes

This makes sure that doubles are aligned properly when passed on the stack.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/stm32f4-disco: Add .gitignore
Keith Packard [Tue, 11 Sep 2018 19:03:27 +0000 (12:03 -0700)]
altos/stm32f4-disco: Add .gitignore

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Add generic LED driver.
Keith Packard [Tue, 11 Sep 2018 18:57:50 +0000 (11:57 -0700)]
altos: Add generic LED driver.

This driver uses the generic GPIO functions and allows per-LED port
and pin configuration. It supports up to 32 LEDs.

Rename SoC-specific LED drivers.

Remove enabled parameter to ao_led_init

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Eliminate 'pin' field from GPIO functions
Keith Packard [Tue, 11 Sep 2018 17:40:24 +0000 (10:40 -0700)]
altos: Eliminate 'pin' field from GPIO functions

This was used with the 8051 bit-addressing mode to provide
single-instruction access to GPIO pins.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/stm32f4: Fix clock configuration
Keith Packard [Tue, 11 Sep 2018 08:28:03 +0000 (01:28 -0700)]
altos/stm32f4: Fix clock configuration

Was running the PLL input too slow (it wants 2MHz).
Was configuring the PLL_P factor wrong (needs magic values, not P
value)

Set up clock debugging for PA8 and PC9 output. Enable on disco board
for debugging.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/stm32f4: Add STM32F413 disco board support
Keith Packard [Tue, 11 Sep 2018 07:08:17 +0000 (00:08 -0700)]
altos/stm32f4: Add STM32F413 disco board support

Discovery development board

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/stm32f4: Start adding support for STM32F413
Keith Packard [Tue, 11 Sep 2018 07:07:38 +0000 (00:07 -0700)]
altos/stm32f4: Start adding support for STM32F413

Enough to get clocks lit up at least.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Remove 8051-ism from ao_usb.h
Keith Packard [Tue, 2 Oct 2018 19:47:00 +0000 (12:47 -0700)]
altos: Remove 8051-ism from ao_usb.h

__at doesn't exist for non-8051

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Delete random 8051 ISR declarations
Keith Packard [Tue, 11 Sep 2018 07:05:38 +0000 (00:05 -0700)]
altos: Delete random 8051 ISR declarations

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Allow application-specific prompts for ao_cmd_readline
Keith Packard [Thu, 16 Aug 2018 05:44:17 +0000 (22:44 -0700)]
altos: Allow application-specific prompts for ao_cmd_readline

Lets other readline users specify alternate prompts.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Use stdbool true/false instead of TRUE/FALSE
Keith Packard [Thu, 16 Aug 2018 02:17:19 +0000 (19:17 -0700)]
altos: Use stdbool true/false instead of TRUE/FALSE

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Make cmd number parsing functions return value
Keith Packard [Thu, 16 Aug 2018 02:13:45 +0000 (19:13 -0700)]
altos: Make cmd number parsing functions return value

Don't use a global variable to hold the result.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Remove 8051 address space specifiers
Keith Packard [Thu, 16 Aug 2018 00:47:37 +0000 (17:47 -0700)]
altos: Remove 8051 address space specifiers

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Remove *_TO_DATA macros
Keith Packard [Thu, 16 Aug 2018 00:34:20 +0000 (17:34 -0700)]
altos: Remove *_TO_DATA macros

Now that we don't support 8051, we don't need these

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoRemove pdclib
Keith Packard [Wed, 15 Aug 2018 22:39:34 +0000 (15:39 -0700)]
Remove pdclib

5 years agoaltos: Switch to newlib-nano for libc on arm
Keith Packard [Sun, 5 Aug 2018 04:23:22 +0000 (12:23 +0800)]
altos: Switch to newlib-nano for libc on arm

Stop using pdclib

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Remove cc1111 products
Keith Packard [Sun, 5 Aug 2018 04:17:19 +0000 (12:17 +0800)]
altos: Remove cc1111 products

We're not testing these anyways; building new firmware for them is not helpful.

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