summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| * altos/stmf0: leave ao_power_gpio names undefined without power managementKeith Packard2018-05-07
| | | | | | | | | | | | Should make it more obvious at compile time that you've done something wrong. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Add µPusb v3.0 projectKeith Packard2018-05-07
| | | | | | | | | | | | | | This replaces the ft230 with a stm32f04, saving a bit of BOM and giving us control over the firmware. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/test: Replace state name with 10* state value in test log. Fix raw speedKeith Packard2018-05-07
| | | | | | | | | | | | | | | | Using a state value means we can plot state changes along with the rest of the graph. Raw speed (simple integrated acceleration) was busted; mostly needing to skip the first accel sample. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Eliminate height requirement for coast detectKeith Packard2018-05-07
| | | | | | | | | | | | | | | | | | | | | | We had required a minimum altitude of 100m to transition from boost to coast. With small motors in a heavy multi-staged rocket, this can fail to detect coast in time to light the second motor. Also, this would fail to deploy recovery systems if the flight failed before reaching 100m. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/chaoskey-v1.0: Add endpoint for reading flash contentsKeith Packard2018-05-07
| | | | | | | | | | | | | | This creates another IN endpoint which provides the contents of flash for validation of the firmware load on the host. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stmf0: Fix up USB debug codeKeith Packard2018-05-07
| | | | | | | | | | | | | | At least make it compile. In this configuration, it's dumping out IN3 endpoint register values. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stmf0: Add IN3 alternate endpoint supportKeith Packard2018-05-07
| | | | | | | | | | | | This adds the code necessary to drive another IN endpoint. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stmf0: Toggle IN2 SW_BUF bit when sending dataKeith Packard2018-05-07
| | | | | | | | | | | | | | This tells the hardware we're done writing data to the second input buffer and allows it to be switched from NAK to VALID. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/kernel: Add USB descriptors for IN3Keith Packard2018-05-07
| | | | | | | | | | | | | | This adds the necessary descriptor information to support another IN endpoint for applications. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/kernel: Define usb IN2/IN3 functionsKeith Packard2018-05-07
|/ | | | | | | These are putchar and flush functions that are used when sending data to the additional IN2 and IN3 endpoints. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Set 0x0 mapping to Main Flash for boot loaderKeith Packard2018-05-01
| | | | | | | | | When DFU finishes loading firmware and jumps to the application, it leaves the mapping of addresses starting at 0x0 set to System flash, which prevents the boot loader from receiving interrupts and requires a power cycle during flash & cal. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: whitespace fixKeith Packard2018-05-01
| | | | | | Trailing whitespace. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Change tests for AO_BOOT_CHAIN and AO_BOOT_PIN to #ifKeith Packard2018-05-01
| | | | | | Were #ifdef, which meant that #define AO_BOOT_PIN 0 didn't work right. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox1ihu: Pull down radio control pin in flash loaderKeith Packard2018-04-26
| | | | | | Ensures that the radio is powered down while in the flash loader. Signed-off-by: Keith Packard <keithp@keithp.com>
* Remove ao_radio_cal from stm products without radiosKeith Packard2018-04-26
| | | | | | Products without a radio don't need this value. Signed-off-by: Keith Packard <keithp@keithp.com>
* had the sense backwards .. presence of 'attached' should put us in the loaderBdale Garbee2018-04-26
|
* move signal that forces flash-loader on to PB8, active highBdale Garbee2018-04-26
|
* altos: Build fox1ihu by defaultKeith Packard2018-04-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Enable system timer in flash loader and prod watchdog with itKeith Packard2018-04-26
| | | | | | | This makes it possible to reflash the board without needing to disable the watchdog. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Update ADC to fox-1 IHU Revision 2Keith Packard2018-04-26
| | | | | | Change ADC pin definitions to match new hardware. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Transition to current altos build environmentKeith Packard2018-04-26
| | | | | | Fix the library usage, use $(LIBS) instead of $(SAT_CLIB) -lgcc Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: update product name to show v2, enable watchdog by defaultKeith Packard2018-04-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Run app when PD6 is lowKeith Packard2018-04-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Add fox1ihu flash loaderKeith Packard2018-04-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Add MRAM and SD card driversKeith Packard2018-04-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Enable M25 driver for MRAM.Keith Packard2018-04-26
| | | | | | The M25 driver can also talk to the MRAM chip, with a few adjustments Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Add watchdog timerKeith Packard2018-04-26
| | | | | | Runs at 25Hz, can be enabled and disabled via the command line Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Turn on all of the fox lightsKeith Packard2018-04-26
| | | | | | Fox has two red and two green LEDs Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Provide names for fox ADC channelsKeith Packard2018-04-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Fix up Fox ADC bitsKeith Packard2018-04-26
| | | | | | Update to current schematic Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Initialize FOX adcKeith Packard2018-04-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: rename fox productBdale Garbee2018-04-26
| | | | It's Fox1IHU-v1 now
* altos/fox: Add fox1ihu bringup firmwareKeith Packard2018-04-26
| | | | | | Firmware capable of testing fox1ihu hardware Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/flash-loader: On STM, don't include ao_usb_disableKeith Packard2018-04-26
| | | | | | This saves a bit of space, keeping the flash loader under 4k on fox Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Use max of 64 previous orient values when checking pyro limitsKeith Packard2018-04-26
| | | | | | | | | Instead of checking just a single measurement to see if the orientation is outside of the desired limits, use the maximum of 64 previous values to that rapidly changing orientation won't accidentally enable a pyro channel if sampled at the 'wrong time'. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Simplify ao_usb_write a bitKeith Packard2018-04-26
| | | | | | | Remove unnecessary 'offset' param (was always passed zero). This also makes some code conditional on that value no longer necessary. Signed-off-by: Keith Packard <keithp@keithp.com>
* add a warning about Google limiting per-day access until/unless we payBdale Garbee2018-04-22
|
* altos: Hack up code for TeleMetrum to make it just a trackertmgpsKeith Packard2018-03-23
| | | | | | | Support for a failed TeleMetrum device that uses just the GPS receiver and radio to create a TeleGPS-compatible device called 'tmgps'. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/ao_cc1120: Only call ao_packet_slave_stop when HAS_SLAVEKeith Packard2018-03-23
| | | | | | | Don't try to disable packet slave mode when the product doesn't support packet slave mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Add some common definitions for flash loadersKeith Packard2018-03-16
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make panic beeps use fixed frequenciesKeith Packard2018-03-16
| | | | | | | This ensures that the beeps will work even before the configuration has been loaded. Signed-off-by: Keith Packard <keithp@keithp.com>
* chaoskey: Create unified ROM image with both loader and appKeith Packard2018-03-16
| | | | | | | Flash the whole thing all at once to reduce the number of steps during turnon. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/scheme: Move ao-scheme to a separate repositoryKeith Packard2018-01-10
| | | | | | This way it can be incorporated into multiple operating systems more easily. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/scheme: Allow unicode in lexerKeith Packard2018-01-08
| | | | | | | This just passes any bytes with the high bit set through the system so programs can include UTF-8 in strings and symbols. What the heck. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lambdakey-v1.0: Add LED function back inKeith Packard2018-01-07
| | | | | | We've made things smaller, so there's (barely) space for this now. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/scheme: remove debug code from vector writeKeith Packard2018-01-07
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/scheme: Allow individual lisp keywords to be feature-conditionalKeith Packard2018-01-07
| | | | | | | This lets us build a smaller lisp that is just missing some aliases for existing functionality to save rom space. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/scheme: Split tests out from build sourcesKeith Packard2018-01-07
| | | | | | Run tests on both tiny and full scheme test programs. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Use double buffering for ChaosKeyKeith Packard2018-01-07
| | | | | | | This improves the USB performance of ChaosKey so that it doesn't NAK during data transfers at all. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: use double buffering for USB rx dataKeith Packard2018-01-07
| | | | | | This also allows us to stop shadowing USB rx buffers in system ram Signed-off-by: Keith Packard <keithp@keithp.com>