void rza1EthDisableIrq(NetInterface *interface) { //Disable Ethernet MAC interrupts R_INTC_Disable(INTC_ID_ETHERI); //Disable Ethernet PHY interrupts interface->phyDriver->disableIrq(interface); }
void dmac0Stop(void) { //Disable DMAINT0 interrupt R_INTC_Disable(INTC_ID_DMAINT0); //Check whether the DMA channel is enabled if(DMAC0.CHSTAT.BIT.EN) { //Suspend the current DMA transfer DMAC0.CHCTRL.BIT.SETSUS = 1; //Wait for the DMA transfer to be suspended while(!DMAC0.CHSTAT.BIT.SUS); //Stop the DMA transfer DMAC0.CHCTRL.BIT.CLREN = 1; //Wait until the DMA channel is completely inactive while(DMAC0.CHSTAT.BIT.TACT); } }
void dmac0DisableIrq(void) { //Disable DMAINT0 interrupt R_INTC_Disable(INTC_ID_DMAINT0); }