fw/altos
2 months agotwo more places where telemini-outline.pdf filename needs to be updated debian
Bdale Garbee [Tue, 25 Apr 2017 01:46:05 +0000 (19:46 -0600)]
two more places where telemini-outline.pdf filename needs to be updated

2 months agotwo versions of telemini outline document now debian/1.7-1
Bdale Garbee [Tue, 25 Apr 2017 00:34:23 +0000 (18:34 -0600)]
two versions of telemini outline document now

2 months agoall existing patches merged in upstream 1.7 release
Bdale Garbee [Tue, 25 Apr 2017 00:23:56 +0000 (18:23 -0600)]
all existing patches merged in upstream 1.7 release

2 months agoupdate changelog for Debian build
Bdale Garbee [Tue, 25 Apr 2017 00:23:21 +0000 (18:23 -0600)]
update changelog for Debian build

2 months agoMerge branch 'branch-1.7' into debian
Bdale Garbee [Tue, 25 Apr 2017 00:22:03 +0000 (18:22 -0600)]
Merge branch 'branch-1.7' into debian

2 months agoupdate ChangeLog for 1.7 release branch-1.7 1.7
Bdale Garbee [Tue, 25 Apr 2017 00:17:58 +0000 (18:17 -0600)]
update ChangeLog for 1.7 release

2 months agoBump to version 1.7
Keith Packard [Mon, 24 Apr 2017 22:47:08 +0000 (15:47 -0700)]
Bump to version 1.7

TeleMini v3.0 support

Signed-off-by: Keith Packard <keithp@keithp.com>
2 months agoaltoslib: renamed AltosSensorTMini2, but didn't update AltosIdleFetch
Keith Packard [Tue, 25 Apr 2017 00:11:03 +0000 (17:11 -0700)]
altoslib: renamed AltosSensorTMini2, but didn't update AltosIdleFetch

Because Java found the old installed version of this library. Thanks!

Signed-off-by: Keith Packard <keithp@keithp.com>
2 months agoupdate copyright year in docs
Bdale Garbee [Mon, 24 Apr 2017 23:18:10 +0000 (17:18 -0600)]
update copyright year in docs

2 months agoaltos/ao_pad.c: Use #if HAS_LOG instead of #ifdef HAS_LOG
Keith Packard [Mon, 24 Apr 2017 23:40:46 +0000 (16:40 -0700)]
altos/ao_pad.c: Use #if HAS_LOG instead of #ifdef HAS_LOG

TeleFire v0.1 defines HAS_LOG to 0.

Signed-off-by: Keith Packard <keithp@keithp.com>
2 months agodoc: Errors in the TeleMini v3.0 updates found by Bdale
Keith Packard [Mon, 24 Apr 2017 22:59:23 +0000 (15:59 -0700)]
doc: Errors in the TeleMini v3.0 updates found by Bdale

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos: Move old AO_LAUNCH defines to cc1111/ao_launch.h
Keith Packard [Sun, 23 Apr 2017 05:04:31 +0000 (22:04 -0700)]
altos: Move old AO_LAUNCH defines to cc1111/ao_launch.h

These were getting accidentally used by ao_pad.c

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoallow multiple tests to be logged on telefiretwo without rebooting
Bdale Garbee [Sun, 23 Apr 2017 06:02:47 +0000 (00:02 -0600)]
allow multiple tests to be logged on telefiretwo without rebooting

3 months agoimplement static test start and stop protocol for telefiretwo+telebt
Bdale Garbee [Sun, 23 Apr 2017 05:42:23 +0000 (23:42 -0600)]
implement static test start and stop protocol for telefiretwo+telebt

3 months agoeliminate spurious close braces
Bdale Garbee [Sun, 23 Apr 2017 05:02:53 +0000 (23:02 -0600)]
eliminate spurious close braces

3 months agoadd static test start and stop commands to radio protocol for telefiretwo
Bdale Garbee [Sun, 23 Apr 2017 05:01:44 +0000 (23:01 -0600)]
add static test start and stop commands to radio protocol for telefiretwo

