Changeset 379 for asp3_tinet_ecnl_arm


Ignore:
Timestamp:
Apr 9, 2019, 7:51:56 PM (5 years ago)
Author:
coas-nagasima
Message:

勝手に追加したPromiscuous Modeが機能していないのを修正

Location:
asp3_tinet_ecnl_arm/trunk/asp3_dcre
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • asp3_tinet_ecnl_arm/trunk/asp3_dcre/mbed/targets/TARGET_RENESAS/TARGET_RZA1XX/ethernet_api.c

    r374 r379  
    275275    }
    276276
     277    /* Promiscuous Mode */
     278    if (ETHERECMR0 & 0x00000001)
     279        link |= PROMISCUOUS_MODE;
     280
    277281    return link;
    278282}
     
    652656        ETHERECMR0 &= ~0x00000002;      /* Set to half-duplex mode */
    653657    }
    654     ETHERECMR0     |=  0x00002000;      /* MCT = 1 */
     658    if (!prm) {
     659        ETHERECMR0     |=  0x00002000;      /* MCT = 1 */
     660    }
     661    else {
     662        ETHERECMR0     &=  ~0x00002000;     /* MCT = 0 */
     663    }
    655664
    656665    /* Interrupt-related */
  • asp3_tinet_ecnl_arm/trunk/asp3_dcre/tinet/netdev/if_mbed/if_mbed.c

    r352 r379  
    344344                                }
    345345                                if (link_mode_new != NEGO_FAIL) {
    346                                         ethernetext_set_link_mode(link_mode_new);
     346                                        ethernetext_set_link_mode(link_mode_new | PROMISCUOUS_MODE);
    347347                                        ETHER.EESIPR0 |= EDMAC_EESIPR_INI_TRANS;
    348348                                        ether_set_link_up(ether);
Note: See TracChangeset for help on using the changeset viewer.