OpenEtherCATsociety / SOES

Simple Open Source EtherCAT Slave
Other
578 stars 249 forks source link

Update ESCvar.time in rt-kernel esc_hw worker loop to detect EEPROM write going idle #69

Closed nakarlsson closed 4 years ago

nakarlsson commented 4 years ago

Update ESCvar.time in rt-kernel esc_hw worker thread 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.

Currently there are no use-case requiring ESCvar.time in SM2 interrupts, so we move it from SM2 interrupt to low prio interrupt handler.