File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472 Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -252,15 +252,15 @@ void ETH_halt(void)
252
252
EMAC -> CTL &= ~(EMAC_CTL_RXON_Msk | EMAC_CTL_TXON_Msk );
253
253
}
254
254
255
-
255
+ unsigned int m_status ;
256
256
257
257
void EMAC_RX_IRQHandler (void )
258
258
{
259
259
unsigned int cur_entry , status ;
260
260
261
- status = EMAC -> INTSTS & 0xFFFF ;
262
- EMAC -> INTSTS = status ;
263
- if (status & EMAC_INTSTS_RXBEIF_Msk ) {
261
+ m_status = EMAC -> INTSTS & 0xFFFF ;
262
+ EMAC -> INTSTS = m_status ;
263
+ if (m_status & EMAC_INTSTS_RXBEIF_Msk ) {
264
264
// Shouldn't goes here, unless descriptor corrupted
265
265
printf ("RX descriptor corrupted \r\n" );
266
266
//return;
@@ -275,7 +275,7 @@ void EMAC_RX_Action(void)
275
275
276
276
cur_entry = EMAC -> CRXDSA ;
277
277
278
- if ((cur_entry == (u32_t )cur_rx_desc_ptr ) && (!(status & EMAC_INTSTS_RDUIF_Msk ))) // cur_entry may equal to cur_rx_desc_ptr if RDU occures
278
+ if ((cur_entry == (u32_t )cur_rx_desc_ptr ) && (!(m_status & EMAC_INTSTS_RDUIF_Msk ))) // cur_entry may equal to cur_rx_desc_ptr if RDU occures
279
279
break ;
280
280
status = cur_rx_desc_ptr -> status1 ;
281
281
@@ -344,4 +344,4 @@ int ETH_link_ok()
344
344
if (mdio_read (CONFIG_PHY_ADDR , MII_BMSR ) & BMSR_LSTATUS )
345
345
return 1 ;
346
346
return 0 ;
347
- }
347
+ }
You can’t perform that action at this time.
0 commit comments