3 months agoenable logging support in telefiretwo
Bdale Garbee [Sun, 23 Apr 2017 05:01:26 +0000 (23:01 -0600)]
enable logging support in telefiretwo

3 months agocobble up a command to toggle logging on/off on TeleFireTwo
Bdale Garbee [Sat, 22 Apr 2017 23:20:41 +0000 (17:20 -0600)]
cobble up a command to toggle logging on/off on TeleFireTwo

3 months agoa stab at turning on rudimentary logging for telefiretwo
Bdale Garbee [Sat, 22 Apr 2017 22:59:03 +0000 (16:59 -0600)]
a stab at turning on rudimentary logging for telefiretwo

3 months agoaltoslib: Add TeleFireTwo eeprom support
Keith Packard [Sat, 22 Apr 2017 22:55:48 +0000 (15:55 -0700)]
altoslib: Add TeleFireTwo eeprom support

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agofleshing out logging for telefiretwo
Bdale Garbee [Sat, 22 Apr 2017 22:36:18 +0000 (16:36 -0600)]
fleshing out logging for telefiretwo

3 months agoenable spi flash on telefiretwo
Bdale Garbee [Sat, 22 Apr 2017 21:45:52 +0000 (15:45 -0600)]
enable spi flash on telefiretwo

3 months agoprepare to upload debian/1.6.8-5
Bdale Garbee [Sat, 22 Apr 2017 18:08:51 +0000 (12:08 -0600)]
prepare to upload

3 months agoaltos/telegps: Inherit LDFLAGS from lpc make specification
Keith Packard [Fri, 14 Apr 2017 03:16:52 +0000 (21:16 -0600)]
altos/telegps: Inherit LDFLAGS from lpc make specification

Somethings messed up with cortex-M0 linking, and this isn't helping as
it overrides the LDFLAGS coming from the architecture.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoao-tools/ao-flash-lpc: Adapt to current openocd LPC support
Keith Packard [Thu, 2 Mar 2017 21:37:12 +0000 (13:37 -0800)]
ao-tools/ao-flash-lpc: Adapt to current openocd LPC support

Openocd 0.9.0 has generalized the lpc11xx support for all lpc11xx
processors, not just the lpc11u14. This replaces the specific
lpc11u14.cfg with the general lpc11xx.cfg file.

Unlike the build we were using, this doesn't adjust the
'verify' command to adapt for the checksum which gets added during the
flashing process. Hence, we disable verification and trust that if the
flash loader works to load the OS, it's fine.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoao-elftohex: Add conditions for skipping ELF sections
Keith Packard [Sun, 9 Apr 2017 19:48:54 +0000 (12:48 -0700)]
ao-elftohex: Add conditions for skipping ELF sections

Skip sections with size 0, or which are of type SHT_NOBITS or which
don't have the SHF_ALLOC flag set.

This avoids crashing on sections which don't have any data to copy.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos/lpc,altos/stmf0: Use -n flag to work around link editor issue
Keith Packard [Sat, 22 Apr 2017 00:06:23 +0000 (17:06 -0700)]
altos/lpc,altos/stmf0: Use -n flag to work around link editor issue

Something changed in the link editor which makes it complain about 'no
space for program headers' on LPC and STMF0 builds. Somehow, adding
the '-n' flag to the linking step fixes it. It doesn't appear to break
the build, so I guess it's ok?

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agofix TeleFireTwo product name in ao-list output
Bdale Garbee [Sat, 22 Apr 2017 17:38:08 +0000 (11:38 -0600)]
fix TeleFireTwo product name in ao-list output

3 months agoaltos/stmf0: Pull beeper pin low when beeper is off
Keith Packard [Sat, 22 Apr 2017 06:02:57 +0000 (23:02 -0700)]
altos/stmf0: Pull beeper pin low when beeper is off

