mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[ARMLLB]: We made certain assumptions in the "generic" files that are actually board-specific. For example, Versatile does indeed return a strange ULONG as the RTC time (seconds since 1970, I think), but TWL4030 on the ZOOM2 is normal and returns BCD RTC values just like the PC CMOS. Therefore, most of the "Generic" time.c code should move to versatile later. For now, use an IFDEF.
[ARMLLB]: Likewise, not all platforms have a PS/2 controller like the Versatile. ZOOM2 for example has a keypad, so the generic "input" file shouldn't assume keyboard-only. As such, most of the code there should also be made specific, but for now, use an ifdef. svn path=/trunk/; revision=49741
This commit is contained in:
parent
cc0c432e7b
commit
00c2cfbe36
2 changed files with 11 additions and 1 deletions
|
@ -49,7 +49,11 @@ INT
|
|||
LlbFwGetCh(VOID)
|
||||
{
|
||||
/* Return the key pressed */
|
||||
#ifdef _ZOOM2_
|
||||
return LlbKeypadGetChar();
|
||||
#else
|
||||
return LlbKeyboardGetChar();
|
||||
#endif
|
||||
}
|
||||
|
||||
ULONG
|
||||
|
|
|
@ -11,7 +11,12 @@
|
|||
#define LEAPS_THRU_END_OF(y) ((y)/4 - (y)/100 + (y)/400)
|
||||
|
||||
UCHAR LlbDaysInMonth[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
|
||||
|
||||
#ifndef _ZOOM2_
|
||||
TIMEINFO LlbTime;
|
||||
#else
|
||||
extern TIMEINFO LlbTime;
|
||||
#endif
|
||||
|
||||
BOOLEAN
|
||||
NTAPI
|
||||
|
@ -82,9 +87,10 @@ LlbGetTime(VOID)
|
|||
|
||||
/* Read RTC time */
|
||||
RtcTime = LlbHwRtcRead();
|
||||
|
||||
#ifndef _ZOOM2_
|
||||
/* Convert it */
|
||||
LlbConvertRtcTime(RtcTime, &LlbTime);
|
||||
#endif
|
||||
return &LlbTime;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue