2021-04-03 12:55:25 +02:00
|
|
|
/*
|
|
|
|
* BasicIO.cpp
|
|
|
|
*
|
|
|
|
* Created on: 28 Mar 2020
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile
|
|
|
|
#include <Efi.h>
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "../../rEFIt_UEFI/Platform/BasicIO.h"
|
|
|
|
////#include "EfiExternals.h"
|
|
|
|
//
|
|
|
|
//extern "C" {
|
|
|
|
//#include "Library/UefiBootServicesTableLib.h"
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Keyboard input
|
|
|
|
//
|
|
|
|
|
2021-09-28 10:28:45 +02:00
|
|
|
XBool ReadAllKeyStrokes(void)
|
2021-04-03 12:55:25 +02:00
|
|
|
{
|
|
|
|
panic("not yet");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-05-05 12:20:40 +02:00
|
|
|
void PauseForKey(const XString8& msg)
|
2021-04-03 12:55:25 +02:00
|
|
|
{
|
2021-05-05 12:20:40 +02:00
|
|
|
printf("%s", msg.c_str());
|
|
|
|
printf("Press any key ");
|
2021-04-03 12:55:25 +02:00
|
|
|
getchar();
|
2021-05-05 12:20:40 +02:00
|
|
|
printf("\n");
|
2021-04-03 12:55:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Jief, TODO : not sure of the difference between this and PauseForKey. Looks like none. Can it be removed ?
|
|
|
|
|
|
|
|
void
|
|
|
|
WaitForKeyPress(
|
|
|
|
CHAR16 *Message
|
|
|
|
)
|
|
|
|
{
|
|
|
|
panic("not yet");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void EndlessIdleLoop(void)
|
|
|
|
{
|
|
|
|
panic("not yet");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-09-28 10:28:45 +02:00
|
|
|
XBool CheckFatalError(IN EFI_STATUS Status, IN CONST CHAR16 *where)
|
2021-04-05 10:57:55 +02:00
|
|
|
{
|
|
|
|
panic("not yet");
|
|
|
|
}
|
|
|
|
|
2021-09-28 10:28:45 +02:00
|
|
|
XBool CheckError(IN EFI_STATUS Status, IN CONST CHAR16 *where)
|
2021-04-05 10:57:55 +02:00
|
|
|
{
|
|
|
|
panic("not yet");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-04-03 12:55:25 +02:00
|
|
|
|
|
|
|
|