mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-24 19:54:22 -04:00
i2c: begin skeleton device driver framework
This commit is contained in:
parent
21fac86080
commit
4a2daa4810
18 changed files with 656 additions and 1 deletions
|
@ -29,4 +29,15 @@ namespace ams::boot {
|
|||
gpio::driver::Initialize();
|
||||
}
|
||||
|
||||
void InitializeI2cDriverLibrary() {
|
||||
/* Initialize the i2c client library with the server manager object. */
|
||||
i2c::InitializeWith(i2c::server::GetServiceObject(), i2c::server::GetServiceObjectPowerBus());
|
||||
|
||||
/* Initialize the board driver without enabling interrupt handlers. */
|
||||
i2c::driver::board::Initialize();
|
||||
|
||||
/* Initialize the driver library. */
|
||||
i2c::driver::Initialize();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue