Skip to content

Commit

Permalink
[DEV] EFMGPIOPort: Override OnGPIO method so that Connections gets up…
Browse files Browse the repository at this point in the history
…dated.
  • Loading branch information
lougierismonin committed Jan 14, 2021
1 parent 06c5db1 commit 291c885
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Emulator/Peripherals/Peripherals/GPIOPort/EFMGPIOPort.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ public void WriteDoubleWord(long offset, uint value)
}
}

public override void OnGPIO(int number, bool value)
{
base.OnGPIO(number, value);
Connections[number].Set(value);
}

private void DoPinOperation(int portNumber, Operation operation, uint value)
{
for(var i = 0; i < EFMGPIOPort_Constants.NB_PORT; i++)
Expand Down

0 comments on commit 291c885

Please sign in to comment.