mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-15 00:13:43 +00:00
UEFI: Add support for UEFI time and UEFI events; fix STOP \n -> \r\n conversion (#5549)
* add support for UEFI time and UEFI events; fix STOP \n -> \r\n conversion * apply EFI timezone offset
This commit is contained in:
@@ -9,8 +9,10 @@ import (
|
||||
const deviceName = "UEFI"
|
||||
|
||||
type (
|
||||
EFI_STATUS = deviceuefi.EFI_STATUS
|
||||
TextOutput = deviceuefi.TextOutput
|
||||
EFI_STATUS = deviceuefi.EFI_STATUS
|
||||
EFI_TIME = deviceuefi.EFI_TIME
|
||||
EFI_TIME_CAPABILITIES = deviceuefi.EFI_TIME_CAPABILITIES
|
||||
TextOutput = deviceuefi.TextOutput
|
||||
|
||||
Error = deviceuefi.Error
|
||||
)
|
||||
@@ -88,6 +90,10 @@ var (
|
||||
ErrHTTPError = deviceuefi.ErrHTTPError
|
||||
)
|
||||
|
||||
func GetTime() (EFI_TIME, EFI_STATUS) {
|
||||
return deviceuefi.GetTime()
|
||||
}
|
||||
|
||||
func ConsoleOut() *TextOutput {
|
||||
return deviceuefi.ConsoleOut()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user