Keith Packard [Fri, 6 Jun 2014 01:49:01 +0000 (18:49 -0700)]
altos: Add debug to tracker to force launch
This lets us test the move from pad to drogue state
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Jun 2014 01:47:27 +0000 (18:47 -0700)]
altos: tracker distance computation flipped arguments around
ao_distance takes (lat, lon, lat, lon) not (lat, lat, lon, lon)
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Jun 2014 01:45:18 +0000 (18:45 -0700)]
altos: Fix tracker start state
Make sure log can start by scanning existing logs
Enable RDF by default
Turn off telemetry until we decide whether to turn it on in the loop
Allow TeleGPS v0.3 to run without ADC
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Jun 2014 01:44:26 +0000 (18:44 -0700)]
altos: Stick flight state in GPS location packets
Useful for TeleGPS
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Jun 2014 01:35:45 +0000 (18:35 -0700)]
altos: Have tracker average 5 GPS samples before moving to pad mode
Avoids early GPS noise right after lock
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Jun 2014 01:33:33 +0000 (18:33 -0700)]
altos: Change tracker not-moving speed to 2m/s and document
Just adjust to avoid sensing motion from GPS noise
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Jun 2014 01:31:06 +0000 (18:31 -0700)]
altos: ao_distance was overflowing when checking for longitude wrap
Need to shift everyone right one bit to fit in 32 bits
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Jun 2014 00:24:57 +0000 (17:24 -0700)]
altos: Allow cc115l driver to be built without radio power control
TeleGPS just wants full power, so remove the configuration option
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Jun 2014 00:14:28 +0000 (17:14 -0700)]
altos: Include sensor logging task only on flight boards
This lets TeleGPS use the logging infrastructure without wasting a
task to log sensor data
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Jun 2014 00:12:06 +0000 (17:12 -0700)]
altos: Add tracker task for TeleGPS
This replaces the flight code to monitor GPS state and switch flight
states between startup/pad/drogue
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Jun 2014 00:10:28 +0000 (17:10 -0700)]
altos: Add ao_distance.c to compute cartesian distances on the globe
This is not a great circle distance, but should be good enough for
points reasonably close together
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 5 Jun 2014 23:52:36 +0000 (16:52 -0700)]
telegps: Update icon and icon building
Switch to satellite icon, build the osx and windows icons.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 5 Jun 2014 23:50:29 +0000 (16:50 -0700)]
altosuilib: Let the user hand-edit the preload map radius
In case they want more than 5
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jun 2014 06:43:54 +0000 (23:43 -0700)]
doc: Create release notes for version 1.4
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jun 2014 05:59:23 +0000 (22:59 -0700)]
telegps: Trap AltosConfigDataException in telegps config
This was added for pyro configuration errors in AltosUI
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jun 2014 05:23:31 +0000 (22:23 -0700)]
altoslib: Add missing AltosConfigDataException file
Keith Packard [Tue, 3 Jun 2014 05:07:39 +0000 (22:07 -0700)]
altosui: Display error message when parsing pyro channel values fails
Build an exception handling chain to get numeric parse errors
propagated all the way back to the original 'save' command and up into
a dialog window, including the pyro channel, field and value that were
in error.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jun 2014 05:06:22 +0000 (22:06 -0700)]
altosui: Fix pyro channel value formatting
Was using %6.1f for 1 and 2 fraction digit values as the
conditional structure for figuring out which format to use was
broken.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jun 2014 05:05:11 +0000 (22:05 -0700)]
altos: Fetch/store only 8 bits for pyro state values
These fields are uint8_t, not int16_t. Fetching and storing 16 bits is
a bad idea.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jun 2014 05:04:11 +0000 (22:04 -0700)]
altos: Maximum pyro configuration parameter has 4 bytes in the name
"f>=" needs four bytes, not just three to store the whole string. If
we only store three, then we never manage to compare correctly as the
null terminating byte is missing.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jun 2014 05:03:26 +0000 (22:03 -0700)]
altos: Configuring pyro channels can use more than 48 characters
Increase the command buffer from 48 to 128 bytes to hold the longest
pyro configuration commands
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 31 May 2014 00:27:10 +0000 (17:27 -0700)]
altos: Allow sparse GPS data logging for TeleGPS
When the device hasn't moved for a while, stop logging data. Start as
soon as it moves again.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 31 May 2014 00:30:08 +0000 (17:30 -0700)]
altos: Test APRS altitude encoding
Verify fixed point version against naïve implementation
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 31 May 2014 00:24:51 +0000 (17:24 -0700)]
altos: Switch APRS altitude encoding computation to fixed point
APRS altitude is logarithmically encoded, so this implementation
includes a fixed point log-base-2 function along with a bit of other
fixed point stuff. This eliminates all floating point from TeleGPS,
saving around 4kB of code space.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 31 May 2014 00:17:42 +0000 (17:17 -0700)]
telegps: Add config for tracker starting distances
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 30 May 2014 05:03:48 +0000 (22:03 -0700)]
telegps: Fixup windows fat build harder
Keith Packard [Fri, 30 May 2014 04:48:11 +0000 (21:48 -0700)]
TeleGPS firmware isn't quite ready, don't include in windows fat build yet
Keith Packard [Fri, 30 May 2014 04:37:53 +0000 (21:37 -0700)]
Capture windows build error messages
Keith Packard [Thu, 29 May 2014 23:39:26 +0000 (16:39 -0700)]
telegps: Add missing TeleGPSGraphUI.java file
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 May 2014 21:40:39 +0000 (14:40 -0700)]
Build telegps distribution bits with 'make fat'
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 May 2014 21:36:14 +0000 (14:36 -0700)]
telegps: Add graph display
Moved the altosui graph files to altosuilib and fixed things up.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 May 2014 21:03:58 +0000 (14:03 -0700)]
java: Refactor AltosFlightDisplay units and font update handling
Make AltosFlightDisplay explicitly implement AltosFontListener and
AltosUnitsListener interfaces to make everyone use the same API. Then,
actually go implement units listeners so that changing units updates
all of the active displays immediately
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 May 2014 17:16:15 +0000 (10:16 -0700)]
telegps: Add info table
Move a couple of files from altosui to altosuilib, hook up the info
table after changing it to implement the AltosFlightDisplay interface
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 May 2014 05:53:06 +0000 (22:53 -0700)]
telegps: Add flash device functionality
Move bits from altosui to altosuilib and use those.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 May 2014 05:45:23 +0000 (22:45 -0700)]
telegps: Auto-connect to any base stations plugged in at startup
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 May 2014 05:06:43 +0000 (22:06 -0700)]
telegps: Don't try to ship TeleGPS firmware yet
It's not quite ready. Instead, ship TBT and TD firmware.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 May 2014 04:56:52 +0000 (21:56 -0700)]
telegps: Add 'Info' tab
This contains a summary of the tracking info, including position,
speed and course.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 May 2014 03:58:01 +0000 (20:58 -0700)]
telegps: Hook up data download dialog
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 May 2014 03:48:59 +0000 (20:48 -0700)]
telegps: Add scan UI
Move scan UI bits into altosuilib, allow telegps to not show telemetry
format options.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 May 2014 03:24:04 +0000 (20:24 -0700)]
telegps: Add preferences dialog
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 May 2014 03:19:44 +0000 (20:19 -0700)]
telegps: Add device configuration dialogs
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 May 2014 03:00:10 +0000 (20:00 -0700)]
telegps: Use altosui's Instdrv NSIS plugin for telegps
Instead of copying it, just point at it
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 May 2014 02:50:52 +0000 (19:50 -0700)]
telegps: Working towards building fat versions of telegps application
Lots more of the bits necessary for windows/macosx
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 May 2014 02:45:01 +0000 (19:45 -0700)]
doc: Add outline of TeleGPS doc
No actual content, mostly a place holder to make the build work
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 May 2014 02:44:21 +0000 (19:44 -0700)]
Mark version 1.3.2.2
Preliminary 1.3.3 version (1.4?)
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 May 2014 23:08:30 +0000 (16:08 -0700)]
telegps: Add first version of telegps
Not much implemented yet, but a shell of the UI and the map
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 May 2014 23:06:14 +0000 (16:06 -0700)]
altosui/altosuilib: Shuffle lots more code from altosui into
altosuilib
All of the bluetooth management stuff, and AltosSerial.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 May 2014 17:43:09 +0000 (10:43 -0700)]
Document the need for ~/altusmetrumllc/google-maps-api-key
Stick this in Releasing
Signed-off-by: Keith Packard <keithp@keithp.com>
Tom Marble [Wed, 28 May 2014 19:08:02 +0000 (14:08 -0500)]
jenkins.sh: make -j 4 can fail, fix for altosui-test
Tom Marble [Wed, 28 May 2014 17:50:42 +0000 (12:50 -0500)]
fix for jenkins.sh
Tom Marble [Wed, 28 May 2014 17:38:36 +0000 (12:38 -0500)]
add jenkins.sh
Keith Packard [Wed, 28 May 2014 17:31:47 +0000 (10:31 -0700)]
altosuilib: Don't try to draw to destroyed map windows
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 May 2014 17:27:52 +0000 (10:27 -0700)]
altosuilib: Publish AltosSiteMap.centre. Add prefetchMaps with old API
This gets altosui working again.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 May 2014 17:16:38 +0000 (10:16 -0700)]
altosuilib: Update map preloading UI to include zoom and maptypes
This lets you specify precisely which maps to load.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 May 2014 09:18:41 +0000 (02:18 -0700)]
altosuilib: Remove debug printf in AltosSiteMapCache
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 May 2014 09:06:18 +0000 (02:06 -0700)]
altoslib: When log-format is missing, use product
log-format was added for 1.0; earlier log files don't include that,
but do say which product they're from.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 May 2014 07:42:24 +0000 (00:42 -0700)]
altosuilib: Add google maps API key, configured with -with-google-key
This places the actual key outside of the repository, allowing the
user to configure the name of the file containing the key. By default,
this pulls the key from $HOME/altusmetrumllc/google-maps-api-key.
With the key present, there are no longer any rate limits to loading
map data.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 May 2014 03:34:29 +0000 (20:34 -0700)]
altosuilib: Decompress map images asynchronously and in parallel
This speeds up loading map images from disk quite a bit, and keeps the
UI responsive while that happens as well.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 27 May 2014 22:39:13 +0000 (15:39 -0700)]
altosuilib: Add distance measuring line to site map.
Use any modifier or button other than the left one to draw a line on
the map. The length of the line is shown at the start of the line.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 27 May 2014 18:05:02 +0000 (11:05 -0700)]
altos: Fake flight code changes in kernel and stm
Redirects data input from local sensors to USB sourced data, leaving
USB enabled when the computer goes into pad mode.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 27 May 2014 17:58:53 +0000 (10:58 -0700)]
altosuilib: Add multiple zoom levels and content types to map
Also changes the file format for hybrid, satellite and terrain maps to
jpg to save disk space.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 26 May 2014 04:14:42 +0000 (21:14 -0700)]
altos/test: Fix ADC structure for mega, use ao_config.h
This switches from hand-coding the ao_config structure to using
ao_config.h and also updates the ADC structure for ao_flight_test_mega
to using the same one as telemega does natively
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 26 May 2014 04:12:29 +0000 (21:12 -0700)]
altos: Move ao_config declarations to ao_config.h
No sense leaving these in ao.h, and it's nice to make that file smaller
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 26 May 2014 04:11:23 +0000 (21:11 -0700)]
altos: Make MS5607 PROM a public variable
This will let the fake flight code update it as necessary, without
creating a new interface in ao_ms5607.c
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 26 May 2014 04:08:44 +0000 (21:08 -0700)]
micropeak: Add -Xlint:unchecked to javac line
This shows missing parametric type errors
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 26 May 2014 04:01:38 +0000 (21:01 -0700)]
altoslib/altosuilib: Change versions to altoslib:4, altosuilib:2
API has changed for these libraries, time to bump the file versions
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 26 May 2014 03:58:24 +0000 (20:58 -0700)]
ao-tools: Add cc_usb_write function
This writes raw bytes to the USB port; useful for sending binary data
for flashing or the upcoming flight test stuff.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 26 May 2014 03:55:11 +0000 (20:55 -0700)]
altosui/altosuilib/altoslib: Move more stuff out of autosui. Reduce site map memory
Prepare to share with TeleGPS application.
This also has the changes to the site map tile which cache only a few
images and regenerate the flight path on the fly, saving piles of memory
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 26 May 2014 03:47:49 +0000 (20:47 -0700)]
altosui/altosuilib: Cleanup -Xlint:unchecked warnings
Add parametric types to avoid unchecked warnings.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 23 May 2014 01:46:58 +0000 (18:46 -0700)]
altoslib: Move CSV/KML output code to altoslib
It's sharable, so share it
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 21 May 2014 21:02:35 +0000 (14:02 -0700)]
altos: Add config values for tracker start motion limits
TeleGPS switches from 'pad' to 'drogue' states after the device moves
a specified distance from the initial starting point. These values can
be configured, and this is the configuration for them.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 21 May 2014 21:00:05 +0000 (14:00 -0700)]
altos/test: Parse mega ground data. Fix pyro parsing
This gets ao_flight_test_mega working with eeprom files
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 21 May 2014 20:58:54 +0000 (13:58 -0700)]
altos/test: Get APRS generation test working again
APRS now includes sat info, so we have to fake that up to generate an
APRS test file
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 21 May 2014 08:37:57 +0000 (01:37 -0700)]
altos: Don't define ao_ignite_decivolt without igniters
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 21 May 2014 08:36:40 +0000 (01:36 -0700)]
altos: Expose ao_gps_set_rate from u-blox driver
This lets applications set the desired GPS update rate to reduce power usage
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 21 May 2014 08:35:33 +0000 (01:35 -0700)]
altos: Fix cc115l debug build
New compiler warning flags and moving to the nxp require a few minor
changes in the code to make it work.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 21 May 2014 08:34:27 +0000 (01:34 -0700)]
altos: Allow APRS to send just battery voltage
Don't require apogee and main voltages as well
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 21 May 2014 08:39:46 +0000 (01:39 -0700)]
altos/lpc: whitespace
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 21 May 2014 08:39:01 +0000 (01:39 -0700)]
altos/lpc: adc code computes number of active ADC channels
Don't require the application to provide AO_NUM_ADC when AO_ADC_NUM is
computed automatically.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 21 May 2014 08:41:38 +0000 (01:41 -0700)]
altos/stm: Make stm applications depend on ao_boot.h
This should make sure they get recompiled when boot stuff changes.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 16 May 2014 06:00:12 +0000 (00:00 -0600)]
altosui: Remove another beep config debug printf
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 16 May 2014 05:57:50 +0000 (23:57 -0600)]
altosui: Remove debug printf about beep config
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 16 May 2014 05:46:41 +0000 (23:46 -0600)]
altos: stm and lpc ao_boot.h were identical. move to kernel.
These two files were absolutely identical, so share them by moving
under kernel instead.x
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 16 May 2014 05:34:17 +0000 (23:34 -0600)]
altos: Use explicit boot loader signal in ao_boot_reboot
Instead of just "knowing" that ao_boot_loader will be passed zero when
the application wants to get back to the boot loader, explicitly
define the values so that both sides always agree.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 16 May 2014 05:10:54 +0000 (23:10 -0600)]
doc: Document the Apogee Lockout setting
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Thu, 15 May 2014 23:20:39 +0000 (17:20 -0600)]
include EasyMega Makefiles
Bdale Garbee [Thu, 15 May 2014 23:19:08 +0000 (17:19 -0600)]
working?
Bdale Garbee [Thu, 15 May 2014 22:23:17 +0000 (16:23 -0600)]
lose the (old) easymega-v1.0 directory in favor of my fresher 0.1
Keith Packard [Thu, 15 May 2014 15:31:24 +0000 (09:31 -0600)]
altos: Make quadrature debounce per-pin rather than per-device
Debouncing per-pin means we don't lose transitions, which makes
counting a lot more precise.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 15 May 2014 15:30:32 +0000 (09:30 -0600)]
altos/telemini-v2.0: Enable beep frequency configuration
Now that there's space for this, add it in.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 15 May 2014 15:29:52 +0000 (09:29 -0600)]
altos/telemini-v2.0: Remove old baro->alt conversion table
TeleMini doesn't have two baro sensors...
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 15 May 2014 15:28:30 +0000 (09:28 -0600)]
altos/cc1111: Switch P1_0 from a green LED to USB pullup
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 15 May 2014 15:27:34 +0000 (09:27 -0600)]
altos/cc1111: Add support for CPU-driven USB pullup
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 14 May 2014 05:46:19 +0000 (22:46 -0700)]
altos/cc1111: Errata fix isn't needed for discontinued products
And, doesn't fit in memory for some of them, so don't compile it.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 14 May 2014 00:30:47 +0000 (17:30 -0700)]
altos/cc1111: Wait for xtal to be stable
Errata http://www.ti.com/lit/er/swrz022c/swrz022c.pdf says that the
xtal is stable bit is bogus and that you need to just delay for a while.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 13 May 2014 06:21:55 +0000 (23:21 -0700)]
Merge remote-tracking branch 'origin/master'
Keith Packard [Tue, 13 May 2014 06:20:08 +0000 (23:20 -0700)]
ao-tools/ao-usbload: Check image flash usage against device flash availability
For devices which report the range of valid flash addresses from their
boot loader, check the loaded image to make sure it fits within that range.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 13 May 2014 06:18:41 +0000 (23:18 -0700)]
altos/flash-loader: Check memory addresses against flash space
This validates memory read/write requests to make sure they are within
the available flash memory space.
This also reports the flash base and bounds addresses in the 'version'
command so that the loader can validate the image before attempting to
write it.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 13 May 2014 05:56:38 +0000 (22:56 -0700)]
altos/stm: Use #define'd constants for GPIO register addresses
This lets the compiler short-circuit the tests in ao_enable_gpio and
ao_disable_gpio to save a bit of code space and time.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 13 May 2014 05:55:38 +0000 (22:55 -0700)]
altos/stm: Figure out available flash space based on chip id registers
Look at the flash size and the device id registers to figure out how
much flash is available.
Signed-off-by: Keith Packard <keithp@keithp.com>