diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-12-12 08:20:55 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-12-12 08:20:55 +0100 |
commit | 246fecf17c0bf78ade3d830b3a71236527db9206 (patch) | |
tree | fa224757ad3a93912a5468cb5f572a9a8bda6cb4 /src/driver | |
parent | 799904f7f22ef5dcf7065a342eb8a3aa78be559b (diff) |
bme680_util: add sleep_ms wrapper
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/bme680_util.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/driver/bme680_util.cc b/src/driver/bme680_util.cc index 653403e..ebe48f7 100644 --- a/src/driver/bme680_util.cc +++ b/src/driver/bme680_util.cc @@ -11,6 +11,11 @@ void bme680_delay_ms(uint32_t const period) arch.delay_ms(period); } +void bme680_sleep_ms(uint32_t const period) +{ + arch.sleep_ms(period); +} + int8_t bme680_i2c_read(uint8_t dev_id, uint8_t reg_addr, uint8_t *reg_data, uint16_t len) { int8_t ret = i2c.xmit(dev_id, 1, ®_addr, 0, 0); |