Commit Graph

39 Commits (ff6be22c808a8914388c1abc9cba24202ce6cdeb)

Author SHA1 Message Date
Hans-Erik Floryd 097477035d Fix address-of-packed-member warnings
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*).
2021-10-26 09:36:04 +02:00
Lars Danielsson 48772707a6 Fix handling of large objects in SDO Upload with Complete Access
Change-Id: I64471e2ac1ac1865db43c48fd15b0e1d44651a66
2020-10-19 14:22:02 +02:00
Lars Danielsson c814d2dacf Allow the pre_object_upload_hook to modify size
Change-Id: Ia95a1e8e3ba7e6bde3286f4eb15f8ba7f0cb85b2
2020-10-19 14:21:09 +02:00
Lars Danielsson 177739b02d Fix missing include path
Change-Id: Icb3188babcac2124a0dd1d3c86a9686e6d98f647
2020-09-16 12:59:49 +02:00
Lars Danielsson 59728c994c Add option to skip default initialization
Change-Id: I08bad59fe5adbb616a9005570a153511738bee1e
2020-09-09 15:44:29 +02:00
Lars Danielsson 9a430287d1 Add error code FOE_ERR_CHECKSUM (0x800C)
Change-Id: Ic607fd3d93c10bfaae28102182434f6d59ab7734
2020-09-09 15:43:59 +02:00
Lars Danielsson e428008ea3 Add more SDO abort codes
Change-Id: I7855d8bf0c73ded816cc529c91216d12545a0d93
2020-08-12 13:35:09 +02:00
Lars Danielsson bdea958dd5 Add Download SDO Segment
Change-Id: I4748930d80c831947ff2d8b300ca590a4a67b84f
2020-08-12 13:33:37 +02:00
Lars Danielsson 81ff180e7e Add SDO Complete Access
Limitation: Download SDO Segment is not supported.

Change-Id: I74daccd2a2ce4cf9aa8bb1e46cf6ac1478d5bdd5
2020-07-07 13:11:49 +02:00
Lars Danielsson 2296b55812 Add/extend support for upload and download callbacks 2020-06-22 15:01:06 +02:00
Ilias Patsiaouras 75a5514430 Feature/add al status code definitions (#60)
Add AL Status code definitions
2019-06-27 07:19:20 +02:00
Hans-Erik Floryd d204255ad3 update objecthandler and hooks
Replace isCA with a set of flags to hold more data.

The pre_object_download_hook should return a COE abort code which is
an unsigned 32-bit value.
2019-05-09 15:43:07 +02:00
Hans-Erik Floryd 236a02bfb4 add hook for setting default values
Add set_defaults_hook to let application override default values.
2019-05-09 15:43:07 +02:00
Hans-Erik Floryd 55df56821a use options.h for config
Simplify configuration by using options.h directly.
2019-05-09 15:43:07 +02:00
Hans-Erik Floryd e27b6bcbb1 move globals to ecat_slv 2019-05-09 15:43:07 +02:00
Hans-Erik Floryd 5b33b077ca add support for dynamic pdos
Add support for dynamic pdos, i.e. pdos that can be configured by the
EtherCAT master.
2019-05-09 15:43:07 +02:00
Andreas Karlsson 6fb665a701 Update App to use new DC checks, set error function, SM watchdog, fixed EEPROM delayed write and move generic slave functionallity to generic SOES 2019-05-09 15:43:07 +02:00
Andreas Karlsson ca48f9db21 Move DC config to the applications 2019-05-09 15:43:07 +02:00
Andreas Karlsson 446b79d456 Add function to enter state with error 2019-05-09 15:43:07 +02:00
Hans-Erik Floryd 15e976f58e do not pack ESCvar
ESCvar contains stack state data and does not need to be packed.
2019-04-04 15:07:26 +02:00
Hans-Erik Floryd 45f5c616ca remove unused state variable 2019-04-04 15:07:26 +02:00
Andreas Karlsson e38301eb5c draft/concept EoE 2019-01-24 17:41:07 +01:00
rtlaka ba3716ba52 Only read SM Status and Activate in the dedicated function for that purpose 2018-01-31 12:31:48 +01:00
rtlaka 39fb2c91e7 added new xmc irq sample and adopted old samples 2017-10-30 09:50:30 +01:00
rtlaka 879bfa034c Add macro support for MSVC like packed 2017-10-25 14:41:07 +02:00
rtlaka 148cdba265 Add IRQ with SM/DC sync0 support 2017-10-25 14:38:38 +02:00
rtlaka 7715a2fffd extend esc_config for generic stack configuration 2017-10-25 14:31:30 +02:00
rtlaka 036fb47dc3 Put a brief license info in source files and bump version 2017-10-25 13:39:20 +02:00
nakarlsson 224811122e add support and sample project for LAN9252
Add support and sample project for running SOES from a rt-kernel based
host CPU with LAN9252
2017-01-11 16:30:24 +01:00
Sascha Ittner 64abcf0cc5 Cleanup of ALevent update stuff in HAL, update ALevent var directly. 2016-09-15 14:19:11 +02:00
ArthurKetels 10c7f5191f Bugfix against latest CTT 2.0.34
Fixed various big endian conversions. MBX error behaviour adapted to
specification
2016-01-27 22:14:36 +01:00
Hans-Erik Floryd 1dd230f742 use C99 types 2015-05-21 10:42:10 +02:00
Hans-Erik Floryd fa7a68381e remove FLASHSTORE 2015-05-21 10:21:37 +02:00
Hans-Erik Floryd 308fedfafc update demo application 2015-05-20 13:15:49 +02:00
Hans-Erik Floryd 134d2eb20b clean license headers 2015-05-20 11:47:50 +02:00
Hans-Erik Floryd c68888e40b Breakout configuration settings 2015-05-19 10:46:35 +02:00
Hans-Erik Floryd 6fb9c84107 use cc.h 2015-05-18 16:54:09 +02:00
Hans-Erik Floryd 6b9aa5a343 decouple stack from application 2015-05-13 17:02:01 +02:00
Mikael Heden fbe99a8ab7 Imported Arthur Ketels' SOES (hg: ea7f05102d58) 2014-09-12 16:01:33 +02:00