summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Bump version to 1.0.9.41.0.9.4Keith Packard2012-03-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add ao_freq.c to megametrum buildKeith Packard2012-03-28
| | | | | | I think this will be needed to compute radio settings on the cc1120 Signed-off-by: Keith Packard <keithp@keithp.com>
* stm-demo does not use altitude.hKeith Packard2012-03-28
|
* Use -Os for STM apps. Fix altos.ld to matchall .rodata* sectionsKeith Packard2012-03-28
| | | | | | | | Without .rodata*, it would stick the flash copy of the data on top of any further .rodata* sections. Fortunately, the linker catches that and complains... Signed-off-by: Keith Packard <keithp@keithp.com>
* Get config stuff hooked up for MegaMetrumKeith Packard2012-03-28
| | | | | | This stubs out enough stuff to let ao_config link and work Signed-off-by: Keith Packard <keithp@keithp.com>
* Add preliminary MegaMetrum v0.1 supportKeith Packard2012-03-28
| | | | | | | This turns on an LED, enables the internal R/C clock, hooks USART3 to the GPS chip and USART1 to the console. Signed-off-by: Keith Packard <keithp@keithp.com>
* Use new Makefile.defs in stm-demoKeith Packard2012-03-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Use 16-bits for STM32 LED mask. Export serial I/O functionsKeith Packard2012-03-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Allow skytraq to be on non-default serial portKeith Packard2012-03-28
| | | | | | | Provide ao_gps_getchar, ao_gps_putchar and ao_gps_set_speed hooks to let product specify functions for serial access. Signed-off-by: Keith Packard <keithp@keithp.com>
* Allow for more than 8 LEDsKeith Packard2012-03-28
| | | | | | Provide hook for architecture-specific LED mask (AO_LED_TYPE) Signed-off-by: Keith Packard <keithp@keithp.com>
* Clean up STM build by moving common defs to Makefile.defsKeith Packard2012-03-28
| | | | | | Shortens default Makefile a bit Signed-off-by: Keith Packard <keithp@keithp.com>
* Make stm-demo display a scrolling messageKeith Packard2012-03-28
| | | | | | | Instead of trying to frob the LEDs, which are now owned by the serial port. Signed-off-by: Keith Packard <keithp@keithp.com>
* Flush LCD changes each time the text is updatedKeith Packard2012-03-28
| | | | | | Rather than requiring the caller to do it. Signed-off-by: Keith Packard <keithp@keithp.com>
* Automatically set ALTERNATE pin mode when setting alternate functionKeith Packard2012-03-28
| | | | | | | When selecting an alternate function, set the pin to alternate mode as well; there's no sense requiring two separate calls everywhere. Signed-off-by: Keith Packard <keithp@keithp.com>
* Allow any STM usart to be used for stdioKeith Packard2012-03-28
| | | | | | | This also adds the alternate pin configurations for the other two usarts Signed-off-by: Keith Packard <keithp@keithp.com>
* Allow for more than one serial port in core AltOSKeith Packard2012-03-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Move LCD string output code to ao_lcd_font.cKeith Packard2012-03-28
| | | | | | | It's all very specific to the 14-segment display, so stick it there. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add LCD device driver to STM32L portKeith Packard2012-03-28
| | | | | | | This enables the 6-digit 14-character display on the STM32L discovery board and provides an ascii output to it. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add defines for LCD controller and RTC clockingKeith Packard2012-03-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Actually enable usarts with the new usart codeKeith Packard2012-03-28
| | | | | | | And move USART1 to PB6/PB7 to avoid conflicting with the LCD pins. Signed-off-by: Keith Packard <keithp@keithp.com>
* Clean up multiple serial port support for STM32LKeith Packard2012-03-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add support for multiple serial ports on STM32LKeith Packard2012-03-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Save/restore PRIMASK register on Cortex-M3Keith Packard2012-03-28
| | | | | | This preserves the interrupt-enabled bit across context switches Signed-off-by: Keith Packard <keithp@keithp.com>
* Don't disable interrupts before saving interrupt flag on AVRKeith Packard2012-03-28
| | | | | | | This ignores the interrupt disabled state, so we'd always leave ao_yield with interrupts disabled. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add .gitignore file to stm-bringupKeith Packard2012-03-28
| | | | | | Ignore generated binaries Signed-off-by: Keith Packard <keithp@keithp.com>
* Fix STM LED driver and blink LEDs on discovery boardKeith Packard2012-03-28
| | | | | | | | This adds a task to blink the LEDs, after first fixing up the LED output code to enable the GPIO and talk to the right pins for the discovery board. Signed-off-by: Keith Packard <keithp@keithp.com>
* Basic OS running on STM32LKeith Packard2012-03-28
| | | | | | This gets stm-demo working Signed-off-by: Keith Packard <keithp@keithp.com>
* Add AO_PANIC_STACKKeith Packard2012-03-28
| | | | | | Provide a panic code for stack overflow. Signed-off-by: Keith Packard <keithp@keithp.com>
* When debugging, send ao_panic message to ao_debug_outKeith Packard2012-03-28
| | | | | | | Use the low-level debug hooks to get the panic state sent to the serial port. Signed-off-by: Keith Packard <keithp@keithp.com>
* When debugging, send pre-init output to ao_debug_outKeith Packard2012-03-28
| | | | | | | Before tasking is running, send output to ao_debug_out to help debug system initialization. Signed-off-by: Keith Packard <keithp@keithp.com>
* Incorrect type in ao_task_info for wchanKeith Packard2012-03-28
| | | | | | Would truncate 32-bit pointers on arm. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add stm-demo programKeith Packard2012-03-28
| | | | | | This runs AltOS and talks over the serial port. Signed-off-by: Keith Packard <keithp@keithp.com>
* These were moved to the src/stm directoryKeith Packard2012-03-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add stm bringup timers and move most of the setup code to the stm dirKeith Packard2012-03-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add STM platform and stm-bringup demo programKeith Packard2012-03-28
| | | | | | | | The stm-bringup doesn't run altos, it just initializes the device and writes stuff over a serial port. Works on the STM32L Discovery board at least, should do stuff on other boards too. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add example STM32L programsKeith Packard2012-03-28
| | | | | | This loads to flash and sends data over the serial link. Signed-off-by: Keith Packard <keithp@keithp.com>
* 'stdin' is a special name in some compiler environments, don't use it.Keith Packard2012-03-28
| | | | | | Switch to 'in' in the prototype for altos_serial_set_stdin. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Disable launch controller buttonKeith Packard2012-03-28
| | | | | | The launch controller should just be a separate program. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add Configure Ground Station dialog (trac #29)Keith Packard2012-03-28
| | | | | | | | Allows the user to configure the teledongle frequency without opening up the flight monitor window, and also shows the teledongle fixed values like radio calibration, serial number and software version. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make sure config values are loaded in 'c s' commandKeith Packard2012-03-28
| | | | | | | | ao_config_get may not have been called when ao_config_show is invoked by the user, so make sure the config values are loaded before showing uninitialized data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Sanity check values from device configurationKeith Packard2012-03-27
| | | | | | | If someone has down-graded and re up-graded the firmware, the config entries may be garbage. Sanity check them to avoid crashing the UI. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Reset config version if it's too large as wellKeith Packard2012-03-27
| | | | | | | | Any future config values will get trashed if we down grade the firmware, so we must reset the firmware version whenever it gets written. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Make 'monitor idle' work with older TeleMetrum firmware (trac #28)Keith Packard2012-03-27
| | | | | | | | Older TM firmware did not have the 'done' line at the end of the GPS report, rather it would just stop after showing the Flags value. Check the TM version and stop looking for GPS data when the Flags line appears. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Mark data 'Age' in monitor idle UI tooKeith Packard2012-03-27
| | | | | | | Just like with the flight monitor UI, it's nice to know how old the data in the monitor idle UI is, in case the data link to the TM isn't reliable. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Catch attempt to set radio frequency to 0.0 -- use defaultKeith Packard2012-03-27
| | | | | | | | | Monitor idle was setting the frequency to 0, which takes a while with the new native radio frequency setting code. Don't do that, instead pull out the preferred frequency for that, as is done in other places where a frequency of 0.0 is used. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Find actual landing time when computing stats (trac #23)Keith Packard2012-03-27
| | | | | | | | Look for the last time the height went from >10m to <2m from the nominal landing altitude and use that as the landing time when computing things like main descent speed, time under main etc. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Change flight data saving UI to separate download/delete selectionsKeith Packard2012-03-27
| | | | | | | | | First pop up a dialog to select flights for download. Download them. Then, after that, pop up a *new* dialog to select flights for delete. Offer to delete all of the downloaded flights by default. Then delete the flights. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Optimize ao_freq_to_set a bitKeith Packard2012-03-27
| | | | | | Reduces size from 327 bytes to 287 bytes Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Show only supported telemetry versionKeith Packard2012-03-27
| | | | | | | Make it clear in the UI which telemetry versions are supported, providing the combobox only for new firmware which supports all versions. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Configure radio with new direct frequency settingKeith Packard2012-03-27
| | | | | | Instead of computing the radio setting in altosui, let the radio do it directly. Signed-off-by: Keith Packard <keithp@keithp.com>