This avoids having the pin float and pick up noise from any adjacent
signals, like TeleMini's radio.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agodoc: Finish updates for v1.7
Keith Packard [Sat, 22 Apr 2017 05:24:00 +0000 (22:24 -0700)]
doc: Finish updates for v1.7

Scrub all TeleMini references and make sure they're fixed for v3.  No
'emergency' mode yet.  No reflashing yet.

Add v1.7 release notes.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos/lpc: Really fix aes entry in lpc vpath
Keith Packard [Sat, 22 Apr 2017 04:32:26 +0000 (21:32 -0700)]
altos/lpc: Really fix aes entry in lpc vpath

I added another entry instead of fixing the existing one. Not ideal.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoReplace turnon_telemini with v3 version. Add test-teleminiv3
Keith Packard [Sat, 22 Apr 2017 01:16:45 +0000 (18:16 -0700)]
Replace turnon_telemini with v3 version. Add test-teleminiv3

Prepare for TeleMini v3.0 release.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agodoc: Update TeleMini v3 photos to production unit
Keith Packard [Sat, 22 Apr 2017 01:08:25 +0000 (18:08 -0700)]
doc: Update TeleMini v3 photos to production unit

Replace prototype photos

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoalots/stmf0: Fix vpath entry for AES directory
Keith Packard [Sat, 22 Apr 2017 00:15:05 +0000 (17:15 -0700)]
alots/stmf0: Fix vpath entry for AES directory

Mis-placed )

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos/lpc,altos/stmf0: Use -n flag to work around link editor issue
Keith Packard [Sat, 22 Apr 2017 00:06:23 +0000 (17:06 -0700)]
altos/lpc,altos/stmf0: Use -n flag to work around link editor issue

Something changed in the link editor which makes it complain about 'no
space for program headers' on LPC and STMF0 builds. Somehow, adding
the '-n' flag to the linking step fixes it. It doesn't appear to break
the build, so I guess it's ok?

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos/telemini-v3.0: Remove vestiges of the pre-USB code
Keith Packard [Sat, 22 Apr 2017 00:04:28 +0000 (17:04 -0700)]
altos/telemini-v3.0: Remove vestiges of the pre-USB code

Pre-USB telemini v3 designs had a separate firmware load for radio
calibration. Now that we've got enough USB to perform flash/cal/test,
we don't need that other firmware load, so we can remove the remaining
Makefile remnants of the calibration load.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos/lpc: Add (void *) cast to fix alignment warning
Keith Packard [Fri, 21 Apr 2017 23:40:58 +0000 (16:40 -0700)]
altos/lpc: Add (void *) cast to fix alignment warning

The -Wcast-align warning is generated when this cast is not present.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos/lpc: Fix up Makefile definitions
Keith Packard [Fri, 21 Apr 2017 16:18:48 +0000 (09:18 -0700)]
altos/lpc: Fix up Makefile definitions

vpath reference to aes was busted.
WARN_CFLAGS needs -Wcast-align.
Wrap AO_CFLAGS.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoao-test-baro: Be more lax about altitude checks
Keith Packard [Fri, 21 Apr 2017 16:17:18 +0000 (09:17 -0700)]
ao-test-baro: Be more lax about altitude checks

High pressure here today and the altimeter is reading -69m. Allow down
to -100m when testing baro values.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos/telemini-v3.0: Add flash loader
Keith Packard [Thu, 20 Apr 2017 06:08:56 +0000 (23:08 -0700)]
altos/telemini-v3.0: Add flash loader

Now that telemini has USB, use the boot loader to make it easy to
update firmware.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos/telemini-v3.0: Update to production hardware
Keith Packard [Thu, 20 Apr 2017 06:08:06 +0000 (23:08 -0700)]
altos/telemini-v3.0: Update to production hardware

Removed LEDs. Added USB. Flipped lots of pins around.

This appears to make telemini work.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos/telebt-v3.0: Add LCO bits for testing
Keith Packard [Wed, 19 Apr 2017 23:00:24 +0000 (16:00 -0700)]
altos/telebt-v3.0: Add LCO bits for testing

