gpio: add (most of) driver framework for boot sysmodule usage

This commit is contained in:
Michael Scire
2020-10-30 23:57:21 -07:00
parent 5b617f4d2f
commit 17fa05a789
58 changed files with 3380 additions and 836 deletions

View File

@@ -60,7 +60,9 @@ namespace ams::boot {
}
Result ChargerDriver::SetChargeEnabled(bool enabled) {
boot::gpio::SetValue(GpioPadName_Bq24193Charger, enabled ? GpioValue_Low : GpioValue_High);
/* TODO */
AMS_ABORT();
/* boot::gpio::SetValue(GpioPadName_Bq24193Charger, enabled ? GpioValue_Low : GpioValue_High); */
return this->SetChargerConfiguration(bq24193::ChargerConfiguration_ChargeBattery);
}