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 | |
parent | 799904f7f22ef5dcf7065a342eb8a3aa78be559b (diff) |
bme680_util: add sleep_ms wrapper
-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); |