Hugh Brown
|
Re: How to disable receive in mpc85xx
|
Hugh Brown
03/05/2019 7:35 AM
post119560
|
Re: How to disable receive in mpc85xx
You might want to add the following as well:
if ((*(base + MPC_DMACTRL) & DMACTRL_GRS) == 0) {
/* Graceful receive stop and wait for completion. */
*(base + MPC_DMACTRL) |= DMACTRL_GRS;
timeout = MPC_TIMEOUT;
do {
nanospin_ns (10);
if (! --timeout)
break;
status = *(base + MPC_IEVENT);
} while ((status & IEVENT_GRSC) != IEVENT_GRSC);
if (!timeout) {
log(LOG_ERR, "%s(): DMA GRS stop failed", __FUNCTION__);
}
}
On 2019-03-05, 5:54 AM, "Vijaya V" <community-noreply@qnx.com> wrote:
I got hold of the code. For enabling and disabling Rx, I am trying below code:
Disable Rx:
*(base + MPC_MACCFG1) &= ~MACCFG1_RXEN;
Enable Rx:
*(base + MPC_MACCFG1) |= MACCFG1_RXEN;
Is this sufficient or do I need to modify any other registers.
Thanks& Regards
Vijaya
_______________________________________________
Networking Drivers
http://community.qnx.com/sf/go/post119559
To cancel your subscription to this discussion, please e-mail drivers-networking-unsubscribe@community.qnx.com
|
|
|