| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use a pull-up on telescience and tri-state input on telemetrum at boot
time. Enable logging by pulling the TM output low and enabling as an
output, disable by pulling the TM output high and switching back to
input mode.
Also, ignore pin state changes for 5 seconds at boot to give things a
chance to settle down.
Should work when both boards are powered up together.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Probably not the best plan to call printf from an interrupt handler.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Use the SPI chip select (SS) which is hooked to port B0.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
This can control an external recording device to log data only during ascent.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
This provides for redundant charges for either apogee or main.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
ATmega32u4 has only 2.5kB of ram, so check the output of the compiler
to make sure it will work.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
We've got ram for it at this point, and it's nice to have more data
from before boost detect.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
Adds list and delete commands, making them compatible with telemetrum
and telemini equivalents.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Remove interrupt debug variables, print channel number in ao_adc_dump.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
Note that SLEEP mode must be disabled or extra ADC interrupts occur,
which messes up saving ADC values to the right channel.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
Leave these disabled while processing stuff; otherwise we receive a
steady stream of them.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
| |
|
|
|
|
|
|
|
|
| |
We leave USB data lying around until called for, which results in
constant badgering if interrupts are enabled. Disable them until there
isn't any data left.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
| |
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
And it works too!
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
No serial output, just USB
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
As usual, the key is to know when to send 0-length IN and OUT
packets. Needs a bunch of cleanup, but it's working now.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Now that we have a usb driver, it's part of the build
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
Use the LED output pin to notice when avr-demo accidentally restarts
and print out an error message in that case.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
| |
Setting the stack pointer takes two instructions, so make sure we
don't get an interrupt in the middle of it. Let the restoration of
SREG set the interrupt flag as appropriate.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Some packets are flowing, although it's not working right.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
These are part of the ../src directory, I think
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Adapt ao_usb to new environment.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
This is working with output to the serial line
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Initializes the clock, configures STDIO to talk to the UART
Signed-off-by: Keith Packard <keithp@keithp.com>
|
| |
|
| |
|
|
|
|
|
|
| |
That's what Bdale has wired up in his test setup.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
The Teensy uses a 16MHz crystal, but TeleScience has an 8MHz crystal.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Test ADC inputs by adjusting the waveform using the ADC0 input.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Just demonstrating further features of the chip
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|\ |
|
| |
| |
| |
| |
| |
| | |
This reverts commit 514348055630edec12224c4b0964240b929759a3.
Looks like this was never a problem.
|
| |
| |
| |
| | |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
| |
| |
| |
| |
| |
| | |
Otherwise, we're heading off into the weeds...
Signed-off-by: Keith Packard <keithp@keithp.com>
|
| |
| |
| |
| |
| |
| | |
Needed to get sounds to come out
Signed-off-by: Keith Packard <keithp@keithp.com>
|
| |
| |
| |
| |
| |
| |
| | |
Make sure the serial pins are configured as peripherals
Make sure the ser_reset and bt_link pins are going the right direction.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
| |
| |
| |
| |
| |
| | |
It's available, let's use it.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
| |
| |
| |
| |
| |
| | |
This line resets the BT module if held low for three seconds.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
| |
| |
| |
| |
| |
| |
| | |
The prototype used P2_1, while the real hardware uses P1_7. Lots of
defines to make this work...
Signed-off-by: Keith Packard <keithp@keithp.com>
|
| |
| |
| |
| |
| |
| | |
It's just wired that way.
Signed-off-by: Keith Packard <keithp@keithp.com>
|