TrampolineRTOS / trampoline

Trampoline is a static RTOS for small embedded systems. Its API is aligned with OSEK/VDX OS and AUTOSAR OS 4.2 standards.
GNU General Public License v2.0
599 stars 263 forks source link

Spider: ethernet: fix ethernet issues and extend port usage #155

Closed valeriosetti closed 7 months ago

valeriosetti commented 7 months ago

This PR resolves 2 issues:

  1. It gives the user the possibility to select any TSN port between TSN0, TSN1 or TSN2 for Ethernet communication.

    • Previously this was supposed to work, but actually there were some parts for the initialization code which was hard-coded to TSN0, so not properly configuring TSN1/TSN2
    • Selection of the desired port should still be done at build time. There is no support for auto detection of the active one at runtime
  2. It solves an issue with L1 cache<->RAM alignement which can prevent the ethernet driver and examples to work properly