Commit Graph

26 Commits

Author SHA1 Message Date
Juanjo Gutiérrez cffd3ba283 fix warning with strncpy on newer GCC versions
strncpy should not be called with a "length" parameter which is based on
the source string since it negates the benefits of using strncpy. this
patch fixes the warning for linux, macosx and rtems

Fixes #346
Change-Id: Ib2fb7637e9845545e4c15045e6be7c7ce8e0672b
2019-10-18 15:31:57 +02:00
Andreas Karlsson 5c71c281fc VxWorks, calculate tick receive timouts from systick, fixes #310 2019-06-12 14:50:38 +02:00
Andreas Karlsson 49810a5adf VxWorks: Remove usage of muxTkSend, improve abandoned frame handling. bugfix for msgQRecv return value, add cleanup on NIC close 2019-05-24 13:58:41 +02:00
Marc Butler 812403783c Add port to macOS (#286)
* Port to macOS

This port to macOS is an amalgam of the existing Linux and Win32
ports. Consequently code is duplicated from each in this port:
primarily from win32 in oshw, and Linux is osal.

Synthesizing a shared common posix port, did not seem warranted given
the modest amount of code, and stable api.

This port uses the default pcap interface provided in the development
libraries shipped with XCode.

Limited testing on os releases: 10.13 and 10.14.

* fix possible race condition as for win32

See aed0f81724

* fix spelling as for linux / win32

See 7beba91c62
2019-05-15 07:35:31 +02:00
Claudio Scordino 29df9ba013 Add ERIKA Enterprise RTOS support
This patch adds support to SOEM for the ERIKA Enterprise RTOS
(erika-enterprise.com).

Current requirements for running SOEM on ERIKA RTOS:
 - x86-64 platform with 2+ cores
 - Xen hypervisor
 - Intel i210 PCIe Ethernet controller

Signed-off-by: Claudio Scordino <claudio@evidence.eu.com>
Signed-off-by: Luca Cuomo <l.cuomo@evidence.eu.com>
2019-05-10 08:43:18 +02:00
Andreas Karlsson aed0f81724 Remove possible racecondition of set buf EMPTY 2019-04-01 09:50:14 +02:00
Claudio Scordino 7beba91c62 Fix typos in comments.
No functional changes.
2019-02-04 13:56:11 +01:00
wanga 0a67e6bf94 Fix race condition in rxbufstat (#200) 2018-08-23 07:36:56 +02:00
wanga 2e165bee41 Protect against priority inversion for linux (#194)
Set priority inheritance for mutex
2018-08-07 18:00:30 +02:00
Nikolaos Tsiogkas 94217505df Move to RTEMS 5 and don't build tests for RTEMS 2018-07-06 11:33:22 +02:00
Nick Tsiogkas 3cc1e9739e Integrate SOEM with RTEMS 2018-01-23 17:07:59 +01:00
mizoguch-ken 1903d1ff54 fix warnings and fix error (#128) 2017-09-18 08:06:12 +02:00
Hans-Erik Floryd da7d55e893 Enable and fix warnings (#123)
* cleanup CMakeLists.txt

* build with more warnings, warnings as errors

* fix expression has no effect warning

* fix unused parameter warnings

* fix loss of precision warning

* remove obsolete files
2017-08-16 13:48:51 +02:00
Mikael Heden 15e7748198 Move license information to LICENSE file (#95)
OK
2017-03-29 07:16:44 +02:00
HolgerNie cf76625f4c Update nicdrv.c (#87)
For the new network cards we need also to set mBlkPktHdr.len.
2017-03-14 14:47:13 +01:00
nakarlsson addb1204b4 vxworks
Add VxWorks reference driver, interrupt driven Mux driver.
2017-01-10 11:55:23 +01:00
nakarlsson 8a8ec824a3 Removed TAB 2016-05-14 15:17:33 +02:00
nakarlsson 4dd1401698 Add condition that frame must med _TX to be marked as RCVD 2016-05-14 15:16:45 +02:00
Hans-Erik Floryd 725ddea4cd fix file encodings 2016-02-16 14:01:08 +01:00
Hans-Erik Floryd bec50c277a add extern "C" to all header files 2016-02-16 13:35:19 +01:00
strongly-typed 7cf93a6efb Typos.
allways -> always
recieved -> received
resend -> resent
stuct -> struct
etries -> entries
broaddcast -> broadcast
timouts -> timeouts
optimalisation -> optimisation
mulitple -> multiple
2016-02-16 12:47:07 +01:00
Albert Hofkamp 5239968d0d Remove trailing whitespace. 2015-11-04 13:02:33 +01:00
Mikael Heden 77da52b89d Change to cmake build system 2015-07-09 17:57:59 +02:00
nakarlsson 6afd2f50cc SOEM 1.31 RC 2015-03-11 21:45:16 +01:00
nakarlsson f1404964e8 Added osal_task creation via task spwan, added fec driver for Freescale MAC FEC/ENET
Added osal_task creation via task spwan,
Added fec driver for Freescale MAC FEC/ENET
2015-03-08 17:27:00 +01:00
Mikael Heden 7472dae1a2 Added SOEM 1.3 (hg: a02cedcbdca5) 2014-11-25 16:10:29 +01:00