Ivo Houtzager
696141398c
Merge branch 'master' into master
2024-01-13 15:42:04 -08: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
8ebb78ea10
Enable SM3 interrupt for input only slave
...
Enable SM3 interrupt if the slave only got
inputs.
On PREOP_TO_SAFEOP do an intial write to SM3,
otherwise the SM3 will never occur since there
is no data present to read.
2022-09-27 18:16:22 +02:00
Lars Danielsson
69b1049970
Add support for Explicit Device Identification
...
Change-Id: Idbf636f37c02923d251742cc5f49ff1579eaebc6
2022-05-30 15:51:20 +02:00
iwoodsawyer
b3e2a0a2c1
Add HAL for Raspberry Pi / LAN9252
...
Add support for EtherCAT slave HAT with LAN9252 chip (like EasyCAT or
EtherC/EtherBerry) for Raspberry Pi using the BCM2835 library.
2021-08-31 13:40:21 +02:00
iwoodsawyer
563a7c823e
Fixes fifo range calculation
2021-05-12 22:06:29 -07:00
iwoodsawyer
d326e7a8fc
Fix fifo size calculation
2021-05-12 21:23:38 -07:00
iwoodsawyer
e2ec33b930
Fixes write/read pram functions
2021-05-12 16:07:09 -07:00
iwoodsawyer
c2c074191c
Fix missing fifo_size
2021-05-11 13:33:19 -07:00
iwoodsawyer
e3927de04e
Fixed ESC read/write pram functions
2021-05-11 13:23:33 -07:00
iwoodsawyer
a5f03c1bdd
Improved ESC read process data ram function
2021-05-11 12:44:07 -07:00
iwoodsawyer
e166eaa9e6
Add device emulation support
2021-05-07 16:17:13 -07:00
iwoodsawyer
652ce30cc6
Improved interrupt disable/enable functions
...
Improved emulation disable/enable functions
Removed EEP events from mask
Moved set SM2 events at state change in main
2021-05-05 22:14:04 -07:00
iwoodsawyer
64f52eea45
remove syncmode
2021-05-05 13:33:25 -07:00
iwoodsawyer
c68b511157
Disable device emulation during HW init
...
Set AL event mask during HW init
2021-05-05 12:20:24 -07:00
iwoodsawyer
fe0bebb5c2
Fix compilation issue
2021-04-30 10:28:11 -07:00
iwoodsawyer
9561e951bc
Add synchronization options
2021-04-29 14:39:41 -07:00
iwoodsawyer
89b0687e7c
Fix segmentation fault during parse arguments
2021-04-29 10:19:28 -07:00
iwoodsawyer
ba3ef2df6e
Add user configuration options for bcm2835 init
2021-04-28 21:36:15 -07:00
iwoodsawyer
a5aa19ca0e
Fix comment for reset
2021-04-28 16:21:05 -07:00
iwoodsawyer
4cea579ed9
Add comments in init function
2021-04-28 16:19:14 -07:00
iwoodsawyer
2d795a0013
Fix initialization of lan9252 using bcm2835 spi
2021-04-28 16:09:43 -07:00
iwoodsawyer
984b202163
Add diagnostics
2021-04-27 12:49:57 -07:00
iwoodsawyer
ff73a5cb45
Add app demo with raspberry pi
...
Fix hal compilation errors with raspberry pi
2021-04-27 12:46:53 -07:00
iwoodsawyer
6e5bea6968
Add hal for lan9252 using raspberrypi bcm2835 spi
2021-04-26 15:37:10 -07:00
Andreas Karlsson
8ff826c409
Update ESCvar.time in rtk esc_hw workerthread loop
...
ESCvar.time is used by emulated eeprom handler to
measure idle time, when enough time have elapsed the
write is assumed to be completed and the EEPROM RAM
buffer is flushed to FLASH.
fix #69
2019-10-07 16:51:06 +02:00
Andreas Karlsson
767c38b0b6
Let XMC4 BSPs configure and keep ECAT PHY in reset
...
Configure ECAT_PHY_RESET as a general purpose output in BSP
and set/keep PHYs in reset and let the EtherCAT slave
stack handle release/re-configure of PHY reset to correct
alternate function after EtherCAT block is released from
reset.
fix #68
2019-10-07 16:31:09 +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
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
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
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
rtlaka
8711eb5968
Add support for tiesc, hal is created for tieschw, tiescbsp provided by TI
2018-02-12 20:03:08 +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
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
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
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
31f390bca0
added xmc4 HAL driver
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
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