hal_mac_lld.c - added support for fixed link connection#83
hal_mac_lld.c - added support for fixed link connection#83vrsanskytom wants to merge 82 commits into
Conversation
remove calls to early_init and late_init for ArduPilot
Remove busy loop from timeout ISRs
add support for i2c_lld_reset
add support for i2c_lld_reset
support ALT bytes in XPI mode
support DMA-safe dummy data for send and receive
increase OTG stepping
add support for TIM8 and FDCAN handlers
git-svn-id: https://svn.code.sf.net/p/chibios/code/branches/stable_21.11.x@16211 085d63ac-f8f8-4fb4-a5e5-c089fd4f3ff4
…reas" This reverts commit b93470a.
git-svn-id: https://svn.code.sf.net/p/chibios/code/branches/stable_21.11.x@16229 085d63ac-f8f8-4fb4-a5e5-c089fd4f3ff4
git-svn-id: https://svn.code.sf.net/p/chibios/code/branches/stable_21.11.x@16230 085d63ac-f8f8-4fb4-a5e5-c089fd4f3ff4
….11.x@16212 085d63ac-f8f8-4fb4-a5e5-c089fd4f3ff4
needed to ensure we get DMA lock before the bus lock, so we don't deadlock with another device on the same bus
move up to HAL_ChibiOS level
this provides a mechanism to force release a mutex
if phy not detected then return false instead of halting
we want to init if networking is enabled
…the network interface
Bumps [requests](https://github.com/psf/requests) from 2.26.0 to 2.31.0. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](psf/requests@v2.26.0...v2.31.0) --- updated-dependencies: - dependency-name: requests dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [certifi](https://github.com/certifi/python-certifi) from 2021.5.30 to 2022.12.7. - [Release notes](https://github.com/certifi/python-certifi/releases) - [Commits](certifi/python-certifi@2021.05.30...2022.12.07) --- updated-dependencies: - dependency-name: certifi dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
andyp1per
left a comment
There was a problem hiding this comment.
Needs to conform to the way ChibiOS configures things
| maccr = ETH->MACCR; | ||
|
|
||
| /* Fixed link connection defined in board.h.*/ | ||
| #if !defined(BOARD_PHY_FIXED_LINK) |
There was a problem hiding this comment.
So I think what you need to do is add a config item to hal_mmc_lld.h, something like:
/**
* @brief <docs in here>
*/
#if !defined(STM32_MAC_PHY_FIXED_LINK) || defined(__DOXYGEN__)
#define STM32_MAC_PHY_FIXED_LINK FALSE
#endif
/**
* @brief <docs in here>
*/
#if !defined(STM32_MAC_PHY_FIXED_LINK_TYPE) || defined(__DOXYGEN__)
#define STM32_MAC_PHY_FIXED_LINK_TYPE LINK_100_FULLDUPLEX
#endif
and then adjust the source appropriately for these
There was a problem hiding this comment.
Thanks - I will ping the ChibiOS guys
|
@vrsanskytom Can you give an example of the connectivity here? Which switch are you testing this on? |
Sure, please take a look at following diagram, describing our board architecture. Onboard FMU is the device running on STM which is a subject of this issue. https://docs.airvolute.com/dronecore-autopilot/dcs2/.pilot-boards/dcs2.pilot-v-1.0/peripherals We are using ethernet switch from microchip KSZ family, but this will be common issue for all switches not mastered by STM. |
The goal of this PR is to support the case when STM32 MCU is connected through MII/RMII with fixed link parameters. For example, in more complex systems where FMU is connected directly to ethernet switch, which is not mastered by STM through MDIO bus. In this case, the link parameters are defined in board definition file.