Skip to content

Commit

Permalink
GpioLib: Fix dead loops
Browse files Browse the repository at this point in the history
Signed-off-by: Molly Sophia <[email protected]>
  • Loading branch information
MollySophia committed Jan 8, 2024
1 parent 0da5141 commit 526d9e9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ GpioPinSetPull (
{
ASSERT (Group < GPIO_NGROUPS);

UINTN Idx;
INTN Idx;
EFI_PHYSICAL_ADDRESS Reg;
CONST UINT32 Value = GRF_GPIO_P_MASK (Pin) | ((UINT32)Pull << GRF_GPIO_P_SHIFT (Pin));

Expand All @@ -278,7 +278,7 @@ GpioPinSetDrive (
{
ASSERT (Group < GPIO_NGROUPS);

UINTN Idx;
INTN Idx;
EFI_PHYSICAL_ADDRESS Reg;
CONST UINT32 Value = GRF_GPIO_DS_MASK (Pin) | ((UINT32)Drive << GRF_GPIO_DS_SHIFT (Pin));

Expand All @@ -303,7 +303,7 @@ GpioPinSetInput (
{
ASSERT (Group < GPIO_NGROUPS);

UINTN Idx;
INTN Idx;
EFI_PHYSICAL_ADDRESS Reg;
CONST UINT32 Value = GRF_GPIO_IE_MASK (Pin) | ((UINT32)InputEnable << GRF_GPIO_IE_SHIFT (Pin));

Expand Down

0 comments on commit 526d9e9

Please sign in to comment.