Keith Packard [Sun, 6 Nov 2022 23:31:50 +0000 (15:31 -0800)]
samd21: Macro-ize the DMA register settings a bit
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 6 Nov 2022 23:12:33 +0000 (15:12 -0800)]
snekboard: Need DMA for SPI now.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 6 Nov 2022 23:11:31 +0000 (15:11 -0800)]
samd21: Use DMA for SPI send
Appears to work even
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 6 Nov 2022 23:10:31 +0000 (15:10 -0800)]
samd21: Fix value defines to be unsigned long
This makes the compiler happy
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 6 Nov 2022 23:09:55 +0000 (15:09 -0800)]
samd21: Avoid divides in boot loader
The divide code is huge and overflows flash.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 6 Nov 2022 23:08:56 +0000 (15:08 -0800)]
samd21: Fix up DMA driver
Surprisingly few changes, just some function signatures and a few bit
twiddles.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 6 Nov 2022 23:07:46 +0000 (15:07 -0800)]
altos: Add metro-m0 port for SAMD21G18 testing
Useful as a test target
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 6 Nov 2022 04:05:13 +0000 (21:05 -0700)]
samd21: Configure ROM/RAM values per device and provide linker scripts for each
SAMD21 has 4-32k of RAM and 32-256K of ROM
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 6 Nov 2022 03:53:23 +0000 (20:53 -0700)]
This is what I'm using locally for flashing samd21 parts
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 5 Nov 2022 22:18:27 +0000 (15:18 -0700)]
snekboard: Add samd21 SPI test function
Just sends 'hello'
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 23 Oct 2022 23:33:28 +0000 (16:33 -0700)]
altos: Get SAMD21 SPI driver working in non-DMA mode
Only sercom0, and only with fixed pin configurations
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Sat, 29 Oct 2022 03:49:16 +0000 (21:49 -0600)]
Merge branch 'samd21' of ssh://git.gag.com/scm/git/fw/altos into samd21
Keith Packard [Mon, 26 Sep 2022 00:34:56 +0000 (17:34 -0700)]
altos/snekboard: Indicate that USB is used for stdio
This isn't the default for some reason?
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 26 Sep 2022 00:34:11 +0000 (17:34 -0700)]
altos/samd21: Automatically erase flash when writing
Need to erase pages before writing them.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 26 Sep 2022 00:33:09 +0000 (17:33 -0700)]
altos/samd21: Get USB driver working in AltOS
Make sure it deals with the stdio mux, enable the clock for the GPIO
device.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 26 Sep 2022 00:32:35 +0000 (17:32 -0700)]
altos/samd21: Add register definitions
This adds symbols for all of the device registers.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 26 Sep 2022 00:31:27 +0000 (17:31 -0700)]
ao-tools: Add ao-flash-samd21 script
This takes an .elf or .ihx file and flashes that to a SAMD21 based
board using openocd. Note that you must have a hacked version of
OpenOCD for this to work via the ST-link device.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 25 Sep 2022 20:57:08 +0000 (13:57 -0700)]
altos: Add sample samd21 application for snekboard
This runs a primitive application and flash loader on snekboard for
samd21 development.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 25 Sep 2022 20:55:43 +0000 (13:55 -0700)]
altos: Add SAMD21 bits
Brought back from snek, these bits provide Altos support for the Atmel
SAMD21 family of chips.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 25 Sep 2022 20:55:04 +0000 (13:55 -0700)]
altos: Use --gc-sections
This allows the linker to discard unused functions.
Don't use -ffunctions-sections and -fdata-sections as that eliminates
several optimization opportunities and increases code size.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 25 Sep 2022 20:54:24 +0000 (13:54 -0700)]
altos: Switch LED pin number to 8 bits
This assumes each port has fewer than 256 pins and avoids some
compiler warnings
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 23 Oct 2022 23:48:05 +0000 (16:48 -0700)]
altos: Increase AES IV buffer to hold maximum AES state
The compiler emits warnings if this buffer is only 16 bytes. I'm hoping
that's because the max key size could be 256 bits instead of 128 bits?
In any case, this makes the compiler happy.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Sun, 16 Oct 2022 03:40:50 +0000 (21:40 -0600)]
first stab at support for TeleMetrum v4.0
Keith Packard [Mon, 26 Sep 2022 00:34:56 +0000 (17:34 -0700)]
altos/snekboard: Indicate that USB is used for stdio
This isn't the default for some reason?
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 26 Sep 2022 00:34:11 +0000 (17:34 -0700)]
altos/samd21: Automatically erase flash when writing
Need to erase pages before writing them.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 26 Sep 2022 00:33:09 +0000 (17:33 -0700)]
altos/samd21: Get USB driver working in AltOS
Make sure it deals with the stdio mux, enable the clock for the GPIO
device.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 26 Sep 2022 00:32:35 +0000 (17:32 -0700)]
altos/samd21: Add register definitions
This adds symbols for all of the device registers.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 26 Sep 2022 00:31:27 +0000 (17:31 -0700)]
ao-tools: Add ao-flash-samd21 script
This takes an .elf or .ihx file and flashes that to a SAMD21 based
board using openocd. Note that you must have a hacked version of
OpenOCD for this to work via the ST-link device.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 25 Sep 2022 20:57:08 +0000 (13:57 -0700)]
altos: Add sample samd21 application for snekboard
This runs a primitive application and flash loader on snekboard for
samd21 development.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 25 Sep 2022 20:55:43 +0000 (13:55 -0700)]
altos: Add SAMD21 bits
Brought back from snek, these bits provide Altos support for the Atmel
SAMD21 family of chips.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 25 Sep 2022 20:55:04 +0000 (13:55 -0700)]
altos: Use -ffunction-sections -fdata-sections
This allows the linker to discard unused functions.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 25 Sep 2022 20:54:24 +0000 (13:54 -0700)]
altos: Switch LED pin number to 8 bits
This assumes each port has fewer than 256 pins and avoids some
compiler warnings
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 24 Sep 2022 22:54:20 +0000 (15:54 -0700)]
easymini: Elide symbols from combined .ihx file
Also add combined hex file to easymini v1.0 for testing.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 24 Sep 2022 22:53:04 +0000 (15:53 -0700)]
ao-elftohex: Add '-n' option to elide symbol table from output
The symbol table is a non-standard Altus Metrum hex file extension;
add this option to allow use with standard hex file tools.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 19 Sep 2022 16:20:23 +0000 (09:20 -0700)]
easymini-v3.0: Create combined .ihx file for testing
This doesn't set the serial number, so it's not useful for production,
but it should at least provide an easy way to check a board.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 19 Sep 2022 16:09:04 +0000 (09:09 -0700)]
ao-elftohex: Allow multiple elf files to be merged together
This allows combining the flash loader and core firmware.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 19 Sep 2022 15:37:31 +0000 (08:37 -0700)]
doc: Update call sign
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 5 Sep 2022 04:05:47 +0000 (21:05 -0700)]
altos: Document easymotor record length
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 5 Sep 2022 04:05:25 +0000 (21:05 -0700)]
ao-eeprom: Add easy motor support
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 5 Sep 2022 04:04:28 +0000 (21:04 -0700)]
altoslib: Replace EasyMotor v2 code with v3
No v2 boards remain in usable condition and we didn't create a new log
format value for v3, so just replace the v2 code with v3.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 30 May 2022 00:50:47 +0000 (17:50 -0700)]
Version 1.9.11
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 30 May 2022 00:48:01 +0000 (17:48 -0700)]
doc: Update copyrights to 2022
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 30 May 2022 00:47:41 +0000 (17:47 -0700)]
doc: Add release notes for 1.9.11
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 30 May 2022 00:46:43 +0000 (17:46 -0700)]
doc: Document 10mw limit configuration
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 20 May 2022 23:20:13 +0000 (16:20 -0700)]
src: Add easymini-v3.0
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 20 May 2022 23:20:32 +0000 (16:20 -0700)]
lpc: Make beeper configurable
Need to set the port, pin, timer and channel values
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 20 May 2022 23:41:19 +0000 (16:41 -0700)]
lpc: ADC 5 was busted
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 5 May 2022 00:06:36 +0000 (17:06 -0700)]
ao-tools/ao-eeprom: Dump converted info for F packets
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Tue, 12 Apr 2022 17:13:44 +0000 (11:13 -0600)]
doc: add an appendix with examples for configurable pyro channels
Bdale Garbee [Thu, 7 Apr 2022 04:51:13 +0000 (22:51 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Tue, 5 Apr 2022 23:55:06 +0000 (17:55 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Tue, 5 Apr 2022 23:54:32 +0000 (17:54 -0600)]
use correct test script for v1.0 easymega
Keith Packard [Mon, 4 Apr 2022 21:40:37 +0000 (14:40 -0700)]
telegps-v0.3: Reduce stack size to fit in ram
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 Feb 2022 00:10:30 +0000 (16:10 -0800)]
ao-telem: Read from stdin if no filenames
Make ao-telem work as a filter if no filenames are passed on the
command line.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Mon, 4 Apr 2022 07:22:04 +0000 (01:22 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Sat, 26 Feb 2022 05:11:17 +0000 (22:11 -0700)]
dial it down a bit more to not exceed +10 dBm, or 10 mW
Keith Packard [Fri, 25 Feb 2022 23:43:15 +0000 (15:43 -0800)]
Allow TX power to be limited to 10mW
This allows the radio power to be limited so that it doesn't generate
more than 10mW.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 21 Feb 2022 17:40:07 +0000 (09:40 -0800)]
Version 1.9.10.4
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 21 Feb 2022 17:43:54 +0000 (09:43 -0800)]
altos: Document how delay_done is used in ao_pyro.c
delay_done is the time at which the delay finishes, but non-zero
values also indicate that some delay is pending. Add a comment about
why the value is set to 1 when it is zero, and switch the tests of
this value to comparisons against zero.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 19 Feb 2022 23:35:31 +0000 (15:35 -0800)]
altos: Deal with 8-character version numbers
With 8 characters, the version number isn't null-terminated, so we
need to limit use to the available length in a couple of places.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 17 Feb 2022 05:48:01 +0000 (21:48 -0800)]
altos: Add -Wconversion
This adds the -Wconversion flag to detect potential mistakes in
implicit type conversion.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 17 Feb 2022 05:46:57 +0000 (21:46 -0800)]
altos/telemega-v5.0: Add casts to beep values
Need to be careful with types to make sure the math doesn't overflow.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 17 Feb 2022 05:46:07 +0000 (21:46 -0800)]
ao_lco_v2: Add casts to reduce -Wconversion warnings
No bugs identified
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 17 Feb 2022 05:44:52 +0000 (21:44 -0800)]
ao_lco_v2: Use int32_t for temporary box value in step_box
Stepping to the next box will generate negative values and values
beyond the highest box number. Use a type capable of holding all of
those values, instead of int16_t.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 17 Feb 2022 05:42:50 +0000 (21:42 -0800)]
telefireone-v1.0: Use a boolean value for ao_log_running
Instead of reading a hex value and saving it directly, use
zero/none-zero to compute a boolean instead, avoiding a type
conversion warning.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 17 Feb 2022 05:41:44 +0000 (21:41 -0800)]
altos/telefire: Add cast to AO_LED_CONTINUITY to eliminate -Wconversion warning
All of these products had the same warning.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 17 Feb 2022 05:38:25 +0000 (21:38 -0800)]
altos/stmf0: Add casts to reduce -Wconversion warnings. Use AO_TICK_TYPE
No bugs identified. Serial timeout types updated to AO_TICK_TYPE.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 17 Feb 2022 05:34:37 +0000 (21:34 -0800)]
altos/stm32l0: Add casts to reduce -Wconversion warnings
No bugs identified
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 17 Feb 2022 05:32:07 +0000 (21:32 -0800)]
altos/stm: Add casts to reduce -Wconversion warnings
No bugs identified
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 17 Feb 2022 01:53:41 +0000 (17:53 -0800)]
ao_micropeak.c: Add casts to reduce -Wconversion warnings
No bugs identified
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 17 Feb 2022 01:53:11 +0000 (17:53 -0800)]
ao_flash_task: Add casts to reduce -Wconversion warnings
No bugs identified
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 17 Feb 2022 01:52:11 +0000 (17:52 -0800)]
altos/micropeak-v2.0: Add casts to reduce -Wconversion warnings
No bugs identified
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 17 Feb 2022 01:49:42 +0000 (17:49 -0800)]
altos/lpc: Add casts to reduce -Wconversion warnings
Most of these were caused by int/long mixes as uint32_t is 'long' on
arm for reasons, meaning that bare int constants need to be cast to
avoid a warning.
No bugs identified.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 17 Feb 2022 01:38:56 +0000 (17:38 -0800)]
ao_tracker: Fix tracker_interval type to match config type (plus -Wconversion)
config.tracker_interval is uint8_t, so make the local copy match that
type.
Also fix other warnings found by -Wconversion.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 17 Feb 2022 01:36:12 +0000 (17:36 -0800)]
ao_telemetry: Add casts to reduce -Wconversion warnings
No bugs noted
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 17 Feb 2022 01:34:41 +0000 (17:34 -0800)]
ao_telemetry: Use int16_t types for telemetry packet intervals
This avoids concerns about overflow from int8_t types when computing
long intervals between packets as the base interface type was an
int16_t. This should help deal with higher sample rate sensors when
that occurs.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 23:49:48 +0000 (15:49 -0800)]
ao_telemetry: Switch time variables to AO_TICK_TYPE
This makes sure telemetry packet intervals are computed correctly.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 23:44:03 +0000 (15:44 -0800)]
ao_task: Task ids are 8-bits, fix type in struct ao_task
These are densely allocated and should never be larger than the
maximum number of task slots, so fix the type to be 8-bits just like
all other places where a task_id is used.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 23:40:19 +0000 (15:40 -0800)]
ao_serial: Change serial_sleep_for APIs to use AO_TICK_TYPE
These timeouts should all be short, but there's no reason to use a
different type.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 23:39:45 +0000 (15:39 -0800)]
kalman, report, romconfig, sample, send_packet: Clean up -Wconversion warnings
No bugs detected
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 23:35:18 +0000 (15:35 -0800)]
ao_monitor: Clean up -Wconversion warnings
No bugs detected
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 23:33:12 +0000 (15:33 -0800)]
ao_radio_cmac_cmd: Clean up types for -Wconversion
Use more reasonable types for lengths and the like to avoid
overflows. No actual bugs detected.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 23:31:09 +0000 (15:31 -0800)]
ao_radio_cmac: Make recv timeouts AO_TICK_TYPE
While these should generally be short enough to live in a 16-bit type,
use AO_TICK_TYPE for consistency.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 23:18:49 +0000 (15:18 -0800)]
ao_micro: Add casts to micropeak code for -Wconversion warnings
No bugs detected
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 23:12:47 +0000 (15:12 -0800)]
ao_log: Add casts to reduce -Wconversion warnings
No bugs noted here.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 23:11:07 +0000 (15:11 -0800)]
ao_log: Fix sensor time triggers to use AO_TICK_TYPE
These values were used to determine when various log information would
be recorded. Using the wrong type meant that they would always
trigger, causing the log to fill up rapidly with data that should be
sampled at a lower rate.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 23:10:06 +0000 (15:10 -0800)]
more 16-bit log tick values
Keith Packard [Fri, 28 Jan 2022 23:06:18 +0000 (15:06 -0800)]
ao_log: Change flight type to uint16_t, widen APIs dealing with flight numbers to int32_t
Real Flight numbers are 16-bit unsigned values, but APIs using them
pass values that areoverloaded to also represent broken log slots
using negative numbers. This means that these APIs need to be able to
represent all 65535 possible flight numbers *and* all possible log
slots as negative values. Switch the variables holding only flight
numbers to uint16_t and those holding either a flight number or log
slot to int32_t.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 23:00:38 +0000 (15:00 -0800)]
ao_gps, ao_log: Make conversions to 16-bit time log values explicit
All log formats record only the low 16-bits of the time value, make
conversions to those explicit to silence -Wconversion warnings.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 22:50:58 +0000 (14:50 -0800)]
ao_flight: ao_interval_end type was too small, could cause premature landing state
ao_interval_end is used to provide a window of time during which the
max/min values for sensors are measured. After that time expires,
those bounds are compared to see if the airframe has been stable and
should be moved to landing state. With a type that is too small, that
could happen immediately after transitioning to main (for baro-enabled
devices) or coast (for accel-only devices). For baro devices, this
would disable any redundant main firing events. For accel-only
devices, this could disable all events occuring after coast, including
firing separation charges or motor igniters.
There are also a couple of additional changes to reduce -Wconversion
messages.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 22:43:31 +0000 (14:43 -0800)]
ao_convert_pa: Switch array index to unsigned type
This seems more appropriate for this use.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 22:42:45 +0000 (14:42 -0800)]
ao_companion: Make motor_number uint16_t
Make it match the types used elsewhere
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 22:41:59 +0000 (14:41 -0800)]
fifo: Add casts to fifo operation macros for -Wconversion
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 22:41:10 +0000 (14:41 -0800)]
beep, cmd, config, convert_volt, data, distance, fec, kalman: -Wconversion warnings
No bugs noted, just adding casts to resolve -Wconversion warnings.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 22:15:42 +0000 (14:15 -0800)]
altos/ao_freq: Use uint32_t for radio freq setting value
These values are always unsigned; changing this resolves some
-Wconversion messages.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 22:13:53 +0000 (14:13 -0800)]
altos/ao_stdio: use uint8_t for stdio index
This makes type usage of this value consistent. Also fix another
-Wconversion warning.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 22:12:31 +0000 (14:12 -0800)]
altos: Switch ao_radio_recv timeout to AO_TICK_TYPE
Make sure all times are in the wider type.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 22:10:31 +0000 (14:10 -0800)]
drivers/ao_rn4678: Fix timeouts to use AO_TICK_TYPE
Also fix other -Wconversion messages.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 22:08:56 +0000 (14:08 -0800)]
drivers/ao_quadrature: Fix -Wconversion warnings
No bugs detected.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 28 Jan 2022 22:06:25 +0000 (14:06 -0800)]
drivers/ao_pad: Convert from/to 16-bit times over the air
The radio protocol sends only 16 bits of time, make sure we translate
from/to those correctly. No bugs detected, just casts added to
clarify. Also fix other -Wconversion warnings.
Signed-off-by: Keith Packard <keithp@keithp.com>