From 09db877b9ffe312737ae2e25daf3ba7d67518655 Mon Sep 17 00:00:00 2001 From: Michal Horn Date: Wed, 19 Jun 2013 16:24:15 +0200 Subject: [PATCH] Comments corrections --- rpp/lib/rpp/include/binary.h | 2 +- rpp/lib/rpp/src/drv/dac.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rpp/lib/rpp/include/binary.h b/rpp/lib/rpp/include/binary.h index 0912fb7..c8a58b0 100644 --- a/rpp/lib/rpp/include/binary.h +++ b/rpp/lib/rpp/include/binary.h @@ -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] * diff --git a/rpp/lib/rpp/src/drv/dac.c b/rpp/lib/rpp/src/drv/dac.c index 3d3ad0b..dd2b296 100644 --- a/rpp/lib/rpp/src/drv/dac.c +++ b/rpp/lib/rpp/src/drv/dac.c @@ -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) -- 2.39.2