diff options
| author | Riku Isokoski <riksu9000@gmail.com> | 2021-08-09 14:45:24 (GMT) |
|---|---|---|
| committer | Riku Isokoski <riksu9000@gmail.com> | 2021-08-09 14:45:24 (GMT) |
| commit | baa7e1bf12b58224e9461a5a605dcebabcf9504e (patch) | |
| tree | aab49f16b3b2eb6e38f3d873a7923f242383c244 /src/drivers/TwiMaster.h | |
| parent | 514481ef7f9c71ad816b31d979c6ab39ce9380dd (diff) | |
Optimize twiMaster
Diffstat (limited to 'src/drivers/TwiMaster.h')
| -rw-r--r-- | src/drivers/TwiMaster.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/TwiMaster.h b/src/drivers/TwiMaster.h index 6175b99..b8d36d5 100644 --- a/src/drivers/TwiMaster.h +++ b/src/drivers/TwiMaster.h @@ -26,6 +26,8 @@ namespace Pinetime { void Sleep(); void Wakeup(); + void ConfigurePins() const; + private: ErrorCodes Read(uint8_t deviceAddress, uint8_t* buffer, size_t size, bool stop); ErrorCodes Write(uint8_t deviceAddress, const uint8_t* data, size_t size, bool stop); @@ -41,4 +43,4 @@ namespace Pinetime { static constexpr uint32_t HwFreezedDelay {161000}; }; } -}
\ No newline at end of file +} |
