i2c: implement remaining required driver logic

This commit is contained in:
Michael Scire
2020-11-01 00:52:02 -07:00
parent 43f7b10c0f
commit 22ae1d5bd3
14 changed files with 307 additions and 17 deletions

View File

@@ -151,11 +151,11 @@ namespace ams::i2c {
return GetInterface(session)->ExecuteCommandList(buf, arr);
}
void SetRetryPolicy(const I2cSession &session, int max_retry_count, int retry_interval_ms) {
void SetRetryPolicy(const I2cSession &session, int max_retry_count, int retry_interval_us) {
AMS_ASSERT(max_retry_count >= 0);
AMS_ASSERT(retry_interval_ms >= 0);
AMS_ASSERT(retry_interval_us >= 0);
R_ABORT_UNLESS(GetInterface(session)->SetRetryPolicy(max_retry_count, retry_interval_ms));
R_ABORT_UNLESS(GetInterface(session)->SetRetryPolicy(max_retry_count, retry_interval_us));
}
}