]> git.proxmox.com Git - mirror_edk2.git/commitdiff
EmbeddedPkg/MetronomeDxe: Replaced hardcoded Tick Period by PcdMetronomeTickPeriod
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 4 Jul 2012 20:13:48 +0000 (20:13 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 4 Jul 2012 20:13:48 +0000 (20:13 +0000)
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

EmbeddedPkg/MetronomeDxe/Metronome.c
EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf

index f8b1fcb8d83f1324d02b2314f84b948d678b0db9..8388c4d1989caa4db8e901a82c7e7aaf6f57b9aa 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
 \r
   Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+  Copyright (c) 2012, ARM Ltd. All rights reserved.\r
   \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -89,7 +90,7 @@ WaitForTick (
 **/\r
 EFI_METRONOME_ARCH_PROTOCOL gMetronome = {\r
   WaitForTick,\r
-  100              \r
+  FixedPcdGet32 (PcdMetronomeTickPeriod)\r
 };\r
 \r
 \r
index 25194ffd0c5239356392f8279a27a75e91815a4e..37aea8571a77149352fb381f891a5a2eef2b5fe7 100644 (file)
@@ -2,7 +2,9 @@
 #  \r
 #    Component description file for Bds module\r
 #\r
-#  Copyright (c) 2008, Apple Inc. All rights reserved.<BR>\r
+#  Copyright (c) 2008, Apple Inc. All rights reserved.\r
+#  Copyright (c) 2012, ARM Ltd. All rights reserved.\r
+#\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
 #  which accompanies this distribution.  The full text of the license may be found at\r
 \r
   ENTRY_POINT                    = MetronomeInitialize\r
 \r
-\r
 [Sources.common]\r
   Metronome.c\r
 \r
-\r
 [Packages]\r
   MdePkg/MdePkg.dec\r
+  EmbeddedPkg/EmbeddedPkg.dec\r
 \r
 [LibraryClasses]\r
   BaseLib\r
@@ -39,9 +40,9 @@
   UefiDriverEntryPoint\r
   TimerLib\r
 \r
-[Guids]\r
+[FixedPcd]\r
+  gEmbeddedTokenSpaceGuid.PcdMetronomeTickPeriod\r
   \r
-\r
 [Protocols]\r
   gEfiMetronomeArchProtocolGuid                       \r
 \r