Cosmos/source/Cosmos.System2/Power.cs
2020-06-17 22:11:21 +03:00

26 lines
574 B
C#

using sysIO = System.IO;
namespace Cosmos.System
{
/// <summary>
/// Power class.
/// </summary>
public static class Power
{
/// <summary>
/// Reboot with CPU.
/// </summary>
public static void Reboot()
{
HAL.Power.CPUReboot();
}
/// <summary>
/// Shutdown the ACPI.
/// </summary>
/// <exception cref="sysIO.IOException">Thrown on IO error.</exception>
public static void Shutdown()
{
HAL.Power.ACPIShutdown();
}
}
}