mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-10 06:01:52 +00:00
gpio: really not sure how this works before, lol
This commit is contained in:
parent
7a69f2f062
commit
8176f085f1
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ namespace ams::gpio::driver::board::nintendo::nx::impl {
|
|||
const InternalGpioPadNumber pad_number = pad->GetPadNumber();
|
||||
|
||||
/* Configure the pad value by modifying the appropriate bit in IN */
|
||||
const uintptr_t pad_address = GetGpioRegisterAddress(m_gpio_virtual_address, GpioRegisterType_GPIO_IN, pad_number);
|
||||
const uintptr_t pad_address = GetGpioRegisterAddress(m_gpio_virtual_address, GpioRegisterType_GPIO_OUT, pad_number);
|
||||
const uintptr_t pad_index = ConvertInternalGpioPadNumberToBitIndex(pad_number);
|
||||
SetMaskedBit(pad_address, pad_index, value);
|
||||
|
||||
|
|
Loading…
Reference in a new issue