]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/commitdiff
Comments corrections
authorMichal Horn <michal@michal-laptop.(none)>
Wed, 19 Jun 2013 14:24:15 +0000 (16:24 +0200)
committerMichal Horn <michal@michal-laptop.(none)>
Wed, 19 Jun 2013 14:24:15 +0000 (16:24 +0200)
rpp/lib/rpp/include/binary.h
rpp/lib/rpp/src/drv/dac.c

index 0912fb7eb6c1b6bb9dda32c46fbbfc611cd2c2c7..c8a58b0682bfd8b247393a0e485433b2437deda9 100644 (file)
@@ -18,7 +18,7 @@
 /**
  * Create a bit mask for given bit number.
  * For example:
- *  - _BV(7) -> B[0100 0000]
+ *  - _BV(7) -> B[1000 0000]
  *  - _BV(1) -> B[0000 0010]
  *  - _BV(0) -> B[0000 0001]
  *
index 3d3ad0b58e445fed178a2cca7b99e61f22149db9..dd2b29623a1d81a42c19a9237f1f8c57aae018a5 100644 (file)
@@ -33,7 +33,7 @@
 // See mcp4922.pdf p. 24
 // Options:
 //   Bit 13: Output Gain Selection bit set = 1x (VOUT = VREF * D/4096)
-//   Bit 15: DACA or DACB Selection bit.
+//   Bit 15: DACA (0) or DACB (1) Selection bit.
 #define DAC1_INIT_VAL   _BV(13)
 #define DAC2_INIT_VAL   _BV(13) | _BV(15)
 #define DAC3_INIT_VAL   _BV(13)