mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-21 10:25:08 -04:00
boot: finish i2c driver
This commit is contained in:
parent
55a8154691
commit
31c4c33042
7 changed files with 439 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
|||
#include <stratosphere.hpp>
|
||||
|
||||
#include "boot_types.hpp"
|
||||
#include "i2c_driver/i2c_types.hpp"
|
||||
|
||||
class Boot {
|
||||
public:
|
||||
|
@ -39,4 +40,8 @@ class Boot {
|
|||
|
||||
/* SPL Utilities. */
|
||||
static HardwareType GetHardwareType();
|
||||
|
||||
/* I2C Utilities. */
|
||||
static Result ReadI2cRegister(I2cSessionImpl &session, u8 *dst, size_t dst_size, const u8 *cmd, size_t cmd_size);
|
||||
static Result WriteI2cRegister(I2cSessionImpl &session, const u8 *src, size_t src_size, const u8 *cmd, size_t cmd_size);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue