From 5c2e46de1ddd53539a7d97bd5c0b95d5cbc61244 Mon Sep 17 00:00:00 2001 From: Stefan Baltruweit Date: Fri, 27 Sep 2024 11:41:01 +0200 Subject: [PATCH] Fix CI spelling errors --- .github/.cSpellWords.txt | 2 ++ .../xilinx_ultrascale/x_emacpsif_physpeed.c | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/.cSpellWords.txt b/.github/.cSpellWords.txt index ed12e1e9c..319b2239e 100644 --- a/.github/.cSpellWords.txt +++ b/.github/.cSpellWords.txt @@ -247,6 +247,7 @@ DIVIDEBY DIVIDEDBY DLPSTATE DMAARBITRATION +DMAB DMABD DMABMR DMAC @@ -1562,6 +1563,7 @@ x xaxiemacif XCOL xemac +XEMACMAP xemacps XEMACPS xemacpsp diff --git a/source/portable/NetworkInterface/xilinx_ultrascale/x_emacpsif_physpeed.c b/source/portable/NetworkInterface/xilinx_ultrascale/x_emacpsif_physpeed.c index 820b26078..b4292600c 100644 --- a/source/portable/NetworkInterface/xilinx_ultrascale/x_emacpsif_physpeed.c +++ b/source/portable/NetworkInterface/xilinx_ultrascale/x_emacpsif_physpeed.c @@ -660,9 +660,9 @@ static uint32_t get_Realtek_phy_speed( XEmacPs * xemacpsp, return XST_FAILURE; } -#define LPA_IEEE_1000FD 0x0800 -#define LP5_IEEE_100BTXFD 0x0100 -#define LP5_IEEE_10BTFD 0x0040 +#define LPA_IEEE_1000 0x0800 +#define LP5_IEEE_100 0x0100 +#define LP5_IEEE_10 0x0040 #define MICREL_ID_KSZ9021 0x0161 #define MICREL_ID_KSZ9031 0x0162 #define MICREL_ID_KSZ9131 0x0164 @@ -869,7 +869,7 @@ static uint32_t get_Micrel_phy_speed( XEmacPs * xemacpsp, /* Check for high speed connection first */ XEmacPs_PhyRead( xemacpsp, phy_addr, IEEE_PARTNER_ABILITIES_3_REG_OFFSET, &status_speed ); - if( status_speed & LPA_IEEE_1000FD ) + if( status_speed & LPA_IEEE_1000 ) { FreeRTOS_printf( ( "Micrel PHY %s speed 1000Mbps\r\n", name_ptr ) ); return 1000; @@ -878,13 +878,13 @@ static uint32_t get_Micrel_phy_speed( XEmacPs * xemacpsp, { XEmacPs_PhyRead( xemacpsp, phy_addr, IEEE_PARTNER_ABILITIES_1_REG_OFFSET, &status_speed ); - if( status_speed & LP5_IEEE_100BTXFD ) + if( status_speed & LP5_IEEE_100 ) { FreeRTOS_printf( ( "Micrel PHY %s speed 100Mbps\r\n", name_ptr ) ); return 100; } - if( status_speed & LP5_IEEE_10BTFD ) + if( status_speed & LP5_IEEE_10 ) { FreeRTOS_printf( ( "Micrel PHY %s speed 10Mbps\r\n", name_ptr ) ); return 10;