summaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-09-25 16:02:49 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2019-09-25 16:02:49 +0200
commite6a319dcd2084c73799e712b7d2635cb6bf08913 (patch)
tree288faf9be0f285449f99b8b24cf9929e6ad00ec6 /model
parent34ec0e23e63aa2bbd4939958eeb2093f9cadd3c2 (diff)
bme680.dfa: add setup calls
Diffstat (limited to 'model')
-rw-r--r--model/driver/bme680.dfa8
1 files changed, 7 insertions, 1 deletions
diff --git a/model/driver/bme680.dfa b/model/driver/bme680.dfa
index 4fa512a..72061ce 100644
--- a/model/driver/bme680.dfa
+++ b/model/driver/bme680.dfa
@@ -1,9 +1,15 @@
codegen:
instance: bme680
- includes: ['driver/bme680.h']
+ includes: ['driver/i2c.h', 'driver/bme680.h', 'driver/bme680_util.h']
flags: ['drivers=bme680', 'arch_drivers=i2c']
setup:
+ - i2c.setup();
- struct bme680_field_data sensordata;
+ - bme680.intf = BME680_I2C_INTF;
+ - bme680.read = bme680_i2c_read;
+ - bme680.write = bme680_i2c_write;
+ - bme680.delay_ms = bme680_delay_ms;
+ - bme680.amb_temp = 25;
dummygen:
enum: