示例#1
0
void rza1EthDisableIrq(NetInterface *interface)
{
   //Disable Ethernet MAC interrupts
   R_INTC_Disable(INTC_ID_ETHERI);
   //Disable Ethernet PHY interrupts
   interface->phyDriver->disableIrq(interface);
}
示例#2
0
文件: dmac0.c 项目: nandojve/embedded
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);
   }
}
示例#3
0
文件: dmac0.c 项目: nandojve/embedded
void dmac0DisableIrq(void)
{
   //Disable DMAINT0 interrupt
   R_INTC_Disable(INTC_ID_DMAINT0);
}