]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blobdiff - rpp/src/drv/din.c
Fixed variable threshold digital inputs.
[pes-rpp/rpp-lib.git] / rpp / src / drv / din.c
index 135bf68fe58769dcebeb7d67938615da369f892b..1cb26f879d4d77e2ba168e9d84b2d87ae203641d 100644 (file)
@@ -54,8 +54,8 @@ const static uint32_t dsc_pin_map[8U] = {
 // Options:
 //   Bit 13: Output Gain Selection bit set = 1x (VOUT = VREF * D/4096)
 //   Bit 15: DACA (0) or DACB (1) Selection bit.
-#define DACA_INIT_VAL   _BV(13)
-#define DACB_INIT_VAL   _BV(13) | _BV(15)
+#define DACA_INIT_VAL   (_BV(13) | _BV(12)          )
+#define DACB_INIT_VAL   (_BV(13) | _BV(12) | _BV(15))
 
 int8_t drv_din_ref(uint16_t ref_a, uint16_t ref_b)
 {