| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
| |
Instead of trying to get things into the ring from a variety of
functions, go back to the simpler method of storing them in globals
and having the ADC code just pluck out the most recent values.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
Now that the baro sensor appears to be working, try running
conversions in parallel to see if that makes the accel cal happy
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
This should avoid an accidental low->high transition when switching
between multiple SPI busses.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
Make sure none of the pin configurations are being used at startup
time. Split out the pin configuration into separate functions.
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>
|
|\ |
|
| |
| |
| |
| |
| |
| | |
These were disabled to help with testing in Argonia
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|/
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
|
| |
MS5611 and MS5607 use slightly different conversion functions. Alas,
there doesn't appear to be a way to tell them apart in software. This
patch adds the necessary conversion changes and makes them depend on a
compile-time configuration option.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
This improves the computation of the table enough that errors from a
470 entry table are almost all < 0.5m.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Set the driver source path for the debugger
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
|
| |
Trying to use 8-bit counts is a nice optimization which fails when the
count is larger than 255, as is the case with clearing the flash block
in the AT45 driver. This bug resulted in the inability to erase
flights on TeleMetrum v1.0 boards.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Query for available firing nodes, limiting device selections to those found.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
And make debugging a run-time option too.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Counting from 0 to 100 takes 10.1ms, so count to 99 instead.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Mark which should be on for TX and which for RX
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
| |
Record the time after the packet was sent, but before the return
packet arrives to try and more closely approximate the time the packet
arrived at the other end.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
These just shuffle the various definitions of data macros around to
make the include files more sensible looking.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Move it below the definition of the ms5607 init function
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
The define for a missing MS5607 was wrong, so anything using the fancy
multi-sensor data code would break without an MS5607 in place.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
These were left in a debug mode, toggling instead of flashing.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
PWM bits not suitable for master
This reverts commit e93c6bcc799d76d4ff425815e2601a25e6796229.
|
|
|
|
|
|
| |
PWM bits not suitable for master
This reverts commit 49b1ff4c614d24977b33cd17b583acc87acff476.
|
|
|
|
|
|
| |
PWM bits not suitable for master
This reverts commit 75d6aa6f798606f1a6c5a46542065dda81e63b2a.
|
|
|
|
|
|
| |
PWM bits not suitable for master
This reverts commit ada6f2dfc045e77cb9499f20cdec1b4a54ef0db1.
|
|
|
|
|
|
| |
This appears to drive the chip correctly to see values from the accelerometer.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
It's on PE13-PE15, not PA5-PA7
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Make it easier to tell which component is failing self test
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
The SPI radio defines are in ao_radio_spi.h
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Clean up the git status output
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
|
| |
Pull LCO functions shared between LCO UI and command line into
ao_lco_funcs.c.
Import bits for telelco.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
The SPI link uses port 0; it seems like the having the two try to
share the same wires is a bad plan.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
|
|
| |
This changes how the SPI radio protocol uses the interrupt
line. Instead of a pulse indicating operation done, this now uses a 0
value for done and a 1 value for ready. The key distinction is that
the master can tell when the slave is waiting for the next command
instead of hoping that it got done 'soon enough'.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Igniter status is an array these days.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
Stop using the older single-channel protocol and switch to the new
multi-channel protocol
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
Keep a sequence number to mark when the AES key is changed so that the
radio code can avoid sending the key before every CMAC radio operation.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
SPI send double buffered, so the DMA completes one byte too early. Use
the recv DMA to know when the SPI transfer is complete.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
git add doesn't add Makefile by default.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
| |
This includes long delays to avoid overrunning the cc1111 input,
otherwise it works pretty well. The delays mean that we can't capture
the reply to a cmac command though, so more work is needed.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Just temporary debugging
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
This seems to make the STM32L152 happier
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Make the debug output build again.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
The radio_cmac debug commands use the same letter, and this code works now...
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
These are useful in the firing node for testing as well, so move them
to be shared.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
|
| |
We look at the out_done value, but not the in_done value; if we use
the radio DMA for out, we would have to use ao_radio_dma_done to check
for completion. This way, we can ignore that value and use the
existing ao_aes_dma_out_done value.
Signed-off-by: Keith Packard <keithp@keithp.com>
|