Skip to content

Commit 5c2e46d

Browse files
committed
Fix CI spelling errors
1 parent 60a7f1c commit 5c2e46d

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/.cSpellWords.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ DIVIDEBY
247247
DIVIDEDBY
248248
DLPSTATE
249249
DMAARBITRATION
250+
DMAB
250251
DMABD
251252
DMABMR
252253
DMAC
@@ -1562,6 +1563,7 @@ x
15621563
xaxiemacif
15631564
XCOL
15641565
xemac
1566+
XEMACMAP
15651567
xemacps
15661568
XEMACPS
15671569
xemacpsp

source/portable/NetworkInterface/xilinx_ultrascale/x_emacpsif_physpeed.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -660,9 +660,9 @@ static uint32_t get_Realtek_phy_speed( XEmacPs * xemacpsp,
660660
return XST_FAILURE;
661661
}
662662

663-
#define LPA_IEEE_1000FD 0x0800
664-
#define LP5_IEEE_100BTXFD 0x0100
665-
#define LP5_IEEE_10BTFD 0x0040
663+
#define LPA_IEEE_1000 0x0800
664+
#define LP5_IEEE_100 0x0100
665+
#define LP5_IEEE_10 0x0040
666666
#define MICREL_ID_KSZ9021 0x0161
667667
#define MICREL_ID_KSZ9031 0x0162
668668
#define MICREL_ID_KSZ9131 0x0164
@@ -869,7 +869,7 @@ static uint32_t get_Micrel_phy_speed( XEmacPs * xemacpsp,
869869
/* Check for high speed connection first */
870870
XEmacPs_PhyRead( xemacpsp, phy_addr, IEEE_PARTNER_ABILITIES_3_REG_OFFSET, &status_speed );
871871

872-
if( status_speed & LPA_IEEE_1000FD )
872+
if( status_speed & LPA_IEEE_1000 )
873873
{
874874
FreeRTOS_printf( ( "Micrel PHY %s speed 1000Mbps\r\n", name_ptr ) );
875875
return 1000;
@@ -878,13 +878,13 @@ static uint32_t get_Micrel_phy_speed( XEmacPs * xemacpsp,
878878
{
879879
XEmacPs_PhyRead( xemacpsp, phy_addr, IEEE_PARTNER_ABILITIES_1_REG_OFFSET, &status_speed );
880880

881-
if( status_speed & LP5_IEEE_100BTXFD )
881+
if( status_speed & LP5_IEEE_100 )
882882
{
883883
FreeRTOS_printf( ( "Micrel PHY %s speed 100Mbps\r\n", name_ptr ) );
884884
return 100;
885885
}
886886

887-
if( status_speed & LP5_IEEE_10BTFD )
887+
if( status_speed & LP5_IEEE_10 )
888888
{
889889
FreeRTOS_printf( ( "Micrel PHY %s speed 10Mbps\r\n", name_ptr ) );
890890
return 10;

0 commit comments

Comments
 (0)