Hardware/LPC/F718XX.cs
changeset 162 2129ccee0bd1
parent 132 680ed54e05ca
child 163 67be1c62f950
     1.1 --- a/Hardware/LPC/F718XX.cs	Wed Aug 04 19:10:20 2010 +0000
     1.2 +++ b/Hardware/LPC/F718XX.cs	Wed Aug 04 20:27:05 2010 +0000
     1.3 @@ -87,9 +87,12 @@
     1.4        r.AppendLine();
     1.5        r.Append("Base Adress: 0x"); r.AppendLine(address.ToString("X4"));
     1.6        r.AppendLine();
     1.7 +
     1.8 +      if (!WinRing0.WaitIsaBusMutex())
     1.9 +        return r.ToString();
    1.10 +
    1.11        r.AppendLine("Hardware Monitor Registers");
    1.12        r.AppendLine();
    1.13 -
    1.14        r.AppendLine("      00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F");
    1.15        r.AppendLine();
    1.16        for (int i = 0; i <= 0xF; i++) {
    1.17 @@ -101,10 +104,15 @@
    1.18          r.AppendLine();
    1.19        }
    1.20        r.AppendLine();
    1.21 +
    1.22 +      WinRing0.ReleaseIsaBusMutex();
    1.23 +
    1.24        return r.ToString();
    1.25      }
    1.26  
    1.27      public void Update() {
    1.28 +      if (!WinRing0.WaitIsaBusMutex())
    1.29 +        return;
    1.30  
    1.31        for (int i = 0; i < voltages.Length; i++) {
    1.32          int value = ReadByte((byte)(VOLTAGE_BASE_REG + i));
    1.33 @@ -154,7 +162,9 @@
    1.34            fans[i] = (value < 0x0fff) ? 1.5e6f / value : 0;
    1.35          else 
    1.36            fans[i] = null;        
    1.37 -      }      
    1.38 +      }
    1.39 +
    1.40 +      WinRing0.ReleaseIsaBusMutex();
    1.41      }
    1.42    }
    1.43  }