Hardware/LPC/F718XX.cs
changeset 236 763675f19ff4
parent 228 458a6c3de579
child 323 3f2d9ebacf38
     1.1 --- a/Hardware/LPC/F718XX.cs	Mon Oct 18 07:18:14 2010 +0000
     1.2 +++ b/Hardware/LPC/F718XX.cs	Sun Oct 31 22:08:47 2010 +0000
     1.3 @@ -60,9 +60,9 @@
     1.4        new byte[] { 0xA0, 0xB0, 0xC0, 0xD0 };
     1.5      
     1.6      private byte ReadByte(byte register) {
     1.7 -      WinRing0.WriteIoPortByte(
     1.8 +      Ring0.WriteIoPort(
     1.9          (ushort)(address + ADDRESS_REGISTER_OFFSET), register);
    1.10 -      return WinRing0.ReadIoPortByte((ushort)(address + DATA_REGISTER_OFFSET));
    1.11 +      return Ring0.ReadIoPort((ushort)(address + DATA_REGISTER_OFFSET));
    1.12      }
    1.13  
    1.14      public byte? ReadGPIO(int index) {
    1.15 @@ -94,7 +94,7 @@
    1.16        r.AppendLine(address.ToString("X4", CultureInfo.InvariantCulture));
    1.17        r.AppendLine();
    1.18  
    1.19 -      if (!WinRing0.WaitIsaBusMutex(100))
    1.20 +      if (!Ring0.WaitIsaBusMutex(100))
    1.21          return r.ToString();
    1.22  
    1.23        r.AppendLine("Hardware Monitor Registers");
    1.24 @@ -114,13 +114,13 @@
    1.25        }
    1.26        r.AppendLine();
    1.27  
    1.28 -      WinRing0.ReleaseIsaBusMutex();
    1.29 +      Ring0.ReleaseIsaBusMutex();
    1.30  
    1.31        return r.ToString();
    1.32      }
    1.33  
    1.34      public void Update() {
    1.35 -      if (!WinRing0.WaitIsaBusMutex(10))
    1.36 +      if (!Ring0.WaitIsaBusMutex(10))
    1.37          return;
    1.38  
    1.39        for (int i = 0; i < voltages.Length; i++) {
    1.40 @@ -173,7 +173,7 @@
    1.41            fans[i] = null;        
    1.42        }
    1.43  
    1.44 -      WinRing0.ReleaseIsaBusMutex();
    1.45 +      Ring0.ReleaseIsaBusMutex();
    1.46      }
    1.47    }
    1.48  }