ardupilot/libraries/AP_IOMCU
Thomas Watson d554ade7ce AP_IOMCU: match thread stack pointer types to ChibiOS
`__main_thread_stack_base__` and `__main_thread_stack_end__` are
variables whose address is defined to be the corresponding part of the
stack. These are declared as `extern stkalign_t` in ChibiOS code, and
being declared as `extern uint32_t` in ArduPilot code creates a warning
at link time when using LTO. Correct the declaration to eliminate this
warning.

Also update `__main_stack_base__` and `__main_stack_end__` which don't
currently trigger this warning but serve similar purposes and so might
in the future.

The hardware expects an alignment of `stkalign_t` (which is 8 bytes) and
the linker script defines the variable values with this alignment as
well, so this is safe.

No code size or functional change.
2024-01-16 09:24:34 +11:00
..
iofirmware AP_IOMCU: match thread stack pointer types to ChibiOS 2024-01-16 09:24:34 +11:00
AP_IOMCU.cpp AP_IOMCU: fix occasional startup internal errors with mixing 2023-12-24 14:39:05 +11:00
AP_IOMCU.h AP_IOMCU: treat register_write() as a successful interaction 2023-12-18 19:02:52 +11:00
fw_uploader.cpp AP_IOMCU: use crc32_small() in AP_IOMCU 2019-10-28 15:53:16 +11:00