Skip to content

Commit

Permalink
Matisse features
Browse files Browse the repository at this point in the history
  • Loading branch information
irusanov committed Sep 18, 2019
1 parent c909351 commit e1a98ce
Show file tree
Hide file tree
Showing 7 changed files with 436 additions and 342 deletions.
3 changes: 3 additions & 0 deletions DataInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public class DataInterface
public const int REG_SCALAR = 0x0D;
public const int REG_SMU_VERSION = 0x0E;
public const int REG_PSTATE_OC = 0x0F;
public const int REG_CPU_TYPE = 0x10;
public const int REG_BOOST_FREQ_0 = 0x11;
public const int REG_BOOST_FREQ_1 = 0x12;

public const UInt64 FLAG_IS_AVAILABLE = 1 << 0;
public const UInt64 FLAG_SUPPORTED_CPU = 1 << 1;
Expand Down
8 changes: 4 additions & 4 deletions NotificationIcon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public enum PerfEnh { None = 0, Default, Level1, Level2, Level3_OC };
public static bool SettingsSaved;

public static UInt64[] Pstate;
public static UInt64[] BoostFreq;
public static int Pstates = 3;
public static UInt64 PstateOc;

Expand Down Expand Up @@ -89,6 +90,7 @@ public NotificationIcon()
{

Pstate = new UInt64[Pstates];
BoostFreq = new UInt64[3];
PstateOc = new UInt64();
// Generate icons

Expand Down Expand Up @@ -350,7 +352,6 @@ void tempTimerHandler(object sender, ElapsedEventArgs e)
{
try
{

// timeout handling
if (di.MemRead(DataInterface.REG_PING_PONG) == 0)
{
Expand All @@ -375,7 +376,6 @@ void tempTimerHandler(object sender, ElapsedEventArgs e)
// Manage client commands
if (waitCmd != DataInterface.NOTIFY_CLEAR)
{

// Check for execution
if (di.MemRead(DataInterface.REG_NOTIFY_STATUS) == DataInterface.NOTIFY_DONE)
{
Expand All @@ -390,7 +390,6 @@ void tempTimerHandler(object sender, ElapsedEventArgs e)
waitCmd = DataInterface.NOTIFY_CLEAR;

}

}

ServiceVersion = di.MemRead(DataInterface.REG_SERVER_VERSION);
Expand Down Expand Up @@ -422,6 +421,8 @@ void tempTimerHandler(object sender, ElapsedEventArgs e)
else ApplyAtStart = true;

for (int i = 0; i < Pstates; i++) Pstate[i] = di.MemRead(DataInterface.REG_P0 + i);
for (int i = 0; i < 2; i++) BoostFreq[i] = di.MemRead(DataInterface.REG_BOOST_FREQ_0 + i);
BoostFreq[2] = Pstate[2];

PstateOc = di.MemRead(DataInterface.REG_PSTATE_OC);

Expand Down Expand Up @@ -480,7 +481,6 @@ void tempTimerHandler(object sender, ElapsedEventArgs e)
{
// Suppress exception
}

}

#endregion
Expand Down
5 changes: 3 additions & 2 deletions SettingsForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e1a98ce

Please sign in to comment.