- make "size" variables not reflecting hardware or protocol
uint32_t.
- change size_t to uint32_t to avoid conversion when compiling
on x64
- add excplcit typecaste for uint8_t and uint16_t that need it
due to integer promotion
- split assignment using macros and bitwise operations to avoid
imlicit conversion and need of explicit conversion.
- add excplicit typecast to htoe MACROs
GCC9 introduced an address-of-packed-member warning that triggers in
esc_coe.c. The issue is that a packed struct has an overall alignment
of 1, and taking the address of a member in a packed struct is not
guaranteed to have any particular alignment. However, in esc_coe these
structs are always overlayed on aligned memory so in practice there is
no problem.
Fix the problem by explicitly setting the minimum alignment for the
structs used in this manner. Also fix an instance where an unaligned
pointer was used but never dereferenced (by changing the type of the
pointer from uint32_t* to void*).
Set DPRINT macro to printf by default. Long term this should be in an
os-abstraction layer but currently that would only include this macro.
Also fix an instance of invalid DPRINT usage.
Fix#57