summaryrefslogtreecommitdiff
path: root/src/stm-demo
Commit message (Collapse)AuthorAge
* Switch from GPLv2 to GPLv2+Keith Packard2016-07-12
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Make stm applications depend on ao_boot.hKeith Packard2014-05-21
| | | | | | This should make sure they get recompiled when boot stuff changes. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Hide Tilt Angle values when not availableKeith Packard2014-03-10
| | | | | | | In the Ascent table, make sure the tilt angle fields are hidden when they are set to MISSING. Signed-off-by: Keith Packard <keithp@keithp.com>
* Re-add LCD bits to stm-demoKeith Packard2014-03-08
|
* Add flash loader for stm-demo boardKeith Packard2014-03-08
|
* altos: Remove ARM .ihx files on 'make clean'Keith Packard2013-12-10
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: remove all versions of stm-demo executableKeith Packard2013-12-08
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Use installed pdclibKeith Packard2013-10-10
| | | | | | Switch over to the installed pdclib everywhere Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add debounce helper. Use in button and quadrature drivers for TeleLCOKeith Packard2013-06-09
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Use flash loader on all STM productsKeith Packard2013-05-07
| | | | | | Includes the boot chain stuff Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Create ihx version of stm-demoKeith Packard2013-05-07
| | | | | | Both ao-stmload and the eventual java loader will support ihx files. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Clean up boot loader supportKeith Packard2013-05-07
| | | | | | | Split out code into separate files. Add support for getting back to boot loader from application. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make stm-flash capable of switching to applicationKeith Packard2013-05-07
| | | | | | | This shrinks the base OS load down a bit as well so that stm-flash fits comfortably in the first 8kB of memory. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: More .gitignore bitsKeith Packard2013-05-07
| | | | | | stm-demo Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Call ao_task_init before initializing any driversKeith Packard2013-05-07
| | | | | | | | When using task queues, the sleep queues must be initialized before any invocation of ao_wakeup or the OS will crash. Just make sure ao_task_init is always invoked early in the task process to get that done. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: re-enable optimization for stm-demo. remove unused bitsKeith Packard2013-03-10
| | | | | | This makes stm-demo run on the discovery board again. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Set STM GPIO output speed for SPI pins correctlyKeith Packard2013-01-13
| | | | | | | | The GPIO pin settings affect the output impedence, and hence the maximum speed for SPI. Cranking these to suitable values allows SPI to run at full speed. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Specify the LCD duty cycle for stm-demoKeith Packard2012-08-27
| | | | | | This is the demo for the large 7-segment displays and needs static drive Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Trigger sample complete when all data are readyKeith Packard2012-08-26
| | | | | | | This has each sensor mark a bit in the current data record which is then sent for processing when all of the data are present. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add button driver and event queueKeith Packard2012-08-06
| | | | | | | With this, a single task can wait for any button or quadrature input device. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Support multiple quadrature encoders.Keith Packard2012-08-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix up quadrature driverKeith Packard2012-08-06
| | | | | | Mostly works now, should work reliably with a bit of input filtering. Signed-off-by: Keith Packard <keithp@keithp.com>
* Signed-off-by: Keith Packard <keithp@keithp.com>Keith Packard2012-08-06
| | | | altos: Test quadrature driver
* altos: Have 'make clean' remove all programs, even old onesKeith Packard2012-07-11
| | | | | | | This makes sure that changing version numbers doesn't leave old compiled output lying around. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: include targe SPI speed in get requestKeith Packard2012-06-27
| | | | | | | STM needs it to be provided when enabling the SPI device, so just fix AVR and cc1111 to do the same. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Clean up usage of port parametersKeith Packard2012-06-26
| | | | | | | | Make stm port parameters always be pointers; this avoids the confusion where some macros took '&port' and others took a bare 'port', and also unifies code to run on other processors in a consistent fashion. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Configure STM LCD driver for giant LCD digitsKeith Packard2012-06-21
| | | | | | These devices require static mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make stm-demo compile with new ao_data structureKeith Packard2012-05-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Switch stm-demo to HSE clock, add USBKeith Packard2012-04-14
| | | | | | | Requires that SB17 be soldered shut so that the MCO from the STlink CPU is available the target for HSE input. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make STM clock configuration per-product. Fix 32MHz CPU speedKeith Packard2012-04-09
| | | | | | | | | | This moves all of the STM clock configuration into ao_pins.h so that each product can configure it separately. While doing this, I discovered that the flash memory mode (64-bit, prefetch, latency 1) wasn't actually getting set, which is why the CPU refused to work at 32MHz. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Test I2C code on discovery board.Keith Packard2012-04-09
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Show temperature in stm-demoKeith Packard2012-04-07
| | | | | | Use the ADC to show current temperature Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add ADC tests to stm-demoKeith Packard2012-04-07
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Shuffle stm-demo SPI test code around a bitKeith Packard2012-04-06
| | | | | | | | | Move a debug printf beyond the chip select boundary to allow for more accurate timing. Send four bytes instead of just one. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add DMA, SPI and MS5607 driversKeith Packard2012-04-06
| | | | 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>
* Use new Makefile.defs in stm-demoKeith Packard2012-03-28
| | | | 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>
* 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 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>
* 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 stm-demo programKeith Packard2012-03-28
This runs AltOS and talks over the serial port. Signed-off-by: Keith Packard <keithp@keithp.com>