Cosmos/source/Cosmos.HAL/Power.cs
Valentin Charbonnier ba65f3b479 Bug fixes and additions.
- The user can now Enable and Disable ACPI
- Image change in the setup (for a better design)
- Bug fixed with Remote Debugging (NRE)
2017-07-03 20:27:28 +02:00

42 lines
No EOL
772 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cosmos.Core;
namespace Cosmos.HAL
{
public class Power
{
//Reboot with CPU
public static void CPUReboot()
{
Core.Global.CPU.Reboot();
}
//Reboot with ACPI
public static void Reboot()
{
ACPI.Reboot();
}
//Shutdown with ACPI
public static void Shutdown()
{
ACPI.Shutdown();
}
//Enable ACPI
public static void ACPIEnable()
{
ACPI.Enable();
}
//Disable ACPI
public static void ACPIDisable()
{
ACPI.Disable();
}
}
}