Add the USB commands for LCO testing to TeleBT v3.0

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos/telefiretwo-v0.2: Add AO_CC1200_SPI_SPEED
Keith Packard [Wed, 19 Apr 2017 21:19:28 +0000 (14:19 -0700)]
altos/telefiretwo-v0.2: Add AO_CC1200_SPI_SPEED

Needed for products with different SPI speed options.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoadd new ADC channels for telefiretwo
Bdale Garbee [Wed, 19 Apr 2017 21:08:15 +0000 (15:08 -0600)]
add new ADC channels for telefiretwo

3 months agoneed top level Makefile too
Bdale Garbee [Tue, 18 Apr 2017 22:47:43 +0000 (16:47 -0600)]
need top level Makefile too

3 months agobuilds, loads, runs, not very useful yet
Bdale Garbee [Tue, 18 Apr 2017 22:47:05 +0000 (16:47 -0600)]
builds, loads, runs, not very useful yet

3 months agocopy telefiretwo-v0.2 to start firmware for v1.0
Bdale Garbee [Tue, 18 Apr 2017 22:33:27 +0000 (16:33 -0600)]
copy telefiretwo-v0.2 to start firmware for v1.0

3 months agotelegps-v2.0: Remove fec_tx code and ADC logging.
Keith Packard [Fri, 14 Apr 2017 03:48:46 +0000 (21:48 -0600)]
telegps-v2.0: Remove fec_tx code and ADC logging.

This gets telegps-v2.0 to link.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos/stmf0: Split up rom load in altos.ld to make linker happy
Keith Packard [Fri, 14 Apr 2017 03:47:14 +0000 (21:47 -0600)]
altos/stmf0: Split up rom load in altos.ld to make linker happy

The linker isn't happy when the .ld file tries to add text, the .exidx
and .rodata segments in the same block. Split them up for success.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agocortexelf-v1: Fetch data at TPB rising when MWR or MRD are low
Keith Packard [Fri, 14 Apr 2017 03:18:58 +0000 (21:18 -0600)]
cortexelf-v1: Fetch data at TPB rising when MWR or MRD are low

This should get the right value at least.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos/telegps: Inherit LDFLAGS from lpc make specification
Keith Packard [Fri, 14 Apr 2017 03:16:52 +0000 (21:16 -0600)]
altos/telegps: Inherit LDFLAGS from lpc make specification

Somethings messed up with cortex-M0 linking, and this isn't helping as
it overrides the LDFLAGS coming from the architecture.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoinitial cut at telegps-v2.0 firmware
Bdale Garbee [Fri, 14 Apr 2017 01:36:49 +0000 (19:36 -0600)]
initial cut at telegps-v2.0 firmware

3 months agocortexelf-v1: Initialize key matrix code
Keith Packard [Sun, 9 Apr 2017 20:03:50 +0000 (13:03 -0700)]
cortexelf-v1: Initialize key matrix code

This gets the hex keypad working.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agocortexelf-v1: Bump SPI pin speed to 40MHz to for sdcard. Fix VGA DMA.
Keith Packard [Sun, 9 Apr 2017 19:59:07 +0000 (12:59 -0700)]
cortexelf-v1: Bump SPI pin speed to 40MHz to for sdcard. Fix VGA DMA.

Tell the DMA code to leave the DMA engine enabled so the VGA output
can use it.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos: Use MP switch in cortexelf boot loader for force loader mode
Keith Packard [Sun, 9 Apr 2017 19:56:59 +0000 (12:56 -0700)]
altos: Use MP switch in cortexelf boot loader for force loader mode

Provide a way to get to the boot loader on the cortexelf board by
turning the MP switch on.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos: Escape lisp REP loop with () input
Keith Packard [Sun, 9 Apr 2017 19:55:34 +0000 (12:55 -0700)]
altos: Escape lisp REP loop with () input

