Beispiel #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();
 }
Beispiel #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);
 }
Beispiel #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();
 }