Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated RX portable layer for backward compatibility #1182

Merged
merged 2 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions source/portable/NetworkInterface/RX/NetworkInterface.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ void prvLinkStatusChange( BaseType_t xStatus );

/*-----------------------------------------------------------*/

NetworkInterface_t * pxRX_FillInterfaceDescriptor( BaseType_t xEMACIndex,
NetworkInterface_t * pxInterface );
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE != 0 )
NetworkInterface_t * pxRX_FillInterfaceDescriptor( BaseType_t xEMACIndex,
NetworkInterface_t * pxInterface );
#endif

/* Function to initialise the network interface */
BaseType_t xRX_NetworkInterfaceInitialise( NetworkInterface_t * pxInterface );
Expand Down Expand Up @@ -136,6 +138,14 @@ NetworkInterface_t * pxRX_FillInterfaceDescriptor( BaseType_t xEMACIndex,
return pxInterface;
}

#if ( ipconfigIPv4_BACKWARD_COMPATIBLE != 0 )
NetworkInterface_t * pxFillInterfaceDescriptor( BaseType_t xEMACIndex,
NetworkInterface_t * pxInterface )
{
return pxRX_FillInterfaceDescriptor( xEMACIndex, pxInterface );
}
#endif

/***********************************************************************************************************************
* Function Name: xRX_NetworkInterfaceInitialise ()
* Description : Initialization of Ethernet driver.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ void test_prvCheckRxData_URG_On( void )
TEST_ASSERT_EQUAL( 4, result );
}

/* Test for prvStorexData function. */
/* Test for prvStoreRxData function. */
void test_prvStoreRxData_Happy_Path( void )
{
int32_t result;
Expand Down Expand Up @@ -827,7 +827,7 @@ void test_prvStoreRxData_Happy_Path( void )
TEST_ASSERT_EQUAL( 0, xResult );
}

/* Test for prvStorexData function. */
/* Test for prvStoreRxData function. */
void test_prvStoreRxData_Wrong_State( void )
{
int32_t result;
Expand Down Expand Up @@ -859,7 +859,7 @@ void test_prvStoreRxData_Wrong_State( void )
TEST_ASSERT_EQUAL( 0, xResult );
}

/* Test for prvStorexData function. */
/* Test for prvStoreRxData function. */
void test_prvStoreRxData_Zero_Length( void )
{
int32_t result;
Expand Down Expand Up @@ -901,7 +901,7 @@ void test_prvStoreRxData_Zero_Length( void )
}


/* Test for prvStorexData function. */
/* Test for prvStoreRxData function. */
void test_prvStoreRxData_Null_RxStream( void )
{
int32_t result;
Expand Down Expand Up @@ -938,7 +938,7 @@ void test_prvStoreRxData_Null_RxStream( void )
TEST_ASSERT_EQUAL( -1, xResult );
}

/* Test for prvStorexData function. */
/* Test for prvStoreRxData function. */
void test_prvStoreRxData_Negative_Offset( void )
{
int32_t result;
Expand Down Expand Up @@ -975,7 +975,7 @@ void test_prvStoreRxData_Negative_Offset( void )
TEST_ASSERT_EQUAL( 0, xResult );
}

/* Test for prvStorexData function. */
/* Test for prvStoreRxData function. */
void test_prvStoreRxData_None_Zero_Skipcount( void )
{
int32_t result;
Expand Down
Loading