altos/lpc: Add casts to reduce -Wconversion warnings
authorKeith Packard <keithp@keithp.com>
Thu, 17 Feb 2022 01:49:42 +0000 (17:49 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 17 Feb 2022 01:49:42 +0000 (17:49 -0800)
commite80a45c1565b14479e3a4cfc968d49b13cef4fe0
treedacbddcc32ab3dd1215303192cf6084adb075e97
parentf2c02cac5442015fee14f88ee016c687c53d8576
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>
src/lpc/ao_adc_lpc.c
src/lpc/ao_arch_funcs.h
src/lpc/ao_beep_lpc.c
src/lpc/ao_exti_lpc.c
src/lpc/ao_flash_lpc.c
src/lpc/ao_serial_lpc.c
src/lpc/ao_spi_lpc.c
src/lpc/ao_timer_lpc.c
src/lpc/ao_usb_lpc.c
src/lpc/lpc.h