Provide a way to get out of a lisp read-eval-print loop that can be
easily input from the keyboard.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos: Document a few more SPI mode bits in VGA driver
Keith Packard [Sun, 9 Apr 2017 19:54:57 +0000 (12:54 -0700)]
altos: Document a few more SPI mode bits in VGA driver

Just comment changes

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos: Drive row low instead of high in matrix driver
Keith Packard [Sun, 9 Apr 2017 19:53:34 +0000 (12:53 -0700)]
altos: Drive row low instead of high in matrix driver

Driving it high won't work all that well as we're looking for zero bits.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos: Place AS1107 in 'normal' mode at end of init sequence
Keith Packard [Sun, 9 Apr 2017 19:51:49 +0000 (12:51 -0700)]
altos: Place AS1107 in 'normal' mode at end of init sequence

This makes sure the device is out of reset mode while initializing,
and then placed in normal mode to turn on the display.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoao-elftohex: Add conditions for skipping ELF sections
Keith Packard [Sun, 9 Apr 2017 19:48:54 +0000 (12:48 -0700)]
ao-elftohex: Add conditions for skipping ELF sections

Skip sections with size 0, or which are of type SHT_NOBITS or which
don't have the SHF_ALLOC flag set.

This avoids crashing on sections which don't have any data to copy.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agocortexelf-v1: More 1802 noodling
Keith Packard [Tue, 4 Apr 2017 23:05:15 +0000 (16:05 -0700)]
cortexelf-v1: More 1802 noodling

Add code to track the address and data displays, change how 1802 pin
tracking works

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agostm: Add more mask-based GPIO controls
Keith Packard [Tue, 4 Apr 2017 23:04:25 +0000 (16:04 -0700)]
stm: Add more mask-based GPIO controls

Lets cortexelf do more things with groups of pins, rather than one pin
at a time.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos: Allow programs to enable SDCARD debugging if desired
Keith Packard [Tue, 4 Apr 2017 23:03:36 +0000 (16:03 -0700)]
altos: Allow programs to enable SDCARD debugging if desired

Provides for per-application control over SDCARD debugging

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos: Disable FAT commands unless requested
Keith Packard [Tue, 4 Apr 2017 23:02:46 +0000 (16:02 -0700)]
altos: Disable FAT commands unless requested

This are debugging commands; don't provide them unless requested

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agotelegps-v0.1: Hack up for SDCARD debugging
Keith Packard [Tue, 4 Apr 2017 23:00:56 +0000 (16:00 -0700)]
telegps-v0.1: Hack up for SDCARD debugging

Disable everything not SDCARD related for debugging.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos: Define CC115L spi speed in each product
Keith Packard [Tue, 4 Apr 2017 22:59:56 +0000 (15:59 -0700)]
altos: Define CC115L spi speed in each product

Different SoCs have different SPI speeds available; have each product
specify the speed to use instead of trying to use 4Mhz everywhere.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agocortexelf-v1: Add pin definitions for 1802 connections
Keith Packard [Mon, 3 Apr 2017 18:41:51 +0000 (11:41 -0700)]
cortexelf-v1: Add pin definitions for 1802 connections

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agostm: Add a few more GPIO functions to make dealing with the 1802 easier
Keith Packard [Mon, 3 Apr 2017 18:37:21 +0000 (11:37 -0700)]
stm: Add a few more GPIO functions to make dealing with the 1802 easier

ao_gpio_set_mask and ao_gpio_get_all

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agocortexelf-v1: Make bit flipping array constant
Keith Packard [Mon, 3 Apr 2017 18:36:52 +0000 (11:36 -0700)]
cortexelf-v1: Make bit flipping array constant

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agocortexelf-v1: doodling with 1802 bits
Keith Packard [Mon, 3 Apr 2017 16:36:00 +0000 (09:36 -0700)]
cortexelf-v1: doodling with 1802 bits

