WatchDogTimer-Button
This commit is contained in:
parent
62bec2f317
commit
79aac04f5a
15
PIC_Simulator/Form1.Designer.cs
generated
15
PIC_Simulator/Form1.Designer.cs
generated
@ -109,6 +109,7 @@
|
|||||||
this.edClockBit = new System.Windows.Forms.TextBox();
|
this.edClockBit = new System.Windows.Forms.TextBox();
|
||||||
this.btnClockStart = new System.Windows.Forms.Button();
|
this.btnClockStart = new System.Windows.Forms.Button();
|
||||||
this.edCLockFreq = new System.Windows.Forms.TextBox();
|
this.edCLockFreq = new System.Windows.Forms.TextBox();
|
||||||
|
this.WakeUpButton = new System.Windows.Forms.Button();
|
||||||
this.menuStrip1.SuspendLayout();
|
this.menuStrip1.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
@ -286,13 +287,11 @@
|
|||||||
//
|
//
|
||||||
// columnHeader3
|
// columnHeader3
|
||||||
//
|
//
|
||||||
this.columnHeader3.DisplayIndex = 4;
|
|
||||||
this.columnHeader3.Text = "2";
|
this.columnHeader3.Text = "2";
|
||||||
this.columnHeader3.Width = 32;
|
this.columnHeader3.Width = 32;
|
||||||
//
|
//
|
||||||
// columnHeader4
|
// columnHeader4
|
||||||
//
|
//
|
||||||
this.columnHeader4.DisplayIndex = 3;
|
|
||||||
this.columnHeader4.Text = "3";
|
this.columnHeader4.Text = "3";
|
||||||
this.columnHeader4.Width = 32;
|
this.columnHeader4.Width = 32;
|
||||||
//
|
//
|
||||||
@ -824,11 +823,22 @@
|
|||||||
this.edCLockFreq.TabIndex = 62;
|
this.edCLockFreq.TabIndex = 62;
|
||||||
this.edCLockFreq.Text = "1500";
|
this.edCLockFreq.Text = "1500";
|
||||||
//
|
//
|
||||||
|
// WakeUpButton
|
||||||
|
//
|
||||||
|
this.WakeUpButton.Location = new System.Drawing.Point(254, 31);
|
||||||
|
this.WakeUpButton.Name = "WakeUpButton";
|
||||||
|
this.WakeUpButton.Size = new System.Drawing.Size(63, 21);
|
||||||
|
this.WakeUpButton.TabIndex = 63;
|
||||||
|
this.WakeUpButton.Text = "Wake Up";
|
||||||
|
this.WakeUpButton.UseVisualStyleBackColor = true;
|
||||||
|
this.WakeUpButton.Click += new System.EventHandler(this.button1_Click);
|
||||||
|
//
|
||||||
// Form1
|
// Form1
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(1298, 692);
|
this.ClientSize = new System.Drawing.Size(1298, 692);
|
||||||
|
this.Controls.Add(this.WakeUpButton);
|
||||||
this.Controls.Add(this.edCLockFreq);
|
this.Controls.Add(this.edCLockFreq);
|
||||||
this.Controls.Add(this.btnClockStart);
|
this.Controls.Add(this.btnClockStart);
|
||||||
this.Controls.Add(this.edClockBit);
|
this.Controls.Add(this.edClockBit);
|
||||||
@ -980,6 +990,7 @@
|
|||||||
private System.Windows.Forms.TextBox edClockBit;
|
private System.Windows.Forms.TextBox edClockBit;
|
||||||
private System.Windows.Forms.Button btnClockStart;
|
private System.Windows.Forms.Button btnClockStart;
|
||||||
private System.Windows.Forms.TextBox edCLockFreq;
|
private System.Windows.Forms.TextBox edCLockFreq;
|
||||||
|
private System.Windows.Forms.Button WakeUpButton;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -501,6 +501,11 @@ namespace PIC_Simulator
|
|||||||
programm.TaktgeberAdresse = Convert.ToUInt32(edClockAddr.Text.Substring(2), 16);
|
programm.TaktgeberAdresse = Convert.ToUInt32(edClockAddr.Text.Substring(2), 16);
|
||||||
programm.TaktgeberBitnummer = uint.Parse(edClockBit.Text);
|
programm.TaktgeberBitnummer = uint.Parse(edClockBit.Text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void button1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
programm.IsSleeping = false; //Kein WatchdogTimer implementiert, Sleep durch button deaktiviert
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user