diff options
author | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-07-04 20:13:48 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-07-04 20:13:48 +0000 |
commit | 990976abff3994a59ad9d3aabb72175068d19e06 (patch) | |
tree | 6c7f4d4d189e0cf8ce2737796c54ae2d75afbe61 /EmbeddedPkg/MetronomeDxe | |
parent | 92034e14da2feebde58234c812507810bfb19c56 (diff) | |
download | edk2-990976abff3994a59ad9d3aabb72175068d19e06.zip edk2-990976abff3994a59ad9d3aabb72175068d19e06.tar.gz edk2-990976abff3994a59ad9d3aabb72175068d19e06.tar.bz2 |
EmbeddedPkg/MetronomeDxe: Replaced hardcoded Tick Period by PcdMetronomeTickPeriod
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13495 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EmbeddedPkg/MetronomeDxe')
-rw-r--r-- | EmbeddedPkg/MetronomeDxe/Metronome.c | 3 | ||||
-rw-r--r-- | EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf | 11 |
2 files changed, 8 insertions, 6 deletions
diff --git a/EmbeddedPkg/MetronomeDxe/Metronome.c b/EmbeddedPkg/MetronomeDxe/Metronome.c index f8b1fcb..8388c4d 100644 --- a/EmbeddedPkg/MetronomeDxe/Metronome.c +++ b/EmbeddedPkg/MetronomeDxe/Metronome.c @@ -1,6 +1,7 @@ /** @file
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
+ Copyright (c) 2012, ARM Ltd. All rights reserved.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -89,7 +90,7 @@ WaitForTick ( **/
EFI_METRONOME_ARCH_PROTOCOL gMetronome = {
WaitForTick,
- 100
+ FixedPcdGet32 (PcdMetronomeTickPeriod)
};
diff --git a/EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf b/EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf index 25194ff..37aea85 100644 --- a/EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf +++ b/EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf @@ -2,7 +2,9 @@ #
# Component description file for Bds module
#
-# Copyright (c) 2008, Apple Inc. All rights reserved.<BR>
+# Copyright (c) 2008, Apple Inc. All rights reserved.
+# Copyright (c) 2012, ARM Ltd. All rights reserved.
+#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at
@@ -22,13 +24,12 @@ ENTRY_POINT = MetronomeInitialize
-
[Sources.common]
Metronome.c
-
[Packages]
MdePkg/MdePkg.dec
+ EmbeddedPkg/EmbeddedPkg.dec
[LibraryClasses]
BaseLib
@@ -39,9 +40,9 @@ UefiDriverEntryPoint
TimerLib
-[Guids]
+[FixedPcd]
+ gEmbeddedTokenSpaceGuid.PcdMetronomeTickPeriod
-
[Protocols]
gEfiMetronomeArchProtocolGuid
|