summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* altos/flash-loader: Check memory addresses against flash spaceKeith Packard2014-05-12
| | | | | | | | | | | 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>
* altos/stm: Use #define'd constants for GPIO register addressesKeith Packard2014-05-12
| | | | | | | 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>
* altos/stm: Figure out available flash space based on chip id registersKeith Packard2014-05-12
| | | | | | | 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>
* altos/stm: White space fix in ao_boot_pin.cKeith Packard2014-05-12
|
* altos/stm: Use flash address of boot loader instead of 0x0Keith Packard2014-05-12
| | | | | | | Flash is at 0x08000000, but when the chip boots, it can be at 0x0 as well. Use the 0x08000000 address when rebooting to flash Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Assume all LPC products will have 32KB of flashKeith Packard2014-05-12
| | | | | | | If we ever use something smaller than this, we'll need to figure out how to tell how much memory the device has. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Report amount of program space available in the version commandKeith Packard2014-05-12
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add LED test command to pca9922 driverKeith Packard2014-05-12
| | | | | | This lets you control the LEDs from the command line to test things. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Simplify quadrature trackingKeith Packard2014-05-09
| | | | | | | | | | | | Set the timer to 200Hz for a 5ms debounce interval. Then, simply look for transitions ending in both bits in the encoder being off, which indicates the the encoder is resting in a detent. If bit '2' is turning off, the encoder was rotated clockwise, otherwise the encoder was rotated counter clockwise. This is a lot more reliable, although still not perfect. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Clean up trailing whitespace in ao_pad.cKeith Packard2014-05-08
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix byte offsets in the mega AO_LOG_FLIGHT packetsKeith Packard2014-05-08
| | | | | | Just comments, but even those should be correct Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: ublox driver always offers course data when it has a fixKeith Packard2014-05-08
| | | | | | | Set the AO_GPS_COURSE_VALID bit to signal that this part of the GPS data is valid. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: 8051 64 * 16 multiply function was broken for negative 64-bitKeith Packard2014-05-08
| | | | | | It was jumping around the actual multiply when the 64-bit argument was negative. Signed-off-by: Keith Packard <keithp@keithp.com>
* relay control implemented, this project is now completeBdale Garbee2014-05-08
|
* first cut of usbrelay-v0.1 support .. LEDs wiggle, not switching relay yetBdale Garbee2014-05-08
|
* altos: Add configurable beep toneKeith Packard2014-05-02
| | | | | | | | | | This lets you directly set the mid-range beep tone; the high and low tones remain set off of that in the same ratio as before. Note that none of the cc1111 products get this feature as they don't have enough flash space anymore... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: For telelco discovery packets, retry 5 times with shorter timeoutKeith Packard2014-04-30
| | | | | | | | A timeout of 10ms is more than enough to receive a query packet, but if we miss it during device discovery, it's a pain, so retry 5 times to make sure we find everyone. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Switch beeping to farnsworth spacingKeith Packard2014-04-12
| | | | | | | Use 17wpm/12wpm farnsworth spacing for the state reports. Leave the numeric reports running slowly as those require counting. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add 'microwater' productKeith Packard2014-04-11
| | | | | | | This is a custom firmware spin for micropeak designed for use with water rockets that sets the boost detect altitude to 10m instead of 30m. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix nanopeak compileKeith Packard2014-04-06
| | | | | | | Nanopeak uses port B bit 3 for the LED instead of bit 4. Fix the async code to support arbitrary bits for the serial LED. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Provide stable binaries for MicroPeakKeith Packard2014-04-06
| | | | | | | | Publish MicroPeak .hex file to LLC repo and install it from there, rather than rebuilding it locally. This ensures that the installed bits don't depend on local configuration of any kind. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Replace C code attiny async output with inline asmKeith Packard2014-04-06
| | | | | | | Using inline asm instead of C ensures that compiler changes will not affect the timing of the serial data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Build TeleBalloon v2.0 by defaultKeith Packard2014-04-05
| | | | | | We're supporting this now, we might as well build it. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Report battery voltage instead of S at startupKeith Packard2014-04-05
| | | | | | | This works on everything with a beeper except TeleMetrum v1.0 which just doesn't have enough flash space for the code. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Rename 'core' to 'kernel'Keith Packard2014-04-05
| | | | | | | core remains a bad name to use -- dirvish skips files (and directories, it seems) with that name. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: HAS_LED is useless; remove itKeith Packard2014-03-28
| | | | | | | | | | | | ao_flight was trying to decide whether to turn off the red LED by checking whether HAS_LED was defined. And yet, none of the flight firmware defines that anymore, except for easymini which defines it to zero. Remove all uses and defines of this value, substituting AO_LED_RED in ao_flight.c, which has to be defined for the ao_led_off call to work. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add easymega firmwareKeith Packard2014-03-16
| | | | | | | A trimmed down TeleMega build with no radio or GPS, along with pin changes necessary for the device. 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>
* altos: Another missing usbtrng fileKeith Packard2014-03-09
|
* altos: Missing ao_pins files for usbtrngKeith Packard2014-03-09
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix LPC LED driverKeith Packard2014-03-09
| | | | | | Was using wrong types Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: fix building LPC serial support for STDIOKeith Packard2014-03-09
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Don't require projects to define PACKET_HAS_SLAVEKeith Packard2014-03-09
| | | | | | | Really, most don't need it, and whinging about not having it defined isn't useful. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add USB True Random Number Generator productKeith Packard2014-03-08
| | | | | | Just basic device support 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: Create balloon-specific load for TMv2 hardwareKeith Packard2014-02-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make balloon code run againKeith Packard2014-02-18
| | | | | | This fixes the balloon code so that it works with recent altos bits Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Set reasonable accel values when !HAS_ACCELKeith Packard2014-02-18
| | | | | | This lets us use telemetrum log and telemetry formats for balloons Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Expose ao_usb_running globallyKeith Packard2014-02-18
| | | | | | This lets other bits of the code know when USB has been connected. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move balloon flight code to coreKeith Packard2014-02-18
| | | | | | This lets us create more than one balloon product Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Put locked/unlocked GPS status in APRS commentsKeith Packard2014-02-09
| | | | | | | | | | | Replace the 'S' (which marks the field showing sats in view) with either 'L' or 'U' to tell the user whether the GPS receiver is locked or unlocked. This also removes the colons in the comment field to shorten it. This makes it fit on one line of my FT1D display. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Re-send previous GPS position in APRS if lock is lostKeith Packard2014-02-09
| | | | | | | | | APRS radios often show only the last received APRS packet, which means that erasing the last known GPS position when we lose lock by sending 0/0/0 is unhelpful. Instead, just send the last known position, and make sure that we send 0/0/0 before we're locked the first time. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fixup named ADC printingKeith Packard2014-02-08
| | | | | | Print all ADC values on one line when using named ADC values Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add needed math sources to TeleGPS v0.1 buildKeith Packard2014-02-08
| | | | | | APRS requires the logf function to report altitude. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Report nsat in view in APRS packetKeith Packard2014-02-08
| | | | | | | This adds the number of sats in view (as opposed to the number of sats in solution) to the APRS packet. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Don't write more than 12 sat infos in ublox driverKeith Packard2014-02-08
| | | | | | | This was overwriting memory past the end of the ao_gps_tracking_data array, which isn't a good idea. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Block interrupts while reprogramming flashKeith Packard2014-02-08
| | | | | | Wouldn't work well to get interrupted... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Enable system timer in flash loader and prod watchdog with itKeith Packard2014-02-08
| | | | | | | This makes it possible to reflash the board without needing to disable the watchdog. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Eliminate warnings in FAT codeKeith Packard2014-02-08
| | | | | | | The FAT file system code wasn't cleaned up when the warning fixes were done recently. Signed-off-by: Keith Packard <keithp@keithp.com>