Hans-Erik Floryd
f61e77a5d1
revert to 32-bit objd values
...
The size of the objd->value member was previously increased to 64-bit
to allow setting 64-bit default values. This may waste some (ROM)
memory as 64-bit values are somewhat uncommon, and the value can be
set from an application hook instead. Revert to 32-bit values.
Fix #59
2019-07-10 12:05:23 +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
Ilias Patsiaouras
38099d31ed
ecat control latch input selection and ecat reset request ( #56 )
...
* ecat port control common register initialization
2019-06-26 13:43:15 +02:00
Ilias Patsiaouras
576624fd70
fix build fail when FOE_READ_SUPPORTED is defined
2019-06-24 12:52:10 +02:00
Andreas Karlsson
e600a515c5
add support for legacy static PDO mapping
...
Add possibility to use static PDO mapping. Upgrade XMC43 bare-metal
example to SOESv3.0 and use the static mapping.
2019-05-09 15:43:07 +02:00
Andreas Karlsson
5770a66558
Update applications to SOES v3.0
2019-05-09 15:43:07 +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
Hans-Erik Floryd
14397b0575
add APP_setwatchdog
...
Add function to set watchdog count.
2019-05-09 15:43:07 +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
aa811ae2f4
add eoe to ecat_slv
2019-05-09 15:43:07 +02:00
Hans-Erik Floryd
675d3516fb
add options.h
...
Add a header file for setting default stack configuration
options. Options can be overriden by a user configuration file.
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
Andreas Karlsson
ef6e55a6e2
Return data type for SDOinfo for type array and return maxsub of index 0 for array and record, maxsub from object VAR
2019-04-04 15:07:26 +02:00
Hans-Erik Floryd
1917a6f72b
fix infoerror abort code
...
The upper 16 bits of the infoerror abort code was invalid.
2019-04-04 15:07:26 +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
8abbbb1fb8
fail state change if SM2 overlaps SM3
...
Add a check to verify that SM2 does not overlap SM3.
2019-04-04 15:07:26 +02:00
Hans-Erik Floryd
c66a5efb32
fix access check when downloading to RxPDO or TxPDO
...
The access type field is a bitfield and may have additional bits
set. Use only read/write permission bits to verify access.
2019-04-04 15:07:26 +02:00
Hans-Erik Floryd
45f5c616ca
remove unused state variable
2019-04-04 15:07:26 +02:00
Hans-Erik Floryd
bdb212942b
fix rt-kernel build
2019-04-04 15:07:26 +02:00
Andreas Karlsson
830a7fb394
Add define for TRUE/FALSE, needed include is missing in the AM335x TI BSP
2019-02-18 08:26:24 +01: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
rtlaka
c08f90bb82
Acknowledge mailbox read by master on SM1 event instead of SM Status IntR
2018-02-19 11:17:31 +01:00
rtlaka
8711eb5968
Add support for tiesc, hal is created for tieschw, tiescbsp provided by TI
2018-02-12 20:03:08 +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
magnjo
56a4dbf247
FoE EOF/file length detection. ( #35 )
...
* * Add length argument to FoE write_function().
* FOE_fclose() always call FoE write_function().
* Increment patch version.
2017-12-09 14:52:33 +01:00
rtlaka
e27c903b9d
add support for XMC DAVE toolchain
2017-11-23 07:46:59 +01:00
rtlaka
6bb5aa643b
pass AL event mask to interrupt worker function
2017-11-07 08:43:56 +01:00
rtlaka
62772dd688
add support for gcc atomic operations
2017-10-30 09:50:30 +01:00
rtlaka
39fb2c91e7
added new xmc irq sample and adopted old samples
2017-10-30 09:50:30 +01:00
rtlaka
59d38dca2c
add rt-kernel xmc4 hal, support SM/DC sync
2017-10-25 19:13:54 +02:00
rtlaka
06c2c30890
add eeprom pdi SII Configuration area struct
2017-10-25 14:43:17 +02: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
7e380b671c
add counting total size of received file
2017-10-25 13:58:55 +02:00
rtlaka
036fb47dc3
Put a brief license info in source files and bump version
2017-10-25 13:39:20 +02:00
Hans-Erik Floryd
23d689dc63
Feature/travis ( #30 )
...
* fix build warnings
* cmake build fixes and linux build files
* add travis build file
2017-10-25 11:13:47 +02:00
DonBit
eda5a1dc76
Add lan9252 for Linux ( #28 )
...
- Add kernel device driver
drivers/linux/lan9252
- Add lan9252 file for linux
applications/linux_lan9252demo
soes/hal/linux-lan9252
- Fix linux compatibility for cc.h
#ifdef __linux__
2017-10-15 15:50:50 +02:00
DonBit
deb4d3743f
byte_offset data type change ( #26 )
...
uint8_t byte_offset range(0~255) can not be expressed when process data length is 255 or more.
2017-08-30 10:18:39 +02:00
Hans-Erik Floryd
9d54476330
Normalize line endings ( #27 )
...
* add .gitattributes
* normalize line endings
2017-08-18 17:01:54 +02:00
nakarlsson
39e2e116d0
Handled framgmented SDO rely
...
We need to trigger the application protocol handlers if we got any
ongoing transfers
2017-05-11 08:22:43 +02:00
nakarlsson
98a5106683
Add support for XMC4800
...
Add support for XMC4800
2017-01-20 14:49:25 +01: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
db428e77eb
fixed byteorder
2016-09-15 14:21:18 +02:00
Sascha Ittner
31f390bca0
added xmc4 HAL driver
2016-09-15 14:21:18 +02:00
Sascha Ittner
24bdcc5c98
added ESC side eeprom emulation
2016-09-15 14:21:18 +02:00
Sascha Ittner
2ee5d244c8
fixed ESC_read/ESC_write return type
2016-09-15 14:21:18 +02:00
Sascha Ittner
64abcf0cc5
Cleanup of ALevent update stuff in HAL, update ALevent var directly.
2016-09-15 14:19:11 +02:00
Mikael Heden
a53868daec
Fix bug when the number of PDO subindexes is 255
...
The problem was that for (sic = 1; sic <= si; sic++) never terminates if
si = 255 (number of subindexes) since sic was a uint8_t.
2016-08-19 16:19:06 +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
Daniel Udd
5553e356a4
FOE: Fixes last package in FOE transfer equals zero.
2015-11-26 10:24:41 +01:00
Daniel Udd
81b83b4324
Removes condition that slave should be in boot strap mode when using FoE.
...
Adds error code to FOE_abort debug print out.
2015-11-03 11:29:05 +01:00
Daniel Udd
c2a131aafb
Fix ESC_read so that all bytes are read for mailboxes larger than 128 bytes.
2015-09-21 18:12:25 +02:00
Hans-Erik Floryd
d6011bd76c
fix esc_hw relative include path
2015-05-27 12:06:08 +02:00
Hans-Erik Floryd
904d5671ba
use relative include path
2015-05-25 16:53:49 +02:00
Hans-Erik Floryd
90dd109af6
fix endian conversion
2015-05-25 16:53:19 +02:00
Hans-Erik Floryd
02cb5c79e2
Use ATYPE_RO
...
Accesstypes ro and rw are defined in the ESI schema.
2015-05-25 11:48:58 +02:00
Hans-Erik Floryd
cf58419815
make include subfolder of soes for easy including in other projects
2015-05-21 11:39:12 +02:00
Hans-Erik Floryd
1a490c5eb8
use HAL (no os required)
...
Also make HAL a subdirectory of soes for easy including of soes sources
in other projects
2015-05-21 11:11:16 +02:00
Hans-Erik Floryd
d860e938fe
remove workbench-specific project files
2015-05-21 10:56:34 +02: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
a5ac194e2c
cleanup
2015-05-21 10:13:06 +02:00
Hans-Erik Floryd
4abe6e0f6c
remove nil, use the standard NULL
2015-05-21 10:12:45 +02:00
Hans-Erik Floryd
308fedfafc
update demo application
2015-05-20 13:15:49 +02:00
Hans-Erik Floryd
b133bc7f97
add compiler abstraction header
2015-05-20 13:13:54 +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
d0a7447117
cmakeify
2015-05-13 17:02:43 +02:00
Hans-Erik Floryd
6b9aa5a343
decouple stack from application
2015-05-13 17:02:01 +02:00
Hans-Erik Floryd
a5ce11ea9a
add compiler abstraction header
2015-05-13 17:02:01 +02:00
Hans-Erik Floryd
ee3eb5e4d7
remove generated files
2015-05-13 17:02:00 +02:00
Hans-Erik Floryd
df1718894a
Handle final empty packet
...
Handle the case where the master sends a final empty packet to indicate
end of transfer
2014-10-28 16:17:53 +01:00
Hans-Erik Floryd
6fbb2f7dae
CTT wants ABORT_UNSUPPORTED
2014-10-27 16:12:37 +01:00
Mikael Heden
fbe99a8ab7
Imported Arthur Ketels' SOES (hg: ea7f05102d58)
2014-09-12 16:01:33 +02:00