ArmPkg: Fix Ecc error 8001 in ArmArchTimerLib
This patch fixes the following Ecc reported error: Only capital letters are allowed to be used for #define declarations Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
parent
b9d4976998
commit
0fc54a6a55
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Generic ARM implementation of TimerLib.h
|
Generic ARM implementation of TimerLib.h
|
||||||
|
|
||||||
Copyright (c) 2011-2016, ARM Limited. All rights reserved.
|
Copyright (c) 2011 - 2021, Arm Limited. All rights reserved.<BR>
|
||||||
|
|
||||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
|
@ -20,9 +20,9 @@
|
||||||
|
|
||||||
// Select appropriate multiply function for platform architecture.
|
// Select appropriate multiply function for platform architecture.
|
||||||
#ifdef MDE_CPU_ARM
|
#ifdef MDE_CPU_ARM
|
||||||
#define MultU64xN MultU64x32
|
#define MULT_U64_X_N MultU64x32
|
||||||
#else
|
#else
|
||||||
#define MultU64xN MultU64x64
|
#define MULT_U64_X_N MultU64x64
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ MicroSecondDelay (
|
||||||
// = MicroSeconds x TICKS_PER_MICRO_SEC
|
// = MicroSeconds x TICKS_PER_MICRO_SEC
|
||||||
// = MicroSeconds x Frequency.10^-6
|
// = MicroSeconds x Frequency.10^-6
|
||||||
TimerTicks64 = DivU64x32 (
|
TimerTicks64 = DivU64x32 (
|
||||||
MultU64xN (
|
MULT_U64_X_N (
|
||||||
MicroSeconds,
|
MicroSeconds,
|
||||||
GetPlatformTimerFreq ()
|
GetPlatformTimerFreq ()
|
||||||
),
|
),
|
||||||
|
@ -263,7 +263,7 @@ GetTimeInNanoSecond (
|
||||||
// Time = --------- x 1,000,000,000
|
// Time = --------- x 1,000,000,000
|
||||||
// Frequency
|
// Frequency
|
||||||
//
|
//
|
||||||
NanoSeconds = MultU64xN (
|
NanoSeconds = MULT_U64_X_N (
|
||||||
DivU64x32Remainder (
|
DivU64x32Remainder (
|
||||||
Ticks,
|
Ticks,
|
||||||
TimerFreq,
|
TimerFreq,
|
||||||
|
@ -276,7 +276,7 @@ GetTimeInNanoSecond (
|
||||||
// will not overflow 64-bit.
|
// will not overflow 64-bit.
|
||||||
//
|
//
|
||||||
NanoSeconds += DivU64x32 (
|
NanoSeconds += DivU64x32 (
|
||||||
MultU64xN (
|
MULT_U64_X_N (
|
||||||
(UINT64) Remainder,
|
(UINT64) Remainder,
|
||||||
1000000000U),
|
1000000000U),
|
||||||
TimerFreq
|
TimerFreq
|
||||||
|
|
Loading…
Reference in New Issue