Example #1
0
 public static void DMA_release_DREQ(int nchan) {
   jdos.hardware.DMA.DmaChannel channel = jdos.hardware.DMA.GetDMAChannel(nchan);
   channel.Clear_Request();
   // DMA_run();
 }
Example #2
0
 public static int DMA_write_memory(int nchan, byte[] buf, int bufOffset, int pos, int len) {
   jdos.hardware.DMA.DmaChannel channel = jdos.hardware.DMA.GetDMAChannel(nchan);
   return channel.Write(len, buf, bufOffset);
 }
Example #3
0
 public static void DMA_hold_DREQ(int nchan) {
   jdos.hardware.DMA.DmaChannel channel = jdos.hardware.DMA.GetDMAChannel(nchan);
   channel.callback.call(channel, jdos.hardware.DMA.DMAEvent.DMA_UNMASKED);
   channel.Raise_Request();
   // DMA_run();
 }