Just some random ideas about how to manage the 1802

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agocortexelf-v1: Add bit flipping array generator
Keith Packard [Mon, 3 Apr 2017 03:33:49 +0000 (20:33 -0700)]
cortexelf-v1: Add bit flipping array generator

Someone hooked up the data lines between the systems backwards, so we
get to swizzle the bits in software.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agocortexelf-v1: Hook up hex keypad using matrix input driver
Keith Packard [Mon, 3 Apr 2017 02:32:17 +0000 (19:32 -0700)]
cortexelf-v1: Hook up hex keypad using matrix input driver

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos: Allow buttons to be high when pressed rather than low
Keith Packard [Mon, 3 Apr 2017 02:31:45 +0000 (19:31 -0700)]
altos: Allow buttons to be high when pressed rather than low

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos: add button matrix driver
Keith Packard [Mon, 3 Apr 2017 02:30:57 +0000 (19:30 -0700)]
altos: add button matrix driver

Scans the matrix once per clock tick queuing events for changed keys.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agocortexelf-v1: Hook up AS1107 in test mode
Keith Packard [Mon, 3 Apr 2017 00:39:26 +0000 (17:39 -0700)]
cortexelf-v1: Hook up AS1107 in test mode

Provide a 'L' command to display values

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoaltos: Add AS1107 LED display driver
Keith Packard [Mon, 3 Apr 2017 00:39:05 +0000 (17:39 -0700)]
altos: Add AS1107 LED display driver

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agocortexelf-v1: Add buttons
Keith Packard [Sun, 2 Apr 2017 23:37:42 +0000 (16:37 -0700)]
cortexelf-v1: Add buttons

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agocortexelf-v1: Add serialblather command.
Keith Packard [Sun, 2 Apr 2017 23:22:28 +0000 (16:22 -0700)]
cortexelf-v1: Add serialblather command.

This reads from stdin and dumps it to both serial ports until you type ~

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agolisp: Fix up lisp build so projects can get ao_lisp_const.h built as needed
Keith Packard [Sun, 2 Apr 2017 23:17:33 +0000 (16:17 -0700)]
lisp: Fix up lisp build so projects can get ao_lisp_const.h built as needed

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agostm: Use common flash wait loop instead of inlining
Keith Packard [Sun, 2 Apr 2017 22:56:17 +0000 (15:56 -0700)]
stm: Use common flash wait loop instead of inlining

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agocortexelf: Add lisp interpreter
Keith Packard [Sun, 2 Apr 2017 22:53:17 +0000 (15:53 -0700)]
cortexelf: Add lisp interpreter

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agocortexelf-v1: Use new memory map to access all flash and ram. Add fat.
Keith Packard [Sun, 2 Apr 2017 22:40:03 +0000 (15:40 -0700)]
cortexelf-v1: Use new memory map to access all flash and ram. Add fat.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agocortexelf-v1: Hook up serial consoles for debugging
Keith Packard [Sun, 2 Apr 2017 22:28:45 +0000 (15:28 -0700)]
cortexelf-v1: Hook up serial consoles for debugging

This will make playing with serial ports easier for now.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agocortexelf-v1: Fix clock to drive VGA at 640/480. Add sdcard, remove others
Keith Packard [Sun, 2 Apr 2017 22:18:34 +0000 (15:18 -0700)]
cortexelf-v1: Fix clock to drive VGA at 640/480. Add sdcard, remove others

VGA requires the CPU to run at 24MHz.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agocortexelf-v1: Add ps/2 and vga with graphics
Keith Packard [Sun, 2 Apr 2017 22:04:09 +0000 (15:04 -0700)]
cortexelf-v1: Add ps/2 and vga with graphics

Start hooking up devices with known drivers.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agocapture pnpservo makefiles too
Bdale Garbee [Sun, 2 Apr 2017 21:47:31 +0000 (15:47 -0600)]
capture pnpservo makefiles too

3 months agomakefiles too
Bdale Garbee [Sun, 2 Apr 2017 21:47:14 +0000 (15:47 -0600)]
makefiles too

