summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* ao-tools/ao-flash-stm: Use openocd instead of st-utilsKeith Packard2017-03-05
| | | | | | | 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>
* ao-tools/ao-flash-lpc: Adapt to current openocd LPC supportKeith Packard2017-03-02
| | | | | | | | | | | | | 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>
* telemini outline svg had wrong version numberKeith Packard2017-03-01
|
* Add initial TeleMini v3 docsKeith Packard2017-03-01
| | | | | | Uses pictures of the prototype. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/nucleo-32: Update lisp files, add beeper supportKeith Packard2017-02-20
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lisp: Not quite ready to start making it look like scheme yetKeith Packard2017-02-20
| | | | | | Lots more code to write before these symbols can be exposed. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Support timer 2/3 for the beeperKeith Packard2017-02-20
| | | | | | Tested on timer 2, all four channels. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Support tim1 beeper channel other than 3Keith Packard2017-02-20
| | | | | | ch1 was broken and ch2 didn't have any code at all. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telemini-v3.0: Add beeper defines needed for more general beeper codeKeith Packard2017-02-20
| | | | | | The beeper code now wants to know which timer, port and pin are in use. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add stm-vga demo projectKeith Packard2017-02-20
| | | | | | Uses the VGA and PS/2 drivers to provide an interactive console. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Add draw and lisp to make search paths.Keith Packard2017-02-20
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add console driver using VGA and PS/2Keith Packard2017-02-20
| | | | | | Provides an interactive text console. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add PS/2 keyboard driverKeith Packard2017-02-20
| | | | | | Interrupt driven, includes standard US keymap. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add VGA driver for STM32L processorsKeith Packard2017-02-20
| | | | | | | Generates vsync/hsync using timers and pixel data using the SPI port. 320x240 video using 640x480 mode and a 24MHz "pixel" clock. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add bitmap drawing codeKeith Packard2017-02-20
| | | | | | Includes solid fills, text and lines. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Add nvic priority register fields. Add more TIM234 defines.Keith Packard2017-02-20
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Make i2c code handle PCLK1 of 24MHzKeith Packard2017-02-20
| | | | | | Just adds the necessary defines to the code. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Allow DMA channels to be hijacked by other codeKeith Packard2017-02-20
| | | | | | | This lets code which needs finer control over DMA to use the channel without interference, and leaves the DMA engine running so that it can. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Allow for console to be used for stdioKeith Packard2017-02-20
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: Avoid warning about unused args in stdio_put and stdio_getKeith Packard2017-02-20
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Allow use basepri instead of primask for masking interruptsKeith Packard2017-02-20
| | | | | | | | | | | | This allows for high priority interrupts (priority 0) to run, even when other interrupts are blocked. Code executing in such interrupt handlers must not attempt to control task execution as that will race with the scheduler. Select this by defining AO_NONMASK_INTERRUPT in ao_pins.h. non-maskable interrupt priority is AO_STM_NVIC_NONMASK_PRIORITY Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Interrupt priority is in the upper bits of the priority maskKeith Packard2017-02-20
| | | | | | | | | | Because the STM32L only offers 16 priority levels, the bottom four bits of each priority mask are not used. All of the interrupt priority settings in the system were using values < 16, making them all effectively the same. Fix that by moving them into the upper 4 bits and using symbolic constants everywhere. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Don't wait while idle if trying to minimize interrupt latencyKeith Packard2017-02-20
| | | | | | | | Keeping the scanout running reasonably means keeping interrupt latency constant, and that requires leaving the CPU running. Don't wait for interrupts when the system is running in this mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-usbload: Pad image with 0xff instead of random bitsKeith Packard2017-02-20
| | | | | | | | Clear the temporary block to 0xff before copying in the target data so that any unused bytes end up being left at 0xff instead of inheriting whatever data was in the block before. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/cc1111: Remove unneeded initialization in ao_timer.cKeith Packard2017-02-20
| | | | | | | | The timers are all stopped when the chip boots, so no need to stop them. This saves some text space, allowing the current code to (just barely) fit. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add TeleMini v3 supportKeith Packard2017-02-20
| | | | | | | | eeprom, telemetry and monitor idle. This is just like TeleMini v2, except the ADC ranges are all difference as the voltage dividers are different and the ADC itself has a different range. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telemini-v3.0: Swap main and apogee sense pins.Keith Packard2017-02-20
| | | | | | These were just hooked up wrong in the software. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Split out TeleMini v3 log/telem labelingKeith Packard2017-02-20
| | | | | | | Allow the ground software to know which TeleMini version is in use, even though they are very similar with only ADC values differing. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telemini-v3.0: Finish initial turn-onKeith Packard2017-02-20
| | | | | | | TeleMini v3.0 is nearly working; there are some ADC issues still, and lots of altosui work left to decode the new telemetry packet. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telemini-v3.0: Update to second prototype versionKeith Packard2017-02-20
| | | | | | | | Separate radio xtal means we run the processor at 48MHz. Fix the battery monitoring voltage divider resistor values. Disable most of the code until we've got the radio working. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Initial TeleMini v3.0 codeKeith Packard2017-02-20
| | | | | | For first prototype, which attempted to use the SoC clock for the radio. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Add adc and beep support for TeleMini v3.0Keith Packard2017-02-20
| | | | | | | Note that the ADC code is running very slowly as required by the high impedance dividers on the TeleMini v3.0 pyro circuits. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Require SPI speed to be declared for cc1200Keith Packard2017-02-20
| | | | | | | The cc1200 can't run SPI faster than 10MHz, so make sure every device picks a SPI clock slower than that. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Allow applications to define LEDs for ao_report.cKeith Packard2017-02-20
| | | | | | In case they don't have both a red and green LED. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Allow projects to not use the USB boot loaderKeith Packard2017-02-20
| | | | | | Let applications define HAS_BOOT_LOADER on their own if desired. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Complain if the SPI configuration isn't completeKeith Packard2017-02-20
| | | | | | | | If the pin usage values SPI_1_PA5_PA6_PA7 or SPI_1_PB3_PB4_PB5 aren't defined, then the speed values for the pins aren't going to get set correctly, which results in erratic SPI behaviour. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Allow apps to leave interrupt vectors at 0Keith Packard2017-02-20
| | | | | | | | TeleMini v3.0 doesn't need a boot loader, so we'll have the app run its interrupt vector right at the bottom of the address space instead of copying it to the bottom of ram and reconfiguring the chip to use that. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-bringup: test-chaoskey needs to use the SerialNumber dmesg lineKeith Packard2017-02-20
| | | | | | | | I had a locally hacked kernel which was reporting the serial number along with the device name. Instead of depending on that, just look for the regular SerialNumber report which is in all kernel versions Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-bringup: Allow serial number on turnon_easymega cmdlineKeith Packard2017-02-20
| | | | | | This makes it a bit quicker to do a batch of them. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Eliminate printf format warning with long vs intKeith Packard2017-02-20
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/chaoskey: use both halves of the CRCKeith Packard2017-02-20
| | | | | | | | When pulling 16 bits from the 32-bit crc, instead of just using the low bits, xor the two halves together. This appears to even out the number of zero and one bits. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lisp: Start adding scheme symbolsKeith Packard2017-02-20
| | | | | | Migrating to something more like scheme Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lisp: Add casts to keep the latest GCC from whingingKeith Packard2017-02-20
| | | | | | Something about alignment issues. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lisp: Tell compiler that the two lisp memory pools are alignedKeith Packard2017-02-20
| | | | | | | Otherwise, it will generate unaligned accesses to things fetched from them. Sigh. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lisp: Clean up hanoi.lisp demo a bitKeith Packard2017-02-20
| | | | | | No serious changes. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lisp: Move stack recursion check after null checkKeith Packard2017-02-20
| | | | | | Don't crash when printing null stack this way. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lisp: Include memory stats for test programKeith Packard2017-02-20
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lisp: Cleanup some DBG definesKeith Packard2017-02-20
| | | | | | Get rid of the remaining duplicate defines. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lisp: Share binary search for memory chunk between mark and moveKeith Packard2017-02-20
| | | | | | Save some text space. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lisp: Add builtin 'collect'Keith Packard2017-02-20
| | | | | | Collect memory, return amount free. Signed-off-by: Keith Packard <keithp@keithp.com>