Commit Graph

10 Commits (2f4afb3230f8802a26a29b902c74912b834e7c91)

Author SHA1 Message Date
Andreas Karlsson 2f4afb3230 Fix Wconversion issues for clang
Add explicit uint16_t cast for EoE header SET macros.
Used for SET of FrameInfo 1 and FrameInfo 2.

Increase datatype for offset used by EOE_HDR_FRAME_OFFSET_GET.

Change debug print formatting to %u for unsigned datatypes.
2023-04-14 12:12:22 +02:00
Andreas Karlsson 0d232899bb Enable Wconversion for Linux
Enable Wconversion for Linux for CI
to be used as regression.

Fix esc_hw.c warnings by adding explicit
typecasts. The code is based on Microchip
reference code so keep changes to a minimal.
2023-03-28 22:43:57 +02:00
Andreas Karlsson 45d390a014 Fix esc_eoe Wconversion warnings
- make "size" variables not reflecting hardware or protocol
  uint32_t.

- 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
  implicit conversion and need of explicit conversion.
2023-03-28 21:18:14 +02:00
m-dema 66b040a257
Exit eoe receive function if buffer is not valid
If buffer is invalid the call to the subsequent memcpy will corrupt memory
2022-09-23 17:04:42 +02:00
m-dema c84a3ffb4d
Fix inconsistent function name
the function is different in header declaration (EOE_ecat_get_mac)
2021-05-06 17:05:46 +02:00
Andreas Karlsson 28e19f4f82 Don't always include optional IP parameter lengths
Obvious fix, the optional IP parameters length should
only be included in total length if they are included.

fixes #81
2020-08-16 11:32:25 +02:00
Hans-Erik Floryd f0a378382e redefine DPRINT macro
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
2019-07-10 12:05:23 +02:00
Andreas Karlsson 68427b6e1e EoE updates
- Add missing EoE include, make worker semaphore global to be able to
   trigger from application
 - Add an EoE fragment sent event callback
2019-05-09 15:43:07 +02:00
Andreas Karlsson 973b774ddf Prototype application for rt-kernel running lwIP and EoE 2019-01-24 17:51:06 +01:00
Andreas Karlsson e38301eb5c draft/concept EoE 2019-01-24 17:41:07 +01:00