]> rtime.felk.cvut.cz Git - rpp-test-sw.git/commitdiff
DIN command tuned
authorMichal Horn <michal@michal-laptop.(none)>
Mon, 24 Jun 2013 12:58:55 +0000 (14:58 +0200)
committerMichal Horn <michal@michal-laptop.(none)>
Mon, 24 Jun 2013 12:58:55 +0000 (14:58 +0200)
rpp/lib/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)
 {