diff options
author | Evan Lojewski <github@meklort.com> | 2019-05-04 16:24:18 -0600 |
---|---|---|
committer | Evan Lojewski <github@meklort.com> | 2019-05-04 16:24:18 -0600 |
commit | 4a32a9b6fadbf7bb54839abda4ca31a2ac0a0cf7 (patch) | |
tree | c5706312ed21842c79b7cb69522687c14ae7b447 | |
parent | 237602ff241e94b79994b256ae559fce8d8b4ff4 (diff) | |
download | bcm5719-ortega-4a32a9b6fadbf7bb54839abda4ca31a2ac0a0cf7.tar.gz bcm5719-ortega-4a32a9b6fadbf7bb54839abda4ca31a2ac0a0cf7.zip |
Cleanup DEVICE.ReceiveMacMode initialization
-rw-r--r-- | libs/Network/init.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libs/Network/init.c b/libs/Network/init.c index f9d1925..e50cdba 100644 --- a/libs/Network/init.c +++ b/libs/Network/init.c @@ -673,9 +673,12 @@ void Network_InitTxRx(void) // Ensure REG_RECEIVE_MAC_MODE has ENABLE set. // I recommend also setting APE_PROMISCUOUS_MODE and PROMISCUOUS_MODE, // as these will cause you less headaches during development. - DEVICE.ReceiveMacMode.bits.Enable = 1; - DEVICE.ReceiveMacMode.bits.PromiscuousMode = 0; - DEVICE.ReceiveMacMode.bits.APEPromiscuousMode = 0; + RegDEVICEReceiveMacMode_t macMode; + macMode = DEVICE.ReceiveMacMode; + macMode.bits.Enable = 1; + macMode.bits.APEPromiscuousMode = 0; + DEVICE.ReceiveMacMode = macMode; + // Ensure REG_EMAC_MODE__ENABLE_APE_{TX,RX}_PATH are set. // *** NOTE: Both bits are set in rmu.c ***/ |