3 months agoinitial skeleton of CortexELF support
Bdale Garbee [Sun, 2 Apr 2017 21:41:56 +0000 (15:41 -0600)]
initial skeleton of CortexELF support

3 months agofirst rough cut at skeleton of code for pnpservo .. altos boots and runs
Bdale Garbee [Sat, 1 Apr 2017 18:23:24 +0000 (12:23 -0600)]
first rough cut at skeleton of code for pnpservo .. altos boots and runs

4 months agodoc: Rename telemini doc file from telemini-v1.0.inc to telemini.inc
Keith Packard [Mon, 6 Mar 2017 06:42:37 +0000 (22:42 -0800)]
doc: Rename telemini doc file from telemini-v1.0.inc to telemini.inc

This file now contains information on both TeleMini versions.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 months agoao-tools/ao-flash-stm: Use openocd instead of st-utils
Keith Packard [Mon, 6 Mar 2017 06:33:36 +0000 (22:33 -0800)]
ao-tools/ao-flash-stm: Use openocd instead of st-utils

openocd upstream and debian package can both flash stm32l processors,
so use that in preference to st-flash.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 months agoao-tools/ao-flash-lpc: Adapt to current openocd LPC support
Keith Packard [Thu, 2 Mar 2017 21:37:12 +0000 (13:37 -0800)]
ao-tools/ao-flash-lpc: Adapt to current openocd LPC support

Openocd 0.9.0 has generalized the lpc11xx support for all lpc11xx
processors, not just the lpc11u14. This replaces the specific
lpc11u14.cfg with the general lpc11xx.cfg file.

Unlike the build we were using, this doesn't adjust the
'verify' command to adapt for the checksum which gets added during the
flashing process. Hence, we disable verification and trust that if the
flash loader works to load the OS, it's fine.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 months agotelemini outline svg had wrong version number
Keith Packard [Wed, 1 Mar 2017 22:01:59 +0000 (14:01 -0800)]
telemini outline svg had wrong version number

4 months agoAdd initial TeleMini v3 docs
Keith Packard [Wed, 1 Mar 2017 21:53:36 +0000 (13:53 -0800)]
Add initial TeleMini v3 docs

Uses pictures of the prototype.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 months agoaltos/nucleo-32: Update lisp files, add beeper support
Keith Packard [Tue, 21 Feb 2017 01:34:43 +0000 (17:34 -0800)]
altos/nucleo-32: Update lisp files, add beeper support

Signed-off-by: Keith Packard <keithp@keithp.com>
5 months agoaltos/lisp: Not quite ready to start making it look like scheme yet
Keith Packard [Tue, 21 Feb 2017 01:32:09 +0000 (17:32 -0800)]
altos/lisp: Not quite ready to start making it look like scheme yet

Lots more code to write before these symbols can be exposed.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 months agoaltos/stmf0: Support timer 2/3 for the beeper
Keith Packard [Tue, 21 Feb 2017 01:29:15 +0000 (17:29 -0800)]
altos/stmf0: Support timer 2/3 for the beeper

Tested on timer 2, all four channels.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 months agoaltos/stmf0: Support tim1 beeper channel other than 3
Keith Packard [Tue, 21 Feb 2017 00:51:09 +0000 (16:51 -0800)]
altos/stmf0: Support tim1 beeper channel other than 3

ch1 was broken and ch2 didn't have any code at all.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 months agoaltos/telemini-v3.0: Add beeper defines needed for more general beeper code
Keith Packard [Tue, 21 Feb 2017 01:33:37 +0000 (17:33 -0800)]
altos/telemini-v3.0: Add beeper defines needed for more general beeper code

The beeper code now wants to know which timer, port and pin are in use.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 months agoaltos: Add stm-vga demo project
Keith Packard [Mon, 20 Feb 2017 20:18:58 +0000 (12:18 -0800)]
altos: Add stm-vga demo project

Uses the VGA and PS/2 drivers to provide an interactive console.

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