diff options
-rw-r--r-- | include/driver/bme680_util.h | 1 | ||||
-rw-r--r-- | src/driver/bme680_util.cc | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/driver/bme680_util.h b/include/driver/bme680_util.h index 1341b49..c56983b 100644 --- a/include/driver/bme680_util.h +++ b/include/driver/bme680_util.h @@ -1,6 +1,7 @@ #include <stdint.h> void bme680_delay_ms(uint32_t const period); +void bme680_sleep_ms(uint32_t const period); int8_t bme680_i2c_read(uint8_t dev_id, uint8_t reg_addr, uint8_t *reg_data, uint16_t len); 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); |