summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Add --with parameters to configure for compiler selectionnew-stateKeith Packard2013-10-08
| | | | | | | | This allows the user to specify which compiler to use for each target CPU. Also checks to make sure the arm compiler supports -m0 and -m3 cpu type flags. The build now actually uses the specified compilers too. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: New GAS version requires flags in APSR assignmentKeith Packard2013-10-08
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Rename easymini-v0.1 to easymini-v1.0Keith Packard2013-10-07
| | | | | | The production boards are the same as the modified v0.1 boards Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc, altos/stm: ARM requires ISB after switching stack pointersKeith Packard2013-10-07
| | | | | | | This sticks a barrier in the CPU to prevent using the wrong stack register past the change. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Don't require an LED for ao_flightKeith Packard2013-10-07
| | | | | | EasyMini has no LEDs. Deal with it. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Set TeleMini v2.0 USB ID correctlyKeith Packard2013-09-19
| | | | | | Uses 0x0027 Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telemetrum-v2.0: Use red LED during boot timeKeith Packard2013-09-15
| | | | | | | If the LED is stuck on, then the board has failed to initialize, so use red instead of green as a warning indicator. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telemini-v2.0: Change initialization orderKeith Packard2013-09-15
| | | | | | Make sure busses are running before devices are initialized Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Stop copying cc1111 binaries to the altos/src dirKeith Packard2013-09-15
| | | | | | Just clutters up that directory. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add nanopeak-v0.1Keith Packard2013-09-15
| | | | | | The same as micropeak, just a few different pins Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move micropeak sources aroundKeith Packard2013-09-15
| | | | | | | | This sticks the micropeak sources in appropriate directories, rather than in the micropeak product directory so that they can be shared with future micropeak-style products. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Set tick value in new TeleMetrum v2 sensor packetsKeith Packard2013-09-05
| | | | | | Was getting left with the old value, which wasn't very useful Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Not all products have pins to control flash loaderKeith Packard2013-09-02
| | | | | | TeleGPS has no exposed pins for this function Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosui: Further AltosState transition workKeith Packard2013-08-31
| | | | | | | Parses most eeprom and telem records now; altosui updated to show from AltosState info. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telegps: Initialize logging systemKeith Packard2013-08-31
| | | | | | Otherwise, very little logging works Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch 'master' into new-stateKeith Packard2013-08-31
|\
| * altos/lpc: Add bits for building flash loadersKeith Packard2013-08-31
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Split EasyMini and TeleMini log formatsKeith Packard2013-08-29
|/ | | | | | | Same data, but EasyMini uses a 3.0V supply while TeleMini uses 3.3V, which changes the intepretation of all of the ADC values Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge remote-tracking branch 'origin/telemini'Keith Packard2013-08-28
|\ | | | | | | | | | | | | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com> Conflicts: src/core/ao_telemetry.c src/core/ao_telemetry.h Added both Mini and Metrum telemetry defines
| * altos: Don't use ao_data on cc1111 projectsteleminiKeith Packard2013-08-26
| | | | | | | | | | | | | | | | cc1111 ao_adc.c supplies the needed globals at this point, and linking both into the program leads to two different versions of each at different addresses (yay SDCC linker!) Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Make ao_wakeup reentrantKeith Packard2013-08-26
| | | | | | | | | | | | In case we end up invoking it from two places at once. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Check for MS5607 MISO low before sleepingKeith Packard2013-08-26
| | | | | | | | | | | | | | If the MISO line goes low before we manage to configure the interrupts, we'll miss it entirely unless we check the pin explicitly. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/telemini-v2.0: Add ao_exti.h depend. Init beeper and usb.Keith Packard2013-08-26
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Use %ld and %lu for MS5607 debug outputKeith Packard2013-08-26
| | | | | | | | | | | | The value are 'long', so use the right printf format. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/cc1111: Wake up non-ADC sensor code each timer tickKeith Packard2013-08-26
| | | | | | | | | | | | Make sure the MS5607 code gets told to sample every tick Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/cc1111: Leave pin interrupts completely disabled at init timeKeith Packard2013-08-26
| | | | | | | | | | | | | | Don't even turn in the PICTL bits as that seems to cause the chip to be unhappy. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Get telemini to copy current MS5607 state to ring.Keith Packard2013-08-26
| | | | | | | | | | | | | | The ADC code is responsible for actually inserting the non-ADC data into the ring, so do the copy there. Signed-off-by: Keith Packard <keithp@keithp.com>
| * cc1111: Hacky pin interrupt support. Only useful for TeleMini v2Keith Packard2013-08-26
| | | | | | | | | | | | This code is designed to support the MS5607 MISO interrupt bits. Signed-off-by: Keith Packard <keithp@keithp.com>
| * cc1111: Rework ADC configuration a bit, fix Tm V2 ADC usageKeith Packard2013-08-26
| | | | | | | | | | | | | | The Tm v2 ADC code was not actually fetching and storing the ADC conversion values. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Build more products by defaultKeith Packard2013-08-25
| | | | | | | | | | | | We keep creating more hardware... Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Changes required by cc1111 multi-spi supportKeith Packard2013-08-25
| | | | | | | | | | | | These drivers got missed Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/teletiny-v2.0: Support multiple SPI busses on CC1111Keith Packard2013-08-25
| | | | | | | | | | | | Needed for TeleMini v2.0 Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Add exti and spi to telemini-v2.0Keith Packard2013-08-25
| | | | | | | | | | | | No longer builds like this Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Make TeleMini v2.0 fitKeith Packard2013-08-25
| | | | | | | | | | | | Mash lots of storage locations and code around to shrink stuff down to size Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Add 64-bit subtractionKeith Packard2013-08-25
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Add 64x64 multiply. Test 64 ops for dest same as either sourceKeith Packard2013-08-25
| | | | | | | | | | | | | | The test change is to ensure that the destination may be one of the 64 bit sources. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Make 64x16 mul a bit fasterKeith Packard2013-08-25
| | | | | | | | | | | | the unsigned 32x32 multiply really does work, just use it Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Add 64-bit add/mul/shift for SDCCKeith Packard2013-08-25
| | | | | | | | | | | | | | | | SDCC doeesn't provide a native 64-bit type (sigh), so implement the minimal operations necessary for the MS5607 conversion routine. Signed-off-by: Keith Packard <keithp@keithp.com>
| * Initial TeleMini bitsKeith Packard2013-08-25
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm: Make sure we switch to MSI during timer initKeith Packard2013-08-28
| | | | | | | | | | | | | | Need to ensure that the CPU is actually using the MSI during timer init or all of the other clock changes won't work Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm: Remove stale timer definesKeith Packard2013-08-28
| | | | | | | | | | | | Stuff from when we weren't using systick Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm: Make sampling profiler work againKeith Packard2013-08-28
| | | | | | | | | | | | | | | | Disable the separate stack as that means we can't figure out the PC from the timer interrupt. Move ao_idle_loc after the interrupt release so that we see idle tasks correctly. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm: New compiler doesn't correctly build flash bits yetKeith Packard2013-08-28
| | | | | | | | | | | | Use /opt/cortex until we make the packaged one work Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Force u-blox to 9600 baud for nowKeith Packard2013-08-28
| | | | | | | | | | | | | | | | The Max-7 parts just aren't happy switching baud rates, managing only about half the time. Someday I'll figure out why, but until then, make things work by just leaving the chips at 9600 baud Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Add debugging to ublox GPS driverKeith Packard2013-08-28
| | | | | | | | | | | | | | | | The new max 7 parts seem to be unhappy about switching baud rates, so I've added a pile of debugging to help out. Some day, I'll figure out how to make them work, this code is being left in place to help with that. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Update time for next alarm each time a task is addedKeith Packard2013-08-28
| | | | | | | | | | | | | | | | Adding a task with a sooner timeout than existing alarm tasks was not correctly updating the time to fire the next alarm, causing tasks to be delayed by the wrong amount. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: TM v2 places the MMA6555 upside down compared to TmegaKeith Packard2013-08-28
| | | | | | | | | | | | Means we need to invert the data coming out to make it work Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/telemetrum-v2.0: Use 9600 baud for ubloxtelemetrum-v2.0Keith Packard2013-08-27
| | | | | | | | | | | | Something is up with the Max 7 Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/telemetrum-v2.0: Fix MMA6555 SPI pin assignmentKeith Packard2013-08-27
| | | | | | | | | | | | For TM v2.0, it's on PB 3-5, not PE13-15 Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Rename TeleMetrum v2.0 ADC sense membersKeith Packard2013-08-27
| | | | | | | | | | | | Use sense_a and sense_m instead of sense[2] Signed-off-by: Keith Packard <keithp@